#!/usr/bin/env bash set -uo pipefail script_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd) # Best effort: without Python 3.11+ this hook is a silent no-op; doctor reports that case. . "$script_dir/resolve-python.sh" if resolve_python; then run_python "$script_dir/agent-guards.py" stop 2>/dev/null || true; fi