Skip to content

Hooks

Event handlers defined once in the plugin source and packaged for both hosts. Each host maps them to its own lifecycle events. Toggle them with /trackbed:hooks:toggle; docs/hooks.md covers configuration, pattern lists, and formatter tables.

Hook Event Description
block-rm-rf PreToolUse (Bash) Blocks destructive file deletion commands and recommends trash instead.
confirm-review-responses PreToolUse (Bash) Confirms before committing review artifact files.
skill-usage-stats PreToolUse (Skill), UserPromptSubmit Records local skill usage statistics.
auto-format PostToolUse (Write|Edit) Auto-formats code after file modifications using detected project formatter.
update-check SessionStart (startup) Checks GitHub at most once a day and shows a notice when a newer plugin version is available, then names the new version once after an update.