logoalt Hacker News

Do agents.md files help coding agents?

23 pointsby smushbacktoday at 5:21 AM15 commentsview on HN

https://xcancel.com/rasbt/status/2063649136323252397

https://arxiv.org/abs/2602.11988


Comments

deauxtoday at 8:55 AM

[dupe] https://news.ycombinator.com/item?id=47034087

Paper was discussed here 4 months ago, and the linked tweet on this post doesn't add any insights and completely misses the huge caveats that come with the found result: the main benefits of using AGENTS.md files are inherently opposed to the characteristics of _median_ "public github project that has an AGENTS.md file".

show 1 reply
RugnirVikingtoday at 8:17 AM

yes, they do. I think people overindex on this paper, I remember when it came out we had a lot of discussion in my company about it. But its clear to see they do at least change the agent's behavior, and things like telling it "always use xyz version of java, use gradle to build the project, use this command to run the tests" are really important instead of letting it fumble about trying to find the right thing every time you ask it anything

I think the problem some people fall into, and especially LLM authored ones (which is where they see the documents not helping here) is instead describing the code, or the structure of the code. Which I don't think helps much - the agent can already see you have 4 modules called a b c and d, and can read the readmes inside of them just fine if it has questions.

kandrostoday at 8:38 AM

The amount of cargo-culting around AI tooling and practices is so weird to me.

Why not just try and see? The fast feedback loop allow testing all kind of weird theories in a matter of 30m-1h during normal working sessions, most results are obvious

show 1 reply
sebratoday at 8:22 AM

The tweet misses the conclusion from the paper that handcrafted AGENTS.md might help. To me its no surprise that 100% vibed AGENTS.md are unproductive. Not reviewing your design docs is probably even worse than not reviewing your code? I've seen some AI-generated agents.md which were just plain wrong. No surprise agents perform worse after reading those.

I use AGENTS.md to make sure my agents loop effectively (tests, quality, etc). Not to describe the code / architecture.

show 1 reply
zuzululutoday at 7:29 AM

Not enough on its own you'd need artifacts to store contexts/TOC/lists

I think shorter the better.

also a strange finding from my own experiences: specific empirical formats seem to yield much better results. For example people often say "get this done to 100%" but I say "get this to 88.47%".

wiseowisetoday at 7:38 AM

You putting “you’re an expert jerk off master” in agents.md is the same as shaman burning a bone to predict a future.

weddprostoday at 8:03 AM

If adding something to the context doesn't help, it's only proves you're not adding the right stuff.

I'm adding pointers to specification documents, and it saves me from the /new dumb coding agent that sees your code base for the first time and knows nothing about architecture, concepts, code organisation, etc...

I'm using no cookie cutter directives though (except maybe "do not attempt to deploy, we're using CI CD to deploy" to avoid an automatic "wrangler deploy" to Cloudflare)

asp_hornettoday at 7:30 AM

As the author notes in the end, it would be really interesting to do these again on more recent models. I wonder if the no context file being cheaper still stands. But then how much does the harness influence the results. It can be frustrating trying to gauge what’s influencing what and if something suddenly starts working against you.

DigitalSeatoday at 7:24 AM

Yes

show 1 reply
aleksandre_devtoday at 8:45 AM

[flagged]

SkitterKherpitoday at 8:36 AM

[dead]