Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.169 ·

Safe Mode (--safe-mode / CLAUDE_CODE_SAFE_MODE)

Entry
JSON All of v2.1.169
EntryKind: in v2.1.169,
ChangesSection of the release
What

A new opt-in mode that disables all per-user and per-project customizations for a session. Designed for troubleshooting when Claude Code behaves unexpectedly and you want to isolate whether a plugin, hook, or CLAUDE.md is the cause.

Usage
claude --safe-mode
# or
CLAUDE_CODE_SAFE_MODE=1 claude
Details
  • Disables: CLAUDE.md, skills, plugins, plugin hooks, MCP servers (auto-discovered and claude.ai), custom agents, output styles, workflows, custom themes, and custom keybindings
  • Managed policy settings and hooks (from your organization's policy) still apply
  • The UI surfaces a warning banner so you know safe mode is active
  • Settings dialogs show "disabled in safe mode" labels next to affected options
  • To exit safe mode: remove the flag or unset the env var and restart (claude will tell you which applies)
  • The --agents flag is silently ignored in safe mode (user-supplied agents are disabled)
Evidence

Safe mode toggle (search for "CLAUDE_CODE_SAFE_MODE" and "--safe-mode") — C9() function at line ~3884

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded --safe-mode flag (and CLAUDE_CODE_SAFE_MODE) to start Claude Code with all customizations (CLAUDE.md, plugins, skills, hooks, MCP…

See this entry in the whole of v2.1.169 →

Feedback