What are you using today for persistent context/memory for AI coding agents?
Each of five coding tools documents a file you write that goes into the model's context, and, on the pages read, four also document notes the tool writes itself, so a separate memory package is the second thing to look at, not the first. This page checks that against the documentation of Claude Code, Codex, Cursor, GitHub Copilot and Gemini CLI and against npm and PyPI download counts for October 2026, all read on 28 November 2026. In that month an educational memory server from the MCP project was downloaded more often on npm than the SDK of each memory vendor in the table, and the page shows why such a count is not a count of people.
TL;DR
- All five tools document a file you write, and each loads it into the model's context by its own rules:
CLAUDE.md,AGENTS.md, Cursor rules,copilot-instructions.mdandGEMINI.md.- On the pages read, four also document notes the tool writes itself, with different defaults. Claude Code: on by default in local sessions. Codex: off by default. Copilot: depends on plan settings. Gemini CLI: default not stated. The Cursor rules page does not cover it.
- Among the memory MCP server packages in the npm table, the MCP project's educational server had the most downloads in October 2026, 921,385, more than the SDK of each memory vendor in the table. A framework's memory module,
@mastra/memory, was higher at 5,792,982.- A download is not a user. npm says its count is much larger than the number of people who typed an install command, and several rows below are also installed as a dependency of other packages.
A rules file is a plain-text file you write and keep in your repository or home folder that the coding tool loads as context for the model. A memory package is a package that describes itself, in its registry entry or README, as memory or long-term context for AI agents. A download count is a registry's tally of package files served over a period, not a count of people.
What do the coding tools ship with?
The first distinction is who writes the context. Each tool below documents a file you maintain. Four also document notes the tool writes itself. They are separate mechanisms: a loaded instruction file does not mean automatic note-taking is on. The phrase loads automatically also needs a qualifier. Copilot adds its instructions to requests, Gemini CLI sends its assembled context with every prompt, and Cursor says rule contents are included when a rule is applied, not that every rule enters every request.
| Tool | File you write | Notes the tool writes, and the documented default | When it loads |
|---|---|---|---|
| Claude Code | CLAUDE.md: "You write these files in plain text; Claude reads them at the start of every session." | "Auto memory lets Claude learn from your corrections" "Auto memory is on by default in local sessions." | CLAUDE.md every session. Auto memory: up to the first 200 lines or 25KB of MEMORY.md, not all of it. |
| Codex | AGENTS.md: "Codex reads AGENTS.md files before doing any work." | "Memories let ChatGPT and Codex carry useful context from earlier work into future work." "Local Codex memories are off by default." (memories page) | Before any work. Files are skipped when empty, and adding stops at the project_doc_max_bytes limit (32 KiB by default). |
| Cursor | Rules: "Project rules live in .cursor/rules as .mdc files and are version-controlled." | Not covered on this page (rules only). | "When applied, rule contents are included at the start of the model context." |
| GitHub Copilot | copilot-instructions.md: "These are specified in a copilot-instructions.md file in the .github directory of the repository." | "Copilot creates memories itself, as a byproduct of working with you." "Copilot Memory is available on all paid Copilot plans." "Whether it is used depends on your plan's settings, repository access, and the surface you use." (memory page) | "Instructions are automatically added to requests that you submit to Copilot." |
| Gemini CLI | GEMINI.md: Context files, which use the default name GEMINI.md, are for "providing instructional context to the Gemini model." | "Gemini CLI persists durable facts, user preferences, and project details by editing Markdown memory files directly." Default on or off: not stated on the pages read. (memory page) | Gemini CLI "concatenates the contents of all found files, and sends them to the model with every prompt." Stored facts are "automatically included in the hierarchical context system for all future sessions." |
Vendors warn against reading either mechanism as enforcement. Claude Code's memory page says: "Claude treats CLAUDE.md files as context, not enforced configuration, so how you write instructions affects how reliably Claude follows them." Codex's memories page says to "Keep required team guidance in AGENTS.md or checked-in documentation" and to "Treat memories as a helpful recall layer, not as the only source for rules that must always apply." Copilot adds that it "does not treat a memory as permanently true once it has been stored."
A further note on the table: Cursor's rules page uses the word memory about the model, not about a feature: "Large language models don't retain memory between completions." Its answer is rules: "Rules provide persistent, reusable context at the prompt level."
For how each tool treats the instruction files in detail, see CLAUDE.md, AGENTS.md and Cursor rules, AGENTS.md support tool by tool and Claude Code persistent memory.
How to read this for your own setup
Start by writing down what must survive the next session. Separate stable project guidance from facts learned while doing work. Then decide where each type of information is maintained.
For maintained instructions, begin with the existing file. All five tools document one. Put the guidance you want to review there, and check its loading rules rather than assuming the same behavior across tools. Claude Code's documentation says its file is context, not enforcement, so a file being read is not the same claim as every instruction being followed.
For notes the tool writes, check the actual setting. The documented defaults differ, and for Gemini CLI none is stated on the pages read. Do not assume local Codex memories are on, or that Claude Code loads every stored auto-memory line. Do not make an automatically written note the only record of a rule that must always apply.
For a separate package, name the missing requirement first. Is it context shared across several coding tools, retrieval over a large volume, or control over deletion and access? Treat these as evaluation questions, not capabilities established by a package name or a download count. Define a smoke test before you compare candidates: save a fact, start a new session and ask for it, correct it and check the next answer, then delete it and check both that it no longer comes back and what the package's own documentation says about retention. To choose a server by what it does, see memory MCP servers compared. For teams sharing context across editors, see cross-IDE context platforms for teams. For a managed service or your own, see Mem0, Zep or roll your own.
Which memory packages get downloaded?
The tables cover packages from three places: the SDKs of memory vendors, packages on our comparison page, and packages that npm searches on 28 November 2026 returned. npm search ranks by text match and did not return five of the packages in the npm table, so this is a search check, not a census. The publisher's own packages are in both tables, counted the same way. A package is in the npm table when its registry entry or README describes it as memory for agents, with three flagged exceptions: @letta-ai/letta-code is a CLI for Letta agents, shown beside the Letta SDK; codebase-memory-mcp describes itself as code intelligence; and in PyPI, graphiti-core describes itself as a temporal graph building library. All three came back from the searches or the comparison page and are kept so the page does not choose which of them to hide.
The description columns show the first part of the registry entry (npm) or the PyPI summary, cut at its first long dash or full stop. They say what each publisher calls its package. They are not feature tests.
npm, October 2026
The window is 1 to 31 October 2026, inclusive, from the npm downloads API. For every row the point total equals the sum of its 31 daily values.
| Package | What the registry entry says it is (first part) | October 2026 downloads | Notes |
|---|---|---|---|
@mastra/memory | (empty) | 5,792,982 | A framework's memory module. Registry description empty; description from its README (below). |
@modelcontextprotocol/server-memory | MCP server for enabling memory for Claude through a knowledge graph | 921,385 | Maintainers call the servers in the repository reference implementations (below). Version 1.0.0 was 22% of the week 21 to 27 Nov 2026. |
mem0ai | The Memory Layer For Your AI Apps | 886,093 | Optional peer dependency of @langchain/community (not installed by it). |
@getzep/zep-cloud | The TypeScript SDK for Zep, the context layer for AI agents | 759,560 | Also installed as a dependency: @n8n/n8n-nodes-langchain 2.49.8 pins 1.0.6, flowise-components 3.1.4 depends on ~1.0.7. Version 1.0.6 was 45% of the week 21 to 27 Nov 2026. |
@oh-my-pi/pi-mnemopi | Local SQLite memory engine for omp agents | 742,114 | Also installed as a dependency of @oh-my-pi/pi-coding-agent. |
supermemory | The official TypeScript library for the Supermemory API | 665,137 | |
agentdb | Agent memory and vector database for AI agents: single-file HNSW search, episodic memory, causal graph, reinforcement learning and MCP tools | 575,024 | Also installed as a dependency of agentic-flow, and as an optional dependency of claude-flow and @claude-flow/cli. |
@letta-ai/letta-code | Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal | 570,614 | Described as a CLI tool for Letta agents, not as a memory package; shown with the Letta SDK for completeness. |
@letta-ai/letta-client | The official TypeScript library for the Letta API | 525,203 | |
@getzep/zep-js | Zep: Fast, scalable building blocks for production LLM apps | 492,618 | Also installed as a dependency: @n8n/n8n-nodes-langchain 2.49.8 pins 2.0.2, flowise-components 3.1.4 depends on ^0.9.0. Version 0.9.0 was 46% of the week 21 to 27 Nov 2026. |
@claude-flow/memory | Memory module - AgentDB unification, HNSW indexing, vector search, hybrid SQLite+AgentDB backend (ADR-009) | 375,438 | Also installed as a dependency of @claude-flow/cli. |
@vectorize-io/hindsight-client | TypeScript client for Hindsight - Semantic memory system with personality-driven thinking | 249,044 | |
claude-mem | Persistent memory for AI coding agents: the next session starts where the last one left off | 104,980 | |
@hasna/mementos | Universal memory system for AI agents - CLI + MCP server + library API | 82,783 | |
@agentmemory/agentmemory | Persistent memory for AI coding agents, powered by iii-engine's three primitives | 72,866 | |
@agentmemory/mcp | Standalone MCP server for agentmemory | 50,970 | |
codebase-memory-mcp | Fast code intelligence for AI coding agents | 42,845 | |
@tpsdev-ai/flair-mcp | MCP server for Flair | 35,103 | |
gentle-engram | Persistent memory for Pi agents | 24,603 | |
hippo-memory | One memory for every agent you'll ever use | 10,952 | |
@mnemoverse/mcp-memory-server | Hosted long-term memory for AI agents over MCP | 4,607 | Publisher of this page. |
@allpepper/memory-bank-mcp | MCP server for remote management of project memory banks | 3,210 | |
@byterover/cipher | Memory-powered AI agent framework with real-time WebSocket communication, MCP integration, and composable patterns | 1,754 | |
@mem0/mcp-server | A Model Context Protocol (MCP) server that provides memory storage and retrieval capabilities using Mem0 | 377 | |
@gannonh/memento-mcp | Memento MCP: Knowledge graph memory system for LLMs | 104 |
Among the memory MCP server packages in this table, @modelcontextprotocol/server-memory had the most downloads in October 2026, 921,385. That is more than the SDK of each memory vendor in the table: mem0ai 886,093, @getzep/zep-cloud 759,560, supermemory 665,137 and @letta-ai/letta-client 525,203. The same package read 392,977 in August and 713,111 in September 2026. The comparison page, written earlier, gives roughly 390,000 a month for it; the two figures cover different periods.
The maintainers say what the package is for: "The servers in this repository are intended as reference implementations to demonstrate MCP features and SDK usage." and "They are meant to serve as educational examples for developers building their own MCP servers, not as production-ready solutions." The memory server's own README calls it "A basic implementation of persistent memory using a local knowledge graph." Read its count with that purpose in mind.
@mastra/memory is higher, at 5,792,982, but it is a framework's memory module. The registry description is empty, so the row takes its description from the README: "@mastra/memory gives Mastra agents persistent conversation history, semantic recall, working memory, and observational memory." A package that is not in the table is @langchain/langgraph-checkpoint, 18,209,398 in October: its registry description, "Library with base interfaces for LangGraph checkpoint savers.", does not call it memory.
PyPI, October 2026
Column A is the pypistats.org API with mirrors excluded. Column B is the public ClickHouse table pypi.pypi_downloads_per_day. Both cover 1 to 31 October 2026. The last column is the gap between them as a share of A. Where the gap is above 10 percent, the row sits in a second group listed alphabetically, with no place or order implied.
| Package | PyPI summary (first part) | A: pypistats, no mirrors | B: ClickHouse | B differs from A by |
|---|---|---|---|---|
mem0ai | Long-term memory for AI Agents | 2,539,857 | 2,566,433 | 1.0% |
hindsight-client | Python client for Hindsight - Semantic memory system with personality-driven thinking | 1,030,263 | 1,040,171 | 1.0% |
langmem | Prebuilt utilities for memory management and retrieval | 864,623 | 868,585 | 0.5% |
graphiti-core | A temporal graph building library | 857,351 | 872,543 | 1.8% |
zep-cloud | The Python SDK for Zep, the context layer for AI agents | 263,788 | 268,385 | 1.7% |
letta-client | The official Python library for the letta API | 168,472 | 177,601 | 5.4% |
supermemory | The official Python library for the Supermemory API | 152,071 | 157,696 | 3.7% |
mempalace | Give your AI a memory | 60,816 | 63,267 | 4.0% |
zep-python | No summary on PyPI | 54,026 | 55,005 | 1.8% |
| Gap above 10 percent: alphabetical, no place or order implied | ||||
basic-memory | Local-first knowledge management combining Zettelkasten with knowledge graphs | 51,659 | 57,977 | 12.2% |
cognee | Cognee - is a library for enriching LLM context with a semantic layer for better understanding and reasoning | 111,794 | 132,253 | 18.3% |
hindsight-api | Hindsight: Agent Memory That Learns | 44,581 | 49,326 | 10.6% |
letta | Letta Code: stateful agents in your terminal | 13,723 | 30,201 | 120.1% |
mcp-memory-service | Semantic memory layer for AI applications | 8,069 | 26,648 | 230.3% |
memori | Memori Python SDK | 17,662 | 19,600 | 11.0% |
memorisdk | Memori Python SDK | 627 | 1,396 | 122.6% |
mnemoverse (publisher of this page) | Python SDK for Mnemoverse, hosted long-term memory for AI agents: write, read and rate recalled memories | 6,506 | 8,005 | 23.0% |
Of the PyPI packages measured, mem0ai has the most downloads under both instruments. A name check in ClickHouse over every project with mem in its name found no larger agent-memory package; the larger names are other things, such as nvidia-nvshmem-cu13, memray, memory-profiler and pymemcache. The two instruments differ by more than 10 percent for eight packages. The 10 percent line is an editorial grouping rule for this page, not a confidence bound, and the page does not explain the differences.
What a download count does and does not tell you
npm's documentation defines the period: "The start and end dates are inclusive." Its blog says what the number is: "npm's download stats are naïve by design: they are simply a count of the number of HTTP 200 responses we served that were tarball files, i.e. packages." The count includes "automated build servers", "downloads by mirrors" and "robots that download every package for analysis", and it "is much larger than the number of people who typed" an install command on any given day. npm's advice: "use these numbers as directional indicators of package popularity."
Part of some counts may come from installing another package, and the versions other packages pin point that way. The versions endpoint reports only the last seven days, so these shares are for the week of 21 to 27 November 2026: 78,449 of the 174,876 downloads of @getzep/zep-cloud (45 percent) were version 1.0.6, and 59,683 of the 130,187 downloads of @getzep/zep-js (46 percent) were version 0.9.0 (version 2.0.2, the one n8n pins, was 68,993, or 53 percent). The notes column lists which other packages pin or depend on these SDKs. For @modelcontextprotocol/server-memory, 40,560 of 188,634 (22 percent) were version 1.0.0 in that week. The version shares are observed; this page does not attribute them to any dependent, because a dependency list shows which package installs which, not how many downloads came that way.
npx adds a second path. The maintainers say "TypeScript-based servers in this repository can be started with npx.", and npx's documentation says that packages not in the project's dependencies "are installed to a folder in the npm cache". A run on a fresh machine or container, with no cache, downloads the package again.
PyPI counts need the same care. pypistats.org says its statistics come from the Python Software Foundation's download data on Google BigQuery and "ignore known PyPI mirrors". The ClickHouse column is a second instrument and the two differ.
Rows are packages, not vendors. Several vendors appear in both tables, for example Zep, Letta and Supermemory, and this page adds no two packages together.
What this page does not claim
Download counts are not users, installs or active projects. The tables cover the packages named in Sources and a search check, not every package on npm or PyPI, and a package missing from them has not been shown to have fewer downloads. Vendor documentation is quoted as it read on 28 November 2026. "Not described on the pages read" marks the limit of what was read, not a limit of any product. The page does not test whether any tool's memory works.
How the numbers were counted
- npm:
https://api.npmjs.org/downloads/point/2026-10-01:2026-10-31/<package>and the matchingrangerequest, whose 31 daily values sum to the point total for every row. Versions:https://api.npmjs.org/versions/<package>/last-week, whose versions sum to the last-week total. - PyPI:
https://pypistats.org/api/packages/<package>/overall?mirrors=false, summed over October (column A); and the public ClickHouse table,SELECT project, sum(count) FROM pypi.pypi_downloads_per_day WHERE date >= '2026-10-01' AND date <= '2026-10-31' AND project = '<package>' GROUP BY project(column B). The name check usedproject LIKE '%mem%'in the same query; the demo endpoint returned a different total forlangmemunder that form (559,369) than underproject = 'langmem'(868,585), so treat the name check as a search for larger names only. - Registry fields and dependencies:
https://registry.npmjs.org/<package>, latest version, fieldsdependencies,optionalDependenciesandpeerDependencies. - Package search:
https://registry.npmjs.org/-/v1/search?text=<query>&size=250, two pages each, for the queriesmcp memory,memory mcp server,keywords:mcp keywords:memory,agent memory,claude code memory,mastra memory,langchain memory,memory,ai agent memoryandcoding agent memory. - All run on 28 November 2026. The October window is the last full month before the read date.
Common questions
What are you using today for persistent context/memory for AI coding agents?
Start with what the coding tool already ships. Claude Code, Codex, Cursor, GitHub Copilot and Gemini CLI each document a file you write that goes into the model's context under that tool's own loading rules (CLAUDE.md, AGENTS.md, Cursor rules, copilot-instructions.md, GEMINI.md). On the pages read, four of the five also document notes the tool writes itself, with different defaults. A separate memory package is an addition for a requirement the file does not meet, such as context shared across tools.
Do the coding tools already have memory built in?
Each of the five documents a file you maintain. Claude Code, Codex, GitHub Copilot and Gemini CLI also document notes the tool writes. Claude Code has auto memory on by default in local sessions; local Codex memories are off by default; Copilot Memory use depends on plan settings, repository access and surface; the Gemini CLI default is not stated on the pages read. The Cursor rules page does not cover tool-written notes.
Which memory MCP server package is downloaded most on npm?
Among the memory MCP server packages in this page's table, @modelcontextprotocol/server-memory had the most npm downloads in October 2026, 921,385, more than the SDK of each memory vendor in the table. Its maintainers call the servers in their repository reference implementations. The higher @mastra/memory row, 5,792,982, is a framework's memory module.
Do download counts tell you how many people use a memory package?
No. npm says its count is much larger than the number of people who typed an install command, and that it includes automated build servers, mirrors and robots. Several packages in the table are also installed as a dependency of other packages. PyPI download counts differ between the two instruments read here.
When is a separate memory package worth adding to a coding agent?
When you can name a requirement that the tool's own files and notes do not meet, for example context shared across several tools, retrieval over a large volume, or control over deletion and access. A package's name or download count does not show that it provides any of these, and this page does not rank the packages. Codex's documentation says to keep required team guidance in AGENTS.md or checked-in documentation.
Which Python memory package had the most downloads in October 2026?
Of the PyPI packages measured, mem0ai had the most: 2,539,857 in pypistats.org (mirrors excluded) and 2,566,433 in the public ClickHouse table. A name check over every PyPI project with mem in its name found no larger agent-memory package. This is a comparison of the measured packages, not a census.
Sources
Read on 28 November 2026. Addresses are the final ones after redirects.
Coding tools
- Claude Code: memory.
- Codex: AGENTS.md, memories.
- Cursor: rules.
- GitHub Copilot: repository instructions, Copilot Memory.
- Gemini CLI: GEMINI.md, memory tool.
Packages and counting methods
- npm: downloads API, how download counts work, npx.
- PyPI: pypistats.org about; the public ClickHouse table
pypi.pypi_downloads_per_day(user demo). - MCP project: servers repository, memory server.
- Mastra: @mastra/memory README.
- Registry fields and counts: registry.npmjs.org package entries, api.npmjs.org (point, range and versions), and the PyPI JSON API, observed 28 November 2026.
Related
- 13 memory MCP servers compared: choose a server by what it does
- CLAUDE.md, AGENTS.md and Cursor rules
- AGENTS.md: what supported means, tool by tool
- Claude Code persistent memory
- Cross-IDE context platforms for teams
- Mem0, Zep or roll your own
- MCP servers and npx setup compared
- How to fix AI agent context loss: the three kinds of loss and the first fix for each
Sources were read and downloads counted on 28 November 2026; the page describes them as of that date.
Who wrote this. Mnemoverse publishes this page and has packages in both tables (@mnemoverse/mcp-memory-server on npm, mnemoverse on PyPI), so we are an interested party. Our rows use the same window, instruments and columns as every other row, and the save, correct, ask and delete test in "How to read this for your own setup" is generic: a configured memory system of any kind can be run against it. Send corrections through contact.
Edward Izgorodin · Mnemoverse · 29 November 2026
