llm hooks

564 tagged llm, measured the same way as everything else here.

Browse within: python 55Multi-Agent 37agent-memory 32RAG 27knowledge-graph 27context-management 23ai-memory 21coding-agents 20knowledge-base 20local-first 20embeddings 19markdown 18sqlite 14rust 13

SessionStart

02

mem0ai/mem0

Hook

Runs when a session starts on startup, resume and compact, executing ensure_deps.sh and on_session_start.sh (2 commands). From mem0ai/mem0.

64k 3d ago A tokens not measured original Apache-2.0

PreToolUse

03

mem0ai/mem0

Hook

Runs before the agent uses a tool for Write, Edit, MultiEdit, mcp__mem0__add_memory, mcp__plugin_mem0_mem0__add_memory, mcp__mem0__search_memories, mcp__plugin_mem0_mem0__search_memories, mcp__mem0__get_memories, mcp__plugin_mem0_mem0__get_memories, mcp__mem0__delete_all_memories…

64k 3d ago A tokens not measured original Apache-2.0

PostToolUse

04

mem0ai/mem0

Hook

Runs after a tool call finishes for mcp__mem0__.*, mcp__plugin_mem0_mem0__.* and Bash tool calls, executing on_post_tool_use.sh and on_bash_output.sh (2 commands). From mem0ai/mem0.

64k 3d ago A tokens not measured original Apache-2.0

Stop

05

MemPalace/mempalace

Hook Claude Code

Runs when the agent finishes a response, executing mempal-stop-hook.sh via bash. From MemPalace/mempalace.

59k +10 yesterday A tokens not measured copy · 55% MIT

SessionEnd

06

MemPalace/mempalace

Hook Claude Code

Runs when a session ends, executing mempal-session-end-hook.sh via bash. From MemPalace/mempalace.

59k +10 yesterday A tokens not measured copy · 58% MIT

PreCompact

07

MemPalace/mempalace

Hook Claude Code

Runs before the context is compacted, executing mempal-precompact-hook.sh via bash. From MemPalace/mempalace.

59k +10 yesterday A tokens not measured copy · 63% MIT

PreToolUse

08

promptfoo/promptfoo

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From promptfoo/promptfoo.

25k yesterday A tokens not measured original MIT

PostToolUse

09

promptfoo/promptfoo

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, running an inline shell check. From promptfoo/promptfoo.

25k yesterday A tokens not measured original MIT

UserPromptSubmit

10

fathah/hermes-desktop

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, running lat hook claude UserPromptSubmit. From fathah/hermes-desktop.

14k 8d ago A tokens not measured original MIT

Stop

11

fathah/hermes-desktop

Hook Claude Code

Runs when the agent finishes a response, running lat hook claude Stop. From fathah/hermes-desktop.

14k 8d ago A tokens not measured original MIT

PostToolUse

12

areal-project/AReaL

Hook Claude Code

Runs after a tool call finishes for Write and Edit tool calls, executing check-expert-update.sh. From areal-project/AReaL.

5.7k +2 today A tokens not measured original Apache-2.0

PostToolUse

13

jihe520/MathModelAgent

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing hook_lint.sh via bash with --show-toplevel. From jihe520/MathModelAgent.

3.9k 5d ago A tokens not measured

SessionStart

14

basicmachines-co/basic-memory

Hook

Runs when a session starts, executing session_start.py via uv with --quiet and --script. From basicmachines-co/basic-memory.

3.8k yesterday A tokens not measured AGPL-3.0

PreCompact

15

basicmachines-co/basic-memory

Hook

Runs before the context is compacted, executing pre_compact.py via uv with --quiet and --script. From basicmachines-co/basic-memory.

3.8k yesterday A tokens not measured AGPL-3.0

SessionStart

16

langwatch/langwatch

Hook

Runs when a session starts, executing session-context.mjs and session-guidance.mjs via node (2 commands). From langwatch/langwatch.

3.5k yesterday A tokens not measured original Apache-2.0

Stop

17

langwatch/langwatch

Hook

Runs when the agent finishes a response, executing session-context.mjs via node. From langwatch/langwatch.

3.5k yesterday A tokens not measured original Apache-2.0

PreToolUse

18

av/harbor

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From av/harbor.

3.2k 2d ago A tokens not measured original Apache-2.0

SessionEnd

19

moltis-org/moltis

Hook Claude Code

Runs when a session ends, executing save-session.sh. From moltis-org/moltis.

2.8k 4d ago A tokens not measured copy · 48% MIT

Stop

20

moltis-org/moltis

Hook Claude Code

Runs when the agent finishes a response, executing rename-plan.sh. From moltis-org/moltis.

2.8k 4d ago A tokens not measured original MIT

PreToolUse

21

LLMQuant/quant-mind

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing pre_tool_use_no_bypass.py via python3. From LLMQuant/quant-mind.

2.8k 17d ago A tokens not measured original MIT

UserPromptSubmit

22

pchalasani/claude-code-tools

Hook

Runs when you submit a prompt, before the agent sees it, executing share_hook.py via bash. From pchalasani/claude-code-tools.

2.0k 2d ago A tokens not measured original MIT

UserPromptSubmit

23

PolyArch/humanize

Hook

Runs when you submit a prompt, before the agent sees it, executing loop-plan-file-validator.sh. From PolyArch/humanize.

1.4k 4d ago A tokens not measured

PreToolUse

24

PolyArch/humanize

Hook

Runs before the agent uses a tool for Write, Edit, Read and Bash tool calls, executing loop-write-validator.sh, loop-edit-validator.sh, loop-read-validator.sh and loop-bash-validator.sh (4 commands). From PolyArch/humanize.

1.4k 4d ago A tokens not measured