Memory and context hooks

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

Browse within: agent-memory 49ai-memory 27agent-plugins 11context-engineering 11agentic-rag 9context-database 9dsh-plugin 9gemini-cli-extension 9local-first 9self-evolving 9claude-code-mcp 8codex-cli 8knowledge-graph 8knowledge-management 8

SessionEnd

121

krishagel/geoffrey

Hook

Part of geoffrey

Runs when a session ends, executing extract-learnings.ts, route-to-obsidian.ts, capture-history.ts, create-daily-log.ts and save-state.ts via bun (5 commands). From krishagel/geoffrey.

5 5mo ago A tokens not measured original MIT

PreCompact

122

stvm8/agentValentine

Hook Claude Code

One of 3 in settings.json

Runs before the context is compacted, executing precompact_save.sh. From stvm8/agentValentine.

5 3mo ago A tokens not measured

PreCompact

123

NickRoss/2026-spring-AI-Development

Hook Claude Code

One of 3 in settings.json

Runs before the context is compacted, running bd prime. From NickRoss/2026-spring-AI-Development.

5 4mo ago A tokens not measured copy · 100% BSD-3-Clause

UserPromptSubmit

124

deepelementlab/saddle

Hook

One of 4 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing inject-memories.js via node. From deepelementlab/saddle.

5 4mo ago A tokens not measured original MIT

PreCompact

126

israelmirsky/claude-code-soul

Hook

Part of soul

Runs before the context is compacted, executing memory-flush.sh. From israelmirsky/claude-code-soul.

5 5mo ago A tokens not measured copy · 56% MIT

Stop

127

rustkit-ai/aimemo

Hook Claude Code

One of 2 in settings.json

Runs when the agent finishes a response, running aimemo inject --claude. From rustkit-ai/aimemo.

4 5mo ago A tokens not measured original MIT

PreCompact

128

asaphe/promptcraft

Hook Claude Code

One of 5 in settings.json

Runs before the context is compacted for auto tool calls, executing precompact-preserve.sh. From asaphe/promptcraft.

4 1mo ago A tokens not measured

PreCompact

129

obsfx/trekker-claude-code

Hook

Part of trekker

Runs before the context is compacted, executing pre-compact.sh via bash. From obsfx/trekker-claude-code.

4 4mo ago A tokens not measured copy · 56% MIT

SessionStart

131

alexanderop/claude-code-memory

Hook

Part of memory

Runs when a session starts, executing inject-memory.mjs and curate.mjs via node (2 commands). From alexanderop/claude-code-memory.

4 2mo ago A tokens not measured

SessionStart

132

GiulioDER/RE-call

Hook

Part of recall

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

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

PreToolUse

133

GiulioDER/RE-call

Hook

Part of recall

Runs before the agent uses a tool for Write, Edit, MultiEdit, NotebookEdit and Bash tool calls, running recall-hooks. From GiulioDER/RE-call.

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

PreCompact

134

GiulioDER/RE-call

Hook

Part of recall

Runs before the context is compacted for manual and auto tool calls, running recall-hooks. From GiulioDER/RE-call.

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

PreCompact

135

dinhanhthi/coding-friend

Hook

One of 8 in hooks.json

Runs before the context is compacted, executing memory-capture.codex.sh. From dinhanhthi/coding-friend.

3 3d ago A tokens not measured original MIT

PreCompact

137

QBall-Inc/clear

Hook

Part of clear

Runs before the context is compacted, executing session-precompact.sh. From QBall-Inc/clear.

3 2mo ago A tokens not measured original Apache-2.0

AfterAgent

138

djinn-soul/gemini-mem

Hook

One of 3 in hooks.json

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

3 4mo ago A tokens not measured original MIT

BeforeAgent

139

djinn-soul/gemini-mem

Hook

One of 3 in hooks.json

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

3 4mo ago A tokens not measured original MIT

SessionStart

141

seeker71/Coherence-Network

Hook Claude Code

One of 4 in settings.json

Runs when a session starts, executing carry_thread.py, arrival.py, agent-coord.sh, ensure_form_cli_kernel.sh and ensure_form_cli_native.sh via python3 with --agent (6 commands). From seeker71/Coherence-Network.

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

PostToolUse

142

CAPHTECH/pce-memory

Hook

Part of pce-memory-plugin

Runs after a tool call finishes for Write and Edit tool calls, executing observe-file-change.sh. From CAPHTECH/pce-memory.

3 5mo ago A tokens not measured copy · 56% MIT

PreCompact

143

spideynolove/memory

Hook Claude Code

One of 3 in settings.json

Runs before the context is compacted, executing pre_compact.py via python. From spideynolove/memory.

3 5mo ago A tokens not measured original MIT

PreCompact

144

OnourImpram/mneme

Hook

One of 4 in hooks.json

Runs before the context is compacted, running mneme hook pre-compact. From OnourImpram/mneme.

2 5d 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: