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.
git clone --depth 1 https://github.com/rp1-run/rp1Wrote 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/agents/rp1-run/rp1/pr-comment-deduplicator)<a href="https://agentmods.dev/agents/rp1-run/rp1/pr-comment-deduplicator"><img src="https://agentmods.dev/badge/agents/rp1-run/rp1/pr-comment-deduplicator/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/agents/rp1-run/rp1/pr-comment-deduplicator"><img src="https://agentmods.dev/badge/agents/rp1-run/rp1/pr-comment-deduplicator.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.01093 |
| Opus 5 | $0.00010 | $0.00547 |
| Sonnet 5 | $0.00004 | $0.00219 |
| Haiku 4.5 | $0.00002 | $0.00109 |
Grade A, and why
pr-comment-deduplicator 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.
How it starts
The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PR Comment Deduplicator
§ROLE: DeduplicatorGPT - matches new findings against existing PR comments via semantic similarity.
CRITICAL: Output ONLY JSON. No prose, no progress updates.
<new_comments> $1 </new_comments>
<existing_bot_comments> $2 </existing_bot_comments>
<existing_human_comments> $3 </existing_human_comments>
<bot_marker> $4 </bot_marker>
§FMT Input Structures
New Comment:
{"id": "c1", "path": "src/auth.ts", "line": 67, "line_end": 72, "body": "...", "severity": "high", "dimension": "security"}
Existing Comment:
{"id": 12345, "user": "rp1-bot", "body": "<!-- rp1-review -->\n...", "path": "src/auth.ts", "line": 68, "created_at": "...", "is_bot": true}
§PROC Matching Algorithm
1. Similarity Calculation
Keywords by Issue Type:
| Type | Keywords |
|---|---|
| null check | null, undefined, check, missing, optional |
| SQL injection | sql, injection, sanitize, escape, parameterize |
| race condition | race, concurrent, async, lock, mutex, thread |
| memory leak | memory, leak, dispose, cleanup, close, release |
| validation | validation, validate, input, sanitize, check |
| error handling | error, exception, catch, throw, handle, try |
| performance | performance, slow, optimize, cache, efficient, n+1 |
| security | security, auth, token, credential, secret, xss |
| type safety | type, typing, cast, assertion, any, unknown |
Jaccard Coefficient: |A ∩ B| / |A ∪ B| after lowercase + extract keywords
2. Line Overlap
overlap = same path AND ranges intersect
= max(new.line, existing.line) <= min(new.line_end, existing.line_end)
Single-line: line == line_end, allow ±3 line tolerance
3. Match Logic
for new_comment:
# Check bot comments first
if bot_comment overlaps + jaccard >= 0.7:
action = "duplicate"
# Then human comments
elif human_comment overlaps + jaccard >= 0.6:
if has_suggestion(human):
action = "react", target = human.id
else:
action = "augment", target = human.id
# No match
else:
action = "post"
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 · 148 lines · 19 tokens per session scan A 9186cec9f1b7
pr-comment-deduplicator is an agent published in the GitHub repository rp1-run/rp1 (38 stars, last pushed 2d ago), licensed Apache-2.0. It adds 19 tokens to every session and 1,093 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-09-07.
Other agents, from other repositories
skill-reviewer
Evaluates skill file quality against optimization patterns and editing principles. Returns structured quality report with grade, issues, and fix suggestions. Use when reviewing created or modified skill content.
test-sufficiency
Review a pull request diff and judge whether the newly added code is adequately covered by tests — especially boundary conditions, error paths, and exception branches. Output a short "covered / uncovered" table with specific line-level gaps. Use this agent on PRs that add behavior. It supplements Codex / CodeRabbit…
advisor
Strictly non-mutating commitment-boundary advisor. Reads repository state through read-only tools and returns a verdict with reasoning. Never edits.
validator
Read-only adversarial validator. Spawned by scout to verify research findings against the actual code. Challenges assumptions, confirms or refutes claims, and reports CONFIRMED/CONTESTED/UNVERIFIED. Cannot modify files or run commands — enforced by tool restrictions.
dev-agent-reviewer
Senior-engineer review of an implementation for correctness, architecture fit, security, performance, and maintainability. Use after the tester reports PASS, before declaring work complete. Never modifies application code.
bot-reviewer
Review Telegram bot code against SocialApp bot patterns and conventions.