agentmemory-hooks
Skill9 starsChanged 3 months agoMITView on GitHub
The agentmemory plugin hooks that capture observations automatically across the agent session lifecycle. Use when explaining how memory gets captured without manual saves, when debugging missing observations, or when tuning what gets recorded.
In this repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- agentmemory-agentsSkill
- agentmemory-architectureSkill
- agentmemory-configSkill
- agentmemory-mcp-toolsSkill
- agentmemory-rest-apiSkill
- agentmemorySkill
- antislopSkill
- caveman-compressSkill
- caveman-helpSkill
- cavemanSkill
- caveman-statsSkill
- clean-codeSkill
- cloudflareSkill
- codebase-designSkill
- code-reviewSkill
- commit-contextSkill
- commit-historySkill
- delegationSkill
- documentationSkill
- forgetSkill
- git-commitSkill
- graphifySkill
- grillingSkill
- handoff-compactSkill
- handoffSkill
- i-have-adhdSkill
- impeccableSkill
- jev-decisionSkill
- lessonSkill
- memory-disciplineSkill
- plansSkill
- playwright-cliSkill
- ponytail-reviewSkill
- pwa-developmentSkill
- recallSkill
- recapSkill
- rememberSkill
- resolving-merge-conflictsSkill
- session-historySkill
- shadcnSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- ui-designSkill
- ui-ux-pro-maxSkill
- vercel-reactSkill
- verification-before-completionSkill
- viteSkill
- vitestSkill
- web-design-guidelinesSkill
- web-perfSkill
- write-agentmemory-skillSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
If observations are missing, confirm the plugin is enabled and the server is running.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
The Claude Code 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
Install the plugin and the hooks register themselves:
/plugin marketplace add rohitg00/agentmemory
/plugin install agentmemoryWatch observations land live at http://localhost:3113.
What the hooks do
- Session start and end frame each unit of work and let
handoffresume it. - Tool-use hooks capture what changed and why, the raw material for
recallandrecap. - Prompt-submit captures intent. Pre-compact preserves context before the host trims it.
- A post-commit hook links commits to sessions, which powers
commit-contextandcommit-history.
Important
- Capture is on by default and is zero-LLM. Turning observations into LLM summaries (
AGENTMEMORY_AUTO_COMPRESS) and injecting them back into context (AGENTMEMORY_INJECT_CONTEXT) are separate opt-ins because they spend tokens. - If observations are missing, confirm the plugin is enabled and the server is running. See ../_shared/TROUBLESHOOTING.md.
See also
- agentmemory-config for the capture and injection flags.
- The handoff, recap, and session-history skills consume what these hooks record.
Reference
The exact registered hook events live in REFERENCE.md, generated from plugin/hooks/hooks.json.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

