Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/allxsmith/bestaxnpx agentmods add commands/allxsmith/bestax/triage-find-duplicate-prsWrote 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/allxsmith/bestax/triage-find-duplicate-prs)<a href="https://agentmods.dev/commands/allxsmith/bestax/triage-find-duplicate-prs"><img src="https://agentmods.dev/badge/commands/allxsmith/bestax/triage-find-duplicate-prs/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.
<a href="https://agentmods.dev/commands/allxsmith/bestax/triage-find-duplicate-prs"><img src="https://agentmods.dev/badge/commands/allxsmith/bestax/triage-find-duplicate-prs.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00019 | $0.01610 |
| Opus 5.5 | $0.00008 | $0.00644 |
| Sonnet 5.5 | $0.00004 | $0.00322 |
| Haiku 4.5 | $0.00002 | $0.00161 |
Grade A, and why
triage-find-duplicate-prs 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/triage-find-duplicate-prs — overlapping-work check for a PR
Find OPEN, unmerged PRs that duplicate or overlap the target PR, and REPORT
them. Context from the caller: REPO, NUMBER (the target PR), and TRIGGER
(opened/labeled). If NUMBER is missing, ask.
You do not post anything. You have no comment tool. Your findings go out as
a structured payload on this command's TRIAGE-RESULT: line, and
scripts/render-triage-comment.mjs renders and publishes the comment — it owns
the marker and the decision to comment at all, including this command's
silent-by-default behavior.
Pre-checks (each exit is a skip, never a comment)
gh pr view NUMBER --repo REPO --json state,title,body,files,comments— if the PR is not open, stop and reportskip (not open).- Marker check — a comment authored by bestaxbot or a bot account
whose LAST non-empty line is
<!-- ai-triage:find-duplicate-prs -->(match marker + that author class, never one specific login — the workflow posts as bestaxbot today; older comments are from github-actions[bot] or claude[bot]): A comment COUNTS only when the marker is its LAST non-empty line — the same predicate the publisher and the auto-close cron use. Matching it here matters: a bot reply that merely QUOTES a triage comment carries the marker verbatim, so a looser "contains" test would reportalready triagedand skip the search while the publisher saw no triage comment at all, leaving the item silently un-triaged.TRIGGER=openedand marker present → stop, reportskip (already triaged). This is a cost gate that saves the fan-out below; the publisher independently refuses to overwrite an existing triage comment on anopenedrun.TRIGGER=labeled→ continue regardless; the publisher refreshes its own marker comment in place.
Search — 3 parallel agents
Read the PR title, body, and changed file list, then fan out THREE Task agents in a single message, one strategy each.
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.
- 3mo ago First seen · 137 lines · 19 tokens per session scan A c6a8fcbdf399
triage-find-duplicate-prs is a command published in the GitHub repository allxsmith/bestax (15 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 1,610 once invoked, about $0.0001 per session on Opus 5.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.
triage-find-duplicate-prs compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| triage-find-duplicate-prsallxsmith/bestax | Command | 15 | today | MIT | A | 19 | Claude Code |
| review-blocksbartstc/vite-ts-react-template | Command | 124 | 2d ago | MIT | A | 0 | Claude Code |
| e2e-testingJNTMTMTM/eIsland | Command | 362 | yesterday | GPL-3.0 | A | 0 | Claude Code |
| security-auditRewritingTheCode/workshop | Command | 12 | 4d ago | MIT | A | 17 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |