summaryrefslogtreecommitdiff
path: root/docs/engineering/code-review.md
diff options
context:
space:
mode:
authorMatt Pocock <bot@x>2026-12-04 20:12:33 +0000
committerMatt Pocock <bot@x>2026-12-04 20:12:33 +0000
commiteca3a7d63913660dbe7cb2e7ccfa0ae137df2d35 (patch)
tree7e5616694554d49adcd30d92962a1677d4f87fa8 /docs/engineering/code-review.md
parent9e1f4fd4a5762b7bc6cdf5959b1843c49bb5f6e9 (diff)
parent72188b29f453b07d5759c56e303e1542cb1cea92 (diff)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/engineering/code-review.md')
-rw-r--r--docs/engineering/code-review.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/engineering/code-review.md b/docs/engineering/code-review.md
index 12283d7..5ffb0d1 100644
--- a/docs/engineering/code-review.md
+++ b/docs/engineering/code-review.md
@@ -1,6 +1,6 @@
## What it does
-`code-review` reviews the diff between `HEAD` and a fixed point you name (a commit, a branch, a tag, `main`, `HEAD~5`) along two axes. **Standards** asks whether the code follows how this repo writes code. **Spec** asks whether the code does what the originating issue or [spec](https://www.aihero.dev/ai-coding-dictionary/spec) asked for. Each axis runs in its own [sub-agent](https://www.aihero.dev/ai-coding-dictionary/subagent) so neither sees the other's reasoning.
+`code-review` reviews the diff between your working tree and a fixed point you name (a commit, a branch, a tag, `main`, `HEAD~5`) along two axes. **Standards** asks whether the code follows how this repo writes code. **Spec** asks whether the code does what the originating issue or [spec](https://www.aihero.dev/ai-coding-dictionary/spec) asked for. Each axis runs in its own [sub-agent](https://www.aihero.dev/ai-coding-dictionary/subagent) so neither sees the other's reasoning.
The skill never merges or re-ranks the two axes. The report ends with a worst issue *per axis* and declines to name a single winner across them. A change can pass one axis and fail the other. Code that follows every convention but implements the wrong thing passes Standards and fails Spec. Code that does exactly what the [ticket](https://www.aihero.dev/ai-coding-dictionary/ticket) asked but breaks the repo's conventions does the reverse. A blended verdict lets the passing axis hide the failing one.
@@ -78,7 +78,7 @@ Each fix adds new code to review, and the judgement-call half of the Standards a
**Does it review my uncommitted work?**
-No. It diffs `<fixed-point>...HEAD`. The three-dot form measures from the merge-base and excludes staged and working-tree changes. If `implement` has not made an interim commit, the review cannot see the work that is about to go into the next commit. Commit first, then review, then amend or add a fixup.
+Yes. It reviews everything since the merge-base with your fixed point: commits, staged and unstaged changes, and new files that git doesn't ignore. Unrelated edits in your working tree get reviewed too, so stash those first.
## It's working if