Lesson 00.08 · Phase 00 · Setup & Tooling

Project layout for agent repos

A demo agent fits in one file. A real one has config, prompts, tools, tests, evals and traces, and if they don't each have a home on day one, they end up everywhere.

Learning objectives

  • Lay out an agent repository so that config, model access, tools, prompts, tests, evals and traces each have one obvious home.
  • Separate fast offline tests (does the code work?) from evals (does the agent behave?), and know why both are needed.
  • Generate the layout with a scaffolder, and prove the generated project works by running its tests, CLI and evals.
  • Write an AGENTS.md so coding agents working in your repo follow the same rules you do.

Every agent starts as agent.py. A month later, that file:

Loading the full lesson…