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.
npx agentmods add commands/hamr0/agentic-toolkit/diff-reviewgit clone --depth 1 https://github.com/hamr0/agentic-toolkitWhat 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 | $0.00013 | $0.00983 |
| Opus 5 | $0.00006 | $0.00491 |
| Sonnet 5 | $0.00003 | $0.00197 |
| Haiku 4.5 | $0.00001 | $0.00098 |
Grade A, and why
diff-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 2d 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.
This is a copy
100% identical to diff-review — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Review $ARGUMENTS. Interpret in this order:
- Empty → staged diff (
git diff --staged); if empty, working-tree diff (git diff). - A range like
main..HEADororigin/main...HEAD→git diff <range>. - A single ref (branch / tag / SHA — confirm with
git rev-parse --verify) → diff that ref's merge-base againstHEAD(i.e. everything on the current branch since it diverged:git diff $(git merge-base <ref> HEAD)..HEAD). This is the common "review my branch before merging" path. - A file or directory path → that target.
- Otherwise → ask.
The diff is the subject; widen to surrounding code only as needed to judge a
hunk. For multi-commit ranges, also skim git log <range> to understand
intent before judging.
Check For
- Bugs needing a fix. Logic errors, off-by-one, null/undefined paths, races, wrong defaults, broken edge cases. Concrete failure modes only — not vibes.
- Dead code. Unreferenced functions / vars / imports / params, unreachable
branches, commented-out blocks, legacy paths the diff just obsoleted.
git grepthe symbol before flagging — easy to be wrong. - Loose ends. TODO / FIXME / XXX added by this diff, half-finished branches, silently swallowed errors, stub bodies, mocked-out paths, "temporary" names, abandoned feature flags.
- Correctness. Edge cases, error handling, type / contract violations, broken invariants.
- Security. OWASP Top 10, auth, data exposure. (
/securityfor depth.) - Performance. N+1, blocking calls in hot paths, unbounded loops, indexes the diff actually touches.
- Maintainability. Complexity, naming, duplication — only when material.
Output Format
🚨 Critical (blocks merge)
⚠️ Warnings (should fix)
💡 Suggestions (nice to have)
Each finding: Location (file:line), What's wrong, Why it matters,
Concrete fix — not "consider improving".
After the review — verify, then fix
Findings are claims, not facts. Validate before acting; validate again after.
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.
- 2d ago First seen · 79 lines · 13 tokens per session scan A e3338b5733ef
diff-review is a command published in the GitHub repository hamr0/agentic-toolkit (22 stars, last pushed 2d ago), licensed Apache-2.0. It adds 13 tokens to every session and 983 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to diff-review, differing in 0 lines, and is treated as a copy.
Other commands, from other repositories
OPSX: Explore
Enter explore mode - think through ideas, investigate problems, clarify requirements.
OPSX: Verify
Verify implementation matches change artifacts before archiving.
OPSX: Apply
Implement tasks from an OpenSpec change (Experimental).
OPSX: Archive
Archive a completed change in the experimental workflow.
OPSX: Continue
Continue working on a change - create the next artifact (Experimental).
OPSX: Propose
Propose a new change - create it and generate all artifacts in one step.