for people who run more than one coding agent
Ask Codex about the bug you fixed in Claude Code.
Every agent on your machine keeps its own history, in its own format, invisible to the others. uni-code indexes all of it into one local, searchable store and serves it back to every agent over MCP — search, handoff, and true cross-agent resume.
Switch back and forth. Nothing gets left behind. 切换自如,不落一事。
claude mcp add uni-code -- npx -y @yuxianglin/uni-code mcp
Measured, not estimated
One real MacBook (Apple M4, Node 24), the author's actual agent history — not synthetic fixtures.
What your agents can do now
One search, every agent
Messages, reasoning, shell commands, tool output — ranked across all agents at once.
Resume across agents
A native --resume reloads the last compaction summary plus the live window after it. uni-code rebuilds exactly that from the native files — for any agent.
no LLM involved — the only summary shipped is the one the source agent already wrote
中文检索,一等公民
Default tokenizers can't segment Chinese, and trigram engines can't serve two-character words like 部署 or 隔离. uni-code indexes CJK as overlapping bigrams — exact substring matching, mixed-language queries included.
隔离机制 → 隔离 · 离机 · 机制
How it works
- Native stores are read-only. uni-code never writes into an agent's directory.
- Everything stays local. No network, no telemetry; the store is chmod 0600.
- Zero runtime dependencies. Node's built-in SQLite; the MCP server is hand-rolled JSON-RPC.
- No daemon. Incremental re-ingest on each query, like
git status. - A derived cache that outlives the agents' own memory. Agents prune their history; the store remembers.
this page keeps the same promise — no external fonts, scripts, or trackers. view source.
Install
search_historylist_sessionsread_sessionget_handoffresume_session
Claude Code — as an MCP server
claude mcp add uni-code -- npx -y @yuxianglin/uni-code mcpCodex
codex mcp add uni-code -- npx -y @yuxianglin/uni-code mcpClaude Code — as a plugin, with a recall skill
/plugin marketplace add Lum1104/uni-code
/plugin install uni-code@uni-codeCLI — same store, for humans
npx @yuxianglin/uni-code search "that bug from last week"Node ≥ 22.5 · works with Cursor and any other MCP client (stdio: npx -y @yuxianglin/uni-code mcp) · run npx @yuxianglin/uni-code ingest once to warm a large history.