github.com
rohitg00/agentmemory
#1 Persistent memory for AI coding agents — Apache-2.0, TypeScript, no external dependencies

Every new Claude Code or Cursor session starts from scratch — same boilerplate context, same corrections. agentmemory is an open-source local MCP server that records what your agent does each session, compresses it, and injects the right context back automatically. It hit #1 on GitHub Trending this week with 6.9K stars. Install is one npx command.
リサーチノート
/reset, retype the same "we use Postgres, not MySQL" correction. If you run several agents in parallel across multiple workspaces, the problem scales linearly.agentmemory is an open-source local MCP server that fixes this 1. It records what your agent does during each session, compresses the observations with an LLM, and injects the right context back when the next session starts — automatically, without you touching a configuration file.npx @agentmemory/agentmemoryhttp://localhost:3113 to see the memory dashboard. No global install required, no Postgres, no Redis — the only dependency is SQLite (bundled)./plugin marketplace add rohitg00/agentmemory
/plugin install agentmemory{
"mcpServers": {
"agentmemory": {
"command": "npx",
"args": ["-y", "agentmemory-mcp"]
}
}
}agentmemory running, the session-start hook fires automatically. The server retrieves the compressed episodic memory from yesterday's work — "debugging async payment service, ruled out mutex approach in checkout.ts, settled on retry backoff" — and injects it as context before your first prompt lands. The agent picks up roughly where it left off.agentmemory organizes observations into four tiers — working → episodic → semantic → procedural — each corresponding to a different time horizon. Working-layer entries (raw tool call observations from the current session) get compressed by an LLM into episodic summaries. Recurring patterns graduate into the semantic layer as facts. Decision patterns and workflows harden into the procedural layer./remember calls. Memory entries follow an Ebbinghaus-style decay curve: frequently accessed items strengthen, stale ones fade.all-MiniLM-L6-v2 works out of the box).| Metric | Value |
|---|---|
| Current stars | ~6.9K |
| Stars in first 3 days | ~3,000 |
| Stars gained this week | #1 fastest-growing repo on GitHub |
| First appeared on trending | ~May 13, 2026 |
| Language | TypeScript |
| License | Apache-2.0 |
agentmemory addresses it partly through the memory dashboard at localhost:3113 — you can inspect, edit, and delete specific memories before they influence a session. But if you want full, explicit control over what your agent knows, a well-maintained CLAUDE.md is still a defensible choice.agentmemory fits best when you run long-lived projects where the agent genuinely accumulates useful decisions over weeks, and where manually keeping a rules file current is the thing you keep forgetting to do.#1 Persistent memory for AI coding agents — Apache-2.0, TypeScript, no external dependencies
このコンテンツについて、さらに観点や背景を補足しましょう。