PreCompact
73Hook Claude Code
Runs before the context is compacted for manual and auto tool calls, executing pre-compact.sh via bash with --show-toplevel (2 commands). From dkothule/ai-context.
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
Hook Claude Code
Runs before the context is compacted for manual and auto tool calls, executing pre-compact.sh via bash with --show-toplevel (2 commands). From dkothule/ai-context.
Hook
Runs when a session starts, running /usr/local/bin/dora memory context --json. From saif-shines/doraval.
Hook
Runs when you submit a prompt, before the agent sees it, executing run_hook.sh. From Lians-ai/Lians.
Hook Claude Code
Runs before the context is compacted, running bd prime. From sfrangulov/skill-graveyard.
Hook
Part of exomem
Runs before the context is compacted for manual and auto tool calls, executing exomem-continuation-checkpoint.sh via bash. From Artexis10/exomem.
Hook
Runs before the context is compacted for ^(auto and manual)$ tool calls, executing launch.py via python3. From hehee9/codex-compressor.
Hook Claude Code
Part of memory-layer
Runs when a session starts, running mem context --project "$PWD" --limit 10 --format brief. From runtimenoteslabs/memory-layer.
Hook Claude Code
Part of memory-layer
Runs after a tool call finishes for Write and Edit tool calls, running an inline shell check. From runtimenoteslabs/memory-layer.
fruitriin/embodied-claude-wardrobe
Hook Claude Code
Runs when you submit a prompt, before the agent sees it, executing interoception.sh, recall-hook.sh, hearing-hook.sh, turn-reminder.sh and run-keyword-buffer.sh (5 commands). From fruitriin/embodied-claude-wardrobe.
Hook
Part of ctx
Runs when you submit a prompt, before the agent sees it, executing chat-memory.py, bm25-memory.py and memory-keyword-trigger.py with --rich (3 commands). From pluto2060/CTX.
huzaifa525/claude-code-optimizer
Hook Claude Code
Part of claude-code-optimizer
Runs when a session starts, executing generate-context.sh, memory-inject.sh, resume-plan.sh, auto-setup.sh and auto-update-check.sh via bash (5 commands). From huzaifa525/claude-code-optimizer.
Hook
Part of gitmem-hooks
Runs before the agent uses a tool for Bash, Read, Write and Edit tool calls, executing credential-guard.sh and recall-check.sh via bash (5 commands). From gitmem-dev/gitmem.
jeremylongshore/plugins-nixtla
Hook Claude Code
Runs before the context is compacted, executing post-compact.sh. From jeremylongshore/plugins-nixtla.
basicmachines-co/basic-memory-plugins
Hook
Part of basic-memory
Runs before the agent uses a tool for mcp__.*__write_note tool calls, running an inline shell check. From basicmachines-co/basic-memory-plugins.
Hook
Runs before the context is compacted, executing aicx-precompact.sh. From Loctree/loctree.
Hook Claude Code
Runs before the context is compacted, running nexus-save-resume-state. From DorianSchlede/nexus-template.
Felpix-Studios/social-science-research
Hook
Part of social-science-research
Runs before the context is compacted, executing pre-compact.py via python3. From Felpix-Studios/social-science-research.
Hook
Part of artel
Runs when you submit a prompt, before the agent sees it, executing artel-check-inbox.sh and artel-recall.sh (2 commands). From NicolasPrimeau/artel.
Hook
Runs when you submit a prompt, before the agent sees it, executing prompt-recall-hook.mjs. From pbmagnet4/nlm-memory.
Hook
Part of memharness
Runs when a session starts, running npx -y -p @memharness/mcp memharness-context --subject user. From las7/memharness.
Hook
Part of core-memory-kit
Runs when the agent asks permission for an action for mcp__cmk__.* and Skill tool calls, executing cmk-approve-permission.mjs via node (2 commands). From LH8PPL/core-memory-kit.
Hook
Part of cc-memory
Runs before the context is compacted, executing pre_compact.py and consolidate_async.py via python3 (2 commands). From skymanbp/cc-memory.
Hook
Part of mneme
Runs before the context is compacted, executing distill-hook.sh. From rhoulihan/mneme.
aeriondyseti/vector-memory-mcp
Hook
Part of vector-memory
Runs after a tool call finishes, executing context-monitor.ts via bun with --throttled. From aeriondyseti/vector-memory-mcp.
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: