review

review is a command for coding agents from jpeseWang/solo-dev-workflow. It costs 0 tokens per session (1,286 once invoked), scanned A, original, MIT.

A command that reads a selected Git change and reports review findings from several perspectives before the code is committed.

In plain words
What is it for?
Use it to review uncommitted changes, staged changes, recent commits, or a specified commit range and decide what to fix.
Why use it?
It provides a second check for problems in solo work without changing the code automatically.

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/jpesewang/solo-dev-workflow/review
Clone the repo
git clone --depth 1 https://github.com/jpeseWang/solo-dev-workflow

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 review

README.md
[![agentmods](https://agentmods.dev/badge/commands/jpesewang/solo-dev-workflow/review.svg)](https://agentmods.dev/commands/jpesewang/solo-dev-workflow/review)
Your own site
<a href="https://agentmods.dev/commands/jpesewang/solo-dev-workflow/review"><img src="https://agentmods.dev/badge/commands/jpesewang/solo-dev-workflow/review.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,286 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.00000 $0.01286
Opus 5 $0.00000 $0.00643
Sonnet 5 $0.00000 $0.00257
Haiku 4.5 $0.00000 $0.00129

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

Security

Grade A, and why

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 4d 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.

variants/solo/commands/review.md · 126 lines

How it starts

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

Review my changes

Self-review the uncommitted diff from three angles before committing. Findings only — no auto-fix unless asked.

A second pair of eyes on the code you just wrote, before /commit. The risk in solo work is that nobody else ever reads the diff — this command is that reader. Output is a concrete findings list; you decide what to fix.

Input: an optional scope.

  • none → the uncommitted diff (staged + unstaged + untracked)
  • staged → only staged changes
  • HEAD~N → the last N commits on this branch
  • <sha>..<sha> → a specific range

Step 1 — Gather the diff

ARG="${1:-}"
if [ -z "$ARG" ]; then
  SCOPE="uncommitted"
  git diff --staged > /tmp/review.patch
  git diff >> /tmp/review.patch
  for f in $(git ls-files --others --exclude-standard); do
    printf -- '--- /dev/null\n+++ b/%s\n' "$f" >> /tmp/review.patch
    sed 's/^/+/' "$f" >> /tmp/review.patch
  done
elif [ "$ARG" = "staged" ]; then
  SCOPE="staged"; git diff --staged > /tmp/review.patch
elif [[ "$ARG" =~ ^HEAD~ ]]; then
  SCOPE="$ARG"; git diff "$ARG..HEAD" > /tmp/review.patch
else
  SCOPE="$ARG"; git diff "$ARG" > /tmp/review.patch
fi
echo "[SCOPE] $SCOPE"

If the diff is empty: print No changes to review. and stop.

For any file changed by more than ~20 lines, read the whole file, not just the patch. Reviewing a patch without context produces false positives.

Step 2 — Review from three angles

Examine the diff three times, each with a different hat. (If your tool can run sub-agents in parallel, run these three concurrently; otherwise do them in sequence.) Every finding must carry file:line + why it's a problem + a concrete fix.

1. Logic auditor — find real bugs: null/undefined dereferences, unhandled edge cases (empty/zero/negative/boundary), races and stale closures, swallowed or missing error handling, off-by-one, wrong state updates, type assertions that can be false at runtime.

2. Design critic — find architecture/consistency issues: names that fight the codebase convention, logic duplicated from elsewhere (grep to confirm), business logic stuffed into a UI/handler layer, a new pattern that clashes with the existing one in the same area, leaky module boundaries, weak types (any, casts hiding a real type).

Read the full file on GitHub · 126 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. 4d ago First seen · 126 lines · 0 tokens per session scan A 4f6750d7dc69

Subscribe to this mod's changes

review is a command published in the GitHub repository jpeseWang/solo-dev-workflow (2 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,286 tokens. 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.