CLAUDE_CODE_DISABLE_SUBAGENT_NAMES
Updated by Alex Sorokoletov
CLAUDE_CODE_DISABLE_SUBAGENT_NAMES is a Claude Code environment variable: Set to 1, it turns off subagent names. The feature attaches a name to a subagent beside its subagent_type field in a CLI session; the variable removes that naming. Added in v2.1.333 and still present in v2.1.333. It is not in the official reference.
| Status | Present in v2.1.333 |
|---|---|
| Added | Added in v2.1.333 |
| Category | Agents and subagents |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_DISABLE_SUBAGENT_NAMES=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_DISABLE_SUBAGENT_NAMES": "<value>"
}
}Release notes that mention it
- Claude Code Version Tracker: Undocumented Env Vars, Feature Gates & Models
- claude-code-env-vars-v2-1-333
Related variables
CLAUDE_CODE_DISABLE_SUBAGENT_HANDBACK: When set, turns off subagent handback; when unset, the value falls back to CLAUDE_CODE_SENDMESSAGE_HANDBACK and then to a server-side setting.CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS: Disable built-in agent types.CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES: Set to 1 to turn off agent progress summaries; when set, the summary timer returns early and the subagent's progress summary is dropped.CLAUDE_CODE_DISABLE_AGENT_VIEW: Disables Agent View.CLAUDE_CODE_DISABLE_AGENTS_FLEET: Kill switch for the entire agent fleet subsystem — no selection, no auto-relaunch, no fleet coordination.CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTSCLAUDE_CODE_DISABLE_WORKFLOWSCLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT: Authorizes SDK callers to append a custom string to a subagent's system prompt via options.appendSubagentSystemPrompt.
Frequently asked questions
What does CLAUDE_CODE_DISABLE_SUBAGENT_NAMES do?
Set to 1, it turns off subagent names. The feature attaches a name to a subagent beside its subagent_type field in a CLI session; the variable removes that naming.
Which Claude Code version has CLAUDE_CODE_DISABLE_SUBAGENT_NAMES?
Added in v2.1.333 and still present in v2.1.333.
How do I set CLAUDE_CODE_DISABLE_SUBAGENT_NAMES?
Export it before starting Claude Code (export CLAUDE_CODE_DISABLE_SUBAGENT_NAMES=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.