
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
Switch coding agents without losing context. Generate handoff prompts across Claude Code, Codex, and OpenCode.
Formerly
cc-continue— existing installs still work, just usectx-switchgoing forward.
Switch coding agents without losing context. Agent handoff for Claude Code, Codex, and OpenCode.
You're in the middle of a coding session. Things are working. Progress is being made.
And then you need to switch.
Now you're stuck.
You switch to another agent — but:
Your work shouldn't reset just because you switched tools.
npx ctx-switch
It captures your current session — code, context, decisions, errors — and generates a clean, structured handoff prompt so another agent can continue immediately.
No re-explaining. No rebuilding context. No wasted time.
Just continue where you left off.
Switch agents. Don't restart.
codex, cursor, chatgpt, or generic--refine)sessions command to browse recent sessionsdoctor command for diagnosticsctx-switch finds the latest session for your project# Run instantly
npx ctx-switch
# Or install globally
npm i -g ctx-switch
cd my-project
# Interactive mode
ctx-switch
# Specify source
ctx-switch --source claude
ctx-switch --source codex
ctx-switch --source opencode
# Target a specific agent
ctx-switch --source claude --target codex
# Use a specific session
ctx-switch --source claude --session <id>
# Refine output with LLM
ctx-switch --refine
# List sessions
ctx-switch sessions --source claude --limit 5
# Save to a file
ctx-switch --output ./handoff.md
# Run diagnostics
ctx-switch doctor --source codex
Use --refine to improve the generated prompt via an LLM.
On first use:
Enter your OpenRouter API key: sk-or-v1-...
Saved to ~/.ctx-switch.json
Get a key: openrouter.ai/keys
Or set manually:
export OPENROUTER_API_KEY=sk-or-v1-...
| Flag | Description |
|---|---|
--source <name> | claude, codex, opencode |
--target <name> | generic, codex, cursor, chatgpt |
--output <file> | Save prompt |
--session <id|path> | Use specific session |
--refine | Refine prompt via LLM |
--provider | Refinement provider (default: openrouter) |
--model | Override model |
--api-key | Override API key |
| Source | Storage Path | Format |
|---|---|---|
| Claude Code | ~/.claude/projects/<encoded-cwd>/*.jsonl | JSONL |
| Codex | ~/.codex/sessions/<year>/<month>/<day>/*.jsonl | JSONL |
| OpenCode | ~/.local/share/opencode/opencode.db | SQLite |
--refine)cc-continue still works — it's now an alias for ctx-switch.
npm uninstall -g cc-continue
npm i -g ctx-switch
MIT
FAQs
Switch coding agents without losing context. Generate handoff prompts across Claude Code, Codex, and OpenCode.
The npm package ctx-switch receives a total of 24 weekly downloads. As such, ctx-switch popularity was classified as not popular.
We found that ctx-switch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.