CLAUDE_WORKFLOW_NAME_ONLY
Updated by Alex Sorokoletov
CLAUDE_WORKFLOW_NAME_ONLY is a Claude Code environment variable: Restricts a remote/headless run to a single named workflow. It appears immediately after CLAUDE_REMOTE_WORKFLOW_SCRIPT and CLAUDE_REMOTE_WORKFLOW_ARGS in the workflow-execution env set — an allowlist knob for the remote workflow runner rather than a free-form script path. Added between v2.1.143 and v2.1.212 and still present in v2.1.294. It is not in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| 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_WORKFLOW_NAME_ONLY=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_WORKFLOW_NAME_ONLY": "<value>"
}
}Release notes that mention it
Related variables
CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTSCLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MSCLAUDE_INTERNAL_ASSISTANT_TEAM_NAME: Passes the current Agent Teams team name (prefixed assistant-) to a spawned child process.CLAUDE_CODE_WORKFLOW_LAUNCH_SHA256CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCECLAUDE_CODE_WORKFLOW_SIZE_WARNING_AGENTSCLAUDE_REMOTE_WORKFLOW_ARGSCLAUDE_REMOTE_WORKFLOW_SCRIPT
Frequently asked questions
What does CLAUDE_WORKFLOW_NAME_ONLY do?
Restricts a remote/headless run to a single named workflow. It appears immediately after CLAUDE_REMOTE_WORKFLOW_SCRIPT and CLAUDE_REMOTE_WORKFLOW_ARGS in the workflow-execution env set — an allowlist knob for the remote workflow runner rather than a free-form script path.
Which Claude Code version has CLAUDE_WORKFLOW_NAME_ONLY?
Added between v2.1.143 and v2.1.212 and still present in v2.1.294.
How do I set CLAUDE_WORKFLOW_NAME_ONLY?
Export it before starting Claude Code (export CLAUDE_WORKFLOW_NAME_ONLY=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.