Memory and context hooks

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

Browse within: agent-memory 51ai-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

PreCompact

145

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

146

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

UserPromptSubmit

148

albedoweb/agmem

Hook

Part of agmem

Runs when you submit a prompt, before the agent sees it, executing agmem-hook.sh. From albedoweb/agmem.

2 1mo ago A tokens not measured copy · 64% Apache-2.0

PreCompact

149

penfieldlabs/claude-penfield

Hook

Part of penfield

Runs before the context is compacted, executing pre-compact.sh via bash. From penfieldlabs/claude-penfield.

2 6mo ago A tokens not measured original MIT

PreCompact

150

A-Director/cc-forge

Hook

Part of cc-forge

Runs before the context is compacted for manual and auto tool calls, executing hermes-handoff.sh. From A-Director/cc-forge.

2 2mo ago A tokens not measured

SessionStart

151

agenisea/turing

Hook

Part of turing

Runs when a session starts on startup, resume and compact, executing restore-context.sh (3 commands). From agenisea/turing.

2 7mo ago A tokens not measured copy · 52% MIT

PreCompact

152

msshives-gif/claude-plugins

Hook

Part of compact-manager

Runs before the context is compacted for manual and auto tool calls, executing precompact.py via python3 (2 commands). From msshives-gif/claude-plugins.

2 6d ago A tokens not measured original MIT

PreCompact

153

carmentacollective/carmenta

Hook Claude Code

One of 3 in settings.json

Runs before the context is compacted, executing save-worktree-state.py via python3. From carmentacollective/carmenta.

2 2mo ago A tokens not measured

PostToolUse

154

Obidel/Agentmemory

Hook

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.

2 3mo ago A tokens not measured original MIT

SessionStart

155

phenomenoner/Chatgpt-Codex-App-Plus

Hook

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.

2 8d ago A tokens not measured original MIT

SessionStart

156

sublimecoder/aios

Hook Claude Code

One of 3 in settings.json

Runs when a session starts on startup and resume, running an inline shell check (2 commands). From sublimecoder/aios.

2 1mo ago A tokens not measured original MIT

PreCompact

157

anilcancakir/claude-code-plugin

Hook

Part of ac

Runs before the context is compacted, executing pre-compact.mjs via node. From anilcancakir/claude-code-plugin.

2 4mo ago A tokens not measured original MIT

PostToolUse

158

scitrera/memorylayer

Hook

Part of memorylayer

Runs after a tool call finishes for Bash, Edit, Write, Task, Read, Glob and Grep tool calls, running memorylayer-hook PostToolUse (4 commands). From scitrera/memorylayer.

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

PreCompact

159

AlexisBalayre/claude-code-power-config

Hook Claude Code

One of 4 in settings.json

Runs before the context is compacted, executing pre-compact-preserve.sh. From AlexisBalayre/claude-code-power-config.

2 22d ago A tokens not measured copy · 48% MIT

PreCompact

160

Fredje777/claude-zenvibe

Hook

Part of zenvibe

Runs before the context is compacted, running an inline shell check. From Fredje777/claude-zenvibe.

2 9d ago A tokens not measured original MIT

PostCompact

161

BuaaJoseph/claude-code-best-practice-zh

Hook Claude Code

One of 23 in settings.json

Runs after the context is compacted, executing hooks.py via python3. From BuaaJoseph/claude-code-best-practice-zh.

2 4mo ago A tokens not measured copy · 78% MIT

PreCompact

162

amghanekar-deloitte/AEP-MCP_SERVER

Hook Claude Code

One of 2 in settings.json

Runs before the context is compacted, running echo When summarizing this conversation, structure the summa. From amghanekar-deloitte/AEP-MCP_SERVER.

2 5d ago A tokens not measured

SessionStart

163

ReScienceLab/TrySkills

Hook Codex

Runs when a session starts, executing load-memory.py via python3. From ReScienceLab/TrySkills.

2 3mo ago A tokens not measured copy · 100% MIT

Stop

164

verygoodplugins/claude-plugins

Hook

Part of automem

Runs when the agent finishes a response, executing session-memory.sh and queue-cleanup.sh with --file and --limit (3 commands). From verygoodplugins/claude-plugins.

2 7mo ago A tokens not measured original MIT

PostToolUse

167

KumihoIO/kumiho-plugins

Hook

Part of kumiho-memory

Runs after a tool call finishes for Bash, mcp__.*kumiho-memory.*__kumiho_memory_(engage and reflect) tool calls, running an inline shell check (2 commands). From KumihoIO/kumiho-plugins.

2 4d ago A tokens not measured original MIT

PostToolUse

168

sqlew-io/sqlew-plugin

Hook

Part of sqlew

Runs after a tool call finishes for Edit, Write, write, search_replace, apply_patch, Edit, Write, write, search_replace, apply_patch, TodoWrite, ExitPlanMode and exit_plan_mode tool calls, running sqlew save (4 commands). From sqlew-io/sqlew-plugin.

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