| name | agentmemory-0-8-10 |
| description | Persistent memory engine for AI coding agents with cross-session context capture, hybrid search (BM25 + vector + knowledge graph), and multi-agent coordination via MCP server. Works with Claude Code, Cursor, Gemini CLI, and any MCP client without external databases. Use when building AI coding agent workflows requiring persistent memory or semantic recall. |
| license | MIT |
| author | Tangled <noreply@tangledgroup.com> |
| version | 0.1.0 |
| tags | ["ai-agent","persistent-memory","mcp-server","hybrid-search","knowledge-graph","multi-agent"] |
| category | ai-agent-infrastructure |
| external_references | ["https://github.com/rohitg00/agentmemory/tree/v0.8.10","https://github.com/rohitg00/agentmemory/blob/v0.8.10/benchmark/COMPARISON.md","https://github.com/rohitg00/agentmemory/blob/v0.8.10/benchmark/LONGMEMEVAL.md","https://www.npmjs.com/package/@agentmemory/agentmemory"] |
agentmemory v0.8.10
Overview
agentmemory is a persistent memory system for AI coding agents that eliminates the need to re-explain architecture, rediscover bugs, or re-teach preferences across sessions. It runs as a background server powered by iii-engine and provides 43 MCP tools, 109 REST endpoints, and a real-time viewer on port 3113.
Built on iii-engine's three primitives (Worker/Function/Trigger), agentmemory replaces the traditional Express + Postgres + Redis stack with a single lightweight runtime. State is stored in file-based SQLite via iii-engine's StateModule, with an in-memory vector index for semantic search and a knowledge graph for entity relationships.
Key statistics:
- 95.2% retrieval recall at R@5 on LongMemEval-S (500 questions, ~115K tokens each)
- ~170K tokens/year vs 19.5M+ for full-history pasting (92% fewer tokens, ~$10/yr vs impossible)
- 43 MCP tools across core memory, governance, multi-agent coordination, and diagnostics
- 12 lifecycle hooks for automatic capture with zero manual effort
- Zero external database dependencies — SQLite + in-memory vector index + local embeddings
When to Use
- Setting up persistent memory for any AI coding agent (Claude Code, Cursor, Gemini CLI, OpenCode, Codex, Cline, Goose, Windsurf, Roo Code, Claude Desktop, Aider, Hermes, OpenClaw, Kilo Code)
- Implementing cross-session recall of coding decisions, architecture patterns, and bug fixes
- Building multi-agent workflows that share memory through leases, signals, and routines
- Reducing token costs by replacing full-history context injection with targeted memory retrieval
- Enabling semantic search over coding history when keyword matching is insufficient
- Setting up team memory with namespaced shared and private memories across team members
Core Concepts
Observations are raw captures of agent activity (tool uses, file edits, command outputs) recorded via lifecycle hooks. They flow through SHA-256 deduplication (5-minute window), privacy filtering (strips API keys, secrets, <private> tags), and synthetic or LLM-powered compression into structured facts, concepts, and narratives.
Memories are the compressed, long-term form of observations — typed as pattern, preference, architecture, bug, workflow, or fact. They carry strength scores (1-10), version chains with Jaccard-based supersession, relationship graphs, and TTL-based auto-forgetting.
Hybrid Search combines three retrieval streams: BM25 keyword matching with Porter stemming, vector cosine similarity over dense embeddings (6 providers including local ), and knowledge graph traversal via entity extraction. Results are fused with Reciprocal Rank Fusion (RRF, k=60) and session-diversified (max 3 results per session).