◇ OmniMemory
The memory & context layer for coding agents.
Your AI stops forgetting between chats — and stops confidently describing
architecture it never actually verified.

Claude Code · OpenCode · Antigravity · Cursor · Windsurf
(any AGENTS.md-aware IDE)
The problem
Every new session, your agent starts from zero. So it greps. It reads the same
four files it read yesterday, re-derives the same conclusions, and burns thousands
of tokens rediscovering what it already worked out — or worse, it guesses, and
invents an endpoint that has never existed.
Long-term memory helps, until it doesn't: memory written six weeks ago describes
code that has since moved, and nothing tells you which parts went stale. A confident
wrong answer is more expensive than no answer.
The approach
OmniMemory anchors every memory to git. A memory records the blob SHA of the
bytes it was derived from, so it can be re-checked against your working tree at any
moment. When the code moves, the memory says so — ⚠STALE in the block, a degraded
building on the map, an orphan in doctor.
CAPTURE (session + git) → STORE (SQLite, branch-tagged) → RANK + INJECT + ENFORCE
→ CHECK (staleness vs git) → VISUALIZE (dashboard · system map)
Local-first. No cloud, no telemetry, no paid data. The core is Python stdlib + SQLite.
Install
pip install omni-memory-agent
Claude Code plugin (session hooks + skill, no pip needed for injection)
/plugin marketplace add SinghAbhinav04/Omni-Memory
/plugin install omni-memory@singhabhinav
Runs with no API key. On Python ≥3.10 tree-sitter auto-installs for the exact
multi-language code graph; without it a stdlib backend still graphs Python (ast)
and JS/TS (regex) — approximate, but real.
Quick start
Two commands people mix up, because they do different things:
| |
|---|
omni-memory build | Creates the content. Reads your repo, captures decisions/flows/gotchas, builds the code graph, writes the docs. |
omni-memory bind | Connects it to your IDE. Installs session hooks + the cross-IDE AGENTS.md. Creates no memory. |
omni-memory build # 1. build memory + docs from your repo ← the content
omni-memory bind # 2. wire it into your IDE (hooks + AGENTS.md)
omni-memory ui # 3. browse memory, docs, graphs, savings
omni-memory doctor # anytime: verify the setup is healthy
About build: it reads your codebase with an agent/LLM. Run it inside an AI
IDE (so the agent does the analysis) or set a model key (omni-memory key gemini).
Without either, you still get the code graph + heuristic docs — just no AI-written facts.
After that it runs itself: memory is seeded once at session start, the agent pulls
what it needs on demand, and capture fires when the session ends or compacts.
See it
Ask memory instead of grepping. The agent gets ground truth with citation IDs
and an instruction to admit ignorance rather than invent:
$ omni-memory inject "how does rate limiting work"
=== VERIFIED PROJECT MEMORY (OmniMemory) ===
scope: 3 item(s) · branch 'main' + base 'main'
Rules: trust these; cite [id]s used; not here or in the code → say "not in memory"; re-verify ⚠STALE.
[a3f1c8d2] ✓ decision: Redis token-bucket for rate limiting, 100 req/min per key · gateway/limiter.py
[7b2e0194] gotcha: the limiter fails OPEN on Redis timeout — check before load tests · gateway/limiter.py
[c04d77ae] ~ flow ⚠STALE: request → limiter → router → handler · gateway/router.py
=== END MEMORY ===
Know what it's worth. Every pull is measured against what re-reading the cited
sources would have cost:
$ omni-memory gain
OmniMemory token savings · project: my-service
pulls : 142 · 37 session seed(s) · since 2026-06-02
served : 48.2k tok what memory actually cost
baseline (re-read): 512.6k tok reading the cited sources instead
saved : 464.4k tok (90.6%)
last 7 days : 61.1k saved · avg 3.2k / pull
method: baseline = sum of the source files each served memory cites (capped 8k
tok/file) + 250 tok search overhead per pull. Memories with no resolving
anchor earn no credit. Estimate, ~4 chars/token.
Find out when it's lying. doctor reports measured coverage, not schema claims: