Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add hooks/vit129/agy-plugin-cc/post-tool-usegit clone --depth 1 https://github.com/Vit129/agy-plugin-ccGrade A, and why
PostToolUse scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the commands this hook runs, not an audit. A hook is shell that executes on your machine at the event it names, which is why every command in it is printed with what was found.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
"command": "python3 -c \"\nimport json, os, sys, subprocess\nfrom pathlib import Path\ntry:\n from graphify.watch import _WATCHED_EXTENSIONS\n d = json.load(sys.stdin)\n t = d.get('tool_input', d)\n fp = t.get('file_path What it actually says
{
"PostToolUse": [
{
"matcher": "Edit|Write|MultiEdit",
"hooks": [
{
"type": "command",
"command": "python3 -c \"\nimport json, os, sys, subprocess\nfrom pathlib import Path\ntry:\n from graphify.watch import _WATCHED_EXTENSIONS\n d = json.load(sys.stdin)\n t = d.get('tool_input', d)\n fp = t.get('file_path') or t.get('path') or t.get('target_file') or t.get('TargetFile')\n if fp:\n p = Path(fp)\n try:\n p = p.resolve().relative_to(Path.cwd().resolve())\n except Exception:\n pass\n if p.suffix.lower() in _WATCHED_EXTENSIONS:\n parts = p.parts\n if not (any(part.startswith('.') for part in parts) or 'graphify-out' in parts):\n if os.path.exists('graphify-out/graph.json'):\n cmd = [sys.executable, '-m', 'graphify.watch', '--trigger', '.']\n kw = dict(stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL, close_fds=True)\n if os.name == 'nt':\n flags = 0x00000008 | 0x00000200\n try:\n subprocess.Popen(cmd, creationflags=flags | 0x01000000, **kw)\n except OSError:\n subprocess.Popen(cmd, creationflags=flags, **kw)\n else:\n subprocess.Popen(cmd, start_new_session=True, **kw)\nexcept Exception:\n pass\n\" 2>/dev/null || true"
}
]
}
]
}What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 13 lines scan A e577a8a52f7a
PostToolUse is a hook published in the GitHub repository Vit129/agy-plugin-cc (5 stars, last pushed 9d ago), licensed MIT. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other hooks, from other repositories
SessionStart
Runs when a session starts, executing session-lifecycle-hook.mjs via node. From arcobaleno64/agy-plugin-cc.
SessionStart
Runs when a session starts, executing session-start.sh via bash. From vinvcn/addyosmani-agent-skills-zh.
SessionEnd
Runs when a session ends, executing session-lifecycle-hook.mjs via node. From arcobaleno64/agy-plugin-cc.
PostToolUse
Runs after a tool call finishes for Edit, Write and Bash tool calls, running code-review-graph update --skip-flows. From nadimtuhin/antigravity-cli-mcp.
SessionStart
Runs when a session starts, running code-review-graph status. From nadimtuhin/antigravity-cli-mcp.
PostToolUse
Runs after a tool call finishes for Write and Edit tool calls, executing format_and_lint.sh. From supabase/supabase.