◉CLAUDE LABJP
●2.1.301 — Adds the vim % motion, LaTeX math rendering in the VS Code panel, and a retry-watchdog limit for usage-limit waits (10/15)●2.1.299 — Conversations over 200K tokens left idle about 54 minutes get compacted; MCP allow rules now match only the server they name●SONNET 4.5 — Retires on the Claude API on 11/30, 45 days left. Migrate to Sonnet 5.5●WINDOWS — Reports say hooks break silently only on Japanese-locale Windows; check the character encoding first●FAST MODE — Opus 5.5 fast mode is out of research preview and no longer needs the beta header (10/15)●NEW — I Put a Ten-Line Promise File at the To…●2.1.301 — Adds the vim % motion, LaTeX math rendering in the VS Code panel, and a retry-watchdog limit for usage-limit waits (10/15)●2.1.299 — Conversations over 200K tokens left idle about 54 minutes get compacted; MCP allow rules now match only the server they name●SONNET 4.5 — Retires on the Claude API on 11/30, 45 days left. Migrate to Sonnet 5.5●WINDOWS — Reports say hooks break silently only on Japanese-locale Windows; check the character encoding first●FAST MODE — Opus 5.5 fast mode is out of research preview and no longer needs the beta header (10/15)●NEW — I Put a Ten-Line Promise File at the To…
Articles/Claude Code
⟐ Claude Code/2026-07-18Advanced

I Believed Plan Mode Only Read — Replacing That Belief With Machinery

Claude Code 2.1.212 fixed a bug where plan mode ran file-modifying Bash commands without the permission prompt or the SDK canUseTool callback. Here is what could happen while that assumption was broken, how to verify your own setup, and how to stop leaning on a mode name for safety.

Claude Code264Permissions7Plan ModeUnattended Automation3Security12

✦ Premium Article

One line in the changelog stopped me.

"Fixed a bug where plan mode executed file-modifying Bash commands such as touch and rm without going through the permission prompt or the SDK's canUseTool callback."

I am an indie developer, and I run research jobs overnight while I sleep. I had been treating plan mode as a mode that only reads. So I relaxed my deny rules there, and I skimmed the canUseTool logs rather than watching them. The place I thought was guarded had been open the whole time. I did not find good words for the small cold feeling that followed.

Nothing broke in my environment, as far as I can tell. But "I found nothing" and "nothing happened" are different sentences. This is a record of the work I did to close that gap.

What was actually slipping through

The facts first. Claude Code 2.1.212, released on July 18, 2026, fixed this path:

Path Before the fix After the fix
Interactive permission prompt Not shown for file-modifying Bash in plan mode Asks for confirmation as usual
SDK canUseTool callback Never invoked; the command ran anyway Invoked like any other tool call
deny rules in settings Evaluated — this path held Still evaluated

The third row is the one worth sitting with. Deny rules kept working. What broke was only the part I had assumed from the mode's character. Explicit prohibitions survived; implicit expectations did not.

That asymmetry maps exactly onto my own mistake. The rules I had relaxed were the ones I skipped because "plan mode is read-only, so I don't need them here." The hole was precisely the shape of the assumption.

"Read-only" was never written down

Afterwards I went looking for where my belief came from.

The documentation describes plan mode as a mode for forming a plan before you start implementing. Reading that, the picture that forms naturally is "a mode that investigates and proposes." In daily use, writes almost never happen, which reinforces it.

But nowhere does it say that file-modifying tools are mechanically blocked. I had read a tendency as a specification.

That was the real lesson. A mode name expresses intent, not a guarantee. And because intent holds nearly all the time, it is easy to mistake it for a guarantee — then drop your defenses, and let the first exception through in full.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦A throwaway probe script that reproduces the write-bypass boundary in about eight seconds on your own machine
✦Concrete settings that move the guarantee out of the mode name and into deny rules plus canUseTool
✦A five-step audit for finding the other places where a feeling became a specification
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⟐ Claude Code2026-09-05
My deny rule was watching a filename, not the routes that reach it
One line in deny let several other spellings of the same file walk right past. Here is the small matrix I build to list every route to a protected file, and how I re-check it on upgrade day.
⟐ Claude Code2026-10-13
The Same Approval Prompt for 'cd, git add, git commit' Every Time — Following It to a Design Choice, Not a Missing Setting
With a compound command like cd /path && git add && git commit, Claude Code keeps asking for approval even with allow rules in place. Reading the official permissions page next to a GitHub report shows that cd combined with git prompts by design. Here is how to tell, in what order to check, and four ways to cut the prompts.
⟐ Claude Code2026-08-06
The Skill Call That Returned Nothing — Pinning Down Name Resolution Before an Unattended Run
A skill whose name collides with a built-in terminal command may never resolve in a non-interactive session. Here is a preflight that builds the effective-name table before launch, plus the measured run where the checker itself silently skipped two entries.