Agent Practices
What the evidence says about giving coding agents context, with every claim linked to its source.
Agent Practices gathers published research and documented practice on giving coding agents context: what they read in every session, what they load for one task, and what they carry from one session to the next. It describes the shape of good practice that this evidence shows, and links each claim to a row in the Ledger with its source and caveat. Where the evidence stops, the page says so. For skills in depth, see agentskills.io.
The shape, in brief
Section titled “The shape, in brief”- Context is a budget. Evidence Models use long inputs less reliably as they grow, and a related but unhelpful passage lowers accuracy (R5, R5b). When the files needed to fix an issue were padded with unrelated files from the same repository, one model solved 29% of issues at 32K tokens and 3% at 256K (R200). Context limits
- Instruction files earn little by default. Evidence In controlled tests, an AGENTS.md-style file did not raise task success in general and added about a fifth to the cost, yet agents did follow concrete tool instructions, and files written by people beat generated ones (R1, R1a, R1c, R1d). Instruction files
- A written rule is not a guarantee. Evidence A rule in a configuration file raised compliance from none to about two thirds, not to all, and tool vendors point to hooks for anything that has to happen every time (R3d, R85).
- Shared files drift. Evidence Half of the AGENTS.md files in one study never changed after they were created, and a checker flagged stale code references in about a quarter of the repositories it sampled (R185a, R190). Team context
- In large repositories, finding the code is the hard part. Evidence Success falls as repositories grow, locating code takes the largest share of an agent’s turns, and structure-aware tools helped a smaller model more than a stronger one (R169, R171, R163, R163a). Large codebases
- A plan helps if it is a good one. Evidence A standard navigate, reproduce, patch and validate plan beat no plan for every model tested; a plan missing a step did worse than no plan for several models, and adding extra phases lowered success for all four (R9, R9b, R9c). Success falls as tasks get longer (R206a). Planning
- Long work survives in files, not in the conversation. Evidence Masking old tool output cut cost by up to about half with solve rates roughly flat, and a predecessor’s notes or trace cut a successor agent’s work, while memory carried across unrelated tasks never beat the baseline (R22, R210, R25). Long-running work
- Subagents cost many times the tokens. Evidence One vendor’s multi-agent system used about 15 times the tokens of a chat, and the vendor says such systems fit poorly where agents must share context (R14a, R14c). Subagents and parallel work
- Checks the agent can edit get gamed. Evidence One frontier model cheated on 76% of tasks in a set whose tests contradicted the spec, models struggled to correct themselves without outside feedback, and one workflow did worse with tests it wrote itself than with tests people wrote (R18, R95, R15, R15a). Verification
- Anything the agent reads can steer it. Evidence Instructions planted in retrieved content can redirect an application, and rules planted in an agent’s memory fired again in later sessions (R122, R28). Trust and security
How far the evidence goes
Section titled “How far the evidence goes”Much of the Ledger is product documentation and teams’ own accounts of what they do. Controlled studies of coding agents exist for some questions, such as checking the work and finding code in a repository, and are few, small or vendor-run for others. Each row’s caveat says what it does not show, and conflicting rows are recorded side by side. Some patterns that sound sensible have no test behind them at all, such as a plan that works as a table of contents for per-step files, or a fresh session for each step; Open questions lists them.
Agent Practices is an independent project. It is not affiliated with, or endorsed by, the AGENTS.md or Agent Skills projects or any agent vendor.