A context file is the configuration layer an agent loads before it touches your repository. AGENTS.md sits at the top of the conversation history, just below the system prompt, and it can carry both personal preferences and project scope facts such as package manager and architecture decisions (the AGENTS.md guide). Claude Code uses CLAUDE.md instead, and a symlink keeps both tools reading the same text (the AGENTS.md guide).
That position in the prompt is what makes review non-negotiable. The file is not documentation that a human reads once. It is an instruction set the model consumes on every single request, so every token in it competes for attention with the task at hand (the AGENTS.md guide). A careless sentence does not sit quietly in a wiki. It changes what the agent does on the next run, for everyone.
The typical failure mode is accretion. An agent does something unwanted, someone adds a rule, and this repeats until the file becomes a "ball of mud" of conflicting opinions with no style pass (the AGENTS.md guide). Auto-generated files make it worse: initialization output optimizes for comprehensiveness rather than restraint (the AGENTS.md guide). Addy Osmani's reading of the evidence is blunter. Treat a generated context file as a list of code smells you have not fixed, and expect duplicated, discoverable content to inflate cost by 20 percent or more while adding nothing the agent could not find itself (Osmani on /init).
There is also a documented split result worth knowing before you approve anything. In one paired experiment on 124 real GitHub pull requests, the presence of an AGENTS.md file cut median wall-clock runtime by 28.64 percent and output tokens by 16.58 percent. A separate study found that model-generated context files reduced task success by 2 to 3 percent while raising cost by over 20 percent, and that developer-written files improved success by about 4 percent but still raised cost by up to 19 percent (Osmani on /init). Both results can be true: the direction of the effect depends on what the edit adds. That is exactly why a reviewer, not an author, should decide.



