Hooks System
ADA integrates with the Claude Code hooks system. Stop and PostToolUse are the two main integration points.
// .claude/settings.json — ADA hooks
{
"hooks": {
"Stop": [{
"matcher": "",
"hooks": [{ "type": "command", "command": "node .claude/coordinator/hooks/stop.js" }]
}],
"PostToolUse": [{
"matcher": "Bash",
"hooks": [{ "type": "command", "command": "node .claude/coordinator/hooks/post-tool.js" }]
}]
}
}Stop hook
Triggered at the end of each agent session. Responsible for: updating Beta distributions (Thompson), extracting insights via LLM, saving the trajectory to SQLite.
PostToolUse hook
Triggered after each Bash tool call. Monitors intermediate outputs and can surface quality signals before the session ends.