Search the documentation
5 pages for claude_code_skip_prompt_history.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…exists only in memory for the duration of the call. In Python, set [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](/docs/en/env-vars) in the `env` option to suppress transcript writes instead. | ### Continue, r…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…eanupPeriodDays` to shorten how long transcripts are kept * Set the [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](/docs/en/env-vars) environment variable to skip writing transcripts and prompt history in any mo…
CLI reference
Claude Code CLI · in the page
cli-reference
…s are not saved to disk and cannot be resumed. Print mode only. The [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](/docs/en/env-vars) environment variable does the same in any mode…
Error reference
Claude Code CLI · in the page
errors
…| | `Transcript saving is off — CLAUDE_CODE_SKIP_PROMPT_HISTORY is set`…
Manage sessions
Claude Code CLI · in the page
sessions
…cript writes in all modes | [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](/docs/en/env-vars) | Environment variable | | Suppress writes for one non-int…