CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT
Updated by Alex Sorokoletov
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.
| Status | Present in v2.1.332 |
|---|---|
| Added | Added between v2.1.114 and v2.1.117 |
| 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 |
| Category | Other |
| Official docs | Listed |
| Checked against | v2.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
claude0 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
- Claude Code v2.1.128 — Disable Flag for the Resume-Time Compact Prompt and Lighter Subagent System Prompt
- Claude Code v2.1.118 — 10 New Environment Variables: Forked Subagents Ship, Subscription Tiering Takes Shape
- Claude Code Version Tracker: Undocumented Env Vars, Feature Gates & Models
- claude-code-env-vars-v2-1-312
Related variables
CLAUDE_CODE_SYSTEM_PROMPT_FEATURE_FLAG: In remote mode, names the feature flag whose non-empty string value replaces the default system prompt.CLAUDE_CODE_SYSTEM_PROMPT_GB_FEATURE: Names a GrowthBook feature flag whose value overrides the system prompt — but only when CLAUDE_CODE_REMOTE is set.CLAUDE_CODE_APPEND_PROMPT_HEAD: Designates a prompt-head string that is validated for integrity before use and then cleared after a single read; an invalid value is ignored.CLAUDE_CODE_EMIT_USER_PROMPT_SUBMIT_HOOK_EVENTS: When set, enables emitting start and end hook events for user prompt submission; the value is read once and then cleared.CLAUDE_CODE_FLEETVIEW_SIMPLE: Forces the simplified FleetView layout, the multi-agent monitoring surface.CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL: Set to 5m to force the messages prompt cache to a five-minute lifetime.CLAUDE_CODE_MID_CONVERSATION_SYSTEM: Inject a system message mid-conversation.CLAUDE_CODE_MORNING_BRIEF_PROMPT: Set a custom prompt for the morning brief; used when its trimmed length was within bounds, otherwise the default prompt applied.
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.