From d5b4531c2289be1b9e4abab6d7c1e56ef69a93fc Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Fri, 11 Sep 2026 14:16:46 -0600 Subject: [PATCH] docs: Added documentation for the new and improved code review suite --- Agents.md | 86 ++++++++++++++++++++++++++++++++++++++----------------- Macros.md | 2 ++ Skills.md | 3 +- 3 files changed, 62 insertions(+), 29 deletions(-) diff --git a/Agents.md b/Agents.md index 2dac67a..fb816d5 100644 --- a/Agents.md +++ b/Agents.md @@ -547,7 +547,7 @@ Claude Code or OpenCode handle complex multi-step tasks. For a working example of an orchestrator agent that uses sub-agent spawning, see the built-in [sisyphus](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/sisyphus) agent. For an example of the teammate messaging pattern with parallel sub-agents, -see the [code-reviewer](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/code-reviewer) agent. +see the [domain-reviewer](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/domain-reviewer) agent. > **Jobs vs. sub-agents:** sub-agents are for work that needs *reasoning*: they run a full LLM loop. To background a > single long-running **tool call** (a build, a test suite, a slow MCP invocation), use the @@ -726,7 +726,7 @@ agent__check_inbox Messages are routed through the parent's supervisor. A parent can message its children, and children can message their siblings. For a working example of the teammate pattern, see the built-in -[code-reviewer](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/code-reviewer) agent, which spawns file-specific reviewers that share +[domain-reviewer](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/domain-reviewer) agent, which spawns file-specific reviewers that share cross-cutting findings with each other. Sub-agents run by [graph agent nodes](Graph-Agents#agent) can also form per-fan-out teams: set `teammates: true` on the @@ -828,7 +828,7 @@ otherwise. For the full skills model, including the frontmatter format, validati the graph-agent variant, see the [Skills Guide](Skills). For working examples of agents that use skills heavily, see the bundled -[`file-reviewer`](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/file-reviewer) and [`code-reviewer`](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/code-reviewer) agents. +[`file-reviewer`](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/file-reviewer) and [`domain-reviewer`](https://github.com/Dark-Alex-17/coyote/blob/main/assets/agents/domain-reviewer) agents. ## 10. Auto-Injected Prompts @@ -852,12 +852,16 @@ available; only the auto-injected prompt text is suppressed. # Built-In Agents Coyote comes packaged with some useful built-in agents: -* `adversary`: An adversarial plan-conformance reviewer. Where `code-reviewer` asks "is this code good?", - `adversary` asks "is this the code the plan asked for β€” all of it, and only it?". Given a diff plus the - task/plan's acceptance criteria, it maps every criterion to evidence in the diff and hunts for silently - skipped criteria, scope drift, interface substitution, and requirements that never landed ("the dog that - didn't bark"), returning a blocking `ADVERSARIAL_REVIEW: CONFORMS`/`DIVERGES` verdict (via the - `adversarial-review` skill). The post-implementation counterpart to `oracle`'s pre-implementation +* `adversary`: A graph-based adversarial plan-conformance reviewer. Where `code-reviewer` asks "is this code good?", + `adversary` asks "is this the code the plan asked for? All of it, and only it?". The graph extracts the plan's + acceptance criteria into a list and fans out one fresh-context verification branch per criterion, so partial + coverage ("checked 8 of 12 and waved the rest through") is structurally impossible. Each verdict passes a + deterministic contract gate: `MET` requires evidence including the test proving the behavior (no test means at + best `PARTIAL`), malformed output is rejected once then recorded as `PARTIAL` (unproven). Then, a holistic + ADDITIVE-only pass hunts what per-criterion checks can't see: absence ("the dog that didn't bark"), scope drift, + interface substitution, silently-overridden recorded decisions, and gamed tests. A script computes the blocking + `ADVERSARIAL_REVIEW: CONFORMS`/`DIVERGES` verdict: CONFORMS requires every criterion MET with zero holistic + complaints, and a missing plan fails closed. The post-implementation counterpart to `oracle`'s pre-implementation `plan-review`. Designed to be delegated to by `sisyphus` alongside `code-reviewer` (they cover different failure modes: quality vs. conformance). * `architecture-reviewer`: An on-demand architecture improvement scout (via the `codebase-design` skill). Scans a @@ -869,8 +873,8 @@ Coyote comes packaged with some useful built-in agents: doc, decomposes it into a quality-gated plan (`gatekeeper` self-containedness gate + `oracle` plan-review) and ~1-engineer-day task files (via the `design-session` and `task-tracking` skills, tracked on disk in a `plans/` directory), spawns one `sisyphus` per task on a single run branch with a - per-task `adversary` conformance check (plus a `probe` usage-pattern check when the task changes - consumer-facing surface), and finishes with ONE draft PR, CI checks watched to green, + per-task `review-gauntlet` done-gate (forced `adversary` conformance lane, plus `probe` when the task + changes consumer-facing surface), and finishes with ONE draft PR, CI checks watched to green, plus follow-up task files for every manual action the code can't do for itself. Ends with a `whetstone` continuous-improvement pass when the run addressed review feedback from outside its own lanes. Supports opt-in @@ -879,31 +883,47 @@ Coyote comes packaged with some useful built-in agents: `other: