
Claude Code 2.1.321: Why Deny Rules Are Your New Safety Fence
In Claude Code 2.1.321, mods written by Claude turn on automatically in auto and bypass modes, with mod tool calls bypassing ask rules entirely. Learn why explicit deny rules are now your primary safety barrier, how to freeze skills in CI, and what changed with path checks and model picking.
Chapter 1
Claude Code 2.1.321: Mods Switch On Without Asking
Lachlan Reed
This one's brought to you by Jellypod AI, and it's about a change in Claude Code 2.1.321, released November 9th, that quietly moves where your safety fence actually sits. It's about mods, which Claude can now write and switch on by itself.
James Turner
Right, so the exact change. In auto and bypass modes, a mod Claude writes now turns on without asking. And that holds even when managed settings have allowUnsandboxedCommands set to false, or allowManagedDomainsOnly. In dontAsk mode, those mods don't load at all.
Lachlan Reed
And the second bullet is the bigger one, I reckon. A mod's own tool calls, so dollar tool call and dollar mcp call, raise no permission prompt. Not under your own ask rules, not in dontAsk, not in dash p runs. Deny rules and organization policy still apply, and that's it.
James Turner
Here's why it matters. Mods aren't sandboxed. Anthropic's announcement, back on October 1st, says they run with the same access to your machine as Claude Code itself. So if your containment plan was the sandbox key or the domain allowlist, there's a gap in auto and bypass modes from this version on. One caveat: Anthropic lists this under Changed, as intended behavior. Neomanex, which wrote this up, says it isn't calling it a vulnerability either. It's a policy shift.
Lachlan Reed
This connects to the custom reasoning effort episode on mod forks. Back then, mods needed explicit approval and prompted on tool calls. In autonomous sessions, that's no longer the deal.
James Turner
So, what do you actually do? First, audit your rules. Anything that matters, like env files, secrets directories, or a destructive shell command, should sit under an explicit deny rule, not an ask rule. Ask rules won't stop a mod's own tool calls anymore. Something like denying Bash with rm dash rf, or reads on your dot env, in settings.
Lachlan Reed
Second, if you run managed fleets, the Neomanex advice is to hold 2.1.321 until you've reviewed deny rules and org policy. And if you lean on those sandbox keys, consider restricting auto and bypass modes for users, since that's where mods now switch on unprompted.
James Turner
Third, headless. 2.1.321 also reloads mods in dot claude slash skills when their files change. In CI, you probably want files frozen mid run, so export CLAUDE_CODE_PLUGIN_DIR_WATCH equals zero. And if you want Claude's mods not loading at all, dontAsk mode is the one.
Lachlan Reed
Now the smaller bits. cp and mv spelled by a path, like slash bin slash cp, now get the same path checks as plain cp and mv. So no sneaking around protections with a full path.
James Turner
And the model picker: More models is now an unnumbered row at the bottom, so expanding older models doesn't renumber the main options. Also, 2.1.322 added fast mode on Vertex in global, us and eu regions, falling back to standard speed if Vertex refuses it.
Lachlan Reed
Short version: check your deny rules before you update. That's the fence now.