You ask your AI agent to fix something. A minute later it says: "Done. Everything works." Then you run it, and it doesn't.
If you use Claude Code or Codex for real work, you've probably seen this more than once. I use both every day and advise companies adopting AI agents. It's a common complaint about AI agents, and I hit it plenty of times myself before I started keeping rules for it. (Disclosure: I drafted this post with an AI assistant and checked every claim against the rule file myself.)
The agent isn't lying on purpose. It's following habits that are fine in a chat assistant and break down once the assistant can edit files and run commands.
Three habits behind a false "Done"
It answers from memory. The agent "remembers" how a project like yours usually works and writes code for that version, instead of opening the files you actually have. You end up with a wrong path, or a call to an interface that doesn't exist.
It checks only the lines it changed. Reading the new code isn't the same as running it. A targeted check can pass while the build around it is broken.
It reports success first and leaves out what it didn't check. "All done" sounds better than "done, but I couldn't test the payment step." So the second half gets dropped.
A CLAUDE.md that makes the agent show evidence
CLAUDE.md is the file Claude Code reads before it starts working in a project. (Codex reads AGENTS.md the same way.) Whatever you put there becomes the agent's standing rules.
I published a rule set for this called Evidence Before Claims. It's adapted from the MIT-licensed fable-method, rewritten so it drops into any project. Here's what it makes the agent do.
It has to read real files, not memory. That means the actual code, files, and official docs, and no paths, interfaces, or "current facts" made up from recall:
Prefer actual code, files, outputs, installed package sources,
specifications, and official documentation over memory.
Never invent a path, interface, payload, or current fact from recall.
It has to run the change and check the system around it. Reading changed source doesn't count:
Reading changed source is not proof that the behavior works,
and a green targeted check with a broken surrounding build
is still a failed verification.
On top of that:
- It decides what "done" means first. For anything beyond a trivial edit, the agent writes one or two sentences describing what done looks like, including a check you can actually observe.
- It looks for the same mistake elsewhere. After fixing a bug, it searches the whole project for the same wrong pattern and reports how many other places it found.
- It reports the result first, including what's still unchecked. Failures are reported as failures, and anything it couldn't observe directly is named as unverified.
- It waits for your OK before anything outward-facing. Publishing, pushing, sending, or deleting shared data needs explicit approval in your own words. Without it, the agent leaves the action pending.
What changes after you add it
The change you notice first is the report. Instead of a cheerful "All done," you get something like: "The fix works and the tests pass. I couldn't check the email step because there's no test account, so that part is unverified."
That one "unverified" line is the most useful part of the report: it tells you exactly where to look before a user finds the problem.
How to use it
- Open the rule on KUKURI - Agent Rules Hub: Make an AI Agent Work From Checked Facts and Report Results First. It's free to read there in eight languages, and the Download button gives you the file. If you'd rather use GitHub, it's also at evidence-before-claims/CLAUDE.md.
- Copy it into the CLAUDE.md at the root of your project. For Codex, paste it into AGENTS.md.
- If you already have a CLAUDE.md, add it as a new section instead of replacing what's there.
It's MIT-licensed, so edit it to fit your project. Just keep the license notice if you redistribute it.
This set has five more rules, each for a different problem: scoped code changes with tests and review, test-first bug fixes, long-running agent loops, spec-driven development, and running several agents at once. They're all on KUKURI, and also in KUKURI-AI/claude-code-rules on GitHub.
A word about KUKURI: KUKURI - Agent Rules Hub is a site I run that collects ready-to-use AGENTS.md and CLAUDE.md rules for AI agents. The official rules are free to read in eight languages. You can also copy rules into a workspace, edit or combine them, and download one rule file for your project: kukuriagent.com
Written with help from an AI assistant; I reviewed and verified the content.
Top comments (0)