/session-mgmt:read-handofffrom session-mgmt
Find the handoff document an earlier session left behind, check the repo still matches it, and resume the work it describes. Use only when the user explicitly asks by name: "read the handoff", "pick up the handoff", "resume from the handoff", "/session-mgmt:read-handoff". Never invoke on your own judgment. Looks for the handoff in trivia memory, in Hindsight knowledge pages, then on disk, and asks both stores at the same steps so their recall can be compared.
Ships in session-mgmt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Locate the handoff written by write-handoff, verify the world still matches it,
and continue from its "Next steps." Counterpart of write-handoff.
Core principle: the document describes the world as it was when written. The file is the authority; the stores only point at it. Verify before trusting, and report drift instead of acting on stale instructions.
Same rules trivium uses, first match wins: git config --get trivia.slug;
Cargo.toml [package].name; the basename of the repository directory (the
parent of git rev-parse --path-format=absolute --git-common-dir, so a worktree
resolves to its project, not its branch), lowercased with non-alphanumerics turned
into hyphens; outside git, the working-directory basename.
A trivia recall whose mnemonic does not start with <slug>/ is a miss, not a
pointer.
The two checks are independent.
recall("<slug>/trivia-bootstrapped", limit = 1)
returns an exact hit.mcp__hindsight__* tools are present. If they are deferred, load
them with ToolSearch first.Trivia unavailable: skip every trivia step below with a one-line note; the other store still runs.
Hindsight unavailable: skip every Hindsight step below with a one-line note; the other store still runs.
Gather candidates in this order. Run both store lookups even if the first hits, so each store gets asked.
recall("<slug>/handoff", limit = 1). The memory names a path.hindsight_search_knowledge_pages("handoff <slug>"). Read
the hit for the path it names../tmp/handoff-*.md, newest. Match the pattern; tmp holds plenty that is
not a handoff..claude/relay/handoff-*.md, newest.A store hit counts only if the file it names exists. If a pointer names a missing file, tell the user it is stale and fall through to the next candidate.
Among surviving candidates the newest by filename timestamp
(handoff-<yyyy-mm-dd>-<hhmm>.md) wins. Name the others so the user can redirect
you. A Hindsight page may surface an older handoff than the one on disk; the file
timestamp decides, not which store found it.
Nothing anywhere: say so plainly and stop. There is nothing to summarize.
The document records the branch and commit it was written at. Compare:
git log --oneline <handoff-sha>..HEAD
Commits since then, especially ones touching files the doc discusses, mean parts may be done or invalid. Flag exactly which sections look overtaken. Flag a branch mismatch the same way.
session-mgmt:recall-focus to layer current focus and lessons on top of the
handoff. Older handoffs may name session-start there; treat that as
recall-focus.hindsight_search_knowledge_pages query for any topic it names.When the handoff is absorbed, offer these together as one choice:
<slug>/handoff to say it was consumed on <date>, or delete it.hindsight_ingest_document(title = "Correction: handoff consumed", content = <path, date, "no live handoff">).If the user declines, leave the file and both stores untouched. A pointer to a deleted file is this skill's main failure mode, so never do a subset.
End the report with a single line:
Sources — trivia: <items or none> · Hindsight: <items or none>
List what each store contributed (pointer, page, memories recalled).
| Don't | Why |
|---|---|
| Take the newest file in tmp regardless of name | tmp holds scratch files. Only handoff-*.md is a handoff. |
| Trust a store hit without checking the file | The file may be gone. Stale pointer: say so, fall through. |
| Let the store that found it pick the winner | Newest filename timestamp wins, whichever store surfaced it. |
| Skip one store because the other hit | The comparison needs both asked at the same steps. |
| Act before the drift check | The repo may have moved on; you would redo or resurrect work. |
| Clean up only some of file, pointer, correction | They must agree. All or none. |
| Invent context when nothing is found | Report it and let the user steer. |
User: resume from the handoff
You: [slug: fetch-queue; trivia bootstrapped; Hindsight tools present]
[trivia recall("fetch-queue/handoff") -> tmp/handoff-2026-08-13-1642.md, exists]
[Hindsight page "handoff fetch-queue" -> same path]
[git log --oneline 4f3a2c1..HEAD -> one commit, touching src/retry.rs]
Found yesterday's handoff (tmp/handoff-2026-08-13-1642.md), named by both
stores: retry logic half-done, backoff working, jitter untested. One commit
since touches src/retry.rs, so "In progress" may be partly done.
[runs the doc's Verify state commands -> pass]
[doc asks for focus; invokes session-mgmt:recall-focus -> matches]
Next step: property-test the jitter distribution. Starting there.
[... work ...]
Delete the file, mark fetch-queue/handoff consumed, and ingest the
"Correction: handoff consumed" note?
User: yes
You: [all three done]
Sources — trivia: fetch-queue/handoff · Hindsight: handoff page for fetch-queue
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ozzycodes2/claudellum --plugin session-mgmt5 skills in this plugin
/exit-sessionTear down the ephemeral resources a Claude Code working session created, then quit the CLI — so the user can wrap up with a single /exit-session. Use when the user says "exit session", "clean up this session", "tear down everything", "wrap up and clean up resources", "remove the worktree and scratch", "stop the background processes", "shut down the stack", "clean up the agent worktrees", or asks to clean up after finishing a task — even if they only name one resource (assume they want the full sweep unless they scope it). Runs teardown permission-free: stops background processes and dev servers, Docker/compose stacks plus their volumes, networks and images, local Tilt/Kubernetes, git worktrees, merged local branches, and temp/scratch files without prompting, then exits the CLI. Covers the worktrees and Docker resources left behind by subagents spawned during the session, not just the primary agent's own worktree — both determined from git locks and Docker labels rather than from recall. Never touches resources a still-live session holds./recall-focusOpen a working session by recalling what the project already knows, from both trivia and Hindsight memory. Use at the start of a session, when the user says "let's get started", "what were we working on", "let's pick this back up", or "/session-mgmt:recall-focus", or before a meaningful chunk of work. Recalls the project's current focus and conventions, the lessons that bear on it from each store, verifies the focus's forward claims against the code, confirms direction with the user, then enters plan mode with the lessons carried forward. Each store is detected and queried independently, so either can be missing.