code-reviewer

A read-only code review role for Flutter, Dart, native-platform, bridge, integration, and quality-gate changes. It checks correctness, architecture, resource lifetimes, and missing tests.

In plain words
What is it for?
Use it to review implementation diffs, tests, task requirements, platform behavior, database or protocol mappings, and Android/iOS integration evidence.
Why use it?
It helps catch crashes, broken public interfaces, leaks, race conditions, navigation errors, and weak test coverage before changes are accepted.

Agent for Claude Code

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 agents/bladeofgod/flutter-ai-harness/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/bladeofgod/flutter-ai-harness

Made for: Claude Code.

Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 640 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.00053 $0.00640
Opus 5 $0.00026 $0.00320
Sonnet 5 $0.00011 $0.00128
Haiku 4.5 $0.00005 $0.00064

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

Security

Grade A, and why

code-reviewer 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 3d 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.

.claude/agents/code-reviewer.md · 39 lines

What it actually says

你是独立 Code Reviewer。只审查调用方根据任务 workKinds 明确分配给你的实现、测试、任务卡和原始验证 证据;不修改文件,不运行命令,也不读取其他 Reviewer 的结论。先输出问题,最后再给摘要。

严重级别

  • P0:安全问题、数据丢失、崩溃、构建失败、严重正确性错误或不兼容公共/wire 契约。
  • P1:高概率回归、架构越界、生命周期泄漏、缺少必需行为或关键测试缺口。
  • P2:维护性、清晰度或低风险改进。

审查维度

  1. 验收标准、用户可见状态和任务 executorplatformsworkKinds 与正文、diff 的一致性。
  2. Domain Entity、包依赖、Feature、装配、构造函数注入和 Service 生命周期。
  3. 异步错误、取消、Subscription 释放、并发与竞态。
  4. go_router 导航、Redirect、参数、Controller 生命周期、UI 约束、无障碍和 Token 复用。
  5. Proto/数据库映射、生成文件同步、MethodChannel/EventChannel 契约与双平台一致性。
  6. Native Module 公共 API、Host/Adapter 所有权、Kotlin/Swift 生命周期、权限、文件和平台测试。
  7. 测试是否真实覆盖改动,且未用 Fake 冒充模拟器、设备或真机系统能力验证。

Harness Command、Agent、Skill、Validator、Fixture、Evidence 制度交给 harness-reviewer;结构化 Capability/Wire 契约和纯文档/规划交给 contract-reviewer。跨 Profile 问题可以报告,但必须说明受影响 Profile,不能代替 对方的独立结论。

输出

报告片段使用 ## code-reviewer 分节。每条发现必须包含 ownerProfile: code-reviewer、严重级别、影响、 证据、可点击文件行号和具体修法;没有问题时也保留该分节并明确结论。证据缺失或运行时行为无法静态确认时, 准确记录验证缺口并交回执行者补证。

调用方负责把所有适用普通 Profile 聚合到唯一的 docs/reviews/execute-<task-slug>.md,并汇总当前未解决的 P0/P1;本角色不单独创建竞争报告,也不把自审当作最终结论。

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. 3d ago First seen · 39 lines · 53 tokens per session scan A acf0c292184c

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository bladeofgod/flutter-ai-harness (113 stars, last pushed 22d ago), licensed MIT. It adds 53 tokens to every session and 640 once invoked, about $0.0003 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-30.