Skip to content

Commit d28b472

Browse files
author
Ofek Gabay
committed
feat: add block-no-verify PreToolUse hook to .claude/settings.json
Prevents agents from bypassing git hooks via the hook-skip flag.
1 parent c167cf2 commit d28b472

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.claude/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,18 @@
3131
"Bash(mv:*)"
3232
],
3333
"deny": []
34+
},
35+
"hooks": {
36+
"PreToolUse": [
37+
{
38+
"matcher": "Bash",
39+
"hooks": [
40+
{
41+
"type": "command",
42+
"command": "npx block-no-verify@1.1.2"
43+
}
44+
]
45+
}
46+
]
3447
}
3548
}

0 commit comments

Comments
 (0)