Skip to content

Command reference

--no-session-persistence

Keeps the session off disk, so nothing is saved and nothing can be resumed. Print mode only.

FlagsSession and conversationcurrent

What the documentation does not say

For runs over content that should not sit in a transcript. The CLAUDE_CODE_SKIP_PROMPT_HISTORY environment variable does the same thing in any mode.