Skip to main content
Glama
README.md
<p align="center">
  <picture>
    <source media="(prefers-reduced-motion: reduce)" srcset="docs/assets/gargli-banner.webp">
    <img src="docs/assets/gargli-banner.gif" width="480" alt="Gargli lunges toward its name beneath a giant shadow.">
  </picture>
</p>

<h1 align="center">Gargli</h1>

<p align="center">
  <img src="https://img.shields.io/badge/status-alpha-orange" alt="Alpha status">
  <a href="docs/mcp.md"><img src="https://img.shields.io/badge/agents-Codex%20%7C%20Claude-327866" alt="Agent guide for Codex and Claude"></a>
  <a href="README.ko.md"><img src="https://img.shields.io/badge/docs-%ED%95%9C%EA%B5%AD%EC%96%B4-blue" alt="한국어 문서"></a>
</p>

**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

1. **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.
2. **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.

## Architecture and design patterns

Gargli is a modular Python application that runs locally. The CLI and MCP server share one QA service. In a development conversation, Codex or Claude edits the product and Gargli checks each submitted version against the registered criteria.

```mermaid
flowchart TD
    Register["Codex or Claude registers the checklist once"] --> Check["Gargli checks the submitted snapshot"]
    Check -->|revise| Feedback["Gargli returns failure evidence and passing cases to protect"]
    Feedback --> Edit["Codex or Claude edits the product"]
    Edit -->|Submit the new snapshot under the same criteria| Check
    Check -->|report| Report["Agent confirms the run still passes and reports the checked scope"]
    Check -->|stop| Stop["Agent reports the reason for stopping"]
```

| Pattern | How Gargli uses it |
| --- | --- |
| Service layer | Both entry points use the same rules for registration, submission and status. The service checks the criteria and target snapshot before and after running the checks. [Service](gargli/service.py) |
| Checker adapters | Adapters translate project test results and Playwright reports into per-item observations. A case with no observed result stays unverified. [Adapters](gargli/adapters.py) |
| Run history and checkpoints | SQLite records the contract, submissions and results. Separate file checkpoints preserve recoverable target snapshots. [History](gargli/history.py) · [Checkpoints](gargli/checkpoints.py) |
| Bounded feedback loop | Gargli compares individual items with the best retained run and returns evidence for the next edit. Stale or uncertain results, stalled progress and exhausted budgets can stop the loop. [Progress](gargli/progress.py) · [Repair guidance](gargli/guidance.py) |

## Gargli 0.10.0 · Check the design on a running deployment

A local build and its deployment can share the same required screen IDs, CMS exclusions and visual thresholds. Select a trusted Chromium checker for the deployment. It opens each screen through the real service, and Gargli compares the captured pixels, layout and controls with the original design. Each screen counts once. A confirmed mismatch fails the screen. A capture without matching deployment evidence stays unverified and blocks an overall pass. [Deployment checker setup](docs/design-scope.md#check-the-same-design-on-a-deployment)

## Gargli 0.9.0 · Check the requested design

Connect the original request and HTML prototype once. Gargli adds checks for the screens in scope, including when the submitted checklist contains only functional tests. If the brief assigns the login page and navigation to the CMS, the agent can focus repairs on the retained content. A mismatch there blocks a pass. For an accessible replacement of a clickable prototype choice, Gargli checks pointer, Enter and Space activation and the resulting selection. [Scope and setup](docs/design-scope.md) · [Toggle evidence](docs/design-toggle-evidence.md)

## Gargli 0.8.0 · Build evidence and submission readiness

Build jobs can link the selected source snapshot to the digest of a deployed image or static bundle. Before submitting, inspect checker availability, account role and jurisdiction, isolated synthetic fixtures and the remaining reservation budget per checklist. Preflight runs no checker and spends no budget. Build records and official run exports can stay in the local QA project. [Registry-free Docker Compose](docs/compose.md) · [Local records](docs/qa.md#keep-the-records-on-the-qa-workstation) · [Build integration](docs/qa.md#record-the-source-used-by-a-deployment) · [Preflight](docs/qa.md#inspect-readiness-before-submission)

## Gargli 0.7.0 · Checking an external deployment

A trusted checker can now tie each result to the deployed build and the submitted source snapshot. Gargli checks deployment identity before and after the run. Cases without matching evidence stay unverified, and independent checks keep their results. [Configure a service checker](docs/qa.md#verify-an-external-deployment)

## Gargli 0.6.0 · Diagnosing layout failures

When a trusted browser checker supplies DOM measurements for the exact screenshots it scored, Gargli can show Codex or Claude which element changed size, where text wrapped, and how the parent positioned it. The feedback separates measurements from possible causes and flags an identical rendered image across changed submissions. The agent can then check whether an edit affected the failing screen. [Layout diagnostics](docs/qa.md#supply-dom-measurements-for-a-layout-failure)

New checklists use repair policy 3. If an earlier regression remains, a repair can continue when it makes a new measurable gain and preserves the protected passes. Operators can use `resume-progress` to review an eligible version 2 run stopped for lack of progress. Prior results, used attempts and reserved checker time carry forward. [Repair and resume rules](docs/qa.md#resume-a-measured-mixed-repair)

## React and Tailwind implementation comparison · December 2, 2026

Codex implemented the screens and interactions from an HTML design for the single-page test and a written brief with HTML mockups for the multi-page test. Within each test, the three conditions used the same starter, request and grading criteria. Each condition ran once with `gpt-6-astra` at medium reasoning effort and no follow-up intervention.

| Test | QA tool | Pass rate | Elapsed time |
| --- | --- | ---: | ---: |
| Single-page test | None | 8/15 · 53.3% | 12 min 27 s |
| Single-page test | Playwright MCP | 7/15 · 46.7% | 13 min 03 s |
| Single-page test | Improved Gargli | 15/15 · 100% | 14 min 39 s |
| Multi-page test | None | 11/36 · 30.6% | 13 min 04 s |
| Multi-page test | Playwright MCP | 15/36 · 41.7% | 13 min 24 s |
| Multi-page test | Improved Gargli | 36/36 · 100% | 21 min 31 s |

Every condition had file and shell tools. Elapsed time includes implementation, automated repairs and checks during the session. Separate final grading is excluded. The experiment used Gargli Core commit `357b26a`.

[Method and grading evidence](docs/experiments/2026-12-02/method.md) · [HTML report source · download and open in a browser](docs/experiments/2026-12-02/index.html) · [Earlier comparisons](docs/experiments/prior-comparisons.md)

## Getting started

Install Gargli from the vero-mcp catalog. In Codex, select `gargli@vero-mcp`. For a regular chat in Claude Desktop on macOS, open the Gargli desktop extension (MCPB) and select your project configuration. [vero-mcp installation guide](https://github.com/seadonggyun4/vero-mcp#install)

To try the CLI, run these commands from the checkout on macOS or Linux with Python 3.11 or later.

```sh
python3 -m gargli --config examples/login/gargli.json register examples/login/checklist.json
python3 -m gargli --config examples/login/gargli.json snapshot
```

## Docs

| Guide | What it covers |
| --- | --- |
| [MCP guide](docs/mcp.md) | Project setup in Codex and Claude Desktop, the three MCP tools, and the Codex Stop hook. |
| [Design checks](docs/design-scope.md) | Original brief, CMS exclusions, page comparisons and repair evidence. |
| [Local QA](docs/qa.md) | API and browser checks, visual comparisons, and reading results. |
| [Repair policy (Korean)](docs/progress-aware-repair.ko.md) | How Gargli measures progress, detects regressions, and decides when to stop. |
| [Product plan (Korean)](docs/gargli-product-and-transition-plan.ko.md) | QA scope, development stages, and experiment results. |

## Apache License 2.0

[License text](LICENSE) · [Copyright notice](NOTICE)

TDQS

A3.6/5.0

Scored across 3 tools

Disambiguation4/5

The three tools map to a clean lifecycle split: register writes the contract, submit runs the checks, status is explicitly read-only. The main blur is that submit's description embeds heavy instructions about calling status (request_id lookups, snapshot recovery), so an agent may hesitate about which tool returns the authoritative verdict, but the read/write boundary keeps them separable.

Naming Consistency4/5

All names share the gargli_ prefix and snake_case form, and register/submit are consistent action verbs. gargli_status is a noun rather than a verb, a minor deviation in an otherwise predictable pattern.

Tool Count4/5

Three tools is lean but matches a deliberately narrow workflow: set up the contract, run the checks, inspect state. Each tool earns its place, though the surface is on the thin side and leans on very long descriptions to carry workflow logic.

Completeness3/5

The register-submit-status loop covers the core cycle, and status handles both preflight and prior-run lookup. Gaps remain: no way to enumerate past runs or request_ids, no cancel/reset tool, and no separate way to fetch contract details or diagnostics other than through status/submit outputs.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues