Sign in
Explore
Add-ons · HookEveryday codingReviewedRuns shell commands

tool-guardian/hooks.json

Blocks dangerous tool operations, such as destructive file operations, force pushes and database drops, before the agent runs them.

Kind
Hook
Works with
GitHub Copilot
Source
Awesome Copilot @ d85f762d6e52
Path
hooks/tool-guardian/hooks.json
License
MIT
Jobs
Guardrails
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
{
  "version": 1,
  "hooks": {
    "preToolUse": [
      {
        "type": "command",
        "bash": "hooks/tool-guardian/guard-tool.sh",
        "cwd": ".",
        "env": {
          "GUARD_MODE": "block"
        },
        "timeoutSec": 10
      }
    ]
  }
}