The platform for continuously improving AI agents.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"$(git rev-parse --show-toplevel)/.agents/hooks/bash_guard.py\" --deny-ask",
"timeout": 5
}
]
},
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "\"$(git rev-parse --show-toplevel)/.agents/hooks/protect_generated.py\"",
"timeout": 5
}
]
}
],
"PostToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"$(git rev-parse --show-toplevel)/.agents/hooks/uv_resync.py\"",
"timeout": 120
}
]
},
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "\"$(git rev-parse --show-toplevel)/.agents/hooks/format_file.py\"",
"timeout": 30
}
]
}
]
}
}