Urgent.News

What's breaking now, across hundreds of outlets.

AI

Stop Claude Code From Saying "Done" Before It Verifies: A CLAUDE.md Rule

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.…

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.)

There 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.

To 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.

To 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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

See today's edition · More options

More in AI

Prediction: The AI Trade Will Do This by the End of 2027

The artificial intelligence industry will still exist and may even be more profitable than it is now. Investors’ standards, however, are apt to be much higher now that the sweeping euphoria is fading.

  • AI stocks have declined since October 6, with Nvidia dropping over 30% in two months.
  • Investors are reevaluating potential upside of AI stocks, similar to previous tech manias.
  • By end of 2027, AI trades must prove worth with real results and fundamental assessments.

More from Sunday, 6 December 2026 →