fix(hooks): add bash-file-read-guard to warn agents against cat/head/tail (fixes #2096)

This commit is contained in:
MoerAI
2026-03-23 20:15:20 +09:00
parent 331f7ec52b
commit 2f801f6c28
5 changed files with 54 additions and 0 deletions
+1
View File
@@ -47,6 +47,7 @@ export const HookNameSchema = z.enum([
"tasks-todowrite-disabler",
"runtime-fallback",
"write-existing-file-guard",
"bash-file-read-guard",
"anthropic-effort",
"hashline-read-enhancer",
"read-image-resizer",