agent-review-and-verify

agent-review-and-verify is a cursor rule for Cursor from KwokJay/cc-agent-harness. It costs 275 tokens per session, scanned A, original, MIT.

A completion rule requiring a coding agent to review its own changes and run the repository's automated checks. The instructions are written in Chinese.

In plain words
What is it for?
Use it after any feature, bug fix, or refactor in a project that provides the pnpm agent-review command, which runs linting, tests, and a build.
Why use it?
It creates a final gate for catching unrelated edits, missed edge cases, type or security risks, and mismatches with project documentation.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it after any feature, bug fix, or refactor in a project that provides the pnpm agent-review command, which runs linting, tests, and a build.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kwokjay/cc-agent-harness/agent-review-and-verify
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/KwokJay/cc-agent-harness

Made for: Cursor.

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 agent-review-and-verify

README.md
[![agentmods](https://agentmods.dev/badge/rules/kwokjay/cc-agent-harness/agent-review-and-verify/github.svg)](https://agentmods.dev/rules/kwokjay/cc-agent-harness/agent-review-and-verify)
Your own site
<a href="https://agentmods.dev/rules/kwokjay/cc-agent-harness/agent-review-and-verify"><img src="https://agentmods.dev/badge/rules/kwokjay/cc-agent-harness/agent-review-and-verify/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 agent-review-and-verify

Your own site · 80×15
<a href="https://agentmods.dev/rules/kwokjay/cc-agent-harness/agent-review-and-verify"><img src="https://agentmods.dev/badge/rules/kwokjay/cc-agent-harness/agent-review-and-verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 275 This file is loaded in full into every session.
When invoked 275 The same file — it is already loaded in full.
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.00275 $0.00275
Opus 5 $0.00138 $0.00138
Sonnet 5 $0.00055 $0.00055
Haiku 4.5 $0.00028 $0.00028

Measured 8d ago against content hash 034f0a477a50, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

agent-review-and-verify 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 8d 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.

.cursor/rules/agent-review-and-verify.mdc · 31 lines

What it actually says

任务完成门禁(必做)

在本仓库完成任意功能、修复或重构后,在宣称「完成」之前必须执行:

1. Agent 审查(自检)

  • 对照本次改动的目标,通读 diff:是否有无关改动、遗漏边界情况、类型与安全风险。
  • 确认对外行为(CLI 输出、生成文件路径、配置字段)与 README / CHANGELOG 意图一致。
  • 若涉及用户可见文案或 breaking change,检查是否需更新文档。

2. 自动化验证

在仓库根目录执行(须全部通过):

pnpm agent-review

等价于依次执行:pnpm lintpnpm testpnpm build

若任一失败,不得合并或交付;修复后重新运行直至通过。

3. 与 CI 对齐

CI 使用相同门禁(见 .github/workflows/ci.yml)。本地通过 pnpm agent-review 后再推送,可减少 CI 失败轮次。

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. 8d ago First seen · 31 lines · 275 tokens per session scan A 034f0a477a50

Subscribe to this mod's changes

agent-review-and-verify is a cursor rule published in the GitHub repository KwokJay/cc-agent-harness (2 stars, last pushed 5mo ago), licensed MIT. It adds 275 tokens to every session, about $0.0014 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.