alivecontext/alive/session-history
Claude Code and agent skill by alivecontext/alive
- community
Checking that the SKILL.md file is still in the repository.
Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel sessions, use alive:session-context-rebuild instead.
Install
npx vskill@latest install alivecontext/alive/session-historySKILL.md
The same SKILL.md was published earlier as alivecontext/alive/session-history.
History
Session timeline and recent activity. The system's short-term memory.
Not a search (that's find — searches content across walnuts). History searches SESSIONS — what squirrels did, what was discussed, what was decided. For deep context extraction from source material, use alive:mine-for-context.
How It Works
Two tiers of data. Always start with tier 1. Go to tier 2 via revive.
Tier 1 — Squirrel Entries (.alive/_squirrels/*.yaml, with fallback to per-walnut _kernel/_squirrels/*.yaml) Structured, fast, indexed. Session ID, walnut, model, timestamps, stash items, transcript path. Every squirrel leaves one of these.
Tier 2 — Session Transcripts (path stored in squirrel YAML transcript:) The full conversation. Every message, every agent response, every tool call, every result. This is the deep context — the actual thinking, the back-and-forth, the nuance that didn't make it into the stash.
Modes
Browse (no args)
Show recent sessions across all walnuts. Default filter: only show sessions with saves > 0 or non-empty stash. Cap at 10 results. Add a summary line: "N empty shells not shown." Use history --shells to include them.
Data source: prefer .alive/_index.yaml recent_sessions: as primary data. Fall back to direct .alive/_squirrels/ YAML walk only if the index is missing or returns fewer results than requested.
Unsaved Sessions
After listing sessions, check for unsaved entries (saves: 0) in .alive/_squirrels/. These represent sessions that never checkpointed — the human may have lost stash items. Check transcript file size to distinguish "opened and closed" from "real work, never saved."
Surface them with a visual marker:
If the human selects an unsaved session, present the stash items from the YAML and offer to route them now (invoke save flow for those items) or dismiss (dismiss the entry by setting ended: to current time and saves: to -1 (dismissed)).
Query (by walnut, date, topic, person)
"What sessions touched nova-station this month?" "Find the session where we discussed shielding vendors" "Show me all sessions with Jax" "What happened last week?"
Search tier 1 first (squirrel YAML frontmatter + stash content). If no match, offer tier 2 search (full transcript grep).
Temporal Queries
"What happened last week" -> filter squirrel entries + log entries by date range, show across all active walnuts.
"What changed since Tuesday" -> scan _kernel/now.json updated timestamps + recent log entries.
"History of nova-station" -> show _kernel/log.md frontmatter (entry count, summary) + offer to load recent entries.
Revive (single session)
The human selects a session. Show the tier 1 metadata, then offer the choice:
Use AskUserQuestion with two options:
- Quick revive — "Structured briefing. One agent reads the full transcript and returns a handoff document covering what happened, why, and what comes next. ~2 minutes."
- Heavy revive — "Full context transplant. Five parallel agents each extract a different dimension — narrative arc, decisions, verbatim quotes, technical substance, and open threads. Reconstructs the session's awareness in the current context window. ~5 minutes."
Before dispatching either mode, resolve the transcript path (see Transcript Discovery below). If no transcript is found, tell the human and offer a tier-1-only summary from the YAML stash data instead.
Quick Revive
One agent. Reads the full JSONL transcript. Returns a structured handoff directly into the conversation.
Dispatch a single Agent tool call with subagent_type: "general-purpose". Use this prompt, substituting {transcript_path} with the resolved path:
Present the agent's output in a quote block:
Heavy Revive
Full context transplant. Five parallel agents each extract a different dimension from the transcript — narrative arc, decisions, verbatim quotes, technical substance, and open threads.
When the human selects heavy revive, read heavy-revive.md from this skill's directory (same folder as this file) using the Read tool. That file contains the full agent prompts and dispatch instructions. Do NOT attempt to run heavy revive without reading that file first.
Combine (multiple sessions -> one context pack)
The power move. Pick 2-5 sessions and merge their context.
"Give me everything from the last 3 nova-station sessions" "Combine the shielding research session with yesterday's vendor call"
That last question is key: the handoff is targeted. Not just dumping everything. The system builds the context pack around WHY it's needed. "I need to write the investor deck" gets different context emphasis than "I need to debug the hook scripts."
Handoff (context -> new session)
Generate a context briefing that a new squirrel can load to continue the work. This is the output — a structured document that captures:
- Decisions and rationale (from log entries + stash)
- Current state (from
_kernel/now.json) - Open questions (from stash + conversation)
- Bundle drafts in progress
- Key relationships and people context
- The specific reason for the handoff
Written to _inbox/raw/recall-[date]-[topic].md and optionally loaded directly into a new session.
Mining Escalation
When history finds sessions with rich, unmined context — long sessions, many stash items, transcripts with extensive research or decision-making — suggest escalation to alive:mine-for-context:
This is the bridge between "what happened?" (history) and "what's buried in there?" (mine).
Transcript Discovery
Different platforms store session data in different places. Resolve the transcript path before dispatching revive agents.
Resolution order:
- Check
transcript:in the squirrel YAML entry - Fallback: Scan
~/.claude/projects/*/for{session_id}*.jsonl— Claude Code names transcripts using the session UUID - If no transcript found: tell the human, offer tier-1-only summary from the YAML stash data (no revive possible without a transcript)
Known platforms:
| Platform | Transcript path | Format | |
|---|---|---|---|
| Claude Code | ~/.claude/projects/<hash>/<session>.jsonl | JSONL (messages + tool calls) | |
| Cursor | ~/.cursor/workspaceStorage/*/state.vscdb | SQLite | |
| Windsurf | ~/.windsurf/ | Varies | |
| Codex | Platform-dependent | Varies | |
| ChatGPT | Export only | JSON archive | |
| Local models | No standard | Agent-dependent |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/alive/skills/session-history/SKILL.md
Popularity
- Repository stars
- 95
- Repository forks
- 5
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alivecontext/alive/session-history)