agentmemory-hooks
Agent skill from rohitg00/agentmemory.
What it does
- Session start and end frame each unit of work and let handoff resume it.
- Tool-use hooks capture what changed and why, the raw material for recall and recap.
- Prompt-submit captures intent. Pre-compact preserves context before the host trims it.
- A post-commit hook links commits to sessions, which powers commit-context and commit-history.
- If observations are missing, confirm the plugin is enabled and the server is running. See ../shared/TROUBLESHOOTING.md.
- agentmemory-config for the capture and injection flags.
- The handoff, recap, and session-history skills consume what these hooks record.
Requirements & configuration
Configuration: AGENTMEMORY_AUTO_COMPRESSAGENTMEMORY_INJECT_CONTEXT
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Source
Repository: https://github.com/rohitg00/agentmemory
agentmemory-hooks FAQ
What does the agentmemory-hooks skill do?
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. Session start and end frame each unit of work and let handoff resume it. Tool-use hooks capture what changed and why, the raw material for recall and recap.
What does agentmemory-hooks require?
Configuration keys: AGENTMEMORY_AUTO_COMPRESS, AGENTMEMORY_INJECT_CONTEXT.
How do I install agentmemory-hooks?
Run: npx -y skills add https://github.com/rohitg00/agentmemory --skill agentmemory-hooks --agent claude-code — the source lives at github.com/rohitg00/agentmemory.
Maintain agentmemory-hooks?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/rohitg00-agentmemory-agentmemory-hooks?ref=badge) npx agentictools info skills/rohitg00-agentmemory-agentmemory-hooks The second line is the CLI lookup for this page — handy in READMEs and docs.