⌨️--safe-mode Flag
Also known as claude --safe-mode, CLAUDE_CODE_SAFE_MODE
It starts Claude Code with your add-ons turned off.
Think of it like
It is like you take all the stickers off a toy. Then you see if it still works.
Example
Since Monday, Lucy's sessions crash on start. With --safe-mode it starts fine, so she turns her plugins back on one at a time and finds the bad one.
Why it matters
It splits the problem in two: Claude Code itself, or something you added to it.
Definition
Example code
bash
claude --safe-modeCommon mistake
Key takeaways
- 1Add-ons off. CLAUDE.md, plugins, hooks.
- 2Core still works. Sign-in, tools.
- 3Find the cause. Then add back.