{
  "name": "coder-review",
  "description": "Stage-driven coder loop: coder(implement) → coder-reviewer(implReview) → END. Coder implements the task directly; the reviewer audits the result and lands the fixes for what it finds. Each stage's prompt is selected by the transition graph in thread-engine.",
  "agents": [
    "coder",
    "coder-reviewer"
  ],
  "transitions": [
    {
      "from": "coder:implement",
      "to": "coder-reviewer:implReview",
      "condition": {
        "type": "always"
      }
    }
  ],
  "entryAgent": "coder",
  "entryStage": "implement",
  "maxTotalSteps": 4,
  "hooks": {
    "onEnd": {
      "command": "node ~/.cortex/hooks/post-task-hook.mjs",
      "args": [
        "coder"
      ],
      "timeout": 10000
    }
  }
}
