PreCompact
145Hook Claude Code
One of 3 in settings.json
Runs before the context is compacted, executing pre_compact.py via python. From spideynolove/memory.
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
Hook Claude Code
One of 3 in settings.json
Runs before the context is compacted, executing pre_compact.py via python. From spideynolove/memory.
Hook
One of 4 in hooks.json
Runs before the context is compacted, running mneme hook pre-compact. From OnourImpram/mneme.
Hook
Part of inkwell-hooks
Runs when a session starts, executing inkwell_session_start.py via python. From veronchenko/inkwell-memory.
Hook
Part of agmem
Runs when you submit a prompt, before the agent sees it, executing agmem-hook.sh. From albedoweb/agmem.
Hook
Part of penfield
Runs before the context is compacted, executing pre-compact.sh via bash. From penfieldlabs/claude-penfield.
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.
Hook
Part of turing
Runs when a session starts on startup, resume and compact, executing restore-context.sh (3 commands). From agenisea/turing.
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.
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.
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.
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.
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.
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.
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.
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.
Hook
Part of zenvibe
Runs before the context is compacted, running an inline shell check. From Fredje777/claude-zenvibe.
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.
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.
Hook Codex
Runs when a session starts, executing load-memory.py via python3. From ReScienceLab/TrySkills.
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.
IDisposable/claude-transcript-plugin
Hook
Part of transcript-saver
Runs before the context is compacted, running an inline shell check. From IDisposable/claude-transcript-plugin.
shimeeuisuk/claude-memory-plugin
Hook
Part of claude-memory
Runs when a session starts, executing sync-pull.sh via bash. From shimeeuisuk/claude-memory-plugin.
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.
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.
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: