resume-plugin-cc
Portable resume skills that import unfinished Codex and Grok sessions into Claude Code or Devin
- JavaScript
- Node.js
- Claude Code Plugin SDK
- Devin Plugins
A Claude Code and Devin plugin that imports unfinished Codex or Grok coding sessions as a bounded, redacted handoff with a current Git snapshot; the receiving agent verifies the work before continuing.
Problem
Work started in Codex or Grok often ends mid-task, and the next agent session starts blind. Copying transcripts by hand wastes context, risks leaking secrets, and repeats stale claims that the working tree no longer supports.
Approach
The plugin is a read-only broker between coding harnesses. /resume:from lists recent Codex or Grok sessions for the current repository, imports a chosen session (explicit id or latest), and can continue a supplied task. /resume:doctor reports adapter availability without changing setup.
Codex history is read through the App Server protocol; Grok history through grok sessions list and grok export. No source-model credits are used for extraction. History is normalized into a versioned, size-bounded JSON handoff that keeps goals, corrections, and plans, drops hidden reasoning and raw output, and masks common secret formats before anything reaches the new session. Nothing is persisted to disk.
The workflows ship as portable skills, so Claude Code and Devin register the same slash commands, and each host resolves the plugin root through its own convention. An internal model-only resume-runtime skill holds the broker’s debugging contract; it is not a user command.
Outcome
A verified Codex-to-Devin handoff: a fresh Devin session ran the installed public command, correctly separated transcript claims from tree facts, finished the unfinished task, and reached 17/17 passing tests. 31/31 fixture tests and strict plugin validation pass.
Architecture
Committed Node.js 20 .mjs code with no runtime dependencies or build step. Claude Code and Devin skills spawn scripts/resume.mjs (list, inspect, doctor), which reads source history, redacts, builds the handoff packet, and snapshots the current Git state read-only. Fixture tests isolate HOME/XDG paths and use fake harness executables. Written up in detail in Resuming Codex and Grok Work in Claude Code and Devin.