Durable Sessions

Make a long-running agent session survive being interrupted — log every action so recovery replays recorded outcomes instead of re-running them, key side effects so they cannot fire twice, bound every retry, and scope caches so one user's answer never becomes another's. Use when a session lives longer than the process running it (hours, days, weeks), when a crash or restart forces users to start over or answer the same question again, when a retry loop burns budget without ever escalating, or when you need the production-failure axis rather than the output-quality one.

sharp-skills Updated

File contents

sharp-skills/skills/tree/main/skills/durable-sessions commit f6c215262e

Frequently asked questions

npx skillmds@latest add sharp-skills/durable-sessions