CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE
Updated by Alex Sorokoletov
CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE is a Claude Code environment variable: Toggles whether the automated-trigger provenance preamble is added to workflow prompts; defaults to on. Added between v2.1.241 and v2.1.245 and still present in v2.1.332. It is not in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| 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_DESKTOP_WORKFLOW_LIMIT_WAIT: When the desktop app is active, applies this value as its workflow limit wait; the variable is then removed from the environment.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_TTL: Same control for everything outside the main conversation: subagents, workflows, background and helper requests.CLAUDE_CODE_SUBAGENT_PROMPT_SNAPSHOT: Set to force a subagent to snapshot its system prompt, overriding the configured option; read until v2.1.309.CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS: Raises the Workflow tool's per-run concurrent-agent limit; changelog range 1 to 256.CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MSCLAUDE_CODE_WORKFLOW_SIZE_WARNING_AGENTS: Set the maximum number of scheduled agents before the workflow-size warning fired; a positive value overrode the default cap.CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL: Runs every workflow agent on the named model while other subagents keep their own.
Frequently asked questions
What does CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE do?
Toggles whether the automated-trigger provenance preamble is added to workflow prompts; defaults to on.
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.332.
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.