
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
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.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.