Your repo remembers. AI tools get less noise.
Local-first context compiler · SQLite vault · Token firewall · MCP bridge
Quick start · Install · CLI · Website · Examples
Remember more. Send less. Run faster.
Stop paying models to reread the same repo context. memory.cpp compiles decisions, fixes, rules, and traces into small verified packs — with secrets blocked, stale memory excluded, and everything inspectable on disk.
Raw context available 84,000 tokens
Compiled context 1,420 tokens
Estimated waste blocked 82,580 token positions
Signal density 8.4×
./scripts/install.sh # or: ./scripts/install.ps1
memory setup --developer --yes
memory wowFrom source: cargo build -p memory-cli && cargo run -p memory-cli -- wow
| Layer | Commands |
|---|---|
| Daily dev | memory dev morning · dev resume · dev next |
| AI context | memory compile "fix bug" --budget 1500 · context write --for cursor |
| Safety | memory token-firewall · memory doctor · memory warnings |
| Memory vault | memory remember · recall · ask · inbox review |
| Maps & share | memory map --output html · pr summary · handoff new-dev |
| Tooling | memory attach cursor --dry-run · agents-score · dashboard --html |
Full command reference
See the complete table in docs/cli.md — 80+ commands for compile, cache planning, trace compression, entity memory, flight recorder, MCP hardening, and more.
Local-first — SQLite under .memory.cpp/. No cloud account required.
Context compiler — Picks high-signal memory, drops duplicate & stale context.
Token firewall — Redacts secrets, quarantines injection patterns before prompts.
Provider packs — Cursor, Claude, Gemini, Continue, MCP — one repo, many outputs.
Evidence-backed — Every pack cites memory IDs you can inspect and edit.
Not a hosted SaaS. Not a vector DB you have to operate. A control plane for AI context that stays on your machine.
memory wow
memory compile "fix billing export bug" --provider openai --budget 1500
memory doctor "fix billing export bug" --provider openai
memory agents-scoreArtifacts land in .memory.cpp/reports/ — Markdown packs, doctor JSON, HTML dashboard. Deterministic transcript: ./scripts/demo-terminal.sh
flowchart LR
Repo[Repo signals] --> Inbox[Review inbox]
Inbox --> Vault[(SQLite memories)]
Vault --> Compiler[Context compiler]
Compiler --> Packs[AI packs & reports]
Vault --> Maps[Maps & handoffs]
Git · docs · terminal · CI · notes → reviewed memory → smaller, safer prompts.
| Start here | Deep dives |
|---|---|
| Quickstart | Context compiler |
| First five minutes | Inference bottlenecks |
| Developer workflow | Safety & privacy |
| AI context packs | Competitive positioning |
Static examples: token firewall · project map · PR comment
cargo test --workspace
./scripts/release-candidate.ps1 # fmt · clippy · test · docs checksCI runs on Linux, macOS, and Windows. Release binaries ship with checksums.
Read-only MCP by default. Terminal capture is opt-in. Candidate memories need approval. See SECURITY.md · privacy.
MIT © KirtiRamchandani
Star the repo if your AI tools should stop rereading the same context.