Skip to content
skillcellar
All skills

agentmemory

Productivity

Persistent memory for coding agents: hooks capture sessions, MCP tools and skills recall them later.

by Rohit Ghumarerohitg00/agentmemory
Stars30.8k
Forks2.8k
Watchers79
Open issues413
LicenseApache-2.0
Last pushyesterday

Install

install

$ /plugin marketplace add rohitg00/agentmemory

Works with Claude Code. Its skills also install in other agents: pick one above.

Update

update

$ /plugin marketplace update agentmemory

The memory server updates separately: npx -y @agentmemory/agentmemory@latest upgrade. Back up your data first.

When to use it

  • You work on one project across many sessions and keep re-explaining decisions, fixes and conventions.
  • You switch between coding agents and want one shared memory store instead of one per tool.
  • You want to inspect, edit and delete what the agent remembers, in a local viewer.
  • You want memory that runs on your machine, with keyword search that needs no API key.

Commands & flags

npx -y @agentmemory/agentmemory@latest
Start the local memory server (API on port 3111, viewer on 3113). Run it in a separate terminal.
/plugin install agentmemory
Install the Claude Code plugin: hooks, skills and the bundled MCP server.
npx -y @agentmemory/agentmemory@latest demo
Seed sample sessions and exercise recall to confirm the setup works.
curl http://localhost:3111/agentmemory/health
Check that the local memory server is up.
agentmemory connect <agent>
Wire another agent (Cursor, Codex CLI, Gemini CLI and others) to the same memory store.

How to use it

It has two parts: a local memory server and a Claude Code plugin. Start the server in its own terminal, then install the plugin:

npx -y @agentmemory/agentmemory@latest
/plugin marketplace add rohitg00/agentmemory
/plugin install agentmemory

The plugin registers hooks that record prompts, tool calls and replies, plus skills and the MCP tools that search and manage the memory. Keyless mode uses keyword search; set EMBEDDING_PROVIDER=local in ~/.agentmemory/.env for on-device semantic recall. Open http://localhost:3113 to browse what was saved.

Why it earns its place

Claude Code starts every session cold. agentmemory keeps decisions, fixes and lessons searchable across sessions and across agents, and the viewer shows exactly what is stored, so you can audit the memory. Secret scrubbing is built into capture.

It is a running service plus hooks that record your sessions, so it is more machinery than a notes file. Skip it for short-lived or throwaway projects, and read what it captures before using it on sensitive code.

Try it

claude

> Search memory for how we handled the webhook retry bug last month.