Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Persists and resumes Claude Code session progress to per-session state files in .agent-sessions/ across restarts and compaction.
64% 91%+27 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 14 of 22 without it.
3 of 3 safety checks passed
Not used yet
Session-continuity files let a session survive context loss (a fresh terminal, --resume,
--continue, or compaction losing detail) by writing progress to disk, keyed by session id so
concurrent sessions in the same working directory never clobber each other's state.
If the user prompts you to persist/save/output session state:
.agent-sessions/STATE.<session-id>.md at repo root, creating the .agent-sessions/
directory first if it doesn't exist. Key the filename by a stable per-session identifier (e.g.
$CLAUDE_CODE_SESSION_ID, falling back to a random suffix generated once and reused for every
write in the session if no such identifier is available)._Last updated: <ISO 8601 timestamp>_ line, refreshed on every write, then
record discoveries and remaining work under
## Goal / Instructions / Discoveries / Accomplished / Not Yet Done / Relevant Files — keep it
useful to a fresh session.At session start:
.agent-sessions/STATE*.md files: delete any whose Last updated timestamp is older than
14 days, since that file's session is abandoned..agent-sessions/STATE.<session-id>.md matching the current session's own
identifier, if it exists (that file persists across --resume/--continue and context
compaction). A genuinely new session id has no matching file and starts fresh — this is not a
mechanism for a new, unrelated session to discover another session's prior work.Delete the session's own .agent-sessions/STATE.<session-id>.md once its goal is fully done,
rather than waiting for it to age out.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.