GenClass is open source.Star on GitHub

Use case: search and filters

Find the stale-results race in search and filters.

When an older query's slow answer lands last, the box says "react" and the list shows results for "reac". GenClass makes that order happen in development and CI, then replays it on your machine and writes a test that fails while the bug is there.

Example, from a test shop with this bug planted: part of what genclass_explore reported before the fix (@genclass/mcp 0.2.0). Full capture
  type input "Search the shop" = react
RACE: 2 of 3 reordered run(s) ended in a different state than the baseline (responses in request order): what the page shows, its form values, the writes it sent or its errors differ.
- run r9 (seed 2):
    page text only in this run: "Reading lamp", "Real wood desk"
    state "search.query": baseline "\"react\"", this run "\"rea\""
    witness only here: overwrote-newer search.query by GET /api/search

Why it hides

Both requests succeed. The older one lands last.

Nothing throws, so an error tracker has nothing to record. The fixes in code are in out-of-order responses.

What the user sees

Results for a query the box no longer shows.

Why the app lets it happen

Each response is written when it arrives, with no request id or abort, so the last to arrive wins.

Why it passes locally

It rarely happens on a fast development machine, and mocked APIs in tests answer in order.

On your machine

Find it, replay it, keep a test.

  1. Connect the development build

    Run npx genclass in the app's folder to add the MCP server, then add connectAgent(rt) to the development build.

  2. Explore: genclass_explore

    Your agent types the same search once per armed page load: in request order first, then in seeded orders. A final page that differs from the in-order baseline comes with the seed that replays it.

  3. Explain: genclass_explain

    The steps and delivery order behind the write that replaced newer results, and a Playwright test that fails while the bug is there.

  4. Replay: genclass_replay

    The recorded order again: reproduced before the fix, not reproduced after it.

In CI

The same race in your Playwright tests.

@genclass/playwright puts the runtime on every page your tests open, in observe mode.

Seeded chaos
Requests held, never changed
Witness
overwrote-newerOn the request whose late answer wrote over newer data, with no model download.
Report
genclass-report.mdWhat reproduced across seeds, in one markdown file for the pull request.

Evidence

Measured, with the false reports beside it.

Explore, replay and the Playwright fixture: results and false reports
WhereResultFalse reports
The search page of GenClass's MCP end-to-end testExplore: 5 of 6 seeded orders ended on an older query; replay reproduced it and the generated test failed. Source0 of 6 on the fixed page, where the test passed.
That page under @genclass/playwright, model offThe witness in 30 of 30 seeds with reordering, 0 of 30 with latency only. Source0 of 30 on the fixed page.
Strapi 5.59.0's admin: search, sort, filter, pagination, a relation picker, double Save and PublishNo race in these sessions, by the harness's own check of the page. Source, section 220 of 21 sessions after the verdict fixes, down from 16 of 21.

Limits

What it does not do, today.

Stale results on live sites

TodayStale results are the on-device model's weak case.

State it can see

TodayReact component state and Redux stores are found on their own; on Vue, Svelte or Angular, register the results with rt.atom.

Debounced boxes

TodayA box that debounces its input sends one request while you type without a pause, so nothing can race. Pause mid-word in the scenario, and set slow_ms so the requests overlap.

Not covered

TodayResults pushed over WebSocket or EventSource are never reordered. Only Chromium is measured, not Firefox or Safari.

Questions

Explore and cost.

Does explore change my app or its data?

It changes only the timing of responses, in a development build with connectAgent; a production build drops it. Your steps run for real on each load, so a scenario that saves something saves it each time.

What does it cost?

The MCP server is free and open source (Apache-2.0), and its findings stay on your machine by default. Every plan is on pricing.

Talk to sales

Tell us about your team and what you need. A person writes back, usually within a day.