Module 2 · Lesson 3 of 12
Give the Agent Project Context
A concise project map helps the agent make changes that fit the codebase instead of guessing at conventions.
# Give the Agent Project Context
Agents work from the material they can see. Before delegating, make the repository legible: explain the architecture, name the relevant entry points, point to the tests and commands, and state important constraints. A focused context file such as AGENTS.md can preserve durable instructions, but keep it short and verify that it matches the current code.
Do not paste the entire repository into the prompt. Give the agent a map and a specific route through it. Link the files that define the behavior, the nearest example, and the test that demonstrates the expected result. Ask it to report uncertainty before it makes broad assumptions.
## Apply it
For your next task, write a five-line project map: system area, key files, relevant pattern, validation command, and known constraint.
Practice: Ask an agent to summarize the context it will use. Correct any misunderstanding before implementation.
Sign in to keep track of the lessons you finish.