CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT

Updated by

CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT chooses between the full system prompt and a shorter one with abbreviated tool descriptions, on any model. Default: full prompt on Haiku 4.5, Sonnet 5, Opus 4.7 and earlier; shorter prompt on newer models. Values: 1, true, yes or on uses the shorter prompt; 0, false, no or off uses the full prompt; other values are ignored. Added between v2.1.114 and v2.1.117 and still present in v2.1.332. It is listed in the official reference.

StatusPresent in v2.1.332
AddedAdded between v2.1.114 and v2.1.117
Defaultfull prompt on Haiku 4.5, Sonnet 5, Opus 4.7 and earlier; shorter prompt on newer models
Values1, true, yes or on uses the shorter prompt; 0, false, no or off uses the full prompt; other values are ignored
CategoryOther
Official docsListed
Checked againstv2.1.330

How to set it

For one session, export it in the shell that starts Claude Code:

export CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0
claude

0 keeps the full system prompt on Opus 5.5 and other models that default to the shorter one.

To apply it to every session, add it to the env object of a settings file:

// ~/.claude/settings.json
{
  "env": {
    "CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT": "0"
  }
}

Known issues

  • It is not CLAUDE_CODE_SIMPLE. That variable is the --bare mode, which skips hooks, plugins and more and removes the Agent tool; this one only changes the prompt text and keeps every tool, hook, MCP server and CLAUDE.md. Source: issue #80988.
  • Setting 1 on Opus 5, Opus 5.5 or Sonnet 5.5 changes nothing, because those models already get the shorter prompt. Setting 0 also overrides an experiment or server setting that would pick the shorter one. Source: docs: env vars.
  • On Bedrock, Vertex, Foundry and Mantle, model names Claude Code does not recognize, such as inference profile ARNs, get the shorter prompt; set 0 to keep the full one. Source: v2.1.312 analysis.

Release notes that mention it

Related variables

Frequently asked questions

What does CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT do?

Chooses between the full system prompt and a shorter one with abbreviated tool descriptions, on any model.

What is the default value of CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT?

Full prompt on Haiku 4.5, Sonnet 5, Opus 4.7 and earlier; shorter prompt on newer models.

What values does CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT accept?

1, true, yes or on uses the shorter prompt; 0, false, no or off uses the full prompt; other values are ignored.

Which Claude Code version has CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT?

Added between v2.1.114 and v2.1.117 and still present in v2.1.332.

How do I set CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT?

Export it before starting Claude Code (export CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0), or add it to the "env" object in ~/.claude/settings.json to apply it to every session. 0 keeps the full system prompt on Opus 5.5 and other models that default to the shorter one.

All variables, searchable: Claude Code environment variables.