Skip to content
BENIBIX Learn

Bare Mode

AI⌨️ Claude CodeClaude Code Concepts

Also known as claude --bare, --bare flag, CLAUDE_CODE_SIMPLE

Starting Claude Code with none of your hooks, skills or memory loaded.

Think of it like

It is like a plain pizza. With no toppings, it tastes the same in every shop.

Example

Emma's CI job gave different results on two runners. She adds --bare, and the runs match, because neither loads a local CLAUDE.md.

Why it matters

You can only trust a job that runs on its own if each run gives the same result.

Definition

Bare mode starts Claude Code without any of your extras. With the --bare flag, it skips hooks, skills, plugins, MCP servers, auto memory and CLAUDE.md. Skills in a folder you pass with --add-dir still load. Nothing from the machine is loaded, so a run gives the same result on every computer. It is meant for CI jobs and scripts, where a stray setting could change the outcome.

Example code

bash
claude --bare -p "run the linter and sum up the errors"
A clean run that ignores local extras.
The extras stay out, so every run starts the same.

Common mistake

Using it for daily work. You lose your project rules and tools, so keep it for scripts.

Key takeaways

  1. 1
    Nothing extra. No hooks, skills or memory.
  2. 2
    Same everywhere. Repeatable.
  3. 3
    For CI. And scripts.

Compare

Learn it properly