
AGENTS.md: does a context file help an agent?
From the format’s origins to research, my annotations and writing practice
Slide contents
1. AGENTS.md: does a context file help an agent?
From the format’s origins to research, my annotations and writing practice
2. From the file to your own evaluation
Format, evolution, research, practice
3. AGENTS.md gives agents project instructions
Plain Markdown alongside code, with no required schema
4. OpenAI convened the shared format effort
Codex, Amp, Google Jules, Cursor and Factory
5. Contents answer practical questions
How to set up, change code and validate the result
6. Instructions set condition, action and check
Concise, concrete, scoped and checked for freshness
7. One file for different agents
One format instead of a separate file for each agent
8. A short file isn't proven to help
In episode 35 AGENTS.md became a contents page; Giga Conf: instructions get shorter
9. Two setups answer different questions
SWE‑bench Lite for /init files; CTXbench adds developers' own files
10. From 5,694 pull requests to 138 tasks
Five steps: search, filter, setup, description, tests
11. Mostly niche projects instead of Django
From 17 tasks in openai-agents-python to 3 in graphiti
12. Three conditions across four agents
No file, /init file, developer file; one run each
13. Generated files almost always include an overview
A developer file averages 641 words and 9.7 sections
14. Two points is about three tasks
Standard error ±3–4 pp, one run, a significance test
15. On SWE‑bench, generated files don't change accuracy
Minus 0.5 pp on average across four agents, p = 0.87
16. Developer files beat generated ones
Yet neither significantly beats no file: p = 0.37 and 0.21
17. Context files raised cost in this experiment
Generated: +20% and +23%; developer files: about +19%
18. A repository overview barely shortens search
Not meaningfully fewer steps to the target file; more for GPT‑5.1 mini
19. Agents generally follow the file's rules
Mention uv and it gets 1.6 calls per task instead of almost none
20. With a file, OpenAI models reason longer
GPT‑5.2 spends up to 22% more reasoning tokens
21. Without docs, generated files gained slightly
With .md, examples and docs/ removed, generated files gain 2.7% on CTXbench
22. Removing sections changes cost, not accuracy
Without the testing section: 16–21% cheaper (our calculation)
23. The paper's conclusion grew more careful
February: “tend to reduce success”; from June: “does not generally improve”
24. Twelve files, only Python, one run
What the authors concede and what the host adds
25. Neighbour study: faster runs with the file
10 projects, 124 pull requests: median runtime −28.64%, output tokens −16.58%
26. Some uncertainty is resolved before solving
My hypothesis: detailed tasks reduce the file’s added value
27. Available information affects the outcome
Evidence consistent with a hypothesis does not prove its mechanism
28. Keep rules, remove duplication
Non-standard rules, yes; overviews and retold docs, no
29. Write what changes the agent’s actions
A minimal example for an illustrative export service
30. Evaluate the file alongside the task
One developer file, two levels of task detail
31. Add missing rules and verify their value
Keep necessary commands and non-obvious constraints
/init: no accuracy gain, cost +20–23%
Clarify unknown requirements before implementation
Measure success, cost and non-functional properties
What does your file add to the task?