Memory and context hooks

60 tagged Memory and context, measured the same way as everything else here.

Browse within: claude-code-plugin 93agent-memory 85LLM 71ai-memory 42local-first 39mcp-server 38agents 37agentic-ai 33cli 32model-context-protocol 32context-engineering 30ai-tools 29long-term-memory 29Memory Management 28

SessionStart

01

vectorize-io/hindsight

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts, executing dcode-sessionstart-hook.js via node. From vectorize-io/hindsight.

not rated 64k +875 changed 1mo ago A tokens not measured original MIT

PostToolUse

02

moorcheh-ai/memanto

Hook Claude Code

One of 3 in hooks.json

Runs after a tool call finishes for Bash and mcp__memanto__.* tool calls, running an inline shell check (2 commands). From moorcheh-ai/memanto.

not rated 2.4k +5 changed 1mo ago A tokens not measured original Apache-2.0

AfterTool

03

thoreinstein/gemini-obsidian

Hook Claude Code

One of 3 in hooks.json

Runs on the AfterTool event for obsidian_(create, append)_note, obsidian_update_frontmatter, obsidian_append_daily_log, obsidian_replace_section, obsidian_insert_at_heading and obsidian_replace_in_note tool calls, executing reindex-note.js via node. From thoreinstein/gemini-obsidian.

not rated 103 yesterday A tokens not measured original ISC

SessionStart

04

Lians-ai/Lians

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on ^(startup, resume and clear)$, executing run_hook.sh. From Lians-ai/Lians.

not rated 17 23d ago A tokens not measured original Apache-2.0

SessionStart

05

iLomer/Metho_agentic

Hook Claude Code

One of 3 in settings.json

Runs when a session starts on startup, running an inline shell check. From iLomer/Metho_agentic.

not rated 5 6d ago A tokens not measured original MIT

PostToolUse

06

Obidel/Agentmemory

Hook Claude Code

Runs after a tool call finishes for Edit, Write and MultiEdit tool calls, running echo 'Tip: project-specific conventions should be stored as . From Obidel/Agentmemory.

not rated 4 6mo ago A tokens not measured original MIT

PreCompact

07

rhein1/fable5-codex

Hook Claude Code

One of 2 in hooks.json

Runs before the context is compacted for ^(manual and auto)$ tool calls, executing codex-context-keeper.mjs via node. From rhein1/fable5-codex.

not rated 4 19d ago A tokens not measured original MIT

AfterAgent

08

djinn-soul/gemini-mem

Hook Claude Code

One of 3 in hooks.json

Runs on the AfterAgent event, executing hook-runner.cjs via node. From djinn-soul/gemini-mem.

not rated 3 7mo ago A tokens not measured original MIT

SessionStart

09

phenomenoner/Chatgpt-Codex-App-Plus

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts on ^(startup, resume, clear and compact)$, executing context_canvas.py via python3. From phenomenoner/Chatgpt-Codex-App-Plus.

not rated 2 1mo ago A tokens not measured original MIT

AfterAgent

10

JHdehao/gemini-mem-v3

Hook Claude Code

One of 3 in hooks.json

Runs on the AfterAgent event, executing hook-runner.cjs via node. From JHdehao/gemini-mem-v3.

not rated 1 7mo ago A tokens not measured copy · 100% MIT

SessionStart

11

zfy258/mem0-mcp-server

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on startup and resume, executing on_session_start.py. From zfy258/mem0-mcp-server.

not rated 0 3mo ago A tokens not measured original Apache-2.0

UserPromptSubmit

12

GonzaloTorreras/ai-dememory

Hook Claude Code

One of 4 in hooks.json

Runs when you submit a prompt, before the agent sees it, running ai-dememory hook-event dispatch --client codex --event UserP. From GonzaloTorreras/ai-dememory.

not rated 0 10d ago A tokens not measured

UserPromptSubmit

13

fantasyce/agent-recall-trail

Hook Claude Code

One of 2 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing launch-mcp.sh with --agent. From fantasyce/agent-recall-trail.

not rated 0 2d ago A tokens not measured original Apache-2.0

Stop

14

wefio/NodeMemoryGraph

Hook Claude Code

One of 7 in hooks.json

Runs when the agent finishes a response, executing nmg.mjs via node. From wefio/NodeMemoryGraph.

not rated 0 yesterday A tokens not measured copy · 69% MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: