Merge pull request #2771 from MoerAI/fix/bash-file-read-guard
fix(hooks): add bash-file-read-guard to warn agents against cat/head/tail (fixes #2096)
This commit is contained in:
@@ -55,6 +55,7 @@ export function createToolExecuteBeforeHandler(args: {
|
||||
await hooks.questionLabelTruncator?.["tool.execute.before"]?.(input, output)
|
||||
await hooks.claudeCodeHooks?.["tool.execute.before"]?.(input, output)
|
||||
await hooks.nonInteractiveEnv?.["tool.execute.before"]?.(input, output)
|
||||
await hooks.bashFileReadGuard?.["tool.execute.before"]?.(input, output)
|
||||
await hooks.commentChecker?.["tool.execute.before"]?.(input, output)
|
||||
await hooks.directoryAgentsInjector?.["tool.execute.before"]?.(input, output)
|
||||
await hooks.directoryReadmeInjector?.["tool.execute.before"]?.(input, output)
|
||||
|
||||
Reference in New Issue
Block a user