Memory and context hooks

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

Browse within: agent-memory 34ai-memory 20context-engineering 12codex-cli 8knowledge-graph 8local-first 7claude-code-hooks 6context 6knowledge-management 6llm-agents 6gemini-cli 5hybrid-search 5plugin 5

PreCompact

49

gabelul/stitch-kit

Hook

Part of stitch-kit

Runs before the context is compacted for auto and manual tool calls, executing pre-compact.mjs via node (2 commands). From gabelul/stitch-kit.

43 1mo ago A tokens not measured original Apache-2.0

UserPromptSubmit

51

TT-Wang/memem

Hook

Part of memem

Runs when you submit a prompt, before the agent sees it, executing auto-recall.sh via bash. From TT-Wang/memem.

32 2mo ago A tokens not measured original MIT

PreCompact

53

anthony-maio/mnemos

Hook

Part of mnemos-memory

Runs before the context is compacted, running an inline shell check. From anthony-maio/mnemos.

27 5mo ago A tokens not measured original MIT

PreCompact

54

RohiRIK/OpenLtm

Hook

Part of openltm

Runs before the context is compacted, executing run-hook.sh. From RohiRIK/OpenLtm.

26 25d ago A tokens not measured copy · 89% MIT

PreCompact

57

Yupcha/memXT

Hook

Part of memxt

Runs before the context is compacted, executing hook.sh. From Yupcha/memXT.

23 1mo ago A tokens not measured copy · 58% MIT

UserPromptSubmit

58

Septemc/MistakebookSkill

Hook

Part of mistakebook

Prompt-submission hooks are automatic commands that run before an AI coding agent receives your message. They react to selected phrases and can also run a preparation check for every prompt.

23 4mo ago A tokens not measured original MIT

PreCompact

59

TheSmokeDev/taskchad-os

Hook Claude Code

Runs before the context is compacted, executing pre-compact-flush.py. From TheSmokeDev/taskchad-os.

23 10d ago A tokens not measured original MIT

PreCompact

60

badwally/TheKnowledge

Hook Claude Code

Runs before the context is compacted, executing precompact-snapshot.sh. From badwally/TheKnowledge.

23 1mo ago A tokens not measured original MIT

SessionStart

61

skynetcmd/m3-memory

Hook

Part of m3

Runs when a session starts, running an inline shell check. From skynetcmd/m3-memory.

22 3d ago A tokens not measured original Apache-2.0

PreCompact

62

skynetcmd/m3-memory

Hook

Part of m3

Runs before the context is compacted for auto tool calls, running an inline shell check. From skynetcmd/m3-memory.

22 3d ago A tokens not measured original Apache-2.0

PreCompact

63

walm00/business-context-os

Hook Claude Code

Runs before the context is compacted, executing precompact_save.sh via bash. From walm00/business-context-os.

21 3mo ago A tokens not measured original MIT

SessionStart

64

redhat-ai-americas/memory-hub

Hook Claude Code

Runs when a session starts on startup, compact and clear, executing load-memories.sh (3 commands). From redhat-ai-americas/memory-hub.

20 7d ago A tokens not measured

Stop

65

Minns-ai/MinnsDB

Hook

Part of minns-agent

Runs when the agent finishes a response, running minns learn --category session_summary --from-stdin. From Minns-ai/MinnsDB.

18 2mo ago A tokens not measured AGPL-3.0

PreToolUse

66

Minns-ai/MinnsDB

Hook

Part of minns-agent

Runs before the agent uses a tool for Edit and Write tool calls, running minns recall --brief --file $TOOL_INPUT_FILE_PATH 'relevant . From Minns-ai/MinnsDB.

18 2mo ago A tokens not measured AGPL-3.0

UserPromptSubmit

68

jagoff/memo

Hook

Part of memo

Runs when you submit a prompt, before the agent sees it, running an inline shell check (4 commands). From jagoff/memo.

16 3d ago A tokens not measured original MIT

UserPromptSubmit

70

DorShaer/Husk

Hook

Runs when you submit a prompt, before the agent sees it, executing PromptProcessing.hook.ts, SatisfactionCapture.hook.ts, ReminderRouter.hook.ts and MemoryTurnStart.hook.ts (4 commands). From DorShaer/Husk.

12 6d ago A tokens not measured

PreCompact

71

Global-mindee/WAY

Hook Claude Code

Runs before the context is compacted, executing context-usage-monitor.js via node with --precompact. From Global-mindee/WAY.

11 1mo ago A tokens not measured original MIT

PreCompact

72

FortiumPartners/ensemble

Hook Claude Code

Runs before the context is compacted, running mulch prime. From FortiumPartners/ensemble.

11 29d ago A tokens not measured copy · 86% 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: