A persistent-memory server for AI coding agents, built on the `iii` engine and extending Karpathy's LLM-wiki pattern with confidence scoring, lifecycle, knowledge graphs, and hybrid search. Exposes 53 MCP tools and 12 auto-hooks; zero external databases required.
- Storage
- Embedded SQLite plus the iii-engine; optional knowledge-graph extraction (entities + BFS traversal). 4-tier memory consolidation with versioning, supersession, TTL expiry, contradiction detection, and importance-based eviction. Secrets and `<private>` tags are stripped before storage.
- Retrieval
- Hybrid BM25 + vector + graph search fused with Reciprocal Rank Fusion (RRF, k=60), session-diversified (max 3 per session). SessionStart hook loads a project profile (top concepts, files, patterns) within a token budget (default 2000) and injects it into the conversation.
- Self-host
- Self-host: trivial
- License
- Apache-2.0
- Pricing
- Open source (Apache-2.0), free to self-host; npm package @agentmemory/agentmemory; no managed tier advertised · Free / OSS
- GitHub stars
- 26,828
- Last release
- 2026-07-19
- Last commit
- 2026-08-09
- First catalogued
- 2026-06-28
Strengths
- Zero external databases (embedded SQLite) lowers ops burden
- Hybrid BM25 + vector + graph retrieval with RRF fusion; multi-script tokenization (Greek, Cyrillic, Hebrew, Arabic, CJK with optional segmenters)
- Active release cadence and broad agent support via MCP/hooks (Claude Code, Codex, Copilot CLI, Cursor, Windsurf, Gemini CLI, Hermes, OpenCode, Cline); `agentmemory connect cursor` wires MCP in one command
- Memory governance: audit trail, git snapshots/diff, team namespacing, citation provenance
Watch out
- Self-reported benchmark numbers (95.2% retrieval R@5, 92% fewer tokens) are vendor claims, not independently reproduced — treat the README's "#1" framing as marketing
- Built on the `iii` engine (github.com/iii-hq/iii) — reviewer should confirm iii's maturity and license independently; agentmemory is pinned to iii-engine v0.11.2, and v0.11.6's new sandbox-everything model hasn't been adopted yet, so there's a live version-lag risk
- Native Windows engine setup is manual; `agentmemory connect` unsupported on Windows (WSL2 recommended)
- Google began sunsetting Gemini CLI's free/individual (AI Pro/Ultra, Code Assist for individuals) tier on 2026-06-18 in favor of Antigravity CLI; the README still documents a distinct `~/.gemini/settings.json` Gemini CLI connector alongside `agentmemory connect antigravity`, but flags Antigravity as the row to use post-sunset — confirm which binary you're actually running before wiring either one
Best for
- Coding agents needing a self-contained, no-external-DB persistent memory with hybrid search and team/namespacing
How it integrates
Benchmark results
| Benchmark | Value | Backbone | Trust | Source |
|---|---|---|---|---|
| longmemeval | 95.2 recall | — | Self-reported | rohitg00 (agentmemory authors) ↗ |
Sources
- Monthly card re-verification — GitHub API repo metadata: 26,316 stars, license Apache-2.0 confirmed, archived=false, last commit on the default branch 2026-07-29 (third-party)
- https://github.com/rohitg00/agentmemory (vendor)
- agentmemory README — How It Works, retrieval, consolidation (vendor)
- GitHub API repo metadata (stars, release, license) (third-party)
- GitHub API re-fetch: 24271 stars, pushed 2026-06-29; Windsurf confirmed in agents table (third-party)
- agentmemory README — MCP shim block (npx @agentmemory/mcp, stdio transport, AGENTMEMORY_URL env); CLI connect commands for Cursor/Claude Code/Copilot/Codex/Cline/Continue/Windsurf/Zed/Warp; @agentmemory/agentmemory and @agentmemory/mcp npm packages confirmed (vendor)
- GitHub API re-check — 25,189 stars, pushed 2026-07-13; latest tag still v0.9.27 (2026-06-07) (third-party)
- agentmemory README — standard MCP-block table lists a distinct `Gemini CLI` row (`~/.gemini/settings.json`, `gemini mcp add agentmemory npx -y @agentmemory/mcp --scope user`) alongside an `Antigravity (replaces Gemini CLI)` row noting 'Use after the 2026-06-18 Gemini CLI sunset' (vendor)
- Google Developers Blog — Gemini CLI stops serving Google AI Pro/Ultra and free Code Assist for individuals on 2026-06-18; Code Assist Standard/Enterprise and paid API-key users retain access; Antigravity CLI is the named successor (third-party)
- Monthly recheck — agent-memory.dev has no pricing page (no cost/paid-tier/managed-hosting content); Apache-2.0, self-hosted, 'runs on your machine, data stays local' (vendor)
- Monthly recheck of README — no managed/paid tier; iii-engine pinned at v0.11.2 (v0.11.6 sandbox-everything model not yet adopted); architecture (SQLite + iii-engine, zero external DBs) unchanged (vendor)
- Monthly recheck — GitHub API: not archived, license Apache-2.0 confirmed, pushed 2026-07-20 (third-party)
Last verified 2026-08-01 · updated by refresh-framework-cards