Muggle Works
Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.
Coding agents are good at producing a diff. They are bad at knowing whether the diff works, whether it broke the login flow, and what still has to happen before a human can merge it. Muggle Works is the harness around the agent that answers those questions: it freezes requirements, delegates the design and build, runs the unit suite, drives a real browser through the affected user flows, opens the pull request with screenshots attached, and then keeps watching that PR — picking up review comments, red CI, and a stale base branch until the change is genuinely mergeable.

Works in Claude Code, Cursor, Codex, Windsurf, and any MCP client. Powered by Muggle AI.
AI agents: start with AGENTS.md (install, sign-in, flows, skills, errors) or llms.txt. muggle serve also serves both as MCP resources, muggle://docs/agents and muggle://docs/llms.
Highlights
- One request, one pull request.
/mdo "add a logout button" runs requirements → design → build → impact analysis → unit tests → browser acceptance → PR. You answer one questionnaire up front, then walk away.
- A real browser under a real identity. Not a headless stub. Every managed login profile owns a live inbox, so magic links, emailed OTPs, email 2FA, verification mail, and password resets are all testable — no mail catcher, no test-only backdoor, no
SKIP_AUTH flag.
- GitHub and GitLab as peers. Pull requests and merge requests, review threads and discussions, Actions and pipelines, signed commits on both. Self-hosted GitLab included — the provider is detected from the remote, not hardcoded.
- The loop keeps running after you close the laptop. A watcher polls the PR and re-enters the cycle when a reviewer comments, CI goes red, or the branch falls behind its base. Feedback becomes commits without you relaying it.
- A gate, not a vibe. No PR is opened until requirements are written, the build typechecks and lints, new logic carries unit tests, the suite passes, and a browser verdict is recorded — or a waiver reason is written down. Silence is not a waiver.
- Plain English in, replayable scripts out. Describe a flow in a sentence; get a script that persists across sessions and re-runs as a regression test after every change.
- 130 MCP tools if you'd rather assemble your own pipeline than use the packaged one.
Built for two kinds of people
If you write code for a living, this is the discipline you'd apply yourself if you had the patience to apply it every time: frozen requirements, a Definition of Done that blocks the PR, evidence attached to the review, and a follow-up loop that doesn't forget.
If you vibe-code, this is the part you can't easily judge by reading the diff. You don't have to know Playwright, or what a fixture is, or why the checkout page broke on mobile. Describe the feature; the harness builds it, clicks through it like a user, shows you the screenshots, and tells you what failed in English.
The cycle
| # | Stage | What it does | Evidence it leaves |
|---|
| 1 | Pre-flight | Detects repo, branch, dev server, project, credentials; asks everything it can't detect in one turn | state.md |
| 2 | Requirements | Freezes goal and acceptance criteria before a line is written | requirements.md |
| 2.5 | Design | Opens a [DESIGN] PR with the spec — merging it approves the design and starts the build; no code before it | Design PR |
| 3 | Build | Builds the approved design through a plan → subagent build, then commits (signed) | Conventional commits |
| 4 | Impact analysis | Maps the diff to the user flows it can break | Affected-flow list |
| 5 | Unit tests | Runs the suite authored in stage 3 | Exit code |
| 5.5 | Pull request | Opens the PR/MR before the browser run, its walkthrough check red until stage 7 | PR URL |
| 6 | Acceptance | Drives a real browser through the affected flows, its progress showing on the PR | Verdict + runId + per-step screenshots |
| 7 | Walkthrough | Settles the PR's walkthrough comment with the run's evidence | Walkthrough comment |
| 7.5 | Repair | Investigates and fixes acceptance failures, up to 3 iterations | Repair log |
| 8 | Watcher | Polls reviews, CI, and base-branch drift; re-enters the cycle on each | followup.log |