Runs when a session starts on startup, resume, clear and compact, executing session-start.sh and on-compact.sh (2 commands). From brain-bootstrap/claude-code-brain-bootstrap.
Runs before the agent uses a tool for Write, Edit, MultiEdit, Bash, Bash, Bash, Glob and Grep tool calls, executing config-protection.sh, rtk-rewrite.sh, pre-commit-quality.sh, terminal-safety-gate.sh and suggest-compact.sh (6 commands). From brain-bootstrap/claude-code-brain-bootstrap.
Runs when the agent finishes a response, executing tdd-loop-check.sh, stop-batch-format.sh and exit-nudge.sh (3 commands). From brain-bootstrap/claude-code-brain-bootstrap.
Runs after a tool call finishes for Edit, Write, MultiEdit and Write tool calls, executing edit-accumulator.sh and warn-missing-test.sh (2 commands). From brain-bootstrap/claude-code-brain-bootstrap.