Gargli
Your little QA gargoyle. Gargli uses browser checks and the project's existing tests to compare what was built with what was requested. Each checklist item reports the expected behavior and the observed result.
QA priorities
- Frontend design and requirements. The agent turns the HTML mockup and product brief into a checklist. Check the rendered page against the design at the specified screen sizes, and exercise the interactions and states required by the brief.
- Source implementation. Run the project's existing tests on the submitted code to verify individual requirements. For example, an invalid login should return HTTP 401 without issuing a session cookie.
Agent registers checklist → Gargli runs named cases on the submitted snapshot
├─ all cases pass → report the checked scope
├─ fixable issue → return evidence to the agent
└─ drift, uncertainty or budget reached → stop
When a layout check fails, the active agent can see where the pixels changed, compare reference, current and difference thumbnails, and inspect measured element offsets. Repair guidance identifies the cases to protect and any regressions since the retained best. Visual evidence · MCP repair response
New checklists allow up to 12 repairs by default. Gargli retains the best submission that preserves its passing cases and improves an observed result. It can also save a broader set of passing cases and allow a targeted repair when a still-failing case regresses. Either saved target can be recovered into a new directory. Codex Stop hook · Progress limits and recovery
Gargli 0.4.0 includes the repair policy and the optional Codex Stop hook. Enable the hook for the project where you want Codex to continue automatically. Hook setup
P6 · Three React and Tailwind builds from one HTML design
On December 1, 2026, three fresh Codex sessions each received the same implementation request once. The request did not mention QA. Each session started with the same HTML design, an empty React and Tailwind project and the same 15 checks. With the project’s Gargli Stop hook enabled, Codex edited the source and resubmitted it in the same conversation.
| Run |
Checks passed at each submission (out of 15) |
Independent final rebuild |
| 1 |
8 → 11 → 11 → 12 → 14 → 15 |
15/15 |
| 2 |
7 → 12 → 12 → 12 → 12 → 15 |
15/15 |
| 3 |
3 → 8 → 10 → 12 → 12 → 14 → 14 → 14 → 15 |
15/15 |
All three final builds passed four screen comparisons, eight interactions and three implementation checks in Chromium. In run 2, the pass count stayed at 12 across four submissions while the measured screen error fell. One response located a label 6.5 px below its reference and listed the 12 cases to preserve. Codex received 105 reference, current and difference thumbnails across the three sessions.
The preceding experiment on this design recorded 6, 9, 6 with ordinary Codex and 15, 12, 11 with the previous Gargli. Only the updated Gargli condition was rerun here. All 21 submissions used the ordinary repair budget. Replaying the earlier 12/15 run exercised the extra repair allowed when a new case passes but another measurement regresses. Recorded regressions · Experiment history (Korean)
P6 · test2 comparison using a written brief and an HTML mockup
Two fresh Codex sessions used the same model, the same TXT brief and 12 HTML files, and the same empty React and Tailwind starter. Each received one request in Korean. The English translation follows.
Use the provided TXT requirements and HTML mockup to implement the screens and interactions in React and Tailwind CSS.
The request contained no QA instruction. The session without Gargli checked its own build and React rendering. The other session had Gargli 0.4.0 configured with a fixed checklist, a browser checker and the project Stop hook. After each session ended, we independently rebuilt its final source and scored both builds against the same 36 checks.
| Codex session |
Workflow checks |
Visual comparisons |
Implementation checks |
Total |
Elapsed time |
| Without Gargli |
8/17 |
0/16 |
3/3 |
11/36 |
13 min 15 s |
| With Gargli |
17/17 |
16/16 |
3/3 |
36/36 |
27 min 23 s |
With Gargli, the first submission passed 18/36. Codex used Gargli’s feedback to edit and resubmit 10 times in the same conversation, with no further user messages. The pass counts were 18 → 20 → 22 → 25 → 27 → 29 → 30 → 34 → 34 → 34 → 36. At 34, the two remaining visual differences were on the desktop application review and notice management screens.
Both builds opened all 16 screen states. A visual check allowed up to 1% changed pixels and a mean channel error of 2. These results cover one run per condition on this mockup.
Getting started
Install Gargli through Styxis. In Codex, select gargli@styxis-plugin. For a regular chat in Claude Desktop on macOS, open the Gargli desktop extension (MCPB) and select your project configuration. Styxis installation guide
Try the local CLI on macOS or Linux with Python 3.11 or later, from the checkout:
python3 -m gargli --config examples/login/gargli.json register examples/login/checklist.json
python3 -m gargli --config examples/login/gargli.json snapshot
The snapshot supplies the two digests for submission. Choose an API check or a browser interaction with an optional reference screenshot. In a development conversation, use the three Gargli MCP tools to register, submit and inspect the same checks.
한국어 · Product and QA plan · Apache License 2.0