Resume Any Chat
Use this skill for local multi-provider chat history work across the current user's home directory:
Codex from .codex/sessions
Claude from .claude/projects plus .claude/history.jsonl
Antigravity from .gemini/antigravity-cli/brain/*/.system_generated/logs
Workflow
- Default to listing useful recent sessions directly in-chat.
Show recent
Codex, Claude, and Antigravity sessions first unless the user already named a provider/session.
The default professional list format is:
- recent
10
- per item show:
- then show exactly these next actions:
Continue in Codex
Continue Native
Summarise
Import into Codex History (Experimental)
- if session
cwd and current workspace differ, say that briefly and suggest the safer option
- stop there unless the user explicitly picks one of those actions
- Refresh/export the current index:
node plugins/resume-any-chat/runtime/cli.js export
- Useful commands:
node plugins/resume-any-chat/runtime/cli.js latest
node plugins/resume-any-chat/runtime/cli.js latest claude --limit 15
node plugins/resume-any-chat/runtime/cli.js session claude <session-id>
node plugins/resume-any-chat/runtime/cli.js handoff antigravity <session-id>
node plugins/resume-any-chat/runtime/cli.js import-history claude <session-id>
Command mapping:
show all history
show history
list history
show recent
show me all history
For any of the above, you must run:
node plugins/resume-any-chat/runtime/cli.js latest
If the user names a provider, you must run:
node plugins/resume-any-chat/runtime/cli.js latest <provider>
- Launch the local 3-tab viewer when the user wants to browse sessions visually:
node plugins/resume-any-chat/runtime/cli.js serve
- Prefer the safe built-in flows:
- Native resume:
codex resume <session-id>
claude --resume <session-id>
agy --conversation <session-id>
- Cross-provider continuation:
- generate a Codex handoff packet
- launch a fresh Codex session from that handoff
- Experimental import:
- only when the user explicitly chooses
Import into Codex History (Experimental)
- import a foreign session into Codex history without replacing the safer default flows
Rules
- Do not treat foreign-session import as the default continuation path.
- prefer native resume or Codex handoff first
- use experimental Codex-history import only after explicit user choice
- Do not read Antigravity token-monitor/auth cache unless the user explicitly asks for that risky path.
- Prefer
transcript_full.jsonl over transcript.jsonl for Antigravity when both exist.
- If a provider session has no reliable
cwd, do not auto-launch; return the command and the missing-cwd warning.
show session <provider> <id> should include recent turns by default.
- default: show the overview plus last
5-8 meaningful messages
verbose: include more context, including thinking/tool lines when useful
- If the user says
continue here, do not tell them to leave the thread first.
- Run
handoff <provider> <session-id> without --launch
- use the generated summary and handoff file as context
- continue the work in the current Codex thread
- do not stop at
If you want, I can... unless the next task is genuinely ambiguous
- Never auto-resume, auto-handoff, auto-summarise, or auto-open anything immediately after listing.
- listing is one step
- action happens only after the user explicitly chooses it
Import into Codex History (Experimental) is opt-in only.
- add it as a selectable action
- do not use it unless the user explicitly chooses it
- Do not answer
show all history by describing, linking, or summarizing state.json.
state.json is an internal cache/export artifact
- mention it only if the user explicitly asks for raw JSON, export files, cache debugging, or file paths
- For
show all history and similar list requests, return the direct latest output itself.
- do not replace it with totals-only summaries
- do not ask for
provider + session id before showing the actual list
- If the prior session already contains a clear unfinished task, continue that task directly.
- Example: if the last unfinished ask was
show full repo structure, start doing that
- only ask a follow-up if multiple next steps are equally plausible or if risk requires confirmation
- The rule above applies only after the user has already chosen
Continue in Codex or equivalent.
- Do not invent a different menu or a generic conversational close.
- follow the list-first flow above
- avoid endings like
If you want, I can... when the user already asked to continue
- Avoid rigid reply menus like
tell me one of these only.
- accept natural requests such as
latest claude, show me more codex, continue this here, open the viewer, resume that claude one
1---2name: resume-any-chat3description: Use when the user wants to inspect, search, normalize, resume, hand off, or optionally import local Codex, Claude, or Antigravity CLI conversation history. This skill provides a local viewer, provider-specific parsers, native resume commands, a Codex handoff flow, and an explicit experimental Codex-history import path.4---56# Resume Any Chat78Use this skill for local multi-provider chat history work across the current user's home directory:910- `Codex` from `.codex/sessions`11- `Claude` from `.claude/projects` plus `.claude/history.jsonl`12- `Antigravity` from `.gemini/antigravity-cli/brain/*/.system_generated/logs`1314## Workflow15161. Default to listing useful recent sessions directly in-chat.17Show recent `Codex`, `Claude`, and `Antigravity` sessions first unless the user already named a provider/session.18The default professional list format is:19- recent `10`20- per item show:21 - `id`22 - `title`23 - `last message`24- then show exactly these next actions:25 - `Continue in Codex`26 - `Continue Native`27 - `Summarise`28 - `Import into Codex History (Experimental)`29- if session `cwd` and current workspace differ, say that briefly and suggest the safer option30- stop there unless the user explicitly picks one of those actions31322. Refresh/export the current index:3334```bash35node plugins/resume-any-chat/runtime/cli.js export36```37383. Useful commands:3940```bash41node plugins/resume-any-chat/runtime/cli.js latest42node plugins/resume-any-chat/runtime/cli.js latest claude --limit 1543node plugins/resume-any-chat/runtime/cli.js session claude <session-id>44node plugins/resume-any-chat/runtime/cli.js handoff antigravity <session-id>45node plugins/resume-any-chat/runtime/cli.js import-history claude <session-id>46```4748Command mapping:49- `show all history`50- `show history`51- `list history`52- `show recent`53- `show me all history`5455For any of the above, you must run:5657```bash58node plugins/resume-any-chat/runtime/cli.js latest59```6061If the user names a provider, you must run:6263```bash64node plugins/resume-any-chat/runtime/cli.js latest <provider>65```66674. Launch the local 3-tab viewer when the user wants to browse sessions visually:6869```bash70node plugins/resume-any-chat/runtime/cli.js serve71```72735. Prefer the safe built-in flows:74- Native resume:75 - `codex resume <session-id>`76 - `claude --resume <session-id>`77 - `agy --conversation <session-id>`78- Cross-provider continuation:79 - generate a Codex handoff packet80 - launch a fresh Codex session from that handoff81- Experimental import:82 - only when the user explicitly chooses `Import into Codex History (Experimental)`83 - import a foreign session into Codex history without replacing the safer default flows8485## Rules8687- Do not treat foreign-session import as the default continuation path.88 - prefer native resume or Codex handoff first89 - use experimental Codex-history import only after explicit user choice90- Do not read Antigravity token-monitor/auth cache unless the user explicitly asks for that risky path.91- Prefer `transcript_full.jsonl` over `transcript.jsonl` for Antigravity when both exist.92- If a provider session has no reliable `cwd`, do not auto-launch; return the command and the missing-cwd warning.93- `show session <provider> <id>` should include recent turns by default.94 - default: show the overview plus last `5-8` meaningful messages95 - `verbose`: include more context, including thinking/tool lines when useful96- If the user says `continue here`, do not tell them to leave the thread first.97 - Run `handoff <provider> <session-id>` without `--launch`98 - use the generated summary and handoff file as context99 - continue the work in the current Codex thread100 - do not stop at `If you want, I can...` unless the next task is genuinely ambiguous101- Never auto-resume, auto-handoff, auto-summarise, or auto-open anything immediately after listing.102 - listing is one step103 - action happens only after the user explicitly chooses it104- `Import into Codex History (Experimental)` is opt-in only.105 - add it as a selectable action106 - do not use it unless the user explicitly chooses it107- Do not answer `show all history` by describing, linking, or summarizing `state.json`.108 - `state.json` is an internal cache/export artifact109 - mention it only if the user explicitly asks for raw JSON, export files, cache debugging, or file paths110- For `show all history` and similar list requests, return the direct `latest` output itself.111 - do not replace it with totals-only summaries112 - do not ask for `provider + session id` before showing the actual list113- If the prior session already contains a clear unfinished task, continue that task directly.114 - Example: if the last unfinished ask was `show full repo structure`, start doing that115 - only ask a follow-up if multiple next steps are equally plausible or if risk requires confirmation116- The rule above applies only after the user has already chosen `Continue in Codex` or equivalent.117- Do not invent a different menu or a generic conversational close.118 - follow the list-first flow above119 - avoid endings like `If you want, I can...` when the user already asked to continue120- Avoid rigid reply menus like `tell me one of these only`.121 - accept natural requests such as `latest claude`, `show me more codex`, `continue this here`, `open the viewer`, `resume that claude one`