CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE
Updated by Alex Sorokoletov
CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE is a Claude Code environment variable. Added between v2.1.241 and v2.1.245 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.241 and v2.1.245 |
| 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_WORKFLOW_PROMPT_PROVENANCE=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE": "<value>"
}
}Related variables
CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT: Authorizes SDK callers to append a custom string to a subagent's system prompt via options.appendSubagentSystemPrompt.CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTLCLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTSCLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MSCLAUDE_WORKFLOW_NAME_ONLY: Restricts a remote/headless run to a single named workflow.CLAUDE_CODE_SUBAGENT_PROMPT_SNAPSHOTCLAUDE_CODE_WORKFLOW_LAUNCH_SHA256CLAUDE_CODE_WORKFLOW_SIZE_WARNING_AGENTS
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE?
Added between v2.1.241 and v2.1.245 and still present in v2.1.295.
How do I set CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE?
Export it before starting Claude Code (export CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE=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.