// .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.