pm-review

pm-review is a command for coding agents from wei63w/pm-manager. It costs 19 tokens per session (704 once invoked), scanned A, original, MIT.

A command that examines uncommitted changes in a Git repository and writes reasoned review findings with code excerpts.

In plain words
What is it for?
Use it to review a local Git diff, run a second cross-check, flag high-risk files, and record confirmed lessons in the project's rules library.
Why use it?
It gives developers a structured way to check changes for security, completeness, and documentation issues before accepting them. Findings can be confirmed, rejected as false positives, or postponed.

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/wei63w/pm-manager/pm-review
Clone the repo
git clone --depth 1 https://github.com/wei63w/pm-manager

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 pm-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/wei63w/pm-manager/pm-review.svg)](https://agentmods.dev/commands/wei63w/pm-manager/pm-review)
Your own site
<a href="https://agentmods.dev/commands/wei63w/pm-manager/pm-review"><img src="https://agentmods.dev/badge/commands/wei63w/pm-manager/pm-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 704 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.00019 $0.00704
Opus 5 $0.00010 $0.00352
Sonnet 5 $0.00004 $0.00141
Haiku 4.5 $0.00002 $0.00070

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

Security

Grade A, and why

pm-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 5d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • review — 100% identical, 0 lines differ
adapters/claude-code/commands/pm-review.md · 54 lines

What it actually says

User Input

$ARGUMENTS

Accepted extra words: confirm REV-xxx | false_positive REV-xxx | later REV-xxx | annotate REV-xxx | --cross | --path=... | --verbose.

Outline

/pm-review 是可见的质量闭环。用户以中文交互时用中文回复。未确认不改业务代码。

A. New review (no disposition words)

  1. Require .pm/。缺则建议 /pm-init
  2. 先跑 pm gate --path <root>pm review --path <root>。读 .pm/state/review-draft.mdguard.md。无 diff 则说 没有可评的变更 并停止,不许编造通过。
  3. 地图优先。加载 .pm/engineering/rules.md 启用规则。对照旧/新行为。碰到 risk_files 必须打断并单独成行。
  4. 只润色或补合格行(summary + reasoning + snippet + severity + file/line)。缺推理或片段禁止落盘。
  5. 建议再跑 pm review --cross,对照 .pm/state/cross-review.md 用另一套检查单(安全 vs 完成度/文档),禁止复制初评空话、禁止同一 snippet 再标 new。
  6. P0 打断。P1/P2 进报告。单测缺口只警告。
  7. 若当前仓库为 Vue:额外核对 v-html(XSS)与 v-for:key;结论仍须推理链 + 片段。
  8. 请用户回复 confirm REV-xxx / false_positive REV-xxx / later REV-xxx。回填用 pm review annotate REV-xxx(只写 .pm/reviews/annotations/)。

B. Disposition

  • confirmpm review confirm REV-xxx(或最新 unset)。仅合格行可进 rules.md
  • false_positive → 不进规范。
  • later → 待优化,留在表里。

C. After write

刷新总览待处置数。追加审计(含推理)。Closing:_closing.md 完整档。

Done When

  • 无 diff 时说了没有可评的变更
  • 每条落盘发现有推理 + 片段
  • 仅 confirmed 进入 rules.md
  • 回填未写入业务树
  • 业务代码未改,除非用户另确认修复

Shared Workflow

Map-first. Redact snippets. Confirm-before-write. Design baseline: docs/prd.md + 宪章。

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. 5d ago First seen · 54 lines · 19 tokens per session scan A 0316ffd6c7e8

Subscribe to this mod's changes

pm-review is a command published in the GitHub repository wei63w/pm-manager (99 stars, last pushed 5d ago), licensed MIT. It adds 19 tokens to every session and 704 once invoked, about $0.0001 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.