4 pages for persistsession.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…d the SDK throws at startup if you combine either with a store: * **`persistSession: false`** in TypeScript: turns off the local writes the mirror is built from. The Python SDK has no equivalent opti…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…sion. | | Stateless task, don't want anything written to disk | Set [`persistSession: false`](https://code.claude.com/docs/en/agent-sdk/typescript#options) (TypeScript only). The session exists only i…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…rmissions-are-evaluated). Requires Claude Code v2.1.259 or later | | `persistSession` | `boolean` | `true` | When `false`, disables session persistence to disk. Sessions cannot be resumed later | | `p…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…u can instead pass `--no-session-persistence` alongside `-p`, or set `persistSession: false` in the TypeScript Agent SDK; the Python SDK has no equivalent option. * Use [permission rules](/docs/en/per…