Switch between Claude, Copilot, Cursor, and Codex without re-explaining a thing. Cross Context keeps persistent memory of your work — readable by any agent, any session.
You're deep in a feature. You've explained the architecture, scoped the right files, made the hard calls. Then the tokens run out — or you need a second opinion from a different model. And you start from zero.
Claude Code hits its context limit mid-feature. You open ChatGPT. The codebase structure, the architectural decision you just made, the three files in scope — gone. Fifteen minutes of re-explaining before you write a single line.
You come back the next morning. The agent has no memory of yesterday. It re-reads your file tree, re-asks what framework you're using, re-discovers what you spent an hour explaining last session.
Cross Context stores everything in ~/.xctx/ — not inside Claude, not inside Copilot.
Any agent you wire up reads the same persistent memory. Switch agents, start a new session, bring in a colleague — the context is always there.
What you're building right now — linked files, decisions, blockers, and current status. Updated as you work, read at every session start.
xctx feat context
Architectural patterns and constraints for this codebase. Auth setup, DB conventions, API contracts — the things every agent should know before touching a file.
xctx memory add --project
Your personal patterns, preferences, and expertise. Follows you across every project and every agent — not tied to any codebase.
xctx memory add --user
Natural-language search over your entire codebase. Runs fully on-device — no API keys, no code sent anywhere.
xctx search "…"
File-level dependency map via Tree-sitter. Know what imports what and what breaks before you change anything.
xctx graph deps
npm install -g cross-context
xctx init # installs git hook, sets up ~/.xctx/ xctx update # indexes your codebase (~88MB model on first run)
xctx feat start payment-flow xctx feat decision "Stripe Checkout — simpler for MVP" xctx feat link-file src/routes/payments.ts
xctx install claude # Claude Code xctx install codex # OpenAI Codex / ChatGPT xctx install copilot # GitHub Copilot xctx install cursor # Cursor xctx install windsurf # Windsurf
Each install generates the right config file for that agent and registers the MCP server. Switch agents anytime — the memory stays.
xctx install claude
CLAUDE.md + skill file + MCP
xctx install copilot
copilot-instructions.md + skill + MCP
xctx install codex
AGENTS.md + skill file + MCP
xctx install cursor
.cursor/rules + skill + MCP
xctx install windsurf
.windsurfrules + skill + MCP
Also available as an MCP server for any MCP-compatible client: xctx mcp serve
All memory is stored in ~/.xctx/. The default embedding model (all-MiniLM-L6-v2) runs entirely on-device via ONNX Runtime.
No code, decisions, or context is ever sent to any server.
Optionally use Ollama or OpenAI for better embedding quality.