@biglone/session-bridge
v0.1.13
Published
Cross-provider Codex session continuity CLI with resume context bridging, .codex history import, SSH clipboard support, and safe provider shim restore
Maintainers
Readme
session-bridge
Cross-provider session continuity toolkit for Codex workflows.
Run commands with ./bin/bridge (no global pip requirement).
NPM package mode is supported (launcher bootstraps Python runtime automatically).
Global install:
npm install -g @biglone/session-bridgeCLI aliases after global install:
session-bridge(primary)sb(short alias)csbridgecodex-session-bridge
Why this package
When you switch model providers/accounts, native /resume flows are often provider-isolated.
session-bridge helps you recover and continue project context safely by combining:
- unified session indexing across project
.codexand home~/.codexhistories resume-latestcontext reconstruction with clipboard-friendly output- SSH-first workflow support (
copy-local+ OSC52 fallback) - provider shim apply/run/restore for temporary cross-provider
/resumecompatibility - import pipelines for Codex rollout logs and Claude Code project logs
Typical search terms:
codex resume, cross provider session bridge, codex history import, ssh clipboard codex, osc52 resume.
Goal
Provide a local bridge so users can switch between different Codex providers/accounts and still recover:
- recent session list
- task context and decisions
- key commands/files changed
This project does not try to reuse vendor-native server session IDs. It rebuilds context in a new session.
Completed Milestones
- Plugin metadata and installable skeleton
- Local unified session store (SQLite)
- Provider adapters for import/sync
- Resume bridge command to reconstruct context
- Consistency checks against git state
Status
Release-candidate baseline:
- SQLite bridge store
bridge listwith provider filter (--provider)bridge resume/bridge resume-latestwith repository consistency checkbridge import-codexfor real local Codex rollout logsbridge import-claudefor real local Claude project logsbridge import-allto ingest both providers in one commandbridge list/bridge resume-latestauto-scan project-local.codexhistories, then fallback to home~/.codexhistories (including multi-account subpaths) before reading storebridge resumesupports optional--copy;bridge resume-latestdefaults to clipboard copy and supports--no-copybridge copy-localruns remoteresume-latestover SSH and copies the result into local clipboard (useful for SSH-first workflows)bridge shim apply/restore/status/runto temporarily rewrite Codexmodel_providermetadata for cross-provider/resume, with backup + restore manifestsbridge versionprints the current CLI/package versionbridge install-pluginto register into~/.agents/plugins/marketplace.jsonbridge sync-demofor synthetic test data- imported text is sanitized for common
token/key/bearersecret patterns - release governance docs (
CHANGELOG,CONTRIBUTING,SECURITY,CODE_OF_CONDUCT) - CI release gates for tests and package checks
Quick Start
See docs/quickstart.md.
NPM publish/use flow: docs/npm-publish.md.
Release checklist: docs/release.md.
Privacy policy: docs/privacy.md.
Terms: docs/terms.md.
Local release preflight command:
npm run release:checkGlobal Install Behavior
When installed globally via npm, plugin registration now runs automatically:
npm install -g @biglone/session-bridgeAuto-registration can be controlled with environment variables:
SESSION_BRIDGE_SKIP_AUTO_INSTALL=1: skip plugin registrationSESSION_BRIDGE_AUTO_INSTALL=1: force plugin registration even for local installs
