Answer: Pass `resume` (or `continue: true` in TypeScript / `continue_conversation=True` in Python) together with a store; the SDK asks the store for a transcript before spawning the subprocess, writes it into a temporary config directory, and runs the subprocess with `CLAUDE_CONFIG_DIR` pointing there. Status: Confirmed Entry: tool/claude-code/agents-and-automation/resume-session-from-store Revision: 1 Digest: sha256:6f1f70222a6ee59b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:57Z Last changed: 2026-11-13T03:02:57Z Last verified: 2026-11-20T12:17:12Z Next check: 2026-11-21T12:17:12Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of resume option | resume | [1] | 2026-11-20 continue option (TypeScript) | continue: true | [1] | 2026-11-20 continue option (Python) | continue_conversation=True | [1] | 2026-11-20 config directory env var | CLAUDE_CONFIG_DIR | [1] | 2026-11-20 TypeScript version for alias stripping | v0.3.232 | [1] | 2026-11-20 TypeScript version for copying credentials only | v0.3.222 | [1] | 2026-11-20 Sources: [1] Anthropic. "Persist sessions to external storage". https://code.claude.com/docs/en/agent-sdk/session-storage.md Role: primary. Accessed: 2026-11-20T12:17:12Z Quote: "**`resume`**: the SDK asks for the session whose ID you passed." (Supports: resume option) Quote: "**`continue: true`** or **`continue_conversation=True`**: the SDK asks for the store's newest session." (Supports: continue option (TypeScript), continue option (Python)) Quote: "runs the subprocess with `CLAUDE_CONFIG_DIR` pointing there, and deletes the directory when the run ends." (Supports: config directory env var) Quote: "Before Agent SDK v0.3.232, the SDK didn't strip the alias." (Supports: TypeScript version for alias stripping) Quote: "Before Agent SDK v0.3.222, the TypeScript SDK copied only credentials and `.claude.json`." (Supports: TypeScript version for copying credentials only) Published: 2026-11-20T03:48:54Z Snapshot SHA-256: 32dffd9a6c9b1e44cf78555a3eeb093eee4f94197d568fa86951cbb0ea80d5cd (captured 2026-11-13T03:02:56Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:02:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:17:12Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:12Z Last attempt: 2026-11-20T12:17:12Z Notes and limitations: Extracted automatically from a single official source (section "Resume from the store"). Related: https://latestn.com/tool/claude-code/agents-and-automation/rewind-files-to-previous-state How do I rewind files to a previous state in Claude Code using rewindFiles()? https://latestn.com/tool/claude-code/agents-and-automation/run-bundled-workflow How do I run a bundled workflow in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/run-non-interactively How do I run Claude Code non-interactively from the command line? https://latestn.com/tool/claude-code/agents-and-automation/restrict-subagent-tools How do I restrict which tools a Claude Code subagent can use? https://latestn.com/tool/claude-code/agents-and-automation/resume-across-hosts How do I resume a Claude Code SDK session across different hosts? https://latestn.com/tool/claude-code/agents-and-automation/resume-session-by-id How do I resume a Claude Code SDK session by its session ID? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:02:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/resume-session-from-store/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/resume-session-from-store POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/resume-session-from-store with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/resume-session-from-store?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I resume a Claude Code Agent SDK session from an external session store? Revision 1, last verified 2026-11-20T12:17:12Z. https://latestn.com/tool/claude-code/agents-and-automation/resume-session-from-store (accessed 2026-11-21T10:03:35Z). @misc{LatestN_tool_claude_code_agents_and_automation_resume_session_from_store_r1, title = {How do I resume a Claude Code Agent SDK session from an external session store?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/resume-session-from-store}}, note = {Revision 1; digest sha256:6f1f70222a6ee59b; last verified 2026-11-20T12:17:12Z; accessed 2026-11-21T10:03:35Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/resume-session-from-store