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

Stop

97

ErebusEnigma/context-memory

Hook

Part of context-memory

Runs when the agent finishes a response, executing auto_save.py via python. From ErebusEnigma/context-memory.

5 6mo ago A tokens not measured original MIT

Stop

99

Cfvillarroel/carryover

Hook

Part of carryover

Runs when the agent finishes a response, executing co-stop-inbox.sh and mem-prompt.sh via bash (2 commands). From Cfvillarroel/carryover.

5 18d ago A tokens not measured original MIT

SessionStart

100

WolfpackOfOne/Q-agent

Hook Claude Code

Runs when a session starts on startup, resume, clear and compact, executing load_memory.py. From WolfpackOfOne/Q-agent.

5 1mo ago A tokens not measured original MIT

SessionStart

101

krishagel/geoffrey

Hook

Part of geoffrey

Runs when a session starts, executing load-context.ts via bun. From krishagel/geoffrey.

5 5mo ago A tokens not measured original MIT

SessionEnd

102

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

103

stvm8/agentValentine

Hook Claude Code

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

5 3mo ago A tokens not measured

PreCompact

104

NickRoss/2026-spring-AI-Development

Hook Claude Code

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

105

deepelementlab/saddle

Hook

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

107

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

108

rustkit-ai/aimemo

Hook Claude Code

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

109

asaphe/promptcraft

Hook Claude Code

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

110

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

112

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

113

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

114

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

115

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

116

dinhanhthi/coding-friend

Hook

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

118

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

119

djinn-soul/gemini-mem

Hook

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

120

djinn-soul/gemini-mem

Hook

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

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: