code-review

A GitHub pull-request review for changes made by someone else. It checks the proposed code, shows a preview, and can publish a review with comments tied to specific lines.

In plain words
What is it for?
Use it to review one pull request or several linked pull requests, check them against a stated goal, and publish inline comments and an overall review on GitHub.
Why use it?
It helps you review changes consistently and avoid posting a verdict before checking the findings. It is intended for another person's pull request, not your own uncommitted work.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/higoralves/orc/code-review
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,177 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00045 $0.04177
Opus 5 $0.00023 $0.02089
Sonnet 5 $0.00009 $0.00835
Haiku 4.5 $0.00005 $0.00418

Measured 2d ago against content hash 9b9580c9ebf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

orc/commands/code-review.md · 277 lines

How it starts

The opening of the file, as written. The whole thing — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/orc:code-review

Review a pull request authored by someone else. Default behavior: post a real GitHub PR review with inline comments anchored to the right files and lines, optional one-click suggestion blocks, and a review event determined mechanically from finding severities.

The agents (orc-pr-reviewer, orc-security-reviewer) return structured JSON findings. This command merges them, sanity-checks for verdict-vs-severity contradictions, shows a preview, and posts via gh api (or the GitHub MCP if available).

Arguments

  • <pr-number-or-url> — required (unless --prs is given). Either 123 (current repo), org/repo#123, or a full URL.
  • --prs a#1,b#2,... — workspace mode: review a set of linked PRs as one logical change. Each entry is repo#pr or full URL. Findings are tagged with [repo:<name>] and the merge order from the workspace plan is surfaced in the summary. Mutually exclusive with the positional <pr-number-or-url>.
  • --context <description> — optional. Describes what the PR is supposed to accomplish, used for requirements-alignment checks.
  • --summary-only — produce the legacy text-block markdown summary instead of posting inline. For when you want markdown to paste elsewhere or don't want to auto-post. Skips Phases 5–7.
  • --soft-teststest-severity findings drop to COMMENT instead of forcing REQUEST_CHANGES. Use for repos with weak test culture or PRs you explicitly want to land despite test gaps.
  • --dry-run — runs through Phase 6 (preview) but never posts. The constructed payload is echoed as JSON for inspection. Useful for testing or for reviews you want to inspect locally before deciding.
  • --include-nits — keep nit-severity findings (default: drop them). Bumps comment count but doesn't change the event.
  • --audit — repo-wide security audit instead of a PR review. No PR ref required (and the diff-scoping phases are skipped). Dispatches orc-security-reviewer in audit scope — whole working tree via Glob/Grep, the "introduced by this change" rule suspended — plus a secret-scanning step. Nothing is posted to GitHub; output is a markdown summary. See "Audit mode" below.

Read the full file on GitHub · 277 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 277 lines · 45 tokens per session scan A 9b9580c9ebf3

Subscribe to this mod's changes

code-review is a command published in the GitHub repository HigorAlves/orc (6 stars, last pushed 5d ago), licensed MIT. It adds 45 tokens to every session and 4,177 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.