Skip to content
Mergewright
Interactive demo, simulated data

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.

Designed around
Next.js 16React 19TypeScriptPython 3.14FastAPIPostgreSQL 16Redis 8arqDocker sandboxestree-sitterGitHub AppOpenTelemetryCaddyNext.js 16React 19TypeScriptPython 3.14FastAPIPostgreSQL 16Redis 8arqDocker sandboxestree-sitterGitHub AppOpenTelemetryCaddy
How it works

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.

What it does

Built to run untrusted code, and to show its work

transparent

Every step, live

Each search, edit and test run streams to the run page as it happens, with its arguments and full output.

tests

Proof, not promises

A run only succeeds when its reproduction test failed before the fix and passes after it, with no new failures.

isolation

No secrets in the sandbox

The GitHub token stays with the orchestrator, which pushes the branch from outside the container.

safety

A scanner as the last gate

Credentials, CI changes, new package sources, skipped or deleted tests and protected paths stop the pull request.

limits

Stops itself

Step, cost and time budgets, plus loop detection when the same failing call repeats three times.

control

A person decides

Pull requests are always drafts. Blocked patches get a comment asking for review, with the findings.

Under the hood

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.

Mergewright architectureA GitHub webhook reaches the API, which queues a job in Redis. A worker checks permissions and budgets and starts the agent loop. The loop asks the model for one tool call per turn and runs it in a sandbox that has no secrets and reaches only a package proxy. Steps stream to the dashboard and are stored in Postgres and S3. The final git diff goes through the diff scanner, which either allows a draft pull request or asks for human review.toolsgit diffstepsGitHublabel, comment, reviewAPIFastAPI, signed webhooksQueueRedis + arqWorkerpermissions, budgetsAgent loopone tool call per turnModel APIprompt cachingDashboardlive steps over SSE; runs, steps and patches in Postgres and S3Sandboxno secrets, no networkPackage proxythe only reachable hostDiff scannerthe last gateDraft PRor needs human review
How the full system is designed. The public demo on this site runs none of it: it replays fixtures 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.

FAQ

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.