CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD
Updated by Alex Sorokoletov
CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD is a Claude Code environment variable. Added in v2.1.285 and still present in v2.1.332. It is not in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| Added | Added in v2.1.285 |
| Category | Other |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD": "<value>"
}
}Related variables
CLAUDE_ARTIFACT_HOST_GRANT: Supplies the local-server host grant for artifact publishing, controlling which local MCP servers a published artifact may reach through callTool and watchTool.CLAUDE_CODE_APPEND_PROMPT_HEAD: Designates a prompt-head string that is validated for integrity before use and then cleared after a single read; an invalid value is ignored.CLAUDE_CODE_AUTOUPDATER_DISABLED_BY_HOST: When set, treats the autoupdater as disabled by the host, so plugin autoupdate follows the host's pin and is skipped when the pin gives a reason; FORCE_AUTOUPDATE_PLUGINS overrides it.CLAUDE_CODE_DESKTOP_MODE_FROM_RECORD: In desktop mode, enables setting the desktop mode from a record.CLAUDE_CODE_EMIT_USER_PROMPT_SUBMIT_HOOK_EVENTS: When set, enables emitting start and end hook events for user prompt submission; the value is read once and then cleared.CLAUDE_CODE_HOST_ARTIFACT_TYPE_COMMANDS: Names the host artifact-type commands to allow; a command is enabled when this value contains its name and other conditions hold.CLAUDE_CODE_HOST_CREDS_FILE: Path to the host's credentials file; it is treated as an allowed credential path and, together with host gateway lineage, enables host-managed authentication.CLAUDE_CODE_HOST_GATEWAY_LINEAGE: Marked the host gateway lineage; together with a host credentials file it enabled the host-managed gateway path.
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD?
Added in v2.1.285 and still present in v2.1.332.
How do I set CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD?
Export it before starting Claude Code (export CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD=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.