AI tools for writing code: memory
Memory layers that let agents remember users, past sessions and facts over time. Of the 282 tools on our writing code page, 12 fit this narrower job. By pricing: 9 open source, 1 source-available, 1 free or freemium, 1 pricing on the maker's site. The most-starred open repos here are Claude-Mem (101,230 stars), Deer Flow (83,959 stars), Codebase Memory MCP (46,717 stars). Most come from the coding (8), MCP & infra (2), research (1) categories.
Claude-Mem
Gives coding agents memory across sessions by capturing what they do, compressing it and feeding the relevant context back in later.
Added
Deer Flow
ByteDance's open-source long-horizon agent harness that researches, codes and creates using sandboxes, memory and sub-agents.
Added
Codebase Memory MCP
MCP server that indexes codebases into a persistent knowledge graph so coding agents can look up structure quickly.
Added
Context Mode
Context window optimizer for coding agents that sandboxes tool output and persists session memory.
Added
AgentMemory
Persistent memory layer for AI coding agents.
Added
TencentDB-Agent-Memory
Team-level memory hub that turns conversations, docs and code into shared memory for agents.
Added
Beads
Issue-tracking memory for coding agents so they can keep track of long-running work.
Added
MiMo Code
Xiaomi's terminal coding agent with persistent project memory across sessions; works with any major model provider and is tuned for Xiaomi's MiMo models.
Added
LazyCodex
Agent harness for Codex that adds project memory, planning, execution and verified completion for complex codebases.
Added
Compozy
Operating system for AI agents that turns Claude Code, Codex, Gemini CLI and Cursor into a team with task handoff, loops, jobs and shared memory.
Added
Anchor Action Index
Shared memory of web workflows for Anchor's cloud browsers: computer-use agents replay proven paths as deterministic code and the model only steps in where a page has changed, exposed as tools on Anchor's MCP server and REST API.
Added
Dosu
Knowledge infrastructure that keeps docs, specs and agent memory current with your code for teams and coding agents.
Added
GitHub repos (10)
| Repo | GitHub stars | Licence | Last push |
|---|---|---|---|
| Claude-Mem ↗ | 101,230 | Apache License 2.0 | 2026-10-17 |
| Deer Flow ↗ | 83,959 | MIT | 2026-10-18 |
| Codebase Memory MCP ↗ | 46,717 | MIT | 2026-10-18 |
| Context Mode ↗ | 30,192 | Elastic License 2.0 (source-available) | 2026-10-18 |
| AgentMemory ↗ | 29,593 | Apache License 2.0 | 2026-10-18 |
| TencentDB-Agent-Memory ↗ | 29,346 | MIT | 2026-10-15 |
| Beads ↗ | 27,943 | MIT | 2026-10-17 |
| MiMo Code ↗ | 13,675 | MIT | 2026-10-17 |
| LazyCodex ↗ | 3,792 | — | — |
| Compozy ↗ | 2,806 | — | — |
10 repos. Stars and licence come from each repo, checked when the listing was last verified.
FAQ
What are the best AI tools for writing code focused on memory?
We list 12. The first three by GitHub stars and featured status are Claude-Mem: Gives coding agents memory across sessions by capturing what they do, compressing it and feeding the relevant context back in later.; Deer Flow: ByteDance's open-source long-horizon agent harness that researches, codes and creates using sandboxes, memory and sub-agents.; Codebase Memory MCP: MCP server that indexes codebases into a persistent knowledge graph so coding agents can look up structure quickly.
Are there free or open-source options?
Yes: 9 open source, 1 source-available, 1 free or freemium, 1 pricing on the maker's site. Pricing is as each maker states it.
More from writing code
Tools are grouped by what each says it does. Missing one? Submit it free.