loading…
Search for a command to run...
loading…
unerr is operational memory—a local runtime behind your agent's MCP enforcing shared code graphs, session memory & guardrails. No silent breakages. No context r
unerr is operational memory—a local runtime behind your agent's MCP enforcing shared code graphs, session memory & guardrails. No silent breakages. No context rot.
Stop babysitting your AI.
unerr is operational intelligence for your codebase — one local runtime, behind every MCP your agent speaks,
that catches the refactor about to break 7 call sites, remembers what the team already decided, and keeps context lean.
Joins no single-purpose memory or graph tool can make — because everything lives in one process.
Works with Cursor · Claude Code · Windsurf · Gemini CLI · Antigravity · GitHub Copilot CLI · and every MCP-compatible client.
npm install -g @unerr-ai/unerr
Zero configuration. Install, restart your IDE, and the next prompt is smarter.
Measured, not estimated: removes 86–90% of the tokens an agent spends navigating code —
same corpus, same tokenizer, with a fidelity gate that discards any "saving" that lost the answer. See the benchmarks →
Coding agents now write the code. The bottleneck moved — from writing code to an agent landing on the right code without burning turns, re-reading files it's already seen, or breaking things it couldn't see.
| The old way | With unerr |
|---|---|
| The agent refactors a function blind to its 24 callers — 7 sites break silently. | Cascade guard reads the call graph before the edit; every caller is on screen first. |
Conventions and decisions live in MEMORY.md / .cursorrules you hand-maintain and re-paste each session. |
Anchored memory + drift detection — facts pin to the code and get a drift signal when it moves, instead of going silently stale. |
| Five single-purpose MCP servers — memory, graph, compressor — that can't reach across each other. | One runtime — so cascade guard, convention drift, and loop breaker fire on joins no point tool can make. |
You've felt all four of these in the last 48 hours:
MEMORY.md, updating .cursorrules, and pasting session summaries than writing code.These aren't four problems. They're one: today's agents are incredibly smart but structurally blind and severely amnesiac. They grep when a senior engineer would check the call graph. They forget on Tuesday what they learned on Monday.
| You feel | What unerr does |
|---|---|
| Trust returns. The agent runs for an hour without you watching. | Every edit is preceded by a graph lookup. All 24 callers are visible before it touches the function. Refactors stop rippling silently. |
The babysitter tax disappears. You delete MEMORY.md and .cursorrules. |
A local fact store remembers what you decided, what failed, and the conventions the team accreted — with decay-adjusted confidence. Open the laptop on Tuesday and the agent already knows what you decided on Monday. |
| The agent stays sharp at turn 50. | file_read({entity}) returns 200 lines instead of 3,000. Shell output is compressed 93% on average. The context window stays uncluttered, so the model isn't fighting "lost in the middle." |
| Tool sprawl dies. | One graph, one set of tools, project-aware routing. Five MCP servers no longer compete for the agent's attention. |
What it looks like in your chat — before the Edit tool runs, unerr injects this into the agent's context:
⚡ unerr · cascade guard: editing
src/payments/gateway.tschanges a signature with callers that must be updated in the same change —processPayment: 24 callers at risk across 6 files (19 source, 5 test). Callget_references({key:'processPayment', direction:'callers'})and update every caller before finishing.
The outcome you get is agents that behave like senior engineers — checking dependencies before editing, remembering project history, refusing to thrash on a function they've already failed on three times.
Watch it run — a real Claude Code session in this repo. The agent attempts a signature change to extractFilePath; before the edit lands, unerr surfaces 12 callers at risk across 4 files, so the agent updates every one of them in the same turn instead of breaking them silently.
Cascade guard, live · unerr catches the 12 callers of extractFilePath before the edit ripples. ▶ Watch the full demo on YouTube.
Two places unerr shows up so you know it's working — inside the chat, and in a browser.
Inside the chat. Every coding turn opens with one line naming what unerr loaded ("loaded a convention you wrote yesterday for src/payments/gateway.ts…") and closes with one line totalling what it saved you ("this turn: 2 catches · ≈ 4.2k tokens saved · +5 turns of headroom this session"). Catches are named, countable events, not a ratio.
In a browser. A live dashboard at http://localhost:9847 reads from the same store the agent reads from over MCP — the graph it navigates, the facts it remembers, the tokens it didn't have to chew through, and the score showing which of those facts actually shaped the next answer.
End-of-turn receipt · every coding turn closes with one line totalling what unerr saved you — named, countable catches, not a ratio.
Dashboard · live overview — active sessions, recent tool calls, tokens the agent skipped this turn.
Token Trace · context kept out of the window, broken down by mechanism — graph hits, skipped re-reads, compressed shell output, deduped fetches.
More views in the full dashboard tour.
Three steps. Step 1 is once per machine; steps 2–3 are per repo.
npm install -g @unerr-ai/unerr
Puts the unerr binary on your PATH. If your shell can't find it (common with nvm, fnm, volta, pnpm), run unerr doctor once — it patches your shell config and won't need to run again.
cd ~/your-project
unerr install cursor
Writes the MCP config, skills, hooks, and instructions for that agent in the current repo. Swap cursor for any of the supported agents:
unerr install claude-code
unerr install cursor
unerr install antigravity
unerr install windsurf
unerr install gemini-cli
unerr install github-copilot-cli
Install multiple agents in the same repo — each writes its own config. Idempotent: re-running updates if content changed, skips if identical. Remove with unerr uninstall.
Close and reopen your IDE (or start a new chat session). Your agent picks up unerr through MCP — graph-backed tools, persistent memory, shell compression all available immediately.
Dashboard: http://localhost:9847 — open any time to watch unerr's operational intelligence at work in real time.
Need manual setup or any other MCP client?
unerr install --show-instructions <agent>prints copy-pasteable steps.
unerr is the layer your agents share — sitting behind every MCP they already speak. Every coding agent on your machine — Claude Code, Cursor, Windsurf, Antigravity — speaks MCP. MCP carries tool calls; it does not carry context. Without unerr, every agent rebuilds your codebase's dependency graph, conventions, and prior decisions from scratch — every session, by reading files blindly. With unerr, all of them read the same per-repo runtime over MCP, so your project's graph, memory, and guardrails carry across sessions and across IDEs.
The adjacent space already has strong point tools. unerr's job is not to out-feature any of them in their lane — it's to be the single per-repo runtime that joins them.
| Layer | Where point tools live | What unerr adds |
|---|---|---|
| Memory across sessions | dedicated memory tools | Memory tied to the current state of the code — facts get drift signals when the file they're about moves. |
| Code-graph navigation | dedicated code-graph tools | The graph is read before every file read — surgical context instead of 3,000-line dumps. |
| Output compression | dedicated compression tools | Compression is fed through the same MCP runtime as the graph and memory, not a separate tool the agent has to remember to invoke. |
| Convention enforcement | .cursorrules, CLAUDE.md hand-maintained |
Conventions auto-detected from ≥70% adherence in the code. No file to maintain. |
We deliberately don't ship a feature-by-feature checkmark matrix against the depth leaders on each lane — that's the trap. A dedicated memory tool will out-memory us on memory depth; a dedicated code-graph tool will out-graph us on graph aesthetics; a dedicated compressor will out-compress us on shell compression simplicity. The runtime is the join across all four lanes — not the depth on any one.
Three numbers behind the runtime:
One local process per repo. Four slices, joined deterministically — the joins are the product, not the slices. Point tools own one slice each. None of them can ship the joins without becoming a per-repo runtime themselves.
| Slice | What's inside | What the join enables |
|---|---|---|
| Live code graph | CozoDB · tree-sitter ASTs · SCIP-verified call graphs · 18+ languages · <5ms queries | Read before every file read. The agent opens 50 targeted lines and a caller list — not 3,000 lines and a guess. |
| Anchored memory | Typed facts · conventions auto-detected at ≥70% adherence · decay-adjusted confidence | Every fact is pinned to a file or entity in the graph. When the code moves, the fact gets a drift signal — never silent staleness. |
| Context delivery | Shell output compression (93% overall, 645+ command classifiers) · Web fetches (5–10× via Defuddle + BM25) · Entity-targeted file reads | Compression, graph, and memory share one process — the agent doesn't have to remember which tool to invoke for which kind of content. |
| Behaviour modules | cascade guard · convention drift · loop breaker · session continuity · auto-doc · change narrative · architecture guard | Each guardrail fires on a join — cascade-guard reads the graph before the edit, convention-drift compares new code against memory, loop-breaker watches the timeline. None of these are reachable from a single point tool. |
The unifying point. Drift detection requires memory anchored to a live graph. Cascade-guard requires the graph and the edit-intent ledger on the same process. Convention-drift requires the auto-detected pattern store and the new-code stream in the same memory space. These aren't "features" you can buy individually — they're emergent properties of the runtime, only available when all four slices live in one per-repo process.
Five disconnected MCP servers — one for memory, one for graph, one for compression, one for tracing, one for skills — burn ~55K tokens of schemas just to announce themselves (Anthropic's own engineering example). They can't reach across each other to fire any of these guardrails. That's the difference between a stack and a runtime.
AI Agent (Claude Code / Cursor / Windsurf / any MCP client)
│
├── stdio MCP ──→ unerr --mcp (bridge, per IDE session)
│ │
│ └── UDS ──→ unerrd (one lightweight Node process
│ per machine, auto-spawned,
│ exits after 30 min idle)
│ │
│ └── per-repo unerr process(es)
│ ├── CozoDB graph (in-process, <5ms)
│ ├── Fact store (cross-session memory)
│ ├── Timeline + ledger (every tool call)
│ ├── File watcher (incremental reindex)
│ ├── Convention engine
│ ├── Compression engine
│ └── Behavior modules
│
└── Dashboard ──→ http://localhost:9847 (SSE-streamed live)
One local DB per repo. Zero network calls. No API keys. No cloud. Your code never leaves the machine.
Full module map and source-tree breakdown: ARCHITECTURE.md.
Design principles — zero network calls; stdout is sacred (MCP JSON-RPC only, everything else to stderr); <5 ms query responses; first useful output <5 s (shallow index first, deep enrichment in background); graceful degradation (the agent still works if unerr is down, you just lose the operational intelligence layer).
Tech stack TypeScript (ESM) · CozoDB (Rust/NAPI) · web-tree-sitter (WASM) · MCP SDK · Ink (React CLI) · React + Vite (dashboard) · tsup · Vitest
unerr install <agent> # MCP config + skills + hooks + instructions for one agent
unerr uninstall # Remove unerr integration from this repo
unerr doctor # Check PATH + environment, auto-fix if unerr isn't on all shells
unerr status # Proxy health, entity count, graph age
unerr stats # Session statistics (tokens, tool calls, compression)
unerr --mcp # Stdio bridge — what your IDE invokes via .mcp.json
unerr pm status # Process manager: PID, uptime, repos, memory, idle countdown
unerr pm logs # Tail ~/.unerr/logs/unerrd.log
unerr pm dashboard # Open http://localhost:9847
unerrd is a lightweight Node process that supervises every registered repo. Your IDE invocation auto-spawns it; it exits cleanly after 30 minutes of no MCP activity. unerr pm --help lists the rest.
Grouped by what the agent gets, not by file:
get_entity, get_file, get_references, get_imports, search_code, get_conventions, get_critical_nodes, get_cross_boundary_links.get_project_stats, file_connections, get_test_coverage.file_read (context-aware, auto-injects conventions and facts), file_outline (structure without body).unerr_remember (user-stated facts with verbatim quote + confidence), record_fact (agent-detected conventions / decisions / anti-patterns), recall_facts (hierarchical scope + decay-adjusted confidence).mark_intent, mark_decision, mark_blocker, mark_resolution. Inline as the agent works; powers turn titles and the cross-session resume strip.fetch_url (DOM-extracted markdown, BM25 re-ranking, content-hash cache). Replaces built-in WebFetch.review_changes (graph-evidenced review of a diff — flags breaking callers, contract drift, duplicate logic).Every response carries inline ur|<tag> signals for high-priority guidance — drift, blast-radius warnings, circuit-breaker halts — so the agent acts on what it just learned without burning a turn.
{
"mcpServers": {
"unerr": {
"command": "npx",
"args": ["@unerr-ai/unerr", "--mcp"]
}
}
}
unerr removes 86–90% of the tokens an agent would otherwise spend navigating and reading code — measured, not estimated, across the same questions and the same tokenizer, with a fidelity gate that discards any "saving" that lost the answer. Methodology, reproduction commands, and per-repo results: benchmarks/README.md.
See CONTRIBUTING.md for setup, day-to-day commands, code conventions, and pre-PR checklist.
Elastic License 2.0 (ELv2) — free to use, modify, and distribute. Cannot be offered as a hosted service.
npm install -g @unerr-ai/unerr
unerr.dev · npm registry · Discord · X · LinkedIn · Fully local. No account. No cloud. Free.
Run in your terminal:
claude mcp add unerr -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.