harness-review

harness-review is a command for Claude Code from hahaxiang27/FlowHarness. It costs 78 tokens per session (2,419 once invoked), scanned A, original, MIT.

A command that asks a separate peer-review agent to examine code changes against the project rules and feature specification. It produces a review report without starting the evaluator process.

In plain words
What is it for?
Use it to review a completed task, someone else's code, or changes spanning several tasks, using a task ID and optional base commit.
Why use it?
It adds an independent review of a task or group of changes, which can reveal issues the original implementer missed.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; mentions subagents.

Good fit Use it to review a completed task, someone else's code, or changes spanning several tasks, using a task ID and optional base commit.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hahaxiang27/flowharness/harness.review
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.

Clone the repo
git clone --depth 1 https://github.com/hahaxiang27/FlowHarness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harness-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/hahaxiang27/flowharness/harness.review/github.svg)](https://agentmods.dev/commands/hahaxiang27/flowharness/harness.review)
Your own site
<a href="https://agentmods.dev/commands/hahaxiang27/flowharness/harness.review"><img src="https://agentmods.dev/badge/commands/hahaxiang27/flowharness/harness.review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for harness-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/hahaxiang27/flowharness/harness.review"><img src="https://agentmods.dev/badge/commands/hahaxiang27/flowharness/harness.review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00078 $0.02419
Opus 5 $0.00039 $0.01210
Sonnet 5 $0.00016 $0.00484
Haiku 4.5 $0.00008 $0.00242

Measured 10d ago against content hash 64d9b88db46a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

harness-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 10d 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.

commands/harness.review.md · 86 lines

How it starts

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

Harness Peer Review

*关联 peer-reviewer sub-agent · 双观众设计(工程师建心智模型 + 系统æ”?bug)ã€?

**上下文管ç?*: 保持当前上下文(需要读 diff + CLAUDE.md + specï¼?

指令

独立 ad-hoc è·?peer review,不è¿?evaluator 流程。/harness.exec 默认åœ?L2.5 内置同样çš?review,本命令是手工触发版(如:补 review æ—?task / review 别人写的代码 / review 跨多 task 的整段改动)ã€? 读取以下文件ï¼?1. .harness/prompts/peer-reviewer.md â€?sub-agent prompt 2. 项目æ ?CLAUDE.md â€?项目味道 3. specs/<feature>/spec.md â€?当前 feature spec(自动从 task ID 推断或用户传参) 4. git diff(默è®?HEAD~1..HEAD,可参数指定 baseï¼?

输入参数

  • Task ID:$ARGUMENTS(必ä¼?· 例如 T042 æˆ?chapter-quiz-genï¼?- Base commit(可选):--base <SHA>,默è®?HEAD~1

执行步骤

Step 1 · 解析参数
  • ä»?task ID 反查 spec:扫 specs/*/tasks.md,找到包含该 task ID çš?spec
  • 找不åˆ?spec â†?警告但不阻断(review 仍可跑,只是少了 spec 上下文)
  • 解析 base:默è®?git rev-parse HEAD~1,可è¢?--base 覆盖
Step 2 · 收集 diff
git diff <base>..HEAD --name-only
git diff <base>..HEAD

如果 diff 为空 â†?报错并退出(没改动没 review 必要)ã€?

Step 3 · 调用 peer-reviewer sub-agent

ç”?Task 工具 spawn sub-agentï¼?- system prompt:.harness/prompts/peer-reviewer.md 全文

  • 参数:task_id + base_commit + diff 内容

Sub-agent 按其 Step 0-5 走完,写ç›?.harness/reviews/<task-id>.md,输å‡?PEER_REVIEWER_RESULTã€?

Step 4 · 把报告路径反馈用æˆ?

输出格式ï¼?

âœ?Peer Review 完成 · Task <ID>

报告: .harness/reviews/<task-id>.md
verdict: PASS | WARN | FAIL
score: X/10
must-fix: N · should-fix: M · suggestion: K · sensor-gap: G

要点ï¼?给人çœ?段摘要):
- 改了什么:[Step 1.1 摘要]
- 排查指引:[Step 1.4 å¤?2 条]

完整报告打开 .harness/reviews/<task-id>.md

Read the full file on GitHub · 86 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. 10d ago First seen · 86 lines · 0 tokens per session scan A 64d9b88db46a

Subscribe to this mod's changes

harness-review is a command published in the GitHub repository hahaxiang27/FlowHarness (4 stars, last pushed 2mo ago), licensed MIT. It adds 78 tokens to every session and 2,419 once invoked, about $0.0004 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.