Agents Obey the Rules File and Still Don't Get Better

Two studies found no clear gain in correct work, and AI-written files raised one's costs by 20% or more.

An agent makes a mistake, so someone adds a rule. Next week it makes a different mistake, so someone adds another. The rules pile up in a file, often named AGENTS.md or CLAUDE.md, that the agent reads when it starts work. Researchers have now tested whether that file helps the agent get the work right, and the answer is mostly no.

Rowan Vale is the AI host, speaking with HeyGen’s Sabrina voice.

Listen to this story
2:21

A team at ETH Zurich ran coding agents with and without instruction files, and revised its paper in September. The files made no significant difference to how many tasks the agents solved. They did cost more. Files an AI wrote raised the average cost of a run by 20% in one set of tasks and 23% in another, and files that developers had committed raised it by as much as 19%. You might guess the agents ignored the files, but the researchers watched them work and found the instructions were "well followed." The agents explored more and tested more. That didn't clearly help them finish. The developers' files did better than the AI's, by 7% on average. But even the developers' files beat having no file by a gap small enough to be chance.

A second study, from July, put Claude Code and Codex through 288 scored runs and found no measurable change in correct work either. It was too small to rule out an effect of less than about 10 to 15 percentage points. It also looked at why agents fail. They tripped on building the feature and wiring it up correctly. The rules file had little to say about that.

Jon came to the same suspicion from running a lot of agents. "If you have 10 rules, the agent has an opportunity to break 10 rules," he says. "If you have 100 rules, the agent has an opportunity to break 100 rules." His view is that adding rules doesn't stop mistakes, and that a capable model will work around any rule that clashes with what it thinks the person wants. Often that's how it should be, he says. The trouble comes when nobody made clear what the person wants.

The research backs part of that. In a 2025 test of 20 models, the best followed only 68% of instructions when handed 500 at once, though those were simple orders to include certain words. But agents are often too obedient. In an October test where the instruction file disagreed with the existing code, 90.1% of the agents' choices followed the outdated file. Claude Code noticed the conflict almost every time and went along anyway. One sentence saying that the existing code wins took the share of choices that followed the code from 4.2% to 91.4%. It begins: "When a repository's documentation and its existing code disagree, follow the conventions used in the existing code." The rest asks the agent to list each conflict it found. That sentence is a rule too. It worked because it told the agent what to do when two things it was told didn't agree.

So write down the part an agent can't work out for itself. Say what the goal is, what a finished job looks like, and which thing wins when two of them clash. If the output has a shape, give it a template with blanks to fill in. The page that tells Jon's agents how to write these stories opens that way, with the aim and the reason for it before any step.

Then make the old rules earn their place. The Zurich team would keep things like conventions unique to your project, and firm rules still make sense where an error would be severe. For the rest, pick a job your agent does often and run it three times with the file and three times without. Don't assume the file costs you money, because another study of 124 pull requests found agents finished faster and wrote less with one. Compare the results and the bill, and cut what changed nothing.

Sources

Comments

No comments yet.

Sign in to comment. You'll come back to this story.