# code-review

Review a branch's diff against its base and produce a typed, severity-rated
`REVIEW.md`, with a cross-model second opinion and a judge that rejects
speculation and style-nit padding.

## Use when

You want a repeatable, gated review of a feature branch before merge — every
finding located at file:line in the diff and defended by a rationale, and an
explicit statement of what was examined when the review comes back clean.

## What it emits

- `loop-workspace/review-plan.md` — file/hunk inventory, gated before review.
- `loop-workspace/REVIEW.md` — the final review report.

## Placeholders

| Token | Replace with |
|-------|--------------|
| `{{REPO_DIR}}` | Path to the repository containing the branch. |
| `{{BRANCH}}` | The branch under review. |
| `{{BASE_BRANCH}}` | The base to diff against (usually `main`). |

## Customization notes

- **PR instead of a branch:** point the context commands at
  `git -C <repo> diff <base>...<pr-head>` after fetching the PR head, or
  replace them with `gh pr diff <number>`.
- **Dropping the cross-vendor reviewer:** delete the `second-opinion` council
  member, its gate membership, and its egress entry if the diff must not
  leave the machine.
- **Review focus:** tighten the goal statement to the dimension you care
  about (e.g. security-only) rather than adding more judges.

---

Copyright (c) 2026 Kevin Simback License files are attached. [MIT](https://knowen.md/f/0cf2b407-a5a2-4840-bbfc-2450c7693b96)

### MIT notice

````text
MIT License

Copyright (c) 2026 Kevin Simback

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
````