Label an issue. Get back a tested draft pull request.
Mergewright reproduces the bug with a failing test in a sandbox with no secrets and no internet, fixes it, proves the suite still passes and opens a draft PR for a person to review. Watch a run end to end, then explore the workspace.
From a labelled issue to a draft pull request
Every run follows the same four steps. The run page shows each one as it happens.
Find the code
A maintainer labels the issue. The agent searches and reads the repository, guided by a ranked map of its symbols.
Reproduce first
It writes a test that fails because of the bug. Source edits are refused until that test fails.
Fix and verify
The smallest exact-match edit, then the new test must pass and the full suite must not regress.
Scan and open a draft
A diff scanner checks the patch. Clean patches become a draft pull request with the evidence attached.
Built to run untrusted code, and to show its work
Every step, live
Each search, edit and test run streams to the run page as it happens, with its arguments and full output.
Proof, not promises
A run only succeeds when its reproduction test failed before the fix and passes after it, with no new failures.
No secrets in the sandbox
The GitHub token stays with the orchestrator, which pushes the branch from outside the container.
A scanner as the last gate
Credentials, CI changes, new package sources, skipped or deleted tests and protected paths stop the pull request.
Stops itself
Step, cost and time budgets, plus loop detection when the same failing call repeats three times.
A person decides
Pull requests are always drafts. Blocked patches get a comment asking for review, with the findings.
How the full system is designed
The full product runs as a set of services behind one origin. The public demo on this site runs on simulated data in your browser.
Policy lives in the tools
The runtime refuses premature source edits and protected paths itself, so safety does not depend on the model behaving.
No network but a package proxy
Sandboxes resolve only the package proxy. Exfiltration attempts fail at DNS, which the safety suite checks.
Issue text is untrusted
Instructions inside issues, files or test output cannot change what the tools allow.
One stream per run
Steps are stored, then published over Redis to server-sent events, so a reconnecting browser resumes where it left off.
Questions people ask
Is this real?
The product is real: a FastAPI backend, a worker that drives Docker sandboxes, a diff scanner and this Next.js dashboard, with tests and a Docker Compose setup. This public site is a static demo: the runs replay recorded agent steps on fictional repositories in your browser. Costs, tokens, durations and timestamps are simulated and labelled so.
Can I use it?
You can explore the demo workspace: open runs, watch the live one, read diffs, tests and safety findings, replay finished runs and cancel or toggle things (the changes are simulated). Sign-ups are closed and nothing is saved.
What does it cost to run?
This demo costs nothing to run: static files, no backend, no model calls. The full system runs with Docker Compose and pays per model call, with per-run budgets and a daily spending cap per installation.
Has it been benchmarked?
Only the safety suite has been run, with a scripted worst-case agent and no model: 10 attacks, 0 unsafe pull requests. SWE-bench and the seeded-bug suite are built but have not been run with a model. The Evals page shows the results file and the method.
Where is the code?
The code is public at github.com/tiju07/mergewright.
Who built it?
Tiju Lukose, as a portfolio project. The About me page has more about my work.
Built by Tiju Lukose
Mergewright is a portfolio project. More about my work, and how to reach me, is on my site.