Skip to content

agentmemory

Ships with agentmemory: #1 Persistent memory for AI coding agents based on real-world benchmarks

From plugin
agentmemory
30k17 skills2 commands1 MCP

Claude Code

> /plugin marketplace add rohitg00/agentmemory
> /plugin install agentmemory@agentmemory

Security report

Info

Not enough data

  • Known flaws

    Not published

  • Signed build

    Not published

  • Maintained

    Nov 9, 2026

    Last push

  • Licence

    Apache-2.0

  • Runs as

    Local process

    On your machine

  • Deprecated

    Not published

Signals from public registries, not an audit. Checked Nov 11, 2026.

agentmemory README

agentmemory: persistent memory for AI coding agents

🇬🇧 English • 🇨🇳 简体中文 • 🇹🇼 繁體中文 • 🇯🇵 日本語 • 🇰🇷 한국어 • 🇵🇹 Português • 🇧🇷 Português (Brasil) • 🇪🇸 Español • 🇩🇪 Deutsch • 🇫🇷 Français • 🇮🇹 Italiano • 🇳🇱 Nederlands • 🇵🇱 Polski • 🇨🇿 Čeština • 🇷🇴 Română • 🇭🇺 Magyar • 🇬🇷 Ελληνικά • 🇸🇪 Svenska • 🇩🇰 Dansk • 🇳🇴 Norsk • 🇫🇮 Suomi • 🇷🇺 Русский • 🇺🇦 Українська • 🇹🇷 Türkçe • 🇮🇱 עברית • 🇸🇦 العربية • 🇮🇳 हिन्दी • 🇧🇩 বাংলা • 🇵🇰 اردو • 🇹🇭 ไทย • 🇻🇳 Tiếng Việt • 🇮🇩 Bahasa Indonesia • 🇵🇭 Tagalog

rohitg00/agentmemory | Trendshift

Design doc: 1.7k stars / 240 forks on the gist

The gist extends Karpathy's LLM Wiki pattern with confidence scoring, lifecycle, knowledge graphs, and hybrid search: agentmemory is the implementation.

npm version

CI

License

Stars

skills.sh installs

54 MCP tools 12 auto hooks 0 external DBs 4,700+ tests passing

AgentMemory viewer: memories, knowledge graph, sessions and replay in dark and light themes

Install • Quick Start • Benchmarks • vs Competitors • Agents • How It Works • MCP • Viewer • Config • API


AgentMemory captures coding sessions, makes decisions and fixes searchable, and lets your agents recall them later. Keep one memory store across tools, inspect what was saved, and choose how much context reaches the model.

  • Capture: native hooks and plugins record supported session events, with secret scrubbing and offline replay.
  • Recall: keyword search works without an API key; local or remote embeddings add semantic search.
  • Continue: retrieve project history, lessons and session handoffs from another agent.
  • Inspect: browse, edit, export and forget memories in the live viewer.

Install

Requirements:

  • Node.js 20 or newer with npm and npx (node -v, npm -v, and npx -v).
  • macOS/Linux also need curl, a POSIX sh, and tar for automatic runtime setup.
  • Windows users can use WSL2 or follow the native Windows setup.

Start setup:

npx -y @agentmemory/agentmemory@latest

Choose your agents and either a provider or keyless mode. Setup writes the configuration, starts the memory server, and offers a global install for the agentmemory command. -y accepts the npm package prompt; @latest selects the current release. LLM-written observation compression is opt-in with a provider and AGENTMEMORY_AUTO_COMPRESS=true.

Keyless mode disables vector embeddings. memory_recall (the mem::search path) uses BM25, while memory_smart_search can also fuse structural graph matches when graph data already exists. For free on-device semantic recall, set EMBEDDING_PROVIDER=local in ~/.agentmemory/.env and restart. The first embedding request downloads Xenova/all-MiniLM-L6-v2; inference runs locally after that initial model download.

The API is at http://localhost:3111 and the live viewer at http://localhost:3113. Both bind to loopback by default. Configuration lives in ~/.agentmemory/.env; see data storage for memory locations and separate instances.

Then prove recall works and give your agent its skills:

npx -y @agentmemory/agentmemory@latest demo  # seed sample sessions + exercise recall
npx skills add rohitg00/agentmemory -y   # 17 native skills so your agent knows when to reach for memory

The keyword searches should hit in default keyless mode through BM25. The demo's database performance optimization query is intentionally semantic and can return zero until an embedding provider is configured.

Prefer to let a coding agent do the whole thing? Hand it one instruction:

Retrieve and follow the instructions at: https://raw.githubusercontent.com/rohitg00/agentmemory/main/INSTALL_FOR_AGENTS.md

Connect another agent with agentmemory connect <agent>. See supported integrations and everyday commands.

Global install / EACCES

npm install -g @agentmemory/agentmemory@latest

The npx command above remains the canonical fresh-install path and avoids global-prefix permission issues.

npx serves an old version

npx caches per version. Force the latest with npx -y @agentmemory/agentmemory@latest, or clear the cache once with rm -rf ~/.npm/_npx (macOS/Linux; on Windows delete %LOCALAPPDATA%\npm-cache\_npx).


agentmemory works with any agent that supports hooks, MCP, or REST API. All agents share the same memory server.

Claude Code

Claude Code native plugin + 12 hooks + MCP

Codex CLI

Codex CLI native plugin + 6 hooks + MCP

OpenCode

OpenCode capture plugin + MCP

Devin

Devin 6 hooks + skills + MCP

OpenClaw

OpenClaw native plugin + MCP

Hermes

Hermes native plugin + MCP

pi

pi native recall + capture + skills

OpenHuman

OpenHuman native Memory trait backend

Stars on GitHub

Momentum

stars in total
30.2k
Star history of rohitg00/agentmemory on GitHub, a chart by star-history.com

More MCP servers from other plugins.

mem0
Auto-invoked

mem0

MCP

Stores and retrieves long term memories for AI agents to personalize their responses.

mem04d69k
@mem0ai@mem0aiInstall MCP
phrocs

phrocs

MCP

Ships with posthog: :hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI…

posthog11d41k
@posthog@posthogInstall MCP
skill-seekers

skill-seekers

MCP

Ships with skill-seekers: 🧠 The data layer for AI systems. Skill Seekers turns documentation sites, GitHub repos, PDFs, videos,…

xberg

xberg

MCP

Ships with kreuzberg: The fast, precise document-intelligence engine — for every language. Point Xberg at anything — a PDF, a…

kreuzberg10d9.5k
@kreuzberg-dev@kreuzberg-devInstall MCP

Questions about agentmemory.

Which coding agents can use agentmemory?
agentmemory works in any agent that reads an MCP config file: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf. Each agent reads it from its own file; this page names the file for each one.
How do I add agentmemory to Claude Code?
Run these in order, one at a time. 1. In Claude Code: /plugin marketplace add rohitg00/agentmemory 2. In Claude Code: /plugin install agentmemory@agentmemory