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/tinoimammp/vantage-security-agent/scan-diffgit clone --depth 1 https://github.com/tinoimammp/vantage-security-agentWrote 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/commands/tinoimammp/vantage-security-agent/scan-diff)<a href="https://agentmods.dev/commands/tinoimammp/vantage-security-agent/scan-diff"><img src="https://agentmods.dev/badge/commands/tinoimammp/vantage-security-agent/scan-diff.svg" alt="Measured on agentmods" 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 | $0.00028 | $0.01144 |
| Opus 5 | $0.00014 | $0.00572 |
| Sonnet 5 | $0.00006 | $0.00229 |
| Haiku 4.5 | $0.00003 | $0.00114 |
Grade A, and why
scan-diff 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 3d 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
Scan only the changed files in $ARGUMENTS — a commit hash, a bare PR/MR
number (e.g. 42 or #42), or empty (defaults to HEAD) — for
vulnerabilities that change itself introduced. Fast, incremental check, not
the full /vantage:scan-web/scan-mobile pipeline. Same SAST-only rule
applies: read the diff and resulting file content, never run the
application. Bash here is scoped to read-only git/PR history commands only
— never used to build, run, or test the target app.
All output for this run lives under one self-contained root,
artifacts/commit-scans/<id>/ (<id> = the commit hash, or
pr-<number>/mr-<number>) — never touching the main pipeline's
artifacts/findings/, artifacts/poc/, or artifacts/reports/ paths.
These accumulate across runs by design — this command doesn't prune old
ones; delete a specific artifacts/commit-scans/<id>/ folder yourself
whenever you no longer need it.
- Resolve what to diff:
$ARGUMENTSempty -> useHEAD.$ARGUMENTSlooks like a commit hash andgit rev-parseresolves it -> treat as a commit.$ARGUMENTSis a bare number or#<number>-> treat as a PR/MR: trygh pr diff <number>first (GitHub); ifghisn't available or errors, tryglab mr diff <number>(GitLab). If neither works, stop and tell the user to pass an explicit commit hash instead.- Nothing resolves -> stop, don't guess.
- Get the changed files + diff:
- Commit:
git diff --name-only <hash>^..<hash>for the file list,git show <hash> -- <files>for the actual diff. - PR/MR: the
gh pr diff/glab mr diffoutput already is the diff; derive the changed-file list from itsdiff --git a/... b/...headers. - Drop deletions and anything matching
scope.json.analysis_scope.exclude_pathsifscope.jsonexists. If zero source files remain, stop and report "nothing to scan."
- Commit:
- Read
platformfrom./.vantage/artifacts/recon/scope.jsonif it exists (defaultweb). Don't auto-generate a fullscope.jsonfor this fast path. - Dispatch the platform's 10 testing agents (see
${CLAUDE_PLUGIN_ROOT}/workflow/orchestration.mdPlatform Routing for the list) as parallel Task calls. Override their normal input for this run: instead of readingartifacts/mapping/attack-surface.json, give each agent the diff from step 2 directly in its dispatch prompt and instruct it to analyze only the changed/added lines — pre-existing unchanged code in the same file was already covered by a full scan and is out of scope here. Each agent writes its own file atartifacts/commit-scans/<id>/raw-findings.<agent-name>.json. - Dispatch
validator-agentthe same way, reading + writing insideartifacts/commit-scans/<id>/(validated-findings.json). - For every
validated:trueMedium-Critical finding, dispatchpoc-agentthe same way, writing toartifacts/commit-scans/<id>/poc/<finding-id>.md— same PoC contract as the full pipeline (code evidence + manual test steps a human runs later). Do not dispatchreport-agentor generate areport.mdfor this fast path — that's the one full-pipeline artifact this command skips. - Report directly in chat: what was resolved (commit hash, or PR/MR number
plus its head commit — this is the
<commit-scan-id>used below), which agents ran, candidate count, the validated findings (severity, file:line, one-line description), and a pointer to each one's PoC file for manual test steps. - To fix one of these findings, tell the user to run
/vantage:fix-diff <commit-scan-id> <finding-id>— a separate command, not part of this one. Never dispatchfix-agentfrom inside this command.
Do not treat a clean result ("0 candidates") as proof the change is safe — this only checked the diff, not the whole attack surface (e.g. a new call site into an already-vulnerable existing function elsewhere in the repo).
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.
- 3d ago First seen · 71 lines · 28 tokens per session scan A 03c20ae5a464
scan-diff is a command published in the GitHub repository tinoimammp/vantage-security-agent (4 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 1,144 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-31.
Other commands, from other repositories
review-cheatsheet-pr
Aggressively review an OWASP cheat sheet PR across security, practicality, links/sources, duplication, and language; produce a single MERGE/REQUESTCHANGES/CLOSE verdict.
scope
Prepare a focused analysis scope for large codebases or monorepos using repomix. Creates a digestible snapshot of the target code for subsequent security analysis.
threats
Combines application understanding with systematic threat identification. First understands the application, then identifies what could go wrong.
scan
Run automated static analysis and write the results to .claude/findings.json.
propagate
When you find one vulnerability, search for the same pattern everywhere else. Developers often make the same mistake repeatedly.
mobile-audit
End-to-end mobile audit driver for Android targets. Most Android bug-bounty work involves a decompiled APK that's been split into two directories.