Keep project context portable across coding tools.
Move between supported coding agents without starting over. xtctx writes local MCP configs and managed instructions so the next agent can retrieve recent context through MCP.
What happens after setup
xtctx is not a dashboard or memory layer. It is project-local wiring plus MCP retrieval against transcript files your tools already write.
- 01
Run setup
xtctx writes project-level MCP config and managed instruction blocks. Antigravity MCP is always configured. Copilot CLI still requires --global-mcp.
- 02
Open another tool
The tool reads the managed instructions and can start xtctx over stdio as an MCP server.
- 03
Read recent sessions
MCP calls list sessions, open raw transcript messages, and search chronological transcript windows.
- 04
Check status
Status reports configured tools, selected skills, transcript freshness, and unsupported targets.
What xtctx writes
Setup writes config, managed instructions, selected skill targets, and a rebuildable SQLite cache. Raw transcript files remain the source of truth.
Five MCP tools
Agents can list recent sessions, open session detail, search transcript windows, check continuity status, and fetch a handoff manifest.
<!-- xtctx:begin -->
# xtctx Handoff
Tool: cursor
Project root: ~/projects/my-app
Integration mode: instruction-only
## Session Retrieval
- Call xtctx_recent_sessions to list sessions.
- Call xtctx_session_detail for raw messages.
- Call xtctx_search_sessions for transcript windows.
<!-- xtctx:end -->Managed setup files
Setup owns generated instruction blocks, MCP config, and selected skill targets so the repo wiring is repeatable.
$ npx -y xtctx setup
updated .xtctx/config.yaml
updated .xtctx/skills/xtctx-handoff/SKILL.md
updated AGENTS.md
updated .codex/config.toml
verified MCP configStatus output
Status reports configured tools, transcript freshness, selected skills, managed blocks, and unsupported targets.
$ npx -y xtctx status
configured
mcp command npx -y xtctx
cache 12 sessions
codex instruction only
claude-code executable hookSearch stays local
Raw transcript files remain the source of truth. SQLite is a rebuildable local index for ordered lookup and fallback keyword search.
cache .xtctx/state/xtctx.db
├── sessions
├── messages
├── retrieval_windows
├── vectors
└── fts_indexRun setup, then status
Start with setup in the repo. Use status to check configured tools, transcript freshness, selected skills, and drift.
Read the README for supported tools and local transcript notes.
Try it
Questions before using it in a repo
Short answers about setup, local storage, transcript limits, and what xtctx does not do.