{
  "id": 23734272,
  "title": "Stop Claude Code From Saying \"Done\" Before It Verifies: A CLAUDE.md Rule",
  "url": "https://urgent.news/2026/12/06/stop-claude-code-from-saying-done-before-it-verifies-a-claude-md-rule",
  "topic": "ai",
  "section": "AI",
  "published": "2026-12-06T00:38:28.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/tanoura/stop-claude-code-from-saying-done-before-it-verifies-a-claudemd-rule-460i"
  },
  "original_language": null,
  "account": "When you give an AI agent instructions to fix something, it might say \"Done. Everything works\" a minute later. However, if you run it again and the fix doesn't work, this is not unusual. Many professionals using AI agents daily have encountered this issue. I, too, have experienced this problem numerous times before implementing rules to address it. (Disclosure: I wrote this article using an AI assistant and verified every claim against the rule file myself.)\n\nThere are three reasons behind the AI agent saying \"Done\" prematurely. First, it often forms its responses from memory. It \"remembers\" how a project like yours typically works and generates code based on that version, rather than utilizing the actual files you have. Consequently, you may encounter incorrect paths or calls to non-existent interfaces. Second, the agent only examines the lines it has changed. While a targeted check may pass, the broader build might still be flawed. Lastly, the agent reports success first and omits the aspects it did not verify, making the second part of the report seem unnecessary.\n\nTo combat this issue, I have created a CLAUDE.md rule called \"Evidence Before Claims.\" This rule instructs the agent to read real files rather than relying on memory. This means the agent should utilize actual code, files, official documentation, and not fabricate any paths, interfaces, or \"current facts\" from recall. Moreover, the agent must execute the change and validate the system surrounding it, rather than merely reading the altered source code. When dealing with more than minor edits, the agent should explicitly describe what \"done\" means, including a verifiable check. It should also search the entire project for similar errors and provide a count of the occurrences. Lastly, the agent must report failures as failures and explicitly identify any unverified aspects. The agent should wait for your confirmation before performing any actions that affect the project, such as publishing, pushing, sending, or deleting shared data.\n\nTo implement this rule, visit the KUKURI - Agent Rules Hub and download the file \"Evidence Before Claims.\" You can access it in eight languages and copy the rule into your project's CLAUDE.md file (for Claude Code) or AGENTS.md file (for Codex). If you already have a CLAUDE.md file, add it as a new section rather than replacing the existing content. The rule is licensed under MIT, allowing you to modify it to suit your project needs, while retaining the license notice if you redistribute it. Additional rules addressing different issues are also available on KUKURI and in the KUKURI-AI/claude-code-rules GitHub repository.",
  "summary": "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.…",
  "summary_source": "publisher",
  "key_points": [
    "\"Evidence Before Claims\" rule prevents premature \"Done\" responses",
    "Agent verifies changes against actual project files, not memory",
    "Rule ensures comprehensive validation before marking tasks complete"
  ],
  "editors_take": "Implementing this rule helps developers prevent AI agents from claiming tasks are finished before they have actually verified the code against real files and project builds.",
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}