Every hookMọi hook
A hook is a small program the harness runs around a tool call. Its tier is a code constant (HOOK_CLASS) — config can toggle a hook on/off but never change its tier, and the fail posture follows the tier. See the rig for how the gate uses them.Hook là một chương trình nhỏ harness chạy quanh mỗi lần gọi tool. Hạng của nó là hằng số trong code (HOOK_CLASS) — config bật/tắt được nhưng không đổi được hạng, và tư thế-khi-lỗi theo hạng. Xem the rig để biết gate dùng chúng thế nào.
ComplianceCưỡng chế (11)
fail-closed, exit 2 — blocks the tool and prints the fix when it trips.
agent_rbac_guard
PreToolUse(Write|Edit|MultiEdit) compliance gate keyed on agent_type.
bash_safety_guard
PreToolUse(Bash) compliance hook: destructive-command gate.
disabled_skill_router
PreToolUse(Skill) block-with-map for an off skill.
explore_model_guard
PreToolUse(Agent|Task) gate: pin Explore spawns to haiku.
gate_stage
PreToolUse(Bash) compliance hook: the stage gate.
privacy_read_guard
block reads of secret files behind human approval (compliance).
protected_ref_guard
PreToolUse(Bash) compliance hook: protect refs.
scout_block_guard
opt-in HARD block on file-tool access into heavy/generated dirs.
secret_scan_before_ship
pre-ship secret-leak gate (compliance, fail-closed).
simplify_gate
PreToolUse(Bash) gate: oversized unsimplified diffs.
write_guard
tool-mediated config-edit gate (compliance, fail-closed).
NudgeNhắc (18)
advisory on stderr — reminds, never blocks; default OFF.
backlog_capture_nudge
advisory reminder to record deferred work through
backlog_hygiene_nudge
advisory reminder to close stale open backlog items
cook_isolation_nudge
advisory /clear-before-cook reminder (nudge class).
decision_capture_nudge
opt-in decision-capture nudge (nudge-class).
decision_reconcile_nudge
Stop-event NUDGE for Decision Register drift.
descriptive_name
advise against generic file names (nudge class).
disabled_ref_nudge
advisory pointer for a ref to an install-disabled skill (nudge class).
discover_isolation_nudge
advisory /clear-before-plan reminder (nudge class).
docs_validation_nudge
opt-in docs-revalidation nudge (nudge-class).
glossary_capture_nudge
opt-in glossary-capture nudge (nudge-class).
goal_cycle_nudge
advisory reminder to drop a cycle-memory breadcrumb at a
memory_gap_hook
opt-in tier-1 memory-gap hook (nudge-class).
mutation_guard
SubagentStart/Stop DETECTION hook (nudge class, fail-open).
pending_decisions_resurface
SessionStart hook: after a compaction,
rule_nudge_hook
name the rules whose scope matches the file being written.
scout_heavy_dir_nudge
advisory context-economy reminder (nudge class).
stale_plan_close_nudge
advisory reminder to close a finished-but-open
standards_drift_nudge
keep the auto-loaded prose standards from drifting.
TelemetryĐo lường (20)
fail-open, silent — records what ran; an internal error never blocks a tool.
auto_finalize_ship
PreToolUse(Skill) hook: ship-belt backstop that
bash_write_guard
PostToolUse:Bash advisory (telemetry-class, fail-open).
emit_session_summary
on session Stop, emits one line to
glossary_pointer_inject
SessionStart hook (telemetry-class) injecting a
inject_prompt_context
context re-injection hook (telemetry-class).
manual_test_anchor
PostToolUse:Bash telemetry hook (manual-test anchor).
mark_bash_start
PreToolUse:Bash hook (telemetry-class).
notify_remote
Notification-event hook: relay Claude's notification to a
nudge_context_inject
UserPromptSubmit hook (telemetry-class) re-surfacing
phase_progress_writer
PostToolUse hook: per-phase evidence snapshot +
reinject_stop_context
Stop-event hook: re-inject working context on a
session_init
SessionStart hook (telemetry-class).
setup_nudge
SessionStart onboarding advisory (telemetry-class, fail-open).
stamp_artifact
PostToolUse hook: stamp harness provenance into plan/
subagent_init
SubagentStart context injector (telemetry, fail-open).
trace_log
append-only AUDIT trace (telemetry-class lib).
track_script_execution
PostToolUse:Bash hook (telemetry-class).
track_skill_invocation
records every skill invocation to
track_subagent_outcome
SubagentStop hook (telemetry-class).
voice_inject
SessionStart hook (telemetry-class) injecting the resolved