
What happened
The author ran 6 questions three to five times each with claude -p across 4 layouts. All answered knowledge questions correctly, but layout D, which moved the 'don't read .dev.vars' rule into the notes, let the fake secret reach the AI in 1 of 5 runs.
Why it matters
If the rule is not read before the AI searches the folder, the AI can expose secrets unintentionally — the author notes that until the AI reads the rule memo, it is as if no rule exists.
Summaries like this, in your inbox every morning.
The experiment was motivated by a common problem: CLAUDE.md files grow as teams add decisions, procedures, and history. The author's own repository had 141 notes totaling about 350,000 characters, but only 3,578 characters in CLAUDE.md, with the rest accessed through an index. The test used a fictional household budgeting app with 40 notes, of which 5 were relevant to the questions and 35 were unrelated. The results showed that separating knowledge into notes can increase token usage when notes are small, but the critical risk is moving rules out of CLAUDE.md. In layout D, the rule 'don't read .dev.vars' was placed in a note, and in 1 of 5 runs the AI searched the entire folder before reading the rule, exposing the fake secret. The author suggests that CLAUDE.md should contain only what the AI must know before opening any file, and that enforced blocking should be handled by hooks or deny settings.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
Anthropic used Claude to analyze 25 open-source projects (over 5 million lines) and found 493 issues, includin…

Canadian Imperial Bank of Commerce found that its most powerful models, including Anthropic's Opus, can cost $…

Calif used GPT-5.6 Sol to uncover the critical PHP vulnerability PHP2Shell (CVE-2026-109618/CVE-2026-109619)…

The author details a setup where Claude Code reads an entry document called CLAUDE.md, writes results into rol…

Google opened Gemini 4 Argon to the public on October 13, 2026, after a September 30 announcement limited at f…

Using atopile, KiCad, Freerouting and Claude Code, the developer automated circuit description, placement, rou…
