Skip to content
Agent Memory
Hook

Hooks

What claude-reflect runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
claude-reflect
1.9k1 skill4 commands4 hooks

Claude Code

> /plugin marketplace add BayramAnnakov/claude-reflect
> /plugin install claude-reflect@claude-reflect-marketplace

What fires, and when

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • python3 "${CLAUDE_PLUGIN_ROOT}/scripts/capture_learning.py"

PreCompact

  • python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check_learnings.py"

PostToolUse

  • MatchesBashpython3 "${CLAUDE_PLUGIN_ROOT}/scripts/post_commit_reminder.py"

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • python3 "${CLAUDE_PLUGIN_ROOT}/scripts/session_start_reminder.py"
Read hooks/hooks.json
@bayramannakov
Ships withclaude-reflect

A self-learning system for Claude Code that captures corrections and discovers workflow patterns — turning them into permanent memory and reusable skills. Two ways to run it: Pick one. Install the plugin or the mod.

Stars on GitHub

Momentum

stars in total
1.9k
Star history of BayramAnnakov/claude-reflect on GitHub, a chart by star-history.com

More plugins that ship hooks.

mempalace

mempalace

Local-first memory for Claude Code. It stores conversations verbatim in a private palace you can search before answering about past work, people, projects, or decisions, with optional shared-brain hub setup.

3 skills+361k
@mempalace@mempalace
Install Plugin
mempalace

mempalace

Gives Claude Code a private memory that stays on your machine. It stores past conversations word for word, so you can ask what was decided, what happened before, or who was involved and get the original context back. It can also hand tasks to other agents.

3 skills+360k
@milla-jovovich@milla-jovovich
Install Plugin
mksglu-context-mode

mksglu-context-mode

Keeps large tool outputs, logs, and files out of Claude Code's context window by processing them in a sandbox and indexing them for focused search. Includes diagnostics and a knowledge base indexer.

9 skills+233k
@mksglu@mksglu
Install Plugin
context-mode

context-mode

Keeps large command outputs, logs and data files out of your AI assistant's context by running processing in a sandbox and returning only the relevant parts. You also get a searchable index of local files and diagnostics for checking the setup.

9 skills+233k
@mksglu@mksglu
Install Plugin
ai-memory

ai-memory

Gives coding agents a git-backed wiki for long-term project memory, with skills for retrieval, durable notes, session handoffs between agents, cross-project messaging, and memory consolidation.

7 skills+216k
@akitaonrails@akitaonrails
Install Plugin
letta-code

letta-code

A coding agent harness whose agents keep memory and identity across sessions, so they learn and improve over time. You can run it in a terminal, in the browser, or through Telegram, Slack and Discord.

26 skills8 hooks3.8k
@letta-ai@letta-ai
Install Plugin
claude-subconscious

claude-subconscious

A background agent for Claude Code that watches your sessions and reads your files, builds up memory over time, and offers guidance back during your work.

4 hooks2.9k
@letta-ai@letta-ai
Install Plugin
token-optimizer

token-optimizer

Audits a Claude Code or Codex setup for context-window waste, fixes it with the user's approval, and measures the savings. It also tracks costs, helps resume prior sessions, and offers a usage dashboard.

5 skills+22.8k
@alexgreensh@alexgreensh
Install Plugin

Questions about the hooks in claude-reflect.

Which coding agents can use the hooks in claude-reflect?
The hooks in claude-reflect install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.