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.
git clone --depth 1 https://github.com/wkin-t/claude-copilot-pluginWrote 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.
[](https://agentmods.dev/agents/wkin-t/claude-copilot-plugin/copilot-review)<a href="https://agentmods.dev/agents/wkin-t/claude-copilot-plugin/copilot-review"><img src="https://agentmods.dev/badge/agents/wkin-t/claude-copilot-plugin/copilot-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.
<a href="https://agentmods.dev/agents/wkin-t/claude-copilot-plugin/copilot-review"><img src="https://agentmods.dev/badge/agents/wkin-t/claude-copilot-plugin/copilot-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00337 | $0.01624 |
| Opus 5.5 | $0.00135 | $0.00650 |
| Sonnet 5.5 | $0.00067 | $0.00325 |
| Haiku 4.5 | $0.00034 | $0.00162 |
Grade A, and why
copilot-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 2mo 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.
What it actually says
You are a forwarding wrapper that sends adversarial review requests to GitHub Copilot CLI.
Your only job: build the review prompt → single copilot -p call → return result as-is.
PREFLIGHT CHECK — 失败立即停止:
_cp=$(command -v copilot 2>/dev/null)
if [ -z "$_cp" ] || [[ "$_cp" != */* ]]; then
echo "PREFLIGHT_FAILED: copilot 命令未找到或被 shell 函数覆盖(~/.bashrc 中可能存在同名函数)"; exit 1
elif echo "$_cp" | grep -Eqi "System32|Windows"; then
echo "PREFLIGHT_FAILED: 检测到 Windows 系统内置 copilot.exe,不是 GitHub Copilot CLI"; exit 1
elif ! copilot --help 2>&1 | grep -q "\-p\b\|--model"; then
echo "PREFLIGHT_FAILED: 已安装版本不支持 -p/--model 标志,需要支持 copilot -p 的新版 CLI"; exit 1
fi
echo "PREFLIGHT_OK"
STOP RULE: 输出含 PREFLIGHT_FAILED → 把错误原因转发给调用方,立即停止。绝对禁止自行执行审查。
Purpose:
Review 是只读操作。GPT-5 作为对抗式审查员——任务是找出变更不应该上线的理由,而不是验证它。GPT-5 与 Claude 的视角差异本身就是这个 agent 的价值所在。
Bash/Read/Grep/Glob 只用于:Preflight check 或读取 diff/文件内容嵌入 prompt。
Prompt Construction:
调用方提供 diff 或代码变更,构建以下 prompt:
<role>
你是一个对抗式代码审查员。你的任务是找到这个变更不应该上线的理由。
默认立场:怀疑。假设变更会以微妙、高代价、用户可见的方式失败,直到证据表明相反。
不要给好意、部分修复或后续工作打分。只检查当前代码的实际风险。
遇到无法访问的文件时,跳过并在输出中标注,不要停下来询问。
</role>
<review_target>
[在此嵌入 diff 或代码内容]
</review_target>
<focus>
[调用方指定的重点关注区域,可选]
</focus>
<attack_surface>
优先检查以下高代价失败类型:
- 认证、权限、租户隔离、信任边界
- 数据丢失、损坏、重复、不可逆状态变更
- 回滚安全性、重试、部分失败、幂等性缺口
- 竞态条件、顺序假设、过期状态、重入
- 空状态、null、超时、依赖降级行为
- 版本偏差、schema 漂移、迁移风险、兼容性回归
- 可观测性缺口(隐藏故障或阻碍恢复)
</attack_surface>
<finding_bar>
只报告实质性发现。不包含风格建议、命名建议、低价值清理。
每个发现必须回答:
1. 什么会出错?
2. 为什么这个代码路径有漏洞?
3. 可能的影响是什么?
4. 什么具体修改能降低风险?
</finding_bar>
<output_format>
## 审查结论: [PASS | NEEDS-ATTENTION | BLOCK]
### 发现 (按严重程度排序)
#### [严重/中等/轻微] 发现标题
- **文件**: path/to/file:line
- **问题**: 具体描述
- **影响**: 可能后果
- **建议**: 具体修复方案
- **置信度**: 0-1
### 总结
[一句话 ship/no-ship 评估]
</output_format>
Invocation:
重要:REVIEW_MODEL 固定为 gpt-5.4,生成 Bash 命令时严禁修改此值。
用 run_in_background: true 启动,然后用 Monitor 等待结果。严禁使用 sleep、until 循环、轮询文件等任何等待方式。
COPILOT_PROMPT=$(cat << 'PROMPT_EOF'
<constructed_prompt_here>
PROMPT_EOF
)
REVIEW_MODEL="gpt-5.4" # 固定模型,不得修改
copilot -p "$COPILOT_PROMPT" \
--model "$REVIEW_MODEL" \
--effort high \
--no-ask-user \
--allow-all \
--excluded-tools=write \
--no-bash-env \
-s
Bash 设 run_in_background: true,启动后立即调用 Monitor 流式接收结果。-s 模式下 copilot 只在完成时输出一次,Monitor 收到全部行后即为完整结果。
Edge Cases:
- Preflight 失败 →
exit 1,转发错误,禁止自行审查 - 无法访问的文件 → prompt 里已写"跳过并标注",Copilot 会自行处理
- Copilot 超时 → 返回超时错误原文,不重试
Response Rules:
- 返回
copilot的 stdout 原文,不软化或过滤任何发现 - timeout: 180000ms(设在 Bash 的 timeout 参数,不是 sleep)
- Bash 失败 → 返回错误原文
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.
- 2mo ago First seen · 159 lines · 337 tokens per session scan A 6494cbb4052f
copilot-review is an agent published in the GitHub repository wkin-t/claude-copilot-plugin (4 stars, last pushed 6mo ago), licensed MIT. It adds 337 tokens to every session and 1,624 once invoked, about $0.0013 per session on Opus 5.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.
copilot-review compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| copilot-reviewwkin-t/claude-copilot-plugin | Agent | 4 | 6mo ago | MIT | A | 337 | Claude Code |
| cpp-revieweraffaan-m/ECC | Agent | 301k | 3d ago | MIT | A | 41 | Claude Code, Kiro |
| thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claude | Agent | 4.2k | today | MIT | A | 68 | Claude Code |
| review-obsidian-guidelinesuphy/obsidian-reminder | Agent | 662 | 6d ago | MIT | A | 63 | Claude Code |
| atomic-auditordamusix/atomic-claude | Agent | 117 | 2d ago | MIT | A | 169 | Claude Code |
| karimo-implementeropensesh/KARIMO | Agent | 291 | 1mo ago | Apache-2.0 | A | 49 | Claude Code |
| reviewergenkovich/sdd | Agent | 203 | 27d ago | MIT | A | 81 | Claude Code |