From daymade-claude-code
Recovers actionable context from local `.claude` session artifacts and continues interrupted work without `claude --resume`. Useful for resuming prior work or inspecting session history.
How this skill is triggered — by the user, by Claude, or both
Slash command
/daymade-claude-code:continue-claude-work [session-id][session-id]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Recover actionable context from a prior Claude Code session and continue execution in the current conversation. Use local session files as the source of truth, then continue with concrete edits and checks — not just summarizing.
Recover actionable context from a prior Claude Code session and continue execution in the current conversation. Use local session files as the source of truth, then continue with concrete edits and checks — not just summarizing.
Why this exists instead of claude --resume: claude --resume replays the full session transcript into the context window. For long sessions this wastes tokens on resolved issues and stale state. This skill selectively reconstructs only actionable context — the latest compact summary, pending work, known errors, and current workspace state — giving a fresh start with prior knowledge.
For directory layout, JSONL schemas, and compaction block format, see references/file_structure.md.
Run the bundled extraction script. It handles session discovery, compact-boundary parsing, noise filtering, and workspace state in one call:
# Latest session for current project
python3 scripts/extract_resume_context.py
# Specific session by ID
python3 scripts/extract_resume_context.py --session <SESSION_ID>
# Search by topic
python3 scripts/extract_resume_context.py --query "auth feature"
# List recent sessions
python3 scripts/extract_resume_context.py --list
The script outputs a structured Markdown briefing containing:
sessions-index.jsonThe script automatically skips the currently active session (modified < 60s ago) to avoid self-extraction.
The briefing includes a Session end reason. Use it to choose the right continuation strategy:
| End Reason | Strategy |
|---|---|
| Clean exit | Session completed normally. Read the last user request that was addressed. Continue from pending work if any. |
| Interrupted | Tool calls were dispatched but never got results (likely ctrl-c or timeout). Retry the interrupted tool calls or assess whether they are still needed. |
| Error cascade | Multiple API errors caused the session to fail. Do not retry blindly — diagnose the root cause first. |
| Abandoned | User sent a message but got no response. Treat the last user message as the current request. |
If the briefing has a Subagent Workflow section with interrupted subagents, check what each was doing and whether to retry or skip.
Before making changes:
Then:
Respond concisely:
The script finds the last compact boundary in the session JSONL and extracts its summary. This is the single highest-signal piece of context in any long session -- Claude's own distilled understanding of the entire conversation up to that point. For details on compaction format and JSONL schemas, see references/file_structure.md.
| Session size | Strategy |
|---|---|
| Has compactions | Read last compact summary + all post-compact messages |
| < 500 KB, no compactions | Read last 60% of messages |
| 500 KB - 5 MB | Read last 30% of messages |
| > 5 MB | Read last 15% of messages |
When a session has subagent directories (<session-id>/subagents/), the script parses each subagent's JSONL to extract agent type, completion status, and last text output. This enables recovery of multi-agent workflows -- e.g., if a 32-subagent evaluation pipeline was interrupted, the briefing shows which agents completed and which need retry.
The script classifies how the session ended:
These message types are skipped (37-53% of lines in real sessions):
progress, queue-operation, file-history-snapshot -- operational noiseapi_error, turn_duration, stop_hook_summary -- system subtypes<task-notification>, <system-reminder> -- filtered from user text extractionclaude --resume or claude --continue — this skill provides context recovery within the current session..jsonl files have been deleted from ~/.claude/projects/.claude-code-history-files-finder for full file recovery.sessions-index.json can be stale (entries pointing to deleted files). The script falls back to filesystem-based discovery.abc123-..."npx claudepluginhub p/daymade-daymade-claude-code-daymade-claude-codeRetrieves previous Claude Code or Codex CLI session transcripts, printing recent turns and metadata to resume work. Supports UUID lookup and automatic detection of most recent session.
Saves session summaries, decisions, pending tasks, and auto-loads a briefing on the next session for continuity between Claude Code sessions.
Resumes saved Claude Code sessions from docs/context-sessions/. Lists pending tasks, loads selected session, tracks progress per completion, deletes file when done.