Context Engineering
Agent Working-Context Curation
03 / 12
Build the project context layer the agent needs before it starts changing code.
The Shift
You used to carry the project map in your head: how the system is shaped, which module owns what, why a hard decision was made, and the convention nobody wrote down. That mental model helped you move safely, even when the docs were thin.
An agent does not arrive with that map. It needs shared project context: repo overview, architecture notes, module boundaries, domain terms, coding conventions, build/test commands, API contracts, data flows, ADRs, and safe paths to inspect more. Without that, it still writes code, but it guesses the shape of the system.
So context engineering starts before the chat. Put the stable project knowledge where the agent can find it, keep it short enough to load, and link out to deeper docs only when needed. Then, during the task, let the agent retrieve files and evidence from that map.
Context layer
Repo overview
how it's shaped
Architecture
module boundaries
Conventions
naming · patterns · folder structure
Module map
owners · entry points
Data flows · APIs
contracts
ADRs
the "why"
Commands
build · test · run