← All skills

resume-session

v1.2.0MITKeeping a long job alive

Picks up where a previous AI session left off, including one from a different tool entirely: Claude Code, Codex (paste a `codex://threads/` link), Antigravity, Muse, Cursor or Grok. It reads the whole transcript, splitting a long one across parallel readers, and hands the next agent the rules, corrections and dead ends it must not get wrong, then the goal, errors, files touched and decisions made.

Install
/plugin install resume-session@fledgeling-plugins

Needs the marketplace added first — how to do that.

Reach for it when

Locate, read, and resume work from a past agent session on this machine: Claude Code, Codex (including codex://threads/<id> deeplinks from the Codex app and ChatGPT), Antigravity (AGY), Muse Code, Cursor, Grok, or repo handover files.

Uses multiple models

Uses multiple modelsThis skill may ask a different AI for a second opinion. Usually to check its own work, because a reviewer from the same family tends to agree with it. The defer skill picks which one, from OpenAI, Google, xAI or another Claude, based on what the job is and which account has room left. Nothing leaves your machine unless a skill you ran asks for it.Read about defer →

What ships with it

Say any of this

  • what was that session doing

Taken from the skill’s own trigger description — these are the phrases it listens for. You do not have to match them exactly.

The multi-model handover skill for agentic coding.

When an AI model hits its usage limit (a 503 reserve cap, a 429 rate limit, token window exhaustion, or your weekly quota on Claude Opus 5), you should not have to wait hours or start from scratch. You switch to another model or CLI, such as Antigravity (AGY), Codex, Muse Code, Cursor, Grok, or Claude Sonnet, and keep building.

The problem is that the new model starts completely blind. It spends thousands of tokens re-reading files you already modified, re-asking questions you answered an hour ago, guessing at database configs, and re-writing plans from zero.

resume-session:resume-session moves that rediscovery off the model and onto your own machine. It scans for sessions across the CLIs listed below, accepts a pasted codex://threads/<id> deeplink or a Muse session name, reads the transcript itself (whole when the reader's context holds it, split across parallel subagents when it does not), and hands the incoming agent a written briefing to start from: first the rules, corrections and dead ends it must not get wrong, then six things it would otherwise have to work out for itself.


The cross-model takeover workflow

A flow diagram sits here. It needs a renderer this page deliberately does not ship — see it drawn on GitHub.


What it recovers

Every resumed session is distilled into six concrete things:

  1. Session identity and provenance: UUID, source CLI, model that hit limits, git branch, and exact active timestamps.
  2. Initial goal and intent: The verbatim initial user prompt, target scope, and linked plan/goal docs.
  3. Terminal state and errors: The exact reason the run stopped (429 rate limit, 503 reserve cap, compaction boundary, interrupted turn) plus the last assistant thought.
  4. Modified files and artifacts: The full ledger of created, edited, and deleted files, avoiding duplicate work.
  5. Technical config and keys: Apple Team IDs, Bundle IDs, OAuth client IDs, port numbers, and database connection settings found during the run.
  6. Immediate next steps: A concrete, numbered checklist for the incoming agent to verify workspace status and continue active work immediately.

Universal multi-CLI discovery

resume-session:resume-session includes a standalone, pure Python 3 discovery engine (find_session.py) that indexes sessions across your entire environment:

CLI platformTranscripts discoveredSupported formats
Claude Code~/.claude/projects/<slug>/*.jsonl<br>~/.claude/sessions/<br><repo>/.claude/JSONL turns, tool invocations, aiTitle, cwd, branch
Antigravity (AGY)~/.gemini/antigravity-cli/brain/<uuid>/<br>~/.gemini/antigravity-cli/conversation_summaries.dbtranscript_full.jsonl steps, tool calls, checkpoints, titles
Cursor IDE~/.cursor/chats/<hash>/<uuid>/<br>~/Library/Application Support/Cursor/...SQLite message blob stores, meta.json, workspace state
Codex / OpenAI~/.codex/sessions/YYYY/MM/DD/*.jsonl<br>~/.codex/archived_sessions/<br>~/.codex/session_index.jsonlRollout events, apply_patch edits, thread titles; codex://threads/<id> deeplinks resolve here
Muse Code~/.local/share/muse/sessions/YYYY/MM/DD/<uuid>/session.jsonl<br>~/.local/share/muse/session-index.dbEvent log, session names, model changes, terminal reason, todo list, subagent sessions
Grok / X.AI~/.grok/sessions/<encoded_path>/<uuid>/<br>~/.xai/sessions/Chat history JSONL, summary.json, event streams
Repo Workspacesdocs/goals/, docs/plans/, ORCHESTRATOR.md, handover_report.mdRepository ledgers, markdown plans, feature specs

Reading a session in full

A takeover briefing is only as good as the reading behind it, and a summary skimmed off the start and end of a transcript misses the middle, which is where a stated-once rule or a rejected approach usually sits. render_transcript.py renders the whole session as Markdown with numbered #N anchors and plans the read against the reader's budget:

  • It fits: the reader reads transcript.md end to end and sweeps it once per category.
  • It does not: the transcript splits at user turns into chunks of about 120,000 tokens, at most 8, and one subagent reads each with a filled brief. Each reader lists every constraint, correction, dead end and identifier it finds with an anchor, using the extraction method from braindump; the parent merges them and settles disagreements by reading the anchored events.

User and assistant messages are never shortened. Tool calls collapse to one line naming their command or path, and tool output is clipped at the richest detail level that fits. Measured on this machine: a 200 MB Codex rollout (12,785 events) renders to about 900,000 tokens at lean detail, 8 chunks; a 182 MB Muse session to about 685,000 tokens, 7 chunks or one full read for a reader with 700,000 tokens to spare.


Install

/plugin marketplace add fledgeling-co/fledgeling-plugins
/plugin install resume-session@fledgeling-plugins

Does it actually work

Six structural evals across the five CLI platforms, run against a no-skill baseline and against the predecessor skill, are written up in EVALS.md. Read the caveat at the top of that file before quoting any of its numbers: the timing and cost figures come from informal observation during development rather than from a harness, and that file names the runs that would settle them.


Quick start

1. Find recent sessions across all CLIs

# Show the 5 most recent sessions across any CLI on your Mac
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --recent 5

Output:

[1] [AGY] Continue Google Drive Session
    Session ID:  daaf6175-c6e2-4212-90dc-73e5a8b1997a
    Working Dir: /Users/lukerhodes/Dev/fledgeling-plugins (main)
    Last Active: 2026-08-15 16:45:42 | 1 turns | 153.4 KB | Antigravity / AGY
    Prompt:      "You are tasked with upgrading and rebranding resume-claude-session..."

[2] [CLAUDE] Task Validation
    Session ID:  a56bf3dd-acfb-4292-a152-9e7897a6ce42
    Working Dir: /Users/lukerhodes/Dev/dAIolog (staging)
    Last Active: 2026-08-06 03:43:22 | 11 turns | 147.5 MB | claude-opus-5
    Prompt:      "Determine whether the work from the Spreadsheet improvements..."

2. Search by project name or keyword

# Find sessions matching a keyword or project
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --name "earbuds"

# Filter by a specific agent platform
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --cli grok --recent 5
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --cli codex --recent 5
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --cli claude --path ~/Dev/my-app

3. Resume from a deeplink or a session name

python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --ref codex://threads/01a1b965-2795-7013-9828-89685dd272bd --details
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --ref winter-nova   # Muse session name

# Render the transcript and plan the read for a reader with 400k tokens to spare
python3 plugins/resume-session/skills/resume-session/scripts/render_transcript.py --ref codex://threads/01a1b965-2795-7013-9828-89685dd272bd --budget-tokens 400000

4. Generate a complete takeover briefing

# Print the detailed handover report to the terminal
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --id daaf6175 --details

# Export to a markdown file for the next agent
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --id daaf6175 --export handover.md

# Output structured JSON for automation pipelines
python3 plugins/resume-session/skills/resume-session/scripts/find_session.py --id daaf6175 --json

Anatomy of a takeover handover

Here is what the generated briefing looks like:

# Takeover Briefing: Continue Google Drive Integration

**CLI Platform:** `Claude Code`
**Source Session ID:** `2db1e25f-5990-496b-9ade-4b8fd52ddd50`  
**Working Directory:** `/Users/lukerhodes/Dev/scrim`  
**Git Branch:** `feature/gdrive-sync`  
**Models Used:** `claude-opus-5`  
**Last Recorded Active:** `2026-08-15 15:46:11`  

---

## 1. Initial Goal & User Intent
> Connect Scrim to Google Drive via service account tokens and sync project exports.

## 2. Key Documentation & Artifact References
- **Plan Doc:** `docs/plans/plan-GDRIVE-01.md`
- **Spec Doc:** `docs/specs/spec-GDRIVE-01.md`

## 3. Work Completed & Modified Files
The session modified 4 files:
- `apps/web/lib/gdrive/client.ts`
- `apps/api/src/sync/drive.service.ts`
- `packages/config/env.ts`
- `apps/web/app/api/drive/callback/route.ts`

## 4. Technical Environment & Decisions
- **Config `OAUTH_CLIENT_ID`:** `9281749102-abc.apps.googleusercontent.com`
- **Config `PORT`:** `3000`
- DECISION: Use streaming chunk uploads to prevent memory spikes on large exports.

## 5. Terminal State & Last Context
> **Warning**
> **Session Halted on Error:**
> `API Error 429: Usage limit reached for current billing window.`

**Last Assistant Output:**
> "OAuth token exchange endpoint implemented and tested. Next task is the batch metadata poll."

## 6. Immediate Next Steps for Takeover Agent
1. **Verify Workspace State:** Run `git status` in `/Users/lukerhodes/Dev/scrim` to confirm uncommitted changes.
2. **Inspect Plan:** Read `docs/plans/plan-GDRIVE-01.md` to verify task 3 status.
3. **Resume Execution:** Implement batch metadata poll in `apps/api/src/sync/drive.service.ts`.

Command-line reference

usage: find_session.py [-h] [--name NAME] [--id ID] [--ref REF] [--cli {all,claude,agy,cursor,codex,grok,muse,repo}]
                       [--path PATH] [--recent [RECENT]] [--details] [--json] [--export EXPORT]
                       [--limit LIMIT] [--deep]

Universal Multi-CLI session discovery, parsing, and takeover engine.

options:
  -h, --help            show this help message and exit
  --name, -n NAME       Search by session title, custom name, or topic keyword
  --id, -i ID           Search by session UUID or UUID prefix
  --ref REF             A deeplink (codex://threads/<id>), session URL, UUID, or Muse session name
  --cli, -c {all,claude,agy,cursor,codex,grok,muse,repo}
                        Filter by CLI engine (default: all)
  --path, -p, --cwd PATH
                        Filter by project directory or folder name
  --recent, -r [RECENT] Show N most recent sessions (default 10)
  --details, -d         Print detailed 6D takeover briefing for matched session
  --json, -j            Output results as structured JSON
  --export, -e EXPORT   Export takeover briefing Markdown report to target file path
  --limit, -l LIMIT     Maximum results to return (default 10)
  --deep                Deep scan: fully parse transcripts rather than fast header scan

usage: render_transcript.py [--ref REF | --file FILE] [--cli CLI] [--out OUT]
                            [--budget-tokens N] [--chunk-tokens N] [--max-chunks N]
                            [--detail {auto,full,normal,lean,minimal}]

Writes transcript.md, chunks/chunk-NNN.md, briefs/chunk-NNN.md and manifest.json to
~/.cache/resume-session/<session-id>/ (mode 0700; or --out), and prints the plan: full or fanout.

Licence

MIT. Built by Fledgeling for developers building with agentic coding tools.