on main help sign in
docs(hooks): add name field
commitaadb7e7932a819b184317fbde074ed6bd15be7b6 authorKieran Klukas <kieran@dunkirk.sh> dateWed 10 Jun 2026, 14:29 (4 months ago) parent021e377
1 file changed+5
docs/hooks/README.md+5
docs/hooks/README.md+5
@@ -139,6 +139,7 @@ and project-level, with project level hooks taking precedence.
139139 "hooks": {
140140 "PreToolUse": [
141141 {
142+ "name": "no-rm-rf", // friendly name shown in the TUI
142143 "matcher": "bash", // regex tested against the tool name
143144 "command": "./hooks/my-hot-hook.sh", // the path to the hook
144145 "timeout": 10, // in seconds; default 30
@@ -600,6 +601,10 @@ Each entry under a `hooks.<EventName>` array:
600601
601602```jsonc
602603{
604+ // string. Optional. Friendly display name shown in the TUI. Falls back to
605+ // command when omitted.
606+ "name": "no-rm-rf",
607+
603608 // string. Optional. Regex tested against the tool name. Omit to match all.
604609 "matcher": "^bash$",
605610