/spine:spine-sessionsfrom spine
Searches past Claude Code sessions via episodic memory: greps Spine episode log, then ripgrep over raw transcripts. No LLM calls, returns verbatim excerpts with resume commands.
Ships in spine. 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.
Answer "what did we do / decide / try in a past session?" from two sources:
{vault}/.spine/episodes/{repo}.md — one record per session (title, date, branch, last prompt, asks, files touched), written by the Stop hook.~/.claude/projects/{escaped-cwd}/*.jsonl — full session history, searched with type-filtered ripgrep.No LLM calls in the search loop — this skill is deterministic recipes. Speed: full-corpus ripgrep is sub-second; never summarize results with extra model passes unless the user asks.
Same config chain as all Spine skills:
$SPINE_VAULT_PATH environment variable~/.spine/config.json → vaultPath field~/Documents/SpineVault/$ARGUMENTS)| Arguments | Mode |
|---|---|
| empty | Browse — list recent sessions |
| a UUID-looking token | Read — open that session's episode / transcript |
| anything else | Discover — search episodes, then transcripts |
basename "$(git remote get-url origin 2>/dev/null)" .git (fall back to directory name).grep -E '^## |^- \*\*session' "{vault}/.spine/episodes/{repo}.md" | tail -20
ls -t ~/.claude/projects/{escaped-cwd}/*.jsonl | head -10
where {escaped-cwd} is the current working directory with / and . replaced by - (e.g. /Users/jane/Git/spine → -Users-jane-Git-spine).grep -n -i -F -B2 -A8 -e "{query}" "{vault}/.spine/episodes/{repo}.md"
Query hygiene (all modes): treat {query} as literal text — use -F and pass it after -e (or --) so queries starting with - or containing regex metacharacters can't be misread as flags or patterns. Drop -F only when the user explicitly gives a regex.
If this answers the question, stop here — report the matching episode(s) with their claude --resume {session_id} commands.
Raw transcripts are ~99% machinery (hook attachments, tool dumps). ALWAYS type-filter; never dump raw matching lines into the conversation.
rg -l -i -F -e "{query}" ~/.claude/projects/{escaped-cwd}/*.jsonl
Exclude subagents/ transcripts by default (redundant with parents).rg -i '"type":"(user|assistant)"' {file} | rg -v '"isMeta":true' | rg -i -F -e "{query}" | head -5
rg '"type":"ai-title"' {file} | tail -1 # session title
rg '"type":"last-prompt"' {file} | tail -1 # how it ended
message.content verbatim (±2 surrounding conversation records for context), not the raw JSONL.Given a session id:
claude --resume {session_id} to reopen it.rg '"type":"(user|assistant)"' ~/.claude/projects/{escaped-cwd}/{session_id}.jsonl | rg -v '"isMeta":true'
then quote the relevant message.content fields — never the raw JSON lines.spine_sessions_result:
status: success | no_match | error
mode: browse | discover | read
summary: "2 sessions matched 'OAuth PKCE' — most relevant: 2026-06-01 spine-agent-oauth"
matches:
- { session: "abc-123", date: "2026-06-01", title: "spine-agent-oauth", source: "episode-log", resume: "claude --resume abc-123" }
next_actions:
- { action: "resume session", command: "claude --resume abc-123" }
- { action: "deep read", detail: "quote verbatim excerpts from the matched turns" }
recovery_hint: null
Status values:
success — at least one match presentedno_match — both tiers empty; suggest broadening the query or checking another repo's episode logerror — vault or transcript directory missing; include recovery_hintEpisodes and transcripts contain work content. Results stay within the current vault's boundary — never copy episode content into another vault, repo, or external service. If the query clearly targets a different vault/workspace, say so instead of searching across.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/spine-captureCapture completed work (fix, feature, architecture decision, plan) as an Obsidian doc in the Spine Architecture vault. Auto-detects repo, feature, and doc type from context. Supports --batch mode for session-end batch capture./spine-dreamSynthesis curator. Reads accumulated vault docs, update sections, and episode logs, then derives NEW higher-level knowledge — reusable playbooks and gotcha docs — with evidence pointers back to every source. Human-gated writes, DREAMS.md audit diary. Spine's "dreaming" pass./spine-healthScan the Spine Architecture Obsidian vault for gaps, stale docs, duplicates, and missing coverage. On-demand curator for vault hygiene.npx claudepluginhub nodewarrior/spine --plugin spineOther plugins' skills for the same job