// jinx — duplicate warnings for pull requests from coding agents
Review it once.
Not twice.
Coding agents reopen work that is already sitting in the queue. Jinx checks every new pull request against the open ones and leaves one comment when it finds a likely duplicate — naming the PR it matches and why it matched.
pip install rd0-jinx| pip install rd0-jinx | the library and the CLI |
| jinx check pr.json --open-queue q.jsonl | check one PR locally |
| jinx precheck --exit-code | check a branch before opening a PR |
| uses: ReviewDebtZero/rd0-jinx@v0.1.4 | comment on every new PR |
0.0 ms
per pull request
median, 4 CPU threads
0.0
false alarms / 100
on PRs with no duplicate
0/100
right PR ranked first
over 313 real duplicates
$0
to run
no LLM, no API key
0
runtime dependencies
pure Python, 3.9+
A duplicate PR costs a review, not a merge conflict.
Across 311 real cases in AIDev where one agent’s PR repeated an open PR from a different author, counted from the moment the second PR opened until a person flagged it:
44%
went unnoticed for over an hour
15%
went unnoticed for over a day
22%
had already pulled in a human review or comment
In about one case in five, someone had already put review time into a PR that was then closed as a duplicate. Jinx aims to flag it the moment the second PR opens.
One comment. With its reasons attached.
A real run on our own repository. Issues #49 and #50 ask, in different words, for the same README change. PR #51 already fixes #49. A second agent working on #50 runs jinx precheck before opening its PR: it finds #51 and exits with code 1. When PR #52 is opened anyway, the Jinx GitHub Action comments on it. Jinx never closes, blocks or labels anything; a maintainer still decides.
- #48NAACL paper: larger-model result and two-checkpoint framing
- #51docs: add a Privacy section to the READMEfixes #49
- #52docs: add Privacy section to the READMEfixes #50jinxbotscore 1.00
This PR may duplicate #51 docs: add a Privacy section to the README
- · shares 1 of 1 changed files (README.md)
- · 100% of changed line ranges overlap
- · similar title/description after removing agent template text (0.92)
- · same author (possible re-opened or replacement PR)
Automated hint, not a decision. A maintainer should confirm before closing anything.
$ jinx precheck --base origin/main --issue 50 --body "$DESC" --exit-code --top 2
Your change: checked 2 open PRs in 1096 ms. 1 likely duplicate(s) (score >= 0.50).
DUPLICATE? #51 score 0.88 docs: add a Privacy section to the README
- shares 1 of 1 changed files (README.md)
- 100% of changed line ranges overlap
- similar title/description after removing agent template text (0.48)
#48 score 0.00 NAACL paper: larger-model result and two-checkpoint framing; presenter
- weak match
$ echo $?
1Both demo PRs came from one account, so “same author” also fired. Precheck scores lower (0.88) than the Action (1.00) because it has only the commit subject and description, not the PR title. See the original comment on #52 → Watch the video →
They read your diff. None of them read your queue.
every AI reviewer asks
“Is this code
any good?”
They are good at it, and Jinx does not compete with them. It never looks at whether your code is correct.
nobody asks
“Is this PR
already open?”
- ▸ 1.9 false alarms per 100 clean PRs
- ▸ names the PR it matched, and why
- ▸ free, CPU-only, no API key
We read the full public docs of every major AI review tool in November 2026, searching for duplicate, similar or related pull request detection. Where duplicate detection exists at all, it is for issues.
| tool | duplicate PR | explains | diff-aware | no API key | stays local | price |
|---|---|---|---|---|---|---|
| AI reviewersbuilt to judge the code inside one PR | ||||||
| CodeRabbit | ~ | ✓ | ✓ | · | · | $24–72/dev/mo · free on public repos |
| Greptile | · | ✓ | ✓ | · | ~ | ~$30/seat/mo or $1/review credit |
| Graphite Diamond | · | ✓ | ✓ | · | · | $20–40/user/mo |
| GitHub Copilot review | · | ✓ | ✓ | · | · | Paid Copilot plan |
| Qodo Merge | · | ✓ | ✓ | · | ~ | Free tier + paid |
| Duplicate-PR detectorsbuilt to compare a PR against the queue | ||||||
| ▸Jinx | ✓ | ✓ | ✓ | ✓ | ✓ | Free, MIT |
| contrib-guard | ✓ | · | · | ✓ | ✓ | Free, open source |
| Simili-bot | ✓ | ~ | · | · | · | Needs a paid embedding key |
| The platform itselfwhat GitHub gives you out of the box | ||||||
| GitHub, out of the box | · | · | · | ✓ | ✓ | Free |
✓ yes · ~ partly · · no. The highlighted column is the one that splits the categories.
Jinx
Ranks a new PR against every open PR and gives code-level reasons.
CodeRabbit
Duplicate detection is for issues. Triage surfaces close candidates for superseded PRs, and 'Related PRs' lists PRs touching the same code as context — neither is a duplicate alarm on a new PR.
contrib-guard
TF-IDF on title and body over a 0.4 threshold. Reports a score, not a reason. The strongest existing bot in our benchmark.
Simili-bot
Embeddings plus an LLM check.
honest note · This table is about what each tool is built to do, read from its own documentation. We have not benchmarked the commercial tools head to head — that needs paid accounts on live repositories — so nothing here says Jinx finds more bugs or reviews better than CodeRabbit or Greptile. It does not. It answers a question they do not ask. The measured comparison, further down, is against the tools that actually do duplicate-PR detection. Read the full audit →
Same recall as the best of them. Under half the false alarms.
We replayed 313 real duplicate pull requests from the public AIDev dataset. Each method saw only the PRs that were genuinely open at that moment, the way a bot would. Intervals are 95% bootstrap CIs clustered by repository.
On large repositories too: across 341 duplicates that maintainers labelled in 8 large open-source projects, mostly human-written, Jinx ranks the true duplicate first for 72% and in its top five for 92%, 7.3 points (95% CI 3.2 to 11.4) above a rule that matches shared issues and links.
| method | right PR ranked first / 100 | false alarms / 100 clean PRs | what it tells you |
|---|---|---|---|
| Jinx | 91.7 [88.0–95.1] | 1.9 [1.3–2.7] | This tool, the GitHub Action default |
| Jinx + MiniLM | 92.7 [88.9–95.8] | 1.8 [1.2–2.5] | With the optional local text model |
| Link rule | 93.6 [90.4–97.0] | 1.2 [0.7–1.7] | Same issue or #mention, text similarity breaks ties |
| INTRUDE + time | 91.4 [87.8–94.8] | 2.0 [1.3–3.0] | Classic research detector, Wang et al. 2019 |
| contrib-guard | 91.4 [88.5–94.7] | 5.5 [4.0–7.0] | Best existing open-source duplicate-PR bot we tested |
| Simili-bot | 87.9 [84.5–91.9] | 4.5 [3.2–6.2] | Existing duplicate-PR bot, re-implemented |
| PRSense | 82.7 [74.5–90.9] | 4.7 [3.5–6.0] | Existing duplicate-PR bot, re-implemented |
| Text similarity | 91.1 [88.1–94.3] | 3.5 [2.5–4.8] | Title and description word overlap, TF-IDF |
“Caught” means the method ranked the right PR first and scored it above the threshold that produces this false-alarm rate. Cross-validated replays on AIDev.
honest note · On ranking, the strong methods are statistically tied, and a plain link rule is slightly ahead overall — though all it can ever tell you is “these two share a link”. Our claim is the narrow one: Jinx raises under half the false alarms of the shipping bots, says exactly why it matched, and installs in two minutes. All 66 strategies →
Four signals and a logistic model. No LLM anywhere in the loop.
The whole thing is arithmetic over PR metadata and the diff. That is why it costs nothing, finishes in 6.1 ms, and can name every reason it fired.
new PR ──┐
├─▶ strip template ──┬─▶ code overlap files · line ranges · added lines ─┐
open ────┘ ├─▶ links same issue · #mention ─┤
queue ├─▶ text TF-IDF · optional MiniLM ├─▶ logistic ──▶ ranked
(≤200) └─▶ context same author · time gap ─┘ model + reasonss.01
Strip the template
Agent PRs all open with the same “## Summary … ## Testing” scaffolding. Those lines were learned from 361k agent PRs in AIDev, and anything repeated across the current queue is dropped too. Without this, unrelated PRs look alike.
s.02
Compare the code
Which files both PRs change, how far their changed line ranges overlap, and how many added lines are byte-identical. This is the signal the text-only bots do not have.
s.03
Follow the links
Whether both PRs close the same issue, or the new one references the old. Only forward references count, matching what a bot could actually know at the time.
s.04
Add the context
Same author, and the time gap between the two PRs. A re-opened or replacement PR looks different from two agents colliding.
s.05
Combine, then explain
A small logistic model turns those signals into one score from 0 to 1. The shipped weights were trained on all 4,832 AIDev queue queries. The comment lists only the signals that raised this pair's score, so a reason never argues against the warning.
Two minutes. Then it is just there.
1 · as a GitHub Action
Drop this in .github/workflows/jinx.yml. Jinx comments on a new PR when it finds a likely duplicate, and edits that same comment when the PR changes — it never posts twice.
name: jinx
on:
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: ReviewDebtZero/rd0-jinx@v0.1.4
with:
threshold: "" # empty = bundled default (0.5)
top: "3"
embed: "false" # "true" adds MiniLM (installs PyTorch)Jinx reads PR data through the GitHub API and never checks out or runs the PR’s code. On PRs from forks, pull_request gets a read-only token, so Jinx cannot comment there; the job still passes.
2 · or from the command line
Check one PR against a queue on your own machine. Input takes the GitHub API’s JSON shape; the queue can be a JSON list or JSON lines.
pip install rd0-jinxjinx check new_pr.json --open-queue open_prs.jsonlBefore opening a PR, an agent or a pre-push hook can run the same check on the local branch against the repository’s open PRs. It exits with code 1 on a likely duplicate. It reads open PRs from the origin remote and diffs against origin/main; in a fork, pass --repo owner/name and --base.
jinx precheck --exit-code| --top N | list at most N candidates |
| --threshold X | flag only scores ≥ X (default 0.5) |
| --json | machine-readable output |
| --embed | also use the local MiniLM model |
| --templates FILE | templates learned from your own PRs |
The limits, stated plainly.
It misses rewrites
Two PRs that fix the same issue with different files and different words will slip past. Lowering the threshold catches more of them and costs you false alarms.
It has not been run by strangers
The numbers come from historical replays plus a live Action run on our own repository. No outside maintainer has deployed it yet. If you try it, we want the bug report.
An LLM would do better
Claude Haiku re-checking Jinx's top five cuts false alarms from 1.7 to 0.8 per 100 PRs, for about 0.8¢ per PR. That needs an API key, so it is not in the default.
How you build the queue decides who wins.
Most published duplicate-PR evaluations score against a pool that includes recently closed PRs. Keep closed-in-the-last-7-days PRs in the queue and Jinx leads the classic research detector by 9 points. Score it the way a bot actually sees the world — open PRs only — and the two tie. The benchmark design was doing the work. We report both, and we pre-registered a kill rule that our own method then failed on cross-author Recall@5.
Tool paper (NAACL 2027 Demos, submitted) →
Jinx: Explainable Duplicate Warnings for Pull Requests from Coding Agents.
Demo video →
2:28 live demo on this repository: precheck, then the GitHub Action comment.
Software archive →
v0.1.4 on Zenodo, DOI 10.5281/zenodo.24827632.
Empirical study →
Re-evaluating duplicate PR detection on coding-agent PRs, 66 strategies.
Full report →
Every strategy, per-class results, CIs, latency and cost.
Data card →
How the benchmark was built, and its known gaps.