
Share
Our study reveals that a well-crafted `AGENTS.md` file can dramatically enhance code generation, but missteps can severely hinder performance. Dive into our findings on what works-and what doesn’t.
If you’ve been working with coding agents, you know that the quality of your AGENTS.md files can make a significant difference. We recently conducted an in-depth study on how these files impact code generation, and the results were eye-opening. The best AGENTS.md files improved our agent's output as much as upgrading from Haiku to Opus, while the worst ones made things worse than having no file at all.
AGENTS.md file can boost performance on one task by 25% and reduce it by 30% on another.A AGENTS.md file isn’t uniformly good or bad; its impact varies depending on the task. For example:
best_practices by 25%.completeness by 30%.We used AuggieBench, one of our internal evaluation suites, to assess agent performance on typical day-to-day tasks from a large repository. Here’s the process:
To help you optimize your AGENTS.md files, here are some patterns that work and some that fail:

Decision Tables
Code Snippets
Task-Specific Guidelines
Reference Links with Context
Overly Detailed References
Ambiguous Instructions
Repetitive Content
Lack of Structure
Experiment and Measure
AGENTS.md files.Gather Feedback
Tags
Original Sources
About the author
Kai built ML infrastructure at a Bay Area startup before developing an obsession with transformer architectures and inference optimisation that eventually pulled him out of product work entirely. A stint at a compute research lab sharpened his instinct for what actually matters in a model release versus what is marketing. He writes from the inside — from the perspective of someone who has debugged the systems he is describing at three in the morning. He is allergic to hype and instinctively drawn to the unglamorous plumbing questions that everyone else skips over.
More from The Engineer →This Week's Edition
23 April 2026
133 articles
Related Articles
Related Articles
More Stories