{"slug": "stop-claude-code-from-saying-done-before-it-verifies-a-claude-md-rule", "title": "Stop Claude Code From Saying \"Done\" Before It Verifies: A CLAUDE.md Rule", "summary": "A developer published an MIT-licensed CLAUDE.md rule set called \"Evidence Before Claims\" that forces Claude Code and Codex agents to verify their work before reporting success. The rules require agents to read actual files and official documentation instead of relying on memory, and to run changes and check the surrounding build rather than only the lines they edited. The rule set, adapted from the fable-method project, is available on the KUKURI Agent Rules Hub and the KUKURI-AI/claude-code-rules GitHub repository.", "body_md": "You ask your AI agent to fix something. A minute later it says: \"Done. Everything works.\" Then you run it, and it doesn't.\n\nIf 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.)\n\nThe 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.\n\n**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.\n\n**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.\n\n**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.\n\nCLAUDE.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.\n\nI published a rule set for this called **Evidence Before Claims**. It's adapted from the MIT-licensed [fable-method](https://github.com/Sahir619/fable-method), rewritten so it drops into any project. Here's what it makes the agent do.\n\nIt 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:\n\n```\nPrefer actual code, files, outputs, installed package sources,\nspecifications, and official documentation over memory.\nNever invent a path, interface, payload, or current fact from recall.\n```\n\nIt has to run the change and check the system around it. Reading changed source doesn't count:\n\n```\nReading changed source is not proof that the behavior works,\nand a green targeted check with a broken surrounding build\nis still a failed verification.\n```\n\nOn top of that:\n\nThe 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.\"\n\nThat one \"unverified\" line is the most useful part of the report: it tells you exactly where to look before a user finds the problem.\n\nIt's MIT-licensed, so edit it to fit your project. Just keep the license notice if you redistribute it.\n\nThis 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](https://github.com/KUKURI-AI/claude-code-rules) on GitHub.\n\nA 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](https://kukuriagent.com)\n\n*Written with help from an AI assistant; I reviewed and verified the content.*", "url": "https://wpnews.pro/news/stop-claude-code-from-saying-done-before-it-verifies-a-claude-md-rule", "canonical_source": "https://dev.to/tanoura/stop-claude-code-from-saying-done-before-it-verifies-a-claudemd-rule-460i", "published_at": "2026-12-06 00:38:28+00:00", "updated_at": "2026-12-06 00:45:02.229073+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "large-language-models"], "entities": ["Claude Code", "Codex", "KUKURI", "KUKURI-AI", "fable-method"], "also_reported_by": [], "takeaway": "Adding a CLAUDE.md rule that requires agents to read real files and run the full build before claiming success, and to explicitly flag unverified steps, surfaces gaps before users hit them.", "recommendation": {"advice": "Add an Evidence Before Claims rule to your CLAUDE.md or AGENTS.md so agents run the change and surrounding build, and report any step they could not verify.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/stop-claude-code-from-saying-done-before-it-verifies-a-claude-md-rule", "markdown": "https://wpnews.pro/news/stop-claude-code-from-saying-done-before-it-verifies-a-claude-md-rule.md", "text": "https://wpnews.pro/news/stop-claude-code-from-saying-done-before-it-verifies-a-claude-md-rule.txt", "jsonld": "https://wpnews.pro/news/stop-claude-code-from-saying-done-before-it-verifies-a-claude-md-rule.jsonld"}}