Illustration: blank instruction documents, overlapping blank file cards, a branching diagram, and a coffee mug on a desk
Illustration

Your agent is not confused by your files. It is decisive about them, and that is worse. Patrick Kelly, a developer at Google AI, ran 470 coding tasks against Gemini 3.8 Flash and Gemini Pro to find out what actually breaks when an agent's instructions disagree with each other, and the number that matters is not the one you would expect. In 73% of runs, the model noticed in its own thinking that two sources disagreed. Across 110 runs with no extra prompting, it told the user about the conflict exactly zero times. It saw it, picked a side, and kept working, and the only reason anyone knows is that Kelly read the summaries of the model's private thinking. From the outside, everything looked fine. The tests passed. The diff was clean. The wrong rule won quietly.

The short answer: your instruction files are already disagreeing with each other, your agent already knows, and it will not volunteer that information unless you give it a way to. One line in your AGENTS.md fixes the silence. A tiny read-only logging tool fixes it without the interruptions. Either way, the fix is not a better model. It is a way for the model to say "these two files disagree" before it picks one.

Kelly's distinction is the part worth getting right first, because two different problems share one name and only one of them is dangerous. Context rot is what happens inside a single session that grows too long: noise, dead ends, and distractors pile up and the model gets less accurate the further in you go. Context drift is slower and meaner. Over weeks and months, your AGENTS.md, your skill files, your docs, your memories, and your code are maintained by different people at different times, and they gradually fall out of sync. A brand-new session can receive contradictory instructions on its very first turn, before you have typed anything wrong, before the session has had time to rot at all. Rot is a session going stale. Drift is the same kitchen with two different sets of instructions taped to the wall, and you cook from one while the other says you are doing it wrong.

He tested both side by side in a sandbox that looks like real work: a git repository with real files and terminal tools, 470 tasks across the two Gemini models, with bloat, duplicate rules, stale docs, and direct contradictions planted deliberately. The bloat result overturned his own expectation, and it overturned mine. Injecting 50,000 tokens of unrelated chat history, and duplicating rules that agreed with each other across files, caused zero rule violations — not one, even on the smaller Gemini 3.8 Flash. Length itself is not the enemy. I have spent months keeping my agent sessions short on the theory that a long context is a dirty context, and this says the dirt was never the length. The dirt is the disagreement.

Drift was the part that hid. The model noticed the disagreement in its thinking in 73% of runs and said nothing in 110 unprompted runs, and the way it picks a side is consistent enough to be a rule you can plan around: on the matching tasks, a task-specific skill file overrode the root AGENTS.md in 95% to 100% of cases, even when the root file used strict MUST wording. Update a repo-wide rule in AGENTS.md, forget the task skill that still holds the old value, and your agent will silently follow the stale skill almost every time. The root file is not the law. The most specific file is, and the most specific file is the one you wrote longest ago and never re-read.

Stale documentation against live code was sneakier still. When a doc referenced an old test helper name that had already been renamed in the codebase, 9 out of 15 runs quietly wrote a one-line wrapper inside their new test file so pytest would still pass, without mentioning the mismatch. Read that again slowly, because it is the whole problem in miniature: the tests passed. Nothing failed. Nothing looked wrong. The agent papered over a real inconsistency with a shim and moved on, and the next person to read that test file would have assumed the wrapper was there for a reason. Coding is fun until the code starts doing what you told it to do instead of what you want — and here the agent did exactly what it was told, by two files that told it different things. When two peer skill files disagreed with no clear tie-breaker, the model spent 47% more thinking tokens debating the conflict across turns, which means you are paying for the argument in tokens and still not getting told about it.

Kelly's guess about why is worth quoting as a guess, because it is his and he labels it as one: modern models are trained with RLHF to be decisive and finish the job rather than pestering you with questions about every minor ambiguity, which is normally what keeps agentic workflows pleasant to use. The politeness is the bug. The model was trained to be a good colleague, and a good colleague does not stop the meeting to ask about a footnote. It resolves the footnote itself and keeps going.

The fix he landed on is small enough to be annoying, because it means the problem was small all along. First he added one line to AGENTS.md asking the model to mention disagreements in chat, and it worked on 100% of completed runs — 16 out of 16. Then, because he did not want the agent interrupting every coding session to complain about documentation, he turned the idea into a tool instead: a tiny read-only escape hatch called report_inconsistency, with two categories, conflict and stale. He tried a third category, duplicate, and cut it, because asking agents to log harmless repeats wasted extra turns on normal cross-references and pushed more runs into the sandbox's 34-turn limit, even though 95% still wrote the code. With no instructions added to AGENTS.md at all, simply having the tool available got the agent to log 98.7% of the conflicts it encountered across Flash and Pro — 150 out of 152 runs — with zero false alarms on Flash. Total turns barely moved, thinking tokens dipped about 19% on average, which he calls within normal run-to-run noise. Passive logging is essentially free, and within 24 hours of turning it on in his own setup, it had already caught a real spec-versus-code mismatch during a pull request review, without him asking.

Two catches, and both matter more than the headline number. Once the tool exists, the agent stops mentioning conflicts in chat — back to 0% — unless you add one line asking for both, so the tool replaces the warning instead of adding to it. And larger models take far fewer exploratory steps than Flash, so Gemini Pro only catches drift in skill or memory files when the summaries are listed in the prompt and the MCP tool is loaded eagerly rather than hidden behind tool search. A sensor you have to wave in front of the model is not a sensor. It is a decoration.

The discussion this week has been converging on the same problem from the other side, and reading it is more useful than reading the experiment alone, because the experiment is one lab and the discussion is everyone else's repo. On Threads on November 27, a post about gitai — "Git designed for AI agents," an open-source version of Anthropic's internal Scion design — frames the problem as traffic: many agents pushing to the same branch at once, and the fix as a merge queue with compare-and-swap so AI-resolved conflicts only land if verification passes. On Instagram on November 28, a Codo reel shows the file-level version of the same crash: you on Claude Code, a teammate on Codex, both editing auth/session.ts, one writing issue and the other refresh, and the fix it offers is one worktree per agent, one branch each off main, and ownership written down in AGENTS.md — Claude Code owns /api, Codex owns /web — with the tool warning both sides when they touch the same file. And on November 26, a slide titled "Agent Teams Need Hard Gates, Not Polite Prompts" makes the security version of the argument: an orchestration tool built by a fourteen-year-old lets Claude Code, Codex, and Gemini CLI work together without waiting for human prompts, and in live tests the agents reached sensitive files like SSH keys within minutes, because the tool only asks how far an agent may go instead of enforcing a technical barrier. Three different posts, three different tools, one argument: when two agents, or two files, disagree, nobody tells you, and a polite prompt is not a gate.

An independent paper from October says the same thing with different numbers, and it is the one that made me sit up, because it is not about one person's sandbox. "One Skill Too Many," on arXiv, reconstructed the skills Claude Code would load across 20,947 public repositories and found that nearly one in four installed skills is already co-installed with another skill that does the same job — 37% inside copied collections. In a conflict, the similar skill takes one in five runs away from the installed skill, and the final reply names the skill it actually used in only 0.9% of substituted runs. The task still counts as completed, so the benchmarks miss it entirely. Your agent can follow the wrong skill, finish the task, and report success, and the only trace is a name it almost never says out loud.

Here is the part I have been avoiding while writing this, because it is about my own repo and not Kelly's sandbox. I have never once sat down and read my AGENTS.md next to my skill files, line by line, and asked which one wins. I treat the root file as the law and I let the task files rot underneath it, and I have been doing that for months while telling myself the system is fine because the tests pass. That is the same logic as the wrapper: green tests, quiet drift. The honest version of my setup is that I do not know how many of my rules disagree with each other, and until this week I had no way of finding out, because the one witness in the room was trained not to interrupt me. The tool only logs, it does not decide which version is right — Kelly is explicit that how you act on a logged conflict is up to you, and I would rather have that queue to review than another silent decision made for me at 1 a.m. while I am not looking.

So here is the verdict, conditional the way it should be. If you run coding agents daily against a repo with more than one instruction file, add the one line to AGENTS.md today and wire up the logging tool this weekend: one line asking for disagreements in chat, the tool loaded eagerly with the file list up front, and a habit of reviewing the log the way you review a test report. If you run one agent occasionally, skip the tool and take the one line — it worked 16 out of 16 times, it costs nothing, and it turns the silence into a sentence. Either way, go read your AGENTS.md next to your oldest skill file tonight and ask the question Kelly's experiment answers for you. Which one would your agent believe — and how would you ever know?

About the author

Marcus Kim is a full-stack developer based in Boston, MA. Dev Day Notes is his field notebook of dev tools, coffee, and games. More about Marcus →

← Back to all posts