mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-07-25 04:20:16 +00:00
- docs/agent-hooks.md: handler reference, lifecycle events, security model - examples/hooks/: 5 runnable JSON configs (audit, lint, block-rm-rf, Discord notify, context injector) - docs/17-changelog.md: Wave 0 entry - Makefile: hooks-specific test targets - CLAUDE.md: cross-reference
24 lines
606 B
JSON
24 lines
606 B
JSON
{
|
|
"event": "post_tool_use",
|
|
"handler_type": "http",
|
|
"scope": "agent",
|
|
"matcher": "^(write_file|edit_file)$",
|
|
"if_expr": "",
|
|
"config": {
|
|
"url": "https://ci.internal.example.com/hooks/lint",
|
|
"headers": {
|
|
"Authorization": "Bearer REPLACE_ME_ENCRYPTED",
|
|
"Content-Type": "application/json"
|
|
}
|
|
},
|
|
"timeout_ms": 3000,
|
|
"on_timeout": "allow",
|
|
"priority": 10,
|
|
"enabled": true,
|
|
"source": "api",
|
|
"metadata": {
|
|
"notes": "Fire-and-forget lint ping after file writes. Non-blocking event — won't stall the agent loop.",
|
|
"tags": ["observability", "quality"]
|
|
}
|
|
}
|