rd0/jinxv0.1.4
GitHub
open sourceMITCPU onlyno API key313 replayed duplicates

// 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
ways to run
pip install rd0-jinx
jinx check pr.json --open-queue q.jsonl
jinx precheck --exit-code
uses: ReviewDebtZero/rd0-jinx@v0.1.4
reads PRs fromCopilotCodexDevinClaude CodeCursorJules

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+

// 00why this exists

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.

// 01what it looks like

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.

ReviewDebtZero/rd0-jinx · pull requestsissues #49, #50
  • #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 #50
    jinxbotscore 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.

before opening the PR: jinx precheckguide →
$ 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 $?
1

Both 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 →

// 02where jinx sits

They read your diff. None of them read your queue.

every AI reviewer asks

“Is this code
any good?”

CodeRabbitGreptileGraphite DiamondGitHub Copilot reviewQodo Merge

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?”

jinx
  • ▸ 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.

toolduplicate PRexplainsdiff-awareno API keystays localprice
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 →

// 03measured against real detectors

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.

false alarms per 100 pull requests that have no duplicate — lower is better
Link rule
1.2 [0.7–1.7]
Jinx + MiniLM
1.8 [1.2–2.5]
Jinx
1.9 [1.3–2.7]
INTRUDE + time
2.0 [1.3–3.0]
Text similarity
3.5 [2.5–4.8]
Simili-bot
4.5 [3.2–6.2]
PRSense
4.7 [3.5–6.0]
contrib-guard
5.5 [4.0–7.0]
methodright PR ranked first / 100false alarms / 100 clean PRswhat it tells you
Jinx91.7 [88.0–95.1]1.9 [1.3–2.7]This tool, the GitHub Action default
Jinx + MiniLM92.7 [88.9–95.8]1.8 [1.2–2.5]With the optional local text model
Link rule93.6 [90.4–97.0]1.2 [0.7–1.7]Same issue or #mention, text similarity breaks ties
INTRUDE + time91.4 [87.8–94.8]2.0 [1.3–3.0]Classic research detector, Wang et al. 2019
contrib-guard91.4 [88.5–94.7]5.5 [4.0–7.0]Best existing open-source duplicate-PR bot we tested
Simili-bot87.9 [84.5–91.9]4.5 [3.2–6.2]Existing duplicate-PR bot, re-implemented
PRSense82.7 [74.5–90.9]4.7 [3.5–6.0]Existing duplicate-PR bot, re-implemented
Text similarity91.1 [88.1–94.3]3.5 [2.5–4.8]Title and description word overlap, TF-IDF
…this is what each method catches
1251020
Link rule
70%
Jinx + MiniLM
68%
Jinx
67%
INTRUDE + time
67%
Text similarity
54%
Simili-bot
50%
PRSense
43%
contrib-guard
42%

“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 →

// 04how it works

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        + reasons
  1. s.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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

// 05add it to your repo

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.

.github/workflows/jinx.yml
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-jinx
jinx check new_pr.json --open-queue open_prs.jsonl

Before 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
flags
--top Nlist at most N candidates
--threshold Xflag only scores ≥ X (default 0.5)
--jsonmachine-readable output
--embedalso use the local MiniLM model
--templates FILEtemplates learned from your own PRs
Full documentation →
// 06what it does not do

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.

// 07the research

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.