tigerless-labs /agent-memory
Long-term memory runtime for AI agents — plain Markdown as the source of truth, local ranked retrieval, and an independent sleep-time Manage layer. Claude Code and Codex share one store. No API key.
★ 4,308⑂ 206👁 95⑃ 113● 11▤ 0◈ 0
4,308
stars
+-6
206
forks
95
watchers
113
prs
11
issues
0
releases
0
discussions
README
agent-memory: the long-term memory runtime for AI agents Invariants · Skill · Issues ! ! ! ! An agent that closes its session forgets everything it learned in it. agent-memory is the runtime that fixes that, for any agent — not only coding ones. Markdown files in one store are the single source of truth, the SQLite index beside them is a cache you can delete at any time, and Claude Code, Codex CLI, Muse Code, and anything else that can run a shell command share that store. Retrieval is local and ranked, and it answers with paths rather than pasted text — the agent opens each hit only as deep as the task needs. Writes do not wait for the agent to remember to make them: they fire at conversation boundaries. A sleep-time pass then consolidates and forgets by value, on its own clock. None of it needs an API key. Two lines, one store Agent memory has grown along two architectural lines. One builds a retrieval engine — embeddings, a knowledge graph, a ranking pipeline — which finds the right thing, but hands the agent an opaque chunk it cannot inspect and a store it cannot migrate off. The other hands the agent a filesystem — markdown it reads directly, browsable with ls and grep — which is legible and costs nothing to run, but does not rank, and stops scaling the moment the tree outgrows a listing. agent-memory is the two of them in one store: the retrieval engine indexes a filesystem the agent can also just read. Relations live as links inside the memories, a local index ranks them, and every hit resolves to a whole markdown file on disk. Recall gains the precision of a graph and a vector search without giving up a plain directory an agent can walk — and it stays fast, because nothing in the read path calls a model or crosses a network. Retrieve by path, then read by level Recall does not paste text into your context. It answers with an L0 list — one-line abstract, file path, anchor, score — and the agent opens what it wants at the depth the task needs: bash mem recall "why files instead of a database" L0 list, 8 entries by default mem recall "why files instead of a database" --limit 20 more Memory candidates mem read --level outline headings only; or abstract, or full mem context "why files instead of a database" both in one call, top few expanded in full mem trace cited raw messages, when needed Index line → abstract → full file → raw material: each rung costs an order of magnitude more than the last, and each is a place to stop. Long files add two free rungs — the anchor that matched, and an outline computed at read time. Design commitments - Three read tracks, so a miss on one is not a miss. Deterministic MEMORY.md injection at session start; BM25 recall over an FTS5 index, with a vector plugin fused in by RRF when you want one; and the plain directory tree, reachable with ls and grep when both fail. Same-directory memories are a free neighbourhood, and links
Top issues
相关报道 (9)
腾讯网腾讯云数据库 Agent Memory 开源 80 天 Star 破万,全新发布 Team Memory2026-08-06blog.csdnTencentDB Agent Memory: 让 AI Agent 团队拥有“集体记忆”2026-08-05bilibili手把手教你从零学会看Github项目,以MemoryOS为例【代码精读】2026-01-28blog.csdnAgent-Memory真的是一个值得去做的方向2025-06-11QQ NewsTencentDB Agent Memory 新增DeepSeek Harness 桌面端接入支持2026-10-09QQ NewsTencentDB Agent Memory 全球正式开源:让 Agent 沉淀经验,让人专注创造2026-05-1451CTO迎接智能体的「觉醒时刻」:EverOS全球公测开启Agent Memory自进化序章2026-04-15InfoQ.cnGTC 2026 发布:矩阵起源 Memoria 项目开源——业内首个“Git for Memory” Agent 可信记忆框架2026-03-17新浪财经最火、最全的Agent记忆综述,NUS、人大、复旦、北大等联合出品2025-12-22
News & coverage (9)
CybernewsAI agents are leaking their owners’ secrets on GitHub: thousands of files exposed2026-11-09remio.aiOKF Agent Memory Hit Hacker News, but Git-Native Memory Still Has to Prove Itself2026-09-06irblog.prnewswire.comTencentDB Agent Memory Tops 20,000 GitHub Stars in 90 Days, Launches Team Memory for Multi-Agent Collaboration2026-08-13Help Net SecurityOWASP Agent Memory Guard: Stop AI agents from being weaponized through their own memory2026-05-31MicrosoftInside Wazari.ai’s GitHub-based agent memory2026-09-30DevOps.comGitHub’s Security Autofix Agent Now Remembers What It Fixed2026-09-28InfoWorldFour agentic AI memory systems for smarter LLMs2026-07-08Oracle BlogsWhat's New in Oracle AI Agent Memory: Custom Extraction, Hybrid Search, and More Control2026-07-07The GitHub BlogBuilding an agentic memory system for GitHub Copilot2026-01-15