Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.326 ·

Bare mode: managed plugin hooks still run and the API key shortcut is skipped

Under --bare or CLAUDE_CODE_SIMPLE, hooks from admin-managed plugins still run and the ANTHROPIC_API_KEY credential shortcut is skipped

Group of 2 You'll notice Improvements
JSON All of v2.1.326
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release

What

--bare is a minimal mode for scripted runs that skips most automatic setup. It sets CLAUDE_CODE_SIMPLE. Two parts of it changed.

Hooks are scripts that run at set points. Under bare mode:

  • Your own plugins' hooks never fire, but session hooks and hooks of plugins that managed settings (settings set by your organization) enable still run. Before, settings-file, flag, policy and plugin hooks never fired there.
  • Help text now says --bare and --safe-mode leave hooks of managed plugins active, and that managed policy hooks and managed plugins' hooks still apply.
  • The skip message now reads Skipping plugin hooks - safe mode disables a person's installed plugins and managed settings enable none.
  • The explanation of why only managed and built-in plugins run now names --safe-mode alongside allowManagedHooksOnly and disableAllHooks.
  • Plugin hook registration was reworked to track decisions, narrowings and worktree refusals.

Sign-in:

  • The credential check no longer takes its ANTHROPIC_API_KEY shortcut when --bare or CLAUDE_CODE_SIMPLE is set.
  • The LLM gateway settings are now passed to background sessions through a new check rather than ANTHROPIC_BASE_URL alone. The message now reads bg: this session's LLM gateway is not passed to a session in another folder.

Why

Plugins your organization manages keep working in bare and safe mode, so admin controls are not lost in scripted runs. How sign-in is resolved under bare mode and for background sessions has also changed, which is worth checking if you rely on an API key or a gateway.

Read from
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up CLAUDE_CODE_SIMPLE, on Claude Code changelog. * Changed unrecognized model names containing "sonnet" or "haiku" to use the shorter system prompt, like other unrecognized names; `CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0` gives every model the full one changelog see the edit
Confirmed since Anthropic's documentation has since written up --bare, on Run Claude Code programmatically. Add `--bare` to reduce startup time by skipping auto-discovery of your hooks, skills, custom commands, [subagents](https://code.claude.com/docs/en/sub-agents.md), installed plugins, MCP servers, auto memory, and CLAUDE.md. Without it, `cla… headless see the edit
Added since A small documentation edit on Troubleshooting touched a line naming --safe-mode after this was published. 4. Restart with [`claude --safe-mode`](https://code.claude.com/docs/en/cli-reference#cli-flags) to check whether a plugin, MCP server, or hook is the source. If usage drops, see [Debug your configuration](https://code.claude.com/docs/en/de… troubleshooting see the edit
Added since A small documentation edit on CLI reference touched a line naming CLAUDE_CODE_SIMPLE after this was published. | `--bare` | Minimal mode: skip auto-discovery of your hooks and of skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md so scripted calls start faster. Skills in a directory you pass with `--add-d… cli-reference see the edit
Added since A small documentation edit on CLI reference touched a line naming --bare after this was published. | `--bare` | Minimal mode: skip auto-discovery of your hooks and of skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md so scripted calls start faster. Skills in a directory you pass with `--add-d… cli-reference see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesA small documentation edit on CLI reference touched a line naming --bare after this was published.
Anthropic's release notes agreeChanged --bare sessions on an unapproved API key: moving one to the background is now refused in most setups, and claude --bare --bg exits…

See this entry in the whole of v2.1.326 →

Feedback