{ "_comment": "Generic agent hook configuration. Environment variable AGENT_PROJECT_DIR should be set by the host agent to the project root. If unavailable, hooks fall back to pwd.", "hooks": { "SessionStart": [ { "hooks": [ { "type": "command", "command": "bash \"${AGENT_PROJECT_DIR}/.agents/hooks/session-start.sh\"", "timeout": 10000 } ] } ], "PreToolUse": [ { "matcher": "Write|Edit", "hooks": [ { "type": "command", "command": "bash \"${AGENT_PROJECT_DIR}/.agents/hooks/pre-agent-check.sh\"", "timeout": 3000 } ] } ], "PostToolUse": [ { "matcher": "Write|Edit", "hooks": [ { "type": "command", "command": "bash \"${AGENT_PROJECT_DIR}/.agents/hooks/check-completeness.sh\"", "timeout": 5000 } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "bash \"${AGENT_PROJECT_DIR}/.agents/hooks/stop-check.sh\"", "timeout": 30000 } ] } ] } }