Answer: Implement `append` and `load` against your backend, and optionally add `listSessions`, `listSessionSummaries`, `delete`, and `listSubkeys` if you want those features to work against the store. Entries passed to `append` are typed as `SessionStoreEntry` and should be treated as opaque JSON-safe values, persisted in order and returned from `load` in the same order. Status: Confirmed Entry: tool/claude-code/agents-and-automation/custom-sessionstore-adapter Revision: 1 Digest: sha256:a8eb4ab6c0f114ee (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:56Z Last changed: 2026-11-13T03:02:56Z Last verified: 2026-11-20T12:17:11Z Next check: 2026-11-21T12:17:11Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Required methods | append | [1] | 2026-11-20 Optional methods | listSessions | [1] | 2026-11-20 Entry type | SessionStoreEntry | [1] | 2026-11-20 Load requirement | deep-equal | [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:11Z Quote: "Implement `append` and `load` against your backend." (Supports: Required methods) Quote: "Add `listSessions`, `listSessionSummaries`, `delete`, and `listSubkeys` if you want `listSessions()`, one-call metadata reads, `deleteSession()`, and subagent resume to work against the store." (Supports: Optional methods) Quote: "Entries passed to `append` are typed as `SessionStoreEntry` (a `{ type: string; ... }` object)." (Supports: Entry type) Quote: "`load` must return entries that are deep-equal to what was appended; byte-equal serialization is not required" (Supports: Load requirement) 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:56Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:17:11Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:11Z Last attempt: 2026-11-20T12:17:11Z Notes and limitations: Extracted automatically from a single official source (section "Write your own adapter"). Related: https://latestn.com/tool/claude-code/agents-and-automation/disable-filesystem-settings-setting-sources How do I disable filesystem settings like CLAUDE.md and skills in a Claude Code SDK agent? https://latestn.com/tool/claude-code/agents-and-automation/disable-subagents How do I disable specific subagents in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/dispatch-agent-from-shell How do I dispatch a new background agent from the Claude Code shell? https://latestn.com/tool/claude-code/agents-and-automation/create-scheduled-task-cli How do I create a scheduled task in Claude Code from the CLI? https://latestn.com/tool/claude-code/agents-and-automation/create-skill How do I create a skill for Claude Agent SDK sessions? https://latestn.com/tool/claude-code/agents-and-automation/create-subagent-programmatically How do I create a subagent programmatically in the Claude Agent SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:02:56Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/custom-sessionstore-adapter/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/custom-sessionstore-adapter POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/custom-sessionstore-adapter with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/custom-sessionstore-adapter?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I implement a custom SessionStore adapter for Claude Code Agent SDK session storage? Revision 1, last verified 2026-11-20T12:17:11Z. https://latestn.com/tool/claude-code/agents-and-automation/custom-sessionstore-adapter (accessed 2026-11-21T10:01:59Z). @misc{LatestN_tool_claude_code_agents_and_automation_custom_sessionstore_adapter_r1, title = {How do I implement a custom SessionStore adapter for Claude Code Agent SDK session storage?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/custom-sessionstore-adapter}}, note = {Revision 1; digest sha256:a8eb4ab6c0f114ee; last verified 2026-11-20T12:17:11Z; accessed 2026-11-21T10:01:59Z} } 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/custom-sessionstore-adapter