Answer: Pass a session ID to `resume` to return to that specific session, and the agent picks up with full context from wherever the session left off. Status: Confirmed Entry: tool/claude-code/agents-and-automation/resume-session-by-id Revision: 1 Digest: sha256:e68487587acf6192 (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:14Z Next check: 2026-11-21T12:17:14Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of resume parameter | resume | [1] | 2026-11-20 Python option | resume=session_id | [1] | 2026-11-20 TypeScript option | resume: sessionId | [1] | 2026-11-20 Sources: [1] Anthropic. "Work with sessions". https://code.claude.com/docs/en/agent-sdk/sessions.md Role: primary. Accessed: 2026-11-20T12:17:14Z Quote: "Pass a session ID to `resume` to return to that specific session." (Supports: resume parameter) Quote: "resume=session_id," (Supports: Python option) Quote: "resume: sessionId," (Supports: TypeScript option) Published: 2026-11-20T02:52:44Z Snapshot SHA-256: 456f033eff0db40bef3d41724e8ee7260cd156256727d73859c4ee108c7e35d8 (captured 2026-11-13T03:02:57Z) 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:14Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:14Z Last attempt: 2026-11-20T12:17:14Z Notes and limitations: Extracted automatically from a single official source (section "Resume by ID"). Related: https://latestn.com/tool/claude-code/agents-and-automation/resume-session-from-store How do I resume a Claude Code Agent SDK session from an external session store? 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/reload-plugins-running-session How do I reload or add plugins to a running Claude Code SDK session? 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/ 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-by-id/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-by-id POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/resume-session-by-id 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-by-id?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I resume a Claude Code SDK session by its session ID? Revision 1, last verified 2026-11-20T12:17:14Z. https://latestn.com/tool/claude-code/agents-and-automation/resume-session-by-id (accessed 2026-11-21T10:06:19Z). @misc{LatestN_tool_claude_code_agents_and_automation_resume_session_by_id_r1, title = {How do I resume a Claude Code SDK session by its session ID?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/resume-session-by-id}}, note = {Revision 1; digest sha256:e68487587acf6192; last verified 2026-11-20T12:17:14Z; accessed 2026-11-21T10:06:19Z} } 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-by-id