rd0-jinx
Find the pull request that already does this.
Coding agents (Copilot, Codex, Devin, Claude Code, Cursor, Jules) open a lot of pull requests, and some of
them redo work that is already open. rd0-jinx checks a new PR against the open ones and, when it finds a
likely duplicate, tells you which PR it matches and why.
- Runs on CPU in about 6 ms per PR. No LLM, no API key, no network call.
- Explains every match: shared files, overlapping line ranges, identical added lines, the same linked issue.
- About 1.9 false alarms per 100 PRs that have no duplicate.
Full README, benchmark and papers: https://github.com/harshuljain13/rd0-jinx
Install
pip install rd0-jinx # the `jinx` command
pip install "rd0-jinx[embed]" # optional local MiniLM text model (installs PyTorch)
Use it
jinx check new_pr.json --open-queue open_prs.jsonl --top 2
PR #44134: checked 19 open PRs in 12 ms. 1 likely duplicate(s) (score >= 0.50).
DUPLICATE? #44110 score 1.00 refactor(tvp): use capture_outputs for output tracing
- one PR links to the other (#44110)
- shares 1 of 1 changed files (src/transformers/models/tvp/modeling_tvp.py)
- 100% of changed line ranges overlap
- 100% of added lines are identical
- similar title/description after removing agent template text (0.92)
Input uses the GitHub API's JSON shape (number, title, body, user.login, created_at). Optional
fields are diff (unified diff text), files, agent and linked_issues. The queue can be a JSON list or
a JSON-lines file.
| Flag | What it does |
|---|---|
--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 text model (needs [embed]) |
--templates FILE |
Use templates learned from your own PRs |
In Python
from rd0_jinx import PR, Detector
new = PR.from_dict(new_pr_json) # GitHub API JSON shape
queue = [PR.from_dict(d) for d in open_prs_json]
det = Detector() # ships with trained weights
for m in det.rank(new, queue, top=3):
if m.score >= det.threshold:
print(m.number, round(m.score, 2), m.reasons)
As a GitHub Action
- uses: harshuljain13/rd0-jinx@main
with:
threshold: "" # empty = bundled default (0.5)
max-open-prs: "200"
License
MIT. The shipped weights were trained on AIDev (CC BY 4.0).
Metadata
Release files for rd0-jinx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rd0_jinx-0.1.0.tar.gz | 120.8 kB | With provenance | Details for rd0_jinx-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rd0_jinx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rd0_jinx-0.1.0-py3-none-any.whl |
Total release size: 142.1 kB
Release files / rd0_jinx-0.1.0.tar.gz
| Download URL | rd0_jinx-0.1.0.tar.gz |
|---|---|
| Size | 120.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adac1afc8248f6666a43df9c6246cc1fb74b8eb364568d2004823426cf44bae9
|
|
BLAKE2b-256 checksum How to use checksums |
8595bab2f9e48d82c96add4b6081279a89d1faa1b5704208221868286ada9f41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / rd0_jinx-0.1.0-py3-none-any.whl
| Download URL | rd0_jinx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
163d655c0532eff1360ccd0b725c0f5fd1878c5fbb89d1ae8517b79c1794ac2a
|
|
BLAKE2b-256 checksum How to use checksums |
30965892c7f7fd8fd4464bb8b09b8c3bd0c1a39eb7ed6047ea945193ec331a33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for rd0-jinx 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rd0_jinx-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.