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.
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.
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 sinceAnthropic'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 onechangelogsee the edit
Confirmed sinceAnthropic'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…headlesssee the edit
Added sinceA 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…troubleshootingsee the edit
Added sinceA 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-referencesee the edit
Added sinceA 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-referencesee 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…