<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Takaya@KUKURI</title>
    <description>The latest articles on DEV Community by Takaya@KUKURI (@tanoura).</description>
    <link>https://dev.to/tanoura</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4285583%2Fdffc2934-a65e-487f-b436-c6c3e0bdf4ff.png</url>
      <title>DEV Community: Takaya@KUKURI</title>
      <link>https://dev.to/tanoura</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tanoura"/>
    <language>en</language>
    <item>
      <title>Stop Claude Code From Saying "Done" Before It Verifies: A CLAUDE.md Rule</title>
      <dc:creator>Takaya@KUKURI</dc:creator>
      <pubDate>Sun, 06 Dec 2026 00:38:28 +0000</pubDate>
      <link>https://dev.to/tanoura/stop-claude-code-from-saying-done-before-it-verifies-a-claudemd-rule-460i</link>
      <guid>https://dev.to/tanoura/stop-claude-code-from-saying-done-before-it-verifies-a-claudemd-rule-460i</guid>
      <description>&lt;p&gt;You ask your AI agent to fix something. A minute later it says: "Done. Everything works." Then you run it, and it doesn't.&lt;/p&gt;

&lt;p&gt;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.)&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three habits behind a false "Done"
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;It answers from memory.&lt;/strong&gt; 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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It checks only the lines it changed.&lt;/strong&gt; Reading the new code isn't the same as running it. A targeted check can pass while the build around it is broken.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It reports success first and leaves out what it didn't check.&lt;/strong&gt; "All done" sounds better than "done, but I couldn't test the payment step." So the second half gets dropped.&lt;/p&gt;

&lt;h2&gt;
  
  
  A CLAUDE.md that makes the agent show evidence
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I published a rule set for this called &lt;strong&gt;Evidence Before Claims&lt;/strong&gt;. It's adapted from the MIT-licensed &lt;a href="https://github.com/Sahir619/fable-method" rel="noopener noreferrer"&gt;fable-method&lt;/a&gt;, rewritten so it drops into any project. Here's what it makes the agent do.&lt;/p&gt;

&lt;p&gt;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:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;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.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It has to run the change and check the system around it. Reading changed source doesn't count:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;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.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On top of that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It decides what "done" means first.&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It looks for the same mistake elsewhere.&lt;/strong&gt; After fixing a bug, it searches the whole project for the same wrong pattern and reports how many other places it found.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It reports the result first, including what's still unchecked.&lt;/strong&gt; Failures are reported as failures, and anything it couldn't observe directly is named as unverified.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It waits for your OK before anything outward-facing.&lt;/strong&gt; Publishing, pushing, sending, or deleting shared data needs explicit approval in your own words. Without it, the agent leaves the action pending.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What changes after you add it
&lt;/h2&gt;

&lt;p&gt;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."&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the rule on KUKURI - Agent Rules Hub: &lt;a href="https://kukuriagent.com/detail/markdown/f6cc92ab-0847-4061-ad1b-620db1430e48/en" rel="noopener noreferrer"&gt;Make an AI Agent Work From Checked Facts and Report Results First&lt;/a&gt;. 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 &lt;a href="https://github.com/KUKURI-AI/claude-code-rules/blob/main/evidence-before-claims/CLAUDE.md" rel="noopener noreferrer"&gt;evidence-before-claims/CLAUDE.md&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Copy it into the CLAUDE.md at the root of your project. For Codex, paste it into AGENTS.md.&lt;/li&gt;
&lt;li&gt;If you already have a CLAUDE.md, add it as a new section instead of replacing what's there.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It's MIT-licensed, so edit it to fit your project. Just keep the license notice if you redistribute it.&lt;/p&gt;

&lt;p&gt;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 &lt;a href="https://github.com/KUKURI-AI/claude-code-rules" rel="noopener noreferrer"&gt;KUKURI-AI/claude-code-rules&lt;/a&gt; on GitHub.&lt;/p&gt;

&lt;p&gt;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: &lt;a href="https://kukuriagent.com" rel="noopener noreferrer"&gt;kukuriagent.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written with help from an AI assistant; I reviewed and verified the content.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>claude</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
