ai-memory hooks

148 tagged ai-memory, measured the same way as everything else here.

Browse within: agent-memory 93context-engineering 26artificial-intelligence 20context-management 20knowledge-graph 19ai-coding 16codex-cli 16ai-memory-system 15knowledge-management 15markdown 14agentic-coding 13opencode 13chromadb 12agent-infrastructure 9

SessionStart

49

techtheist/engram

Hook Claude Code

One of 3 in settings.json

Runs when a session starts on startup, clear and compact, executing session-brief.sh. From techtheist/engram.

not rated 17 3d ago A tokens not measured original MIT

PostToolUse

50

techtheist/engram

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Read, Edit, Write and MultiEdit tool calls, executing file-read-match.sh. From techtheist/engram.

not rated 17 3d ago A tokens not measured original MIT

UserPromptSubmit

51

wusaki0723/memory-template

Hook Claude Code

One of 7 in settings.json

Runs when you submit a prompt, before the agent sees it, running python3 (2 commands). From wusaki0723/memory-template.

not rated 10 1mo ago A tokens not measured

PreToolUse

52

wusaki0723/memory-template

Hook Claude Code

One of 7 in settings.json

Runs before the agent uses a tool for Bash tool calls, running python3. From wusaki0723/memory-template.

not rated 10 1mo ago A tokens not measured

PostToolUse

53

wusaki0723/memory-template

Hook Claude Code

One of 7 in settings.json

Runs after a tool call finishes for Write, Edit and MultiEdit tool calls, running python3. From wusaki0723/memory-template.

not rated 10 1mo ago A tokens not measured

UserPromptSubmit

54

leonardsellem/hypermnesic

Hook

Part of hypermnesic

Runs when you submit a prompt, before the agent sees it, executing hypermnesic_agent_hook.py with --host. From leonardsellem/hypermnesic.

not rated 8 6d ago A tokens not measured AGPL-3.0

PreToolUse

55

xgre1/troth

Hook

Part of troth

Runs before the agent uses a tool for Bash, Edit, Write, MultiEdit, Edit, Write, Bash, Read, Grep, Glob, NotebookEdit, Read, Grep, Glob, Bash, Edit, Write, NotebookEdit, Read, Edit, Write, MultiEdit, NotebookEdit, Grep, Glob, Bash, mcp__plugin_troth_troth-bash__run, Write, Edit, MultiEdit, hashline_edit, Read, Grep…

not rated 8 yesterday A tokens not measured AGPL-3.0

PostToolUse

56

xgre1/troth

Hook

Part of troth

Runs after a tool call finishes for Read, Grep, Glob, WebFetch, Read, Grep, Glob, Bash, Bash, Edit, Write, MultiEdit, NotebookEdit, Read, Grep, Glob, Read, Grep, Glob and mcp__.* tool calls, executing mark-read.mjs, cache-populate.mjs, mark-bash.mjs, mark-edit.mjs, post-action-recall.mjs, output-sandbox.mjs and…

not rated 8 yesterday A tokens not measured AGPL-3.0

UserPromptSubmit

57

xgre1/troth

Hook

Part of troth

Runs when you submit a prompt, before the agent sees it, executing intent-capture.mjs, constraint-capture.mjs, decision-capture.mjs, topic-shift-detect.mjs, dmn-push.mjs, injector.mjs and voice-shape.mjs via node (7 commands). From xgre1/troth.

not rated 8 yesterday A tokens not measured AGPL-3.0

SessionStart

58

benediktkraus/dreviho

Hook

One of 6 in hooks.json

Runs when a session starts, executing bootstrap-runtime.mjs via node. From benediktkraus/dreviho.

not rated 7 3mo ago A tokens not measured

UserPromptSubmit

59

benediktkraus/dreviho

Hook

One of 6 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing auto-recall.mjs via node. From benediktkraus/dreviho.

not rated 7 3mo ago A tokens not measured

Stop

60

benediktkraus/dreviho

Hook

One of 6 in hooks.json

Runs when the agent finishes a response, executing auto-capture.mjs via node. From benediktkraus/dreviho.

not rated 7 3mo ago A tokens not measured

PreToolUse

62

HthSolid/claude-dejavu

Hook

Part of claude-dejavu

Runs before the agent uses a tool for Edit, Write and MultiEdit tool calls, executing dejavu-hook.py via python. From HthSolid/claude-dejavu.

not rated 6 3mo ago A tokens not measured

SessionStart

64

recla93/Neuron

Hook

Part of neuron-guard

Runs when a session starts on startup, resume, clear and compact, executing neuron_sessionstart_hook.py via python. From recla93/Neuron.

not rated 6 14d ago A tokens not measured

PostToolUse

67

mironmax/claudecode-plugins

Hook

Part of knowledge-graph

Runs after a tool call finishes for Read, WebFetch and WebSearch tool calls, executing kg-tool-event.sh. From mironmax/claudecode-plugins.

not rated 5 2d ago A tokens not measured

SessionStart

68

ToruAI/megg

Hook

Runs when a session starts on startup and resume, running an inline shell check. From ToruAI/megg.

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

SessionStart

69

CHANGGELY/claude_codex_gemini_mem

Hook

Part of claude-mem

Runs when a session starts on startup, clear and compact, executing smart-install.js and user-message-hook.js via node (2 commands). From CHANGGELY/claude_codex_gemini_mem.

not rated 4 8mo ago A tokens not measured

Stop

72

Jessinra/Lorekeeper

Hook Claude Code

One of 2 in settings.json

Runs when the agent finishes a response, running an inline shell check. From Jessinra/Lorekeeper.

not rated 4 1mo 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: