CLAUDE_WORKFLOW_NAME_ONLY

Updated by

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.

StatusPresent in v2.1.294
AddedAdded between v2.1.143 and v2.1.212
CategoryAgents and subagents
Official docsNot listed

How to set it

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

export CLAUDE_WORKFLOW_NAME_ONLY=<value>
claude

To 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

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.