duplicate-pr

duplicate-pr is an agent for OpenCode from kylepelham/Drift. It costs 0 tokens per session (214 once invoked), scanned A, a copy of duplicate-pr, MIT.

An agent that looks for open GitHub pull requests related to a newly opened pull request. A pull request is a proposed set of code changes for review.

In plain words
What is it for?
Use it to search with several title and description keywords, then list possible duplicates with their links and reasons for the match.
Why use it?
It helps prevent duplicate work and makes related efforts easier to find.

Agent for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: model in frontmatter; mentions OpenCode.

Good fit Use it to search with several title and description keywords, then list possible duplicates with their links and reasons for the match.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kylepelham/drift/duplicate-pr
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.

Clone the repo
git clone --depth 1 https://github.com/kylepelham/Drift

Made for: OpenCode.

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 duplicate-pr

README.md
[![agentmods](https://agentmods.dev/badge/agents/kylepelham/drift/duplicate-pr/github.svg)](https://agentmods.dev/agents/kylepelham/drift/duplicate-pr)
Your own site
<a href="https://agentmods.dev/agents/kylepelham/drift/duplicate-pr"><img src="https://agentmods.dev/badge/agents/kylepelham/drift/duplicate-pr/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.

agentmods 80×15 button for duplicate-pr

Your own site · 80×15
<a href="https://agentmods.dev/agents/kylepelham/drift/duplicate-pr"><img src="https://agentmods.dev/badge/agents/kylepelham/drift/duplicate-pr.svg" alt="Reviewed on agentmods" width="80" 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 214 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00000 $0.00214
Opus 5 $0.00000 $0.00107
Sonnet 5 $0.00000 $0.00043
Haiku 4.5 $0.00000 $0.00021

Measured 2d ago against content hash 639806db0259, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

duplicate-pr 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.

Origin

This is a copy

100% identical to duplicate-pr — 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.

engine/upstream/.opencode/agent/duplicate-pr.md · 27 lines

What it actually says

You are a duplicate PR detection agent. When a PR is opened, your job is to search for potentially duplicate or related open PRs.

Use the github-pr-search tool to search for PRs that might be addressing the same issue or feature.

IMPORTANT: The input will contain a line CURRENT_PR_NUMBER: NNNN. This is the current PR number, you should not mark that the current PR as a duplicate of itself.

Search using keywords from the PR title and description. Try multiple searches with different relevant terms.

If you find potential duplicates:

  • List them with their titles and URLs
  • Briefly explain why they might be related

If no duplicates are found, say so clearly. BUT ONLY SAY "No duplicate PRs found" (don't say anything else if no dups)

Keep your response concise and actionable.

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. 2d ago First seen · 27 lines · 0 tokens per session scan A 639806db0259

Subscribe to this mod's changes

duplicate-pr is an agent published in the GitHub repository kylepelham/Drift (20 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 214 tokens. A static security scan graded it A with 0 findings. It is 100% identical to duplicate-pr, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

rust-dev

MUST BE USED for Rust code review and refactoring. Rust purist who reviews code for idiomatic patterns, safety, and performance. Catches un-Rusty code like unnecessary clones, unwraps, type issues. Invoke with "refactor for maintainability" to get comprehensive refactoring plans saved to .claude/plans/.

DeevsDeevs/agent-system · 71 tokens

deliberator-balthasar

Use this agent only when the Open Magi skill requests Balthasar deliberation. Balthasar evaluates architecture, boundaries, maintainability, long-term evolution, and design tradeoffs. Return a Magi report only; do not edit files or run commands.

ladiossoop5star/open_magi · 59 tokens

deliberator-casper

Use this agent only when the Open Magi skill requests Casper deliberation. Casper evaluates root cause, failure paths, counterexamples, and verification gaps. Return a Magi report only; do not edit files or run commands.

ladiossoop5star/open_magi · 51 tokens

court-orchestrator

Convenes the Code Review Court, manages fix cycles, produces .review.crc.

gonzalezpazmonica/savia · 21 tokens

rust-developer

Implementación de código Rust (Axum, Tokio) siguiendo specs SDD aprobadas. Usar PROACTIVELY cuando: se implementa una feature en Rust (handlers, servicios, modelos, migraciones), se refactoriza código existente, o se corrige un bug con spec definida. SIEMPRE requiere una Spec SDD aprobada antes de empezar.

gonzalezpazmonica/savia · 78 tokens

cognitive-judge

Code Review Court judge — debuggability at 3AM, naming, complexity, logs.

gonzalezpazmonica/savia · 23 tokens