Follow Discord
Sweep 30 Oct 2026 · 21:36Z Build v2.1.315 533 read Stable v2.1.308 Latest v2.1.314 Next v2.1.315 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

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…
Feedback