Memory
Knowledge graph-based persistent memory system
MOmodelcontextprotocol/servers92k200 new stars in the last 7 days
Long-term memory for AI agents: hybrid vector and full-text recall, rooms, time-travel.
Long-term memory for any AI agent.
One Rust binary, runs offline, no API key. Self-host it free, or let us host it on Uteke Cloud.
Quick start · Benchmarks · Connect your agent · Docs · Uteke Cloud · Bahasa Indonesia
# Install (macOS Apple Silicon, Linux; Windows: see below)
curl -sSL codecora.dev/uteke/install | sh
# Store a memory
uteke remember "Deploy v2.1 to staging at 3pm"
# Search it back: by meaning AND by keyword
uteke recall "when do we deploy?"
# Look at what is stored, in a read-only browser page
uteke view
No API keys, no Python, no cloud account. The first run downloads the embedding model (~200 MB, one time).
Give your agent (Claude Code, Cursor, Hermes) the same memory with one line:
// .mcp.json
{ "mcpServers": { "uteke": { "command": "uteke-mcp" } } }
New to Uteke, or you are an AI agent? Run uteke onboard. It detects your setup, asks which agent you use, and wires it up. 📖 Onboarding
Rather not run anything locally? Uteke Cloud runs the same engine for you: add one URL to Claude, sign in, done. Free during the open beta.
| Method | Command |
|---|---|
| Homebrew | brew install codecoradev/tap/uteke (macOS Apple Silicon & Linux) |
| Cargo | cargo install uteke-cli |
| Docker | docker run -d -p 127.0.0.1:8767:8767 -v uteke-data:/data codecoradev/uteke:latest --host 0.0.0.0 |
| Binary | GitHub Releases (macOS, Linux, Windows) |
| Windows (PowerShell) | powershell -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/codecoradev/uteke/main/install.ps1 | iex" |
LongMemEval-S (ICLR 2025) hides the facts an agent needs across ~115 chat sessions per question and checks whether retrieval finds them. 500 hand-curated questions, five memory abilities. Uteke runs the full suite with zero LLM calls in the retrieval path: local embeddings, one CPU, deterministic.
Scored the way the benchmark's own retrieval scorer does it: the 470 answerable questions (the 30 abstention questions are left out), top 5 sessions.
| LongMemEval-S, 470 questions | Uteke v0.24.0 | MemPalace (raw)¹ | agentmemory (BM25 component)² |
|---|---|---|---|
| recall_any@5 (at least one evidence session in the top 5) | 98.3% | 96.6% | 96.2% |
| strict recall_all@5 (every evidence session in the top 5) | 87.9% | 85.7% | 84.7% |
| LLM or paid API in retrieval | none | none | none |
The 98.2% in the badge is the same Uteke run over all 500 questions, abstention included (strict: 87.6%).
Self-reported by each project; we did not run any other tool's software. ¹ MemPalace publishes 96.6% over all 500 questions and no strict figure; the 470-question counts here (454 any, 403 strict) are our recount of the ranking file it committed, against the official gold labels, and match the recount gbrain-evals published for the same file. ² agentmemory's 2026-10-28 receipt, BM25 component only; its full hybrid scored 95.2% over all 500 in an older run its own page labels historical. The chart adds the rows that need an LLM or a paid API, and they are higher: MemPalace with an LLM rerank (99.4% / 90.0%, same recount) and gbrain with OpenAI embeddings and a Voyage reranker (100.0% / 96.0%, its own report; it returns 5 chunks, not 5 sessions). Strict is the harder metric and the one the official scorer prints; 65% of questions have more than one evidence session. None of these is held out: gbrain was tuned on these questions, and Uteke's fusion weights on a 50-question subset. Counts, sources and how to recount: benchmarks/longmemeval/COMPARISON.md. On all 500 questions strict was 88.0% for v0.16.0 to v0.20.0 and 87.6% for v0.24.0: two questions moved a gold session across rank 5 with identical top-50 sets (RESULTS.md).
Stable across releases (full 500 questions, scored from committed raw, RESULTS.md):
| Release | v0.16.0 | v0.17.0 | v0.19.0 | v0.20.0 | fix 32a5cf3b | v0.24.0 |
|---|---|---|---|---|---|---|
| recall_any@5 | 98.2% | 98.4% | 98.2% | 98.2% | 98.2% | 98.2% |
| strict recall_all@5 | 88.0% | 88.0% | 88.0% | 88.0% | 88.0% | 87.6% |
Re-validated 2026-11-08 after the #1690 import fix: strict@5 identical (88.0%), strict@10 +1 question (95.4%), zero misses@50 — four questions shifted partial gold ordering, none lost all evidence. The v0.24.0 column is the official release binary (2026-11-17): recall_any@5 and recall_any@10 are unchanged (98.2%, 98.8%), strict@10 is 95.2%, zero misses@50, and strict@5 differs by the two boundary questions in note ².
By question type (recall_any@5, v0.24.0, the 470 non-abstention questions; identical to v0.20.0):
| knowledge-update | single-session | temporal | multi-session |
|---|---|---|---|
| 100% | 96.7–98.2% | 98.4% | 98.3% |
Every question's evidence lands in the top 50 (zero misses). What's left is ordering when a question needs several sessions at once: strict recall_all@5 is 87.6% against a 99.4% ceiling, and most misses lose exactly one session.
🎯 Don't trust our benchmark. Run it yourself. Public dataset, committed raw outputs for every validated release, scoring you can recompute in ~20 lines of Python. Verifying the committed results takes a minute and needs no embedder; re-running all 500 questions costs about $10. 👉 benchmarks/longmemeval/REPRODUCING.md · 🧾 Receipts: v0.24.0 run · v0.19.0 run
LoCoMo. LoCoMo end-to-end QA measures answer accuracy, and the result depends on the LLM answerer and the LLM judge used. In an internal comparison, identical answers were scored up to 8 points apart when only the judge model was swapped. For that reason we do not publish a single LoCoMo number in this README. The full table, the per-judge figures and the receipts are in benchmarks/locomo/RESULTS.md. Retrieval recall, which needs no judge, remains the metric we rely on.
uteke bench --counts 100,1000,10000 measures latency and throughput on your own machine. 📖 Benchmark docs
The v0.20.0 run, all 500 LongMemEval-S questions, no LLM call in retrieval (v0.24.0 is in the table above: strict recall_all@5 87.6%, coverage@5 94.2%). Raw outputs are committed: check them in a minute, or re-run everything for about $10.
On Monday you tell your agent how you deploy. By Thursday it has no idea. Every session starts from zero, and every agent keeps its own half-memory.
Uteke gives all of them one long-term memory that runs on your own machine:
--at), a relationship graph, a document engine, and decay for stale memories.Same engine, two ways to run it.
| Self-host (this repo) | Uteke Cloud | |
|---|---|---|
| Engine and recall | Full, nothing paywalled | Same engine |
| Runs on | Your laptop or your server | Hosted for you |
| Connect an agent | uteke-mcp in .mcp.json | Add https://uteke.app/mcp to Claude, sign in |
| Your data | Never leaves your machine | Stored by us; export any time |
| Price | Free, Apache-2.0 | Free during the open beta (limits) |
Choose self-host if your data must stay on your machine, or you want to run Uteke inside your own infrastructure. Choose Cloud if you want one memory across several devices and agents without running a server.
| Client | How |
|---|---|
| Claude Code | .mcp.json: { "mcpServers": { "uteke": { "command": "uteke-mcp" } } } · details |
| Claude Desktop | config snippet |
| Cursor | same .mcp.json as Claude Code · details |
| Codex | uteke connect codex installs recall and capture hooks · details |
| Hermes | stdio or HTTP · details |
| Any MCP client | stdio (uteke-mcp) or Streamable HTTP (uteke-serve) · transports |
| Claude on the web, desktop or mobile | add https://uteke.app/mcp as a connector, sign in (Uteke Cloud) |
| No MCP? | any agent that can run a shell command can call the uteke CLI |
# Create a shared room
uteke room create engineering --title "Team decisions"
# Alice's agent stores a decision
uteke remember "We chose Redis for caching over Memcached" \
--room engineering --author alice
# Bob's agent adds context
uteke remember "Redis cluster: 3 nodes, 2 replicas each" \
--room engineering --author bob
# Any agent can recall the shared history
uteke room recall engineering "caching decision"
Author attribution on every memory; cross-agent recall without manual sync. 📖 Rooms
| Memory | Search | Integrations | Privacy & operations |
|---|---|---|---|
| Rooms with author attribution | Fusion of vector + full-text (default) | MCP over stdio and Streamable HTTP | Fully offline, no telemetry |
Point-in-time recall (--at) | Relationship graph and auto-links | Server mode and Docker image | Secrets masked before storage |
| Tags, entities, typed memories | Salience and recency boosts | Document engine (uteke doc) | Signed upgrades (cosign) |
| Partial updates and citations | Dream cycle: dedup, backlinks, orphans | Batch import, full export/import | Two vector engines (usearch, vecq) |
| Feature | What it does |
|---|---|
| 🧠 Hybrid + Fusion Search | Vector similarity + FTS5 full-text search, merged by Reciprocal Rank Fusion (RRF). Since v0.16.0, fusion (a weighted RRF of the vector and hybrid rankings) is the default recall strategy. Finds by meaning AND exact keywords. |
| 🏠 Rooms | Multi-agent shared memory. Group memories by context (meetings, projects, clients). Multiple agents read/write to the same room with author attribution. Cross-agent recall without manual sync. |
| ⏳ Time-travel | Recall memories as they existed at any point in time. uteke recall "deploy" --at 2025-01-15T00:00:00Z |
| 🏷️ Rich Metadata | Tags, entities, categories, key:value pairs on every memory. |
| 🧩 Memory Types | Typed categories (fact, procedure, decision, etc.) with auto-inference. |
| ✏️ Partial Updates | uteke update <id> changes content, tags, importance, pin or type in place. |
| 📎 Citations | Source attribution on every memory (URL, file, user, import batch). |
| 👤 Author | Who wrote a memory, with or without a room (--author), plus human vs agent type. |
| 🚫 Rejected Values | uteke forget <id> --reason wrong records a tombstone: every write path (remember, update, import, supersede) refuses that value again, matched after normalization, until uteke tombstone remove. |
| Feature | What it does |
|---|---|
| 🔗 Relationship Graph | Link memories with typed edges (supersedes, contradicts, references). Auto-backlinks. |
| 🔗 Cross-Entity Linking | Bidirectional memory↔document references via [[doc-slug]] wikilinks. |
| 🤖 Cosine Auto-Linking | Automatically creates similar_to edges between related memories. |
| 📉 Smart Decay | Composite importance scoring. Pin what matters, let stale memories fade. |
| 📈 Salience + Recency | Dual-axis recall boost by memory type and age. |
| 🔍 Orphan Detection | Find disconnected, low-importance memories for cleanup. |
| 🌙 Dream Cycle | One-command maintenance: lint → backlinks → dedup → orphans. |
| 🧬 Consolidation | Merge near-duplicate room memories into fewer, denser records: segment-level planner, provenance trust policy, per-pair control. |
| Feature | What it does |
|---|---|
| 🔌 MCP Server | JSON-RPC over stdio + Streamable HTTP. Works with Claude Code, Cursor, Hermes. |
| 🖥️ Server Mode | Persistent daemon: eliminates cold-start embedding load on every call. |
| 📂 Batch Import | Import entire directories with auto-strategy routing (document vs. memory extraction). --defer-embed stores a JSONL file first and embeds later in portions (repair --reembed --limit). |
| 🪝 Agent Hooks | uteke connect claude|codex|cursor installs recall and capture hooks in the agent app (pi/hermes: the memory-provider plugin); uteke disconnect removes exactly them. See Claude Code, Codex, Cursor. |
| 🎙️ Raw Capture | Queue conversation turns with no LLM call (uteke capture, POST /capture, MCP uteke_capture); extract-queue run or the server's schedule turns them into memories later, on a budget. Opt-in. |
| 📝 Document Engine | Wiki/knowledge base with uteke doc create/get/list and auto-chunking. |
| 📥 Import/Export | JSONL backup and restore; export --full / import --full move the whole store: documents, rooms, the graph and each memory's author and provenance (vectors are rebuilt on the target). |
| 🔑 View-Only API Keys | Read-only tokens for safe GET-only access to the server. |
| Feature | What it does |
|---|---|
| 📦 Single Binary | Zero dependencies. No Python, no API keys. Local-first by default. |
| 🐳 Docker Ready | Official multi-arch image on Docker Hub. Run as a shared service for teams or cloud deployments. |
| 🔒 Fully Offline | Local ONNX embeddings (EmbeddingGemma Q4, 768d). No telemetry, no cloud. The only network call is a daily release check, off with UTEKE_NO_UPDATE_CHECK=1. |
| 🧱 Fenced MCP Output | MCP read tools wrap stored text in <uteke-stored-data> so an agent treats recalled memories as data, not instructions (UTEKE_MCP_FENCE=0 turns it off). |
| 🛡️ Privacy Filter | Secrets (API keys, tokens, .env values) are masked before a memory is embedded or stored; [privacy] mode = "strict" refuses the write instead. |
| ✍️ Signed Upgrades | uteke upgrade verifies the release's cosign (Sigstore keyless) signature before installing. |
| ⚡ Recall Cache | LRU cache eliminates redundant embedding for repeated queries. |
| 🔥 Tiered Memory | Hot/Warm/Cold tracking with auto-cleanup of stale memories. |
| 🧮 Two Vector Engines | usearch (HNSW, default) or vecq (4-bit quantized, pure Rust, ~3x smaller index), chosen at runtime. |
| 🔄 Embed Fallback | Gracefully degrades to no-op embedder if local model fails (never crashes). |
| 📊 Benchmarks | Built-in uteke bench for perf testing. See results. |
graph LR
Input[Query] --> Embed[Local embedder<br/>EmbeddingGemma Q4, 768d]
Input --> FTS5[Full-text search<br/>SQLite FTS5]
Embed --> Vec[Vector index<br/>usearch or vecq]
Vec --> Hybrid[Hybrid<br/>vector + FTS5, RRF k=60]
FTS5 --> Hybrid
Vec --> Fusion[Fusion<br/>vector x1.7 + hybrid x1]
Hybrid --> Fusion
Fusion --> Boost[Salience + recency]
Boost --> Results[Ranked results]
style Input fill:#131A15,color:#F3F8F4
style Fusion fill:#1F908C,color:#fff
style Results fill:#0B6667,color:#fff
Everything runs in-process: no network, no server required. --strategy vector | fts5 | hybrid | graph picks a single stage instead.
Local-first (default): single binary, zero infrastructure. Your data stays in ~/.codecora/uteke/.
Docker / server mode: for teams or remote agents.
docker run -d -p 127.0.0.1:8767:8767 -v uteke-data:/data codecoradev/uteke:latest --host 0.0.0.0
# or, without Docker: uteke-serve --port 8767
| Getting started | Installation · Getting started · Onboarding |
| Reference | CLI reference · Configuration · Docker · HTTP API |
| Concepts | Viewer · Rooms · Organizing memories · Architecture |
| Integrations | MCP setup (Claude Code, Claude Desktop, Cursor, Hermes) · Hermes · Claude Code / Codex / Cursor hooks |
| Security | SECURITY.md (vulnerability reports, release signing) |
| Benchmarks | docs/benchmarks.md · RESULTS.md · Reproduce it yourself |
The engine in this repo is complete and runs fully offline; nothing in it calls the Cloud. Uteke Cloud is a separate, optional hosted service that runs the same engine for people who don't want to run anything locally, and you can export your data from it any time. The open-source engine stays full-capability, and none of the benchmark results above depend on the Cloud.
A file works until you need to find something by meaning: "ship the release" won't match "deploy v2.1" with grep. Uteke searches by meaning and by keyword at once, keeps who wrote each memory, and works the same for every agent you use, instead of one file per tool.
Many memory layers need cloud API keys (OpenAI or another LLM) and extra infrastructure (Docker, Postgres, Qdrant), and your data is sent to an LLM provider. Uteke is a single binary with no API keys; embeddings run locally via ONNX. See the benchmarks.
Most of them are full-text only (keyword matching). Uteke fuses vector search with full-text search, so you can search by meaning as well as exact words, and adds rooms, time-travel, a relationship graph, decay, a document engine and batch import.
Yes. The embedding model (EmbeddingGemma Q4, 768d) downloads once (~200 MB) on first run. After that, memory operations make no network calls and there is no telemetry. The binaries check GitHub for a new release once a day; set UTEKE_NO_UPDATE_CHECK=1 to turn that off. If the local model fails, Uteke degrades to a no-op embedder; it never calls a cloud API.
~45 ms as a CLI (31 ms average at 10K memories on the published bench host; flat from 100 to 10K memories). No network round-trip, and an LRU cache skips re-embedding repeated queries.
Uteke has 1,300+ tests, mutation testing before each release, CI on every pull request, cosign-signed releases and a benchmark harness. It's used in production by the CodeCora team and other early adopters. It is still 0.x (see the release badge), so expect rough edges, but the core is stable.
cargo build --workspace # Build
cargo test --workspace # Test
cargo clippy --workspace --all-targets -- -D warnings # Lint
cargo fmt --all # Format
Contributions welcome. Read CONTRIBUTING.md for the full guide, or say hi in Discussions.
Apache License 2.0. Use it, fork it, ship it.
If Uteke helps your agents remember, a ⭐ helps other people find it.
Knowledge graph-based persistent memory system
MOmodelcontextprotocol/servers92k200 new stars in the last 7 days
Memory that reasons: continual learning for stateful agents. Better context, fewer tokens.
PLplastic-labs/honcho8.4k102 new stars in the last 7 days
Semantic search across Sui documentation and knowledge sources, powered by kapa.ai
MYMystenLabs/sui7.8k
Convert scanned PDFs to Markdown or EPUB, and translate PDF and EPUB books via MCP.
OOoomol-lab/pdf-craft6.8k35 new stars in the last 7 days
Access Gemini Notebook via CLI and MCP Server.
JAjacob-bd/gemini-notebook-mcp-cli6.6k78 new stars in the last 7 days
Search, read and cite papers from your Zotero library in any AI agent.
5454yyyu/zotero-mcp6.1k97 new stars in the last 7 days