Skip to content
rohitg00 avatar

Agentmemory Hooks

Automatic capture hooks that record prompts, tool use, and session boundaries without manual memory saves.

CCM score
72 of 100
skills.sh installs
11.8K
GitHub stars
30.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the session lifecycle: session start and end, prompt submission, tool calls and failures, stops, and pre-compaction sync
  • Records prompts, tool names with inputs and outputs, and final replies, truncating long output and redacting <private> blocks and common secrets
  • Queues events in a local spool of up to 5 MiB, kept for 7 days, when the server is unreachable
  • Injects stored context into the conversation only when AGENTMEMORY_INJECT_CONTEXT=true is set, since it is off by default

Install

$ npx -y skills add rohitg00/agentmemory --skill agentmemory-hooks -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

The agentmemory plugin registers lifecycle hooks so memory is captured automatically. You do not have to call memory_save for routine work; the hooks observe tool use, prompts, and session boundaries and write observations for you.

Quick start

For Claude Code, install its plugin:

/plugin marketplace add rohitg00/agentmemory
/plugin install agentmemory

For Devin CLI and Devin Desktop, install the plugin and start a new session:

devin plugins install rohitg00/agentmemory#plugin

Run /hooks inside Devin to confirm the agentmemory hooks are loaded. Plugin hooks run only in local Devin sessions, not in cloud sessions.

Pi and OMP install native recall and capture with agentmemory connect pi --with-mcp or agentmemory connect omp --with-mcp. Reload Pi or restart OMP, then inspect /agentmemory-status. DSH requires agentmemory connect dsh --with-hooks and a restart. Cursor lifecycle hooks come from its enabled plugin, separately from connect cursor's MCP setup.

Details

Repository
github.com/rohitg00/agentmemory
Categories
Memory & Context, AI Agents & LLM Apps
First seen
Jul 14, 2026

Questions

Does the agentmemory-hooks skill save memories without manual calls?

Yes, the agentmemory-hooks skill registers lifecycle hooks that observe tool use, prompts, and session boundaries and write observations automatically. Routine work does not require calling memory_save, since the hooks record prompts, tool inputs and outputs, and final replies for you.

How do I install the agentmemory-hooks skill?

Run npx -y skills add rohitg00/agentmemory --skill agentmemory-hooks -y in a project to install it. Once installed, the agent gains automatic capture of session events, so it can recall past work in later sessions without manual saves.

Where does agentmemory-hooks rank among Memory & Context skills?

On the Memory & Context category page it ranks in the top 50. Other skills that lead the category include handoff and several caveman skills, but agentmemory-hooks focuses specifically on recording observations across the session lifecycle.

Do the agentmemory-hooks send my data to an outside AI provider?

No, the plugin hooks capture without an LLM, and recorded data stays on your machine in the local agentmemory server. Data only goes to an outside AI provider if AGENTMEMORY_LLM_PROVIDER or a cloud EMBEDDING_PROVIDER is set on the server.

Why are observations missing when using agentmemory-hooks?

Check that the plugin is enabled and the agentmemory server is running, since unreachable events wait in a local capture spool. The skill points to TROUBLESHOOTING.md for further steps, and you can watch recorded observations in the viewer at localhost port 3113.

More from rohitg00/agentmemory

All 15

Similar to Agentmemory Hooks

More Memory & Context