Live data from Hacker News

New Research Reassesses the Value of Agents.md Files for AI Coding

infoq.com

21–29 of 29 posts

Re: New Research Reassesses the Value of Agents.md Files for AI Coding

#21

I suspect AGENTS.md files will prove to be a short-lived relic of an era when we had to treat coding agents like junior devs, who often need explicit instructions and guardrails about testing, architecture, repo structure, etc. But when agents have the equivalent (or better) judgement ability as a senior engineer, they can make their own calls about these aspects, and trying to "program" their behaviour via an AGENTS…

It's a best practice to document things about the code base, so that other devs (even senior devs) don't start to do things differently. This will probably not change

What I think is short lived is this insistence in separating LLM instructions from general documentation for both humans and AI. LLMs can read human docs, and concerns about context window size will probably disappear

But maybe future docs will be LLM-first, but people won't read them directly. They will ask a LLM questions about it

Re: New Research Reassesses the Value of Agents.md Files for AI Coding

#22
post #2

That research has been so misinterpreted for headlines and clicks... AGENTS.md are extremely helpful if done well.

Everybody thinks they do agents.md well

I do them minimally, but that's besides the point. The research is about machine generated AGENTS.md, this research is insufficient to be making broad generalizations on.

Consider how many papers there are showing both productivity increases and decreases. The jury is out, same here. Anecdotally and intuitively, AGENTS.md makes a positive difference. One such example is providing the build / test commands. If you don't do this, how should the agent determine how to validate its changes?

Re: New Research Reassesses the Value of Agents.md Files for AI Coding

#23

Earlier quoted context omitted.

Eh, even for a senior engineer, dropping into a new codebase is greatly helped by an orientation from someone who works on the code. What's where, common gotchas, which tests really matter, and so on. The agents file serves a similar role.

Yup, readmes exist for a reason even for meat bags

Except that most READMEs are seemingly written more for end-users than for developers; and even CONTRIBUTING files often mostly just document the social contribution process + guidelines rather than providing any guidance targeted toward those who would contribute. There’s a lot of “top-level architectural assumptions” detail in particular that is left on the floor, documented nowhere. Which “works” when you expect human devs to “stare really hard and ask questions” until they figure out what’s being done differently in this codebase; but doesn’t work at all when an LLM with zero permanent learning capability gets involved.

Re: New Research Reassesses the Value of Agents.md Files for AI Coding

#24

Earlier quoted context omitted.

You might have better luck with more focused task-specific instructions if you can be bothered to write them.

I do write them, but without the agents file, I would end up pasting the same contents each time I start work on something, which seems like a waste of time.

No? What you’re looking for here are project-specific agent skill files. Which don’t need to be “pointed at” by AGENTS.md for the agent to find them and use them when/where applicable; and nor do they take up undue context when not in use. (I believe internally the agentive coding frameworks RAG on skills and then search this RAG for applicable skills to pull temporarily into context at the beginning of each planning step.)

Re: New Research Reassesses the Value of Agents.md Files for AI Coding

#25
I find this is very heavily situation dependent. I tried getting even Opus to implement a xero integration using the python sdk, without telling it much about the sdk besides the example code/instructions on github and it made an absolute un-runnable mess out of it.

The sdk and examples appear to be very atypical for a lot of python I've done (and atypical for my code base). Giving it a context/how-to file I put together made it significantly better (however I still gave up and did it more manually).

Re: New Research Reassesses the Value of Agents.md Files for AI Coding

#26
post #15

Earlier quoted context omitted.

I’d say that it needs to be maintained and reviewed by a human, but it’s perfectly fine to let an LLM generate it.

If you let an LLM generate it (e.g. Claude's /init), it'll be a lot more verbose then it needs to be, which wastes tokens and deemphasizes any project-specific preferences you actually want the agent to heed.

Obviously you’re not going to let it generate it on auto-pilot.

Re: New Research Reassesses the Value of Agents.md Files for AI Coding

#27
The trace analysis is the most interesting part of this paper.

Agents dutifully follow AGENTS.md instructions — they run more tests, grep more files, do more checks — but that thoroughness costs 19% more inference without meaningfully improving outcomes. That's not an argument against context files, it's evidence we're writing them wrong.

We're authoring them like READMEs for humans ("here's the architecture, here's how we structure things") when agents actually need narrow, non-inferable directives — the custom build flag, the weird test harness, the constraint they'd waste 30 tool calls discovering.

The HN commenter who noted the real value is "forcing you to articulate things previously just in your head" is actually pointing at the same conclusion from the other direction: the thinking matters, but the artifact needs a different shape than what we've converged on.

Post reply on HN