session-bridge-skill
v0.2.0
Published
Portable CLI and skill bundle for browsing saved Codex and Claude sessions and importing snapshot context without live resume.
Readme
Session Bridge
session-bridge is a portable CLI and skill bundle for:
- browsing saved Codex and Claude sessions
- previewing a chosen session
- importing a snapshot packet from a past session
- forking the current live Codex or Claude session into a new terminal target
It does not restore hidden reasoning, background tasks, or live tool state. Snapshot import is not live resume, and live fork only branches the provider's visible session history.
Install
Install from this repo:
bash install.shOr with npm:
npx session-bridge-skill installThis installs:
- Codex skill:
~/.agents/skills/session-bridge - Claude skill:
~/.claude/skills/session-bridge - Claude slash command:
~/.claude/commands/session-bridge.md
On first install, the CLI asks which terminal target should be used for fork-current and saves it here:
~/.session-bridge/config.jsonYou can skip the prompt and set it directly:
session-bridge install --terminal cmux --no-promptSupported terminal targets:
cmuxghosttyitermterminalcommandfor printing the command only
Main Commands
1. List saved sessions
All recent sessions:
session-bridge list --source all --limit 20Only Codex:
session-bridge list --source codex --limit 20Only Claude:
session-bridge list --source claude --limit 20Filter by keyword:
session-bridge list --source all --query handybus --limit 20JSON output:
session-bridge list --source all --limit 20 --json2. Preview a saved session
By list index:
session-bridge preview 3 --source all --messages 8By session id prefix:
session-bridge preview 019d23c7 --source codex --messages 83. Build a snapshot packet from a saved session
session-bridge pack 3 --source all --messages 12This writes a markdown packet under:
.omx/artifacts/session-bridge-<source>-<session>.mdUse this when you want to continue from an old session without attaching to its live runtime.
Fork The Current Live Session
fork-current supports both Codex and Claude.
Provider detection order:
- explicit
--provider CODEX_THREAD_IDCLAUDE_SESSION_ID
Default usage:
session-bridge fork-currentWith a first prompt:
session-bridge fork-current "continue from here, but focus only on release notes"Force Codex:
session-bridge fork-current --provider codexForce Claude:
session-bridge fork-current --provider claudePrint the exact command without launching:
session-bridge fork-current --terminal commandCodex behavior
Codex uses:
codex fork ...This creates a branched Codex session with a new session ID.
Claude behavior
Claude uses:
claude --resume <session-id> --fork-sessionThis creates a branched Claude session from the current Claude conversation when CLAUDE_SESSION_ID is available.
Terminal Behavior
cmux
cmux opens a real new cmux window, creates a new workspace there, and selects that workspace so the forked session is actually visible.
Ghostty, iTerm, Terminal.app
These targets open a new app window and run the generated fork command inside it.
command
This target does not open anything. It prints the exact command you can run manually.
Typical Workflows
Continue from an old session snapshot
session-bridge list --source all --limit 10
session-bridge preview 2 --source all --messages 8
session-bridge pack 2 --source all --messages 12Branch the current live Codex session into cmux
session-bridge fork-current --provider codex --terminal cmuxBranch the current live Claude session into the configured target
session-bridge fork-current --provider claudeCLI Help
session-bridge --help
session-bridge doctordoctor shows:
- configured terminal target
- detected current provider
- detected current Codex thread
- detected current Claude session
Version Sync
The skill version is defined in:
skill/SKILL.mdUseful commands:
npm run version:check
npm run version:sync
npm testnpm pack and npm publish also run the sync step automatically through prepack.
