Memory and context hooks

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

Browse within: claude-code-plugin 76agent-memory 70LLM 56mcp-server 35agentic-ai 33local-first 33long-term-memory 31agents 29Memory Management 28ai-memory 28ai-tools 28cli 27context-engineering 26ai-coding 24

SessionStart

01

moorcheh-ai/memanto

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts on startup and resume, running an inline shell check. From moorcheh-ai/memanto.

not rated 2.3k +21 changed 1mo ago A tokens not measured original MIT

AfterTool

02

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 102 2d ago A tokens not measured original ISC

SessionStart

03

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 16 today A tokens not measured original Apache-2.0

SessionStart

04

GiulioDER/RE-call

Hook Claude Code

One of 5 in hooks.json

Runs when a session starts on startup, resume, clear and compact, running recall-codex-hooks. From GiulioDER/RE-call.

not rated 6 changed 1mo ago A tokens not measured original AGPL-3.0

PostToolUse

05

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 4mo ago A tokens not measured original MIT

PreCompact

06

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 3d ago A tokens not measured original MIT

BeforeAgent

07

djinn-soul/gemini-mem

Hook Claude Code

One of 3 in hooks.json

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

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

SessionStart

08

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 27d ago A tokens not measured original MIT

PreCompact

09

jim4226/claude-workspace-brain

Hook Claude Code

One of 3 in settings.json

Runs before the context is compacted, executing brain_pre_compact.py via python. From jim4226/claude-workspace-brain.

not rated 1 2mo 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 6mo 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 2mo 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 1mo 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 16d ago A tokens not measured original Apache-2.0

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: