CLAUDE_CODE_WORKFLOWS
Updated by Alex Sorokoletov
CLAUDE_CODE_WORKFLOWS is a Claude Code environment variable. Added between v2.1.143 and v2.1.212 and still present in v2.1.295. It is not in the official reference.
| Status | Present in v2.1.295 |
|---|---|
| Added | Added between v2.1.143 and v2.1.212 |
| 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_WORKFLOWS=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_WORKFLOWS": "<value>"
}
}Release notes that mention it
- Claude Code v2.1.209 — Auto Mode Grows Up
- Claude Code Version Tracker: Undocumented Env Vars, Feature Gates & Models
Related variables
CLAUDE_CODE_DISABLE_WORKFLOWSCLAUDE_AGENT: Short-form identifier for the current agent, used in inter-agent messaging and log attribution.CLAUDE_AGENT_SDK_CLIENT_APP: Client application name.CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS: Disable built-in agent types.CLAUDE_AGENT_SDK_MCP_NO_PREFIX: Don't prefix MCP tool names with server name.CLAUDE_AGENT_SDK_VERSION: Agent SDK version sent in User-Agent header.CLAUDE_AGENTS_AUTO_RELAUNCHED_AT: Timestamp set when the agent fleet was automatically relaunched after a crash.CLAUDE_AGENTS_SELECT: Selects which agents from a fleet configuration are active for this session or job.
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_WORKFLOWS?
Added between v2.1.143 and v2.1.212 and still present in v2.1.295.
How do I set CLAUDE_CODE_WORKFLOWS?
Export it before starting Claude Code (export CLAUDE_CODE_WORKFLOWS=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.