agentmemory
rohitg00/agentmemory · Updated
#1 Persistent memory for AI coding agents based on real-world benchmarks
rohitg00/agentmemory is a TypeScript repository in the Coding Assistants category with 29,995 stars and 2,650 forks on GitHub, released under the Apache-2.0 license, last updated today.
How to install agentmemory in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install agentmemory in Claude CodeAnthropic's agentic CLI
Clone & open
bashgit clone https://github.com/rohitg00/agentmemory.git cd agentmemory claudeLet Claude read it
Ask “/init” to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.
How to install agentmemory in Claude DesktopDesktop app (MCP config)
Clone the repository
bashgit clone https://github.com/rohitg00/agentmemory.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install agentmemory in CursorAI-first code editor
Clone & open in Cursor
bashgit clone https://github.com/rohitg00/agentmemory.gitIndex & chat
Open the folder — Cursor indexes it automatically. Use @Codebase in chat to ask about it or scaffold from it.
How to install agentmemory in Codex CLIOpenAI coding agent
Clone
bashgit clone https://github.com/rohitg00/agentmemory.gitPoint Codex at it
Run codex in the repo root; add setup notes to AGENTS.md so the agent knows how to build & test.
How to install agentmemory in WindsurfCodeium's agentic IDE
Clone & open
bashgit clone https://github.com/rohitg00/agentmemory.gitUse Cascade
Windsurf indexes the workspace; ask Cascade to explain or reuse modules from the repo.
How to install agentmemory in ClineVS Code autonomous agent
Clone the repository
bashgit clone https://github.com/rohitg00/agentmemory.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install agentmemory in VS CodeCopilot / MCP support
Clone the repository
bashgit clone https://github.com/rohitg00/agentmemory.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
Documentation
Full README<strong> Persistent memory across coding sessions and agents. </strong> Persistent memory for Claude Code, GitHub Copilot CLI, Cursor, Gemini CLI, Codex CLI, Hermes, OpenClaw, pi, Oh My Pi, OpenCode, DeepSeek Harness, and any MCP client.
🇬🇧 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
<em>The gist extends Karpathy's LLM Wiki pattern with confidence scoring, lifecycle, knowledge graphs, and hybrid search: agentmemory is the implementation.</em>
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, andnpx -v). - macOS/Linux also need
curl, a POSIXsh, andtarfor automatic runtime setup. - Windows users can use WSL2 or follow the native Windows setup.
Start setup:
npx -y @agentmemory/agentmemory@latestChoose 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.
Excerpt — the full document is on GitHub.
More Coding Assistants repositories
- Coding Assistants144k
system-prompts-and-models-of-ai-tools
FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sourced) System Prompts, Internal Tools &…
GPL-3.0x1xhlol/system-prompts-and-models-of-ai-tools
- Coding Assistants144k
spec-kit
💫 Toolkit to help you get started with SDD or any other process!
PythonMITgithub/spec-kit
- Coding Assistants142k
ui-ux-pro-max-skill
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
PythonMITnextlevelbuilder/ui-ux-pro-max-skill
- Coding Assistants42k
chatbox
Powerful AI Client
TypeScriptGPL-3.0chatboxai/chatbox
- Coding Assistants38k
CopilotKit
The Frontend Stack for Agents & Generative UI. React, Angular, Mobile, Slack, and more. Makers of the AG-UI Protocol
TypeScriptMITCopilotKit/CopilotKit
- Coding Assistants33k
context-mode
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.
TypeScriptmksglu/context-mode
Catalog data refreshed . Something wrong? Report it.