
What happened
Yumeno found Claude Code read files two folders above the working directory during a research request, and explains that CLAUDE.md is guidance the AI can override while settings.json permissions are checked mechanically.
Why it matters
Rules you cannot afford to break should not be written in natural language, because a long conversation or conflicting instructions can weaken the AI's adherence to CLAUDE.md over time.
Summaries like this, every morning.
The incident began when Yumeno asked Claude Code to research something and the AI found the needed information not in the specified folder but two levels up, using find to search and then citing a file it found there without ever asking for confirmation. When questioned, Claude Code replied that the working folder is a starting point, not a wall, and that any file readable under the user's permissions can be read even outside it.
That led to the broader finding that read-only built-in commands like ls, cat, grep, find, and head run without confirmation in any permission mode, so setting the tool to ask every time did not make it safe. The contrast is between two mechanisms: CLAUDE.md, which is read at the start of a conversation as one of the AI's decision inputs, and settings.json permissions, which are checked mechanically before a tool call. Because CLAUDE.md sits on the same footing as instructions and conversation history, its influence fades in long conversations and it can lose to conflicting instructions, whereas a JSON permission rule stops the action regardless of what the AI thinks.
The author notes that a file named guardrails.md was not read automatically because Claude Code only auto-loads files from fixed locations, and that rules can be split into .claude/rules/ to be loaded alongside CLAUDE.md. One pitfall is that Bash rules match command strings rather than paths, so a rule blocking a command can be bypassed by invoking it with a full path or through sh -c; the author says the official documentation itself states that Bash rules are not a security boundary. Using both approaches together is recommended: CLAUDE.md to convey intent and reasons, and settings.json to enforce what must not be broken.
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.
Casap announced a $56 million Series B led by Base10 Partners, with Experian and Synchrony as strategic invest…

Kindai University will give 4,000 Paperpal licenses to full-time faculty and doctoral students at all campuses…

HIX AI's connector update on 11月4日 links Microsoft 365 (Outlook Mail, Outlook Calendar, OneDrive), Google Work…

GENSHI AI said it adopted necoder in-house — a free, AGPL-3.0 Rust editor that Daichi Nagashima began building…

Nicholas Carlini matched Stockfish 17, ported to a 200MHz Pentium Pro, against 1996's Crafty 11.13 on a modern…

Xin Liu and co-authors surveyed 291 open-weight LLM repositories and found 20 of 38 untied gated and hybrid ch…
