Listed from the MCP registry; nobody on Odel publishes it.
Find race conditions in your web app by reordering its responses, replay one, prove the fix.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @genclass/mcp
MCP client config
{
"mcpServers": {
"genclass": {
"command": "npx",
"args": [
"-y",
"@genclass/mcp"
]
}
}
}Website and docs: genclass.dev · Docs · Guides · Benchmarks · Pricing · FAQ · Discord
GenClass Runtime (@genclass/runtime) is an open-source (Apache-2.0) browser library that reports race conditions
in web apps while they happen: stale responses that land over newer data, duplicate requests such as double submits,
inconsistent state and failure storms. A small model runs on the user's device, in a Web Worker on WebGPU or WASM,
and each report comes with its evidence. By default it only reports (observe): it never holds, delays or changes a
request, a response or a state write. The opt-in guard mode may act on a few of them
(how often), and heal is experimental. It runs in React, Next.js, Vue, SvelteKit,
Angular, Solid and plain-HTML apps (measured in Chromium with an unpublished 0.1.0-beta.4 build and model 0.2.0 on
2026-10-10, not re-run on 0.2.2 or 0.3.0:
compatibility matrix).
Status: @genclass/runtime@0.3.0-beta.5, the newest line (npm beta dist-tag: npm install @genclass/runtime@beta;
the stable line is 0.2.x), with model @genclass/runtime-model@0.2.0. npm dist-tags on 2026-11-02: latest is
0.2.3 and beta is 0.3.0-beta.5 (0.3.0-beta.1 to 0.3.0-beta.5 were released between 2026-10-22 and
2026-11-02). This README describes the 0.3.0 line; 0.2.x, npm's latest, is the exception for an app that cannot
take a prerelease. Both lines load the same model. AI coding agents working on this repository: start at
AGENTS.md.
npx genclass # signs you in, starts Pro, adds GenClass to your app and walks you through the rest
Run it in your web app's folder and press Enter for each step: account, Pro, runtime, app plan, dashboard, test workflow, GitHub App, coding agent, suggestions. The command comes with Pro: 3 days free, then US$50 a developer a month. The card is asked for on Stripe when the trial starts, and nothing is charged if you cancel before the 3 days end. Free stays on the website (pricing). A step that does not fit your project is skipped, Enter also stops any wait, and running it again continues from where things are. It draws nothing on your pages. Then:
npx genclass dashboard # what GenClass found on your live site, in the terminal
npx genclass suggest # what your app is missing, most important first
With a coding agent (Claude Code, Cursor, Codex), tell it to run npx genclass status --json and then
npx genclass setup --yes: the command asks nothing when an agent runs it, and prints a link for each thing only you
can do in your browser: approve the sign-in, start Pro's trial with your card, open a new app's plan page once, and
install the GitHub App. Without Pro, setup --yes stops at the trial with exit code 1 and one line with the checkout
link: the agent gives you the link, waits while you start the trial, then runs setup --yes again. Guide: genclass.dev/docs/cli;
package: packages/cli.
To add only the runtime, with no account:
npx @genclass/runtime@beta init # finds your framework and shows the diff before it writes anything
Once you approve, init installs the package, adds one import first in your entry file and creates your app's
dashboard token (--no-token skips it; every flag: INSTALL.md). It draws nothing on
your pages.
Or by hand: npm install @genclass/runtime@beta, then first in your entry file (any bundler; Next.js 15.3 or later:
instrumentation-client.ts, earlier versions: a client component in the root layout or pages/_app):
import "@genclass/runtime/auto";
Or with no build step, first in <head>:
<script src="https://cdn.jsdelivr.net/npm/@genclass/runtime@0.3.0-beta.5"></script>
devtools (in production builds only
with devtools(..., { enabled: true })) are discovered automatically; discovered React and Zustand state is
observed only. Vue / Pinia, Svelte stores, signals, MobX, Jotai and Recoil are not discovered: register such state
with rt.atom / rt.guard
(state it can protect).
GenClass.init() is the explicit setup; it discovers state only if you import @genclass/runtime/discover first
and pass autoState: true.latest, and the CDN cache may serve an
older release.@beta while 0.3.0 is in beta. A bare npm install @genclass/runtime or npx @genclass/runtime init
gets npm's latest, the older 0.2.x line, which has no token, dashboard, interaction analytics, visual checks or
agent link, whose CLI has no login, connect, whoami, logout, dashboard or --sink, and whose runtime
ignores token and analytics: true without a word. Keep 0.2.x only for an app that cannot take a prerelease.require). Jest users need a transformIgnorePatterns entry that lets @genclass/runtime be
transformed.Full install guide, with every init and remove flag, the app token and the tested project setups:
docs/runtime/INSTALL.md. The short version, with page configuration and the script-tag
attributes, is in the
package README.
To audit any page for visual bugs without adding anything to it: npx @genclass/runtime@beta scan <url> (alias
audit; a score and each problem with its element and a suggested CSS fix;
Audit a page).
Coding agents get the same as genclass_scan in @genclass/mcp.
Model @genclass/runtime-model@0.2.0 at the default profile, balanced, on held-out data never used in training
(RESULTS.md §1, §11; every headline number is under
current numbers in one place):
| problem | reported with the right diagnosis (observe, held-out real apps; false detections limited to 2% per clean decision) |
|---|---|
| duplicate submits | 75% |
| stale responses written over newer data | 30% on the situation-v2.3 slice the current runtime renders (21% on situation-v2) |
| broken state (a relation between fields stops holding) | 6% |
0.3.0, three observe fixes (superseded writes, the response-body wait, the idle unload) can add likely reports,
false ones included, at a rate not measured (§11). In the compatibility matrix (an unpublished 0.1.0-beta.4 build,
commit d04eff3, 2026-10-10), observe made 49 false findings in 880 runs of correct apps, all in one polling and
fan-out scenario
(RESULTS.md §16).0.3.0-beta.0 also records detections below the report gate, at the
eager profile's gate (0.70), to console.debug, the devtools and telemetry. Likely and possible together are
expected to match the eager profile's offline rates (77% of duplicate submits, 45% of stale overwrites, 40% on
situation-v2, and 13% of broken state; false-detection limit 5% on real apps and 6% on simulated, met on held-out
test). This was not measured end to end on 0.3.0; how many false detections the possible tier adds, and what
share of possible detections is false, are not measured (§11).guard, opt-in). It acts on 7.8% of clear simulated cases and 7.5% of real-app cases where acting
would help. It fired on 0.13% of the simulated cases where doing nothing was best, and on 0.00% on held-out real
apps. It reports far more than it fixes.click-blocked and scroll-lock-stuck 0.67) with 0 false reports in 128 page
views of unmodified demo, template and compatibility apps. On public sites the false-report rate after the review
is not known, and three of the proposed cost limits are not met (§13, §14).The full tables, with every false-intervention rate next to its recall, are under Measured results.
[GenClass] Sends anonymous diagnostics (decisions and counts, no page text) to improve the model. Opt out: …). From 0.2.2 it does not appear on localhost or other
local hosts; earlier versions (0.1.0-beta.3 to 0.2.1) send from them too.[GenClass] Model ready (genclass-runtime-r17, wasm, q8, 0.4s). Mode: observe. once the model has loaded at idle.shader-f16, the 13.6 MB fp16
model plus a larger ONNX Runtime build. Both are cached afterwards. The renderer process uses 190 to 280 MB more
memory while the model is loaded. Devices that report 2 GB of memory or less, and Save-Data connections, do not
load the model by default (they observe without it and say so in one console line; new in 0.3.0: 0.2.x loads
everywhere and only lazily on Save-Data). For phones and strict Content-Security-Policies see
self-hosting
and loadIf.@genclass/mcp (0.2.0, on npm since 2026-10-25) is an MCP server for Claude Code and other coding agents. Your
app's development build (@genclass/runtime 0.3.0-beta.1 or later) connects to it with one line, and the agent
gets every click, request, the order the responses arrived and what they wrote, uncaught errors with the click and
request behind them, and the on-device model's detections. It can run your steps again with the network answering in
different orders (and slower) to find what depends on timing, replay the exact order that broke, and write a
Playwright test that fails until the fix is in. Its genclass_scan tool audits any page for visual bugs, like
scan <url> above. Everything stays on your machine unless you turn on one of the opt-ins in its Privacy section.
claude mcp add genclass -- npx -y @genclass/mcp@0.2.2
import { GenClass } from "@genclass/runtime";
import { connectAgent } from "@genclass/runtime/agent";
// development builds only: a production build drops all of this
if (import.meta.env.DEV) {
const rt = GenClass.init();
connectAgent(rt);
}
On a real page in headless Chromium, it found a stale-results race in 5 of 6 reordered runs of a page that never showed it on the developer's fast backend, with no false report on the fixed page (AGENT.md, RESULTS.md section 18).
GenClass's GitHub App puts what the runtime saw on the pull request it was seen in. Your Playwright tests run with the GenClass fixture, your workflow uploads the race files it writes, and the app posts one check and one comment: each finding with its test, the seeds it was flagged in and the evidence line. It reads those files and never your source code, it comments only where it is installed, and it is free on public repositories. Private repositories come with Pro (US$50 a developer a month; pricing).
Install at https://genclass.dev/github (the app is GenClass.dev, https://github.com/apps/genclass-dev). With no change to your tests, one workflow file is the whole setup: the check on your first pull request links to it, filled in. Its first review was on this repository. The code is in
telemetry-worker/src/github.
// playwright.config.ts
use: { genclass: { chaos: { seed: 1, delayMs: [0, 600] } } },
// in your specs
import { test, expect } from "@genclass/playwright/fixture";
- run: npx playwright test --repeat-each 2
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: genclass-races
path: test-results/genclass
On the pull request, @genclass-dev replay 1 gives the steps to reproduce a finding and @genclass-dev fix 1 writes a brief
your coding agent can work from with @genclass/mcp, in your own CI or on your machine. A finding that stops being
flagged is "not flagged now", never "fixed": a replay proves a fix. The guide, every setting and what the app may read
and keep: docs/github-app/README.md.
protect()Since 0.3.0-beta.0 (the beta line on npm). 0.2.x ignores token, has no protect() export (an import of it
fails), and its init creates no token. Details:
CHANGELOG, 0.3.0-beta.0.
import { GenClass, protect } from "@genclass/runtime"; // 0.3.0
GenClass.init({ token: "gc_your_app_token", scope: "functions" }); // scope: decide only inside protect()ed functions
// what GenClass finds here (a double submit, overlapping calls, a failure) is reported under "checkout submit"
export const submitOrder = protect("checkout submit", (cart) => fetch("/api/orders", { method: "POST", body: JSON.stringify(cart) }));
gc_ plus 22 letters and digits, public) groups your app's diagnostics under a
private dashboard link (https://genclass.dev/dashboard/...). On Free the dashboard shows an app's totals for the
last 7 days, for one app in an account. Pro (US$50 a developer a month, up to 3 apps in an account) adds every
problem with its pages and a fix prompt, visitor analytics, forwarding, export, 90 days of history and team members;
more apps come with Enterprise (pricing). Plans bought before 13 November 2026 keep
every app they cover (an app paid for on its own does not count toward Pro's 3); Free covers an account's oldest app
and locks the others. The runtime itself is never limited by a plan. Get a token at genclass.dev/start, or let init create it after you
approve its diff. To keep dashboards in an optional genclass.dev account, npx @genclass/runtime@beta login signs in
from the terminal (device flow) and connects the app in the current folder; connect, whoami and logout do the
rest, and npx @genclass/runtime@beta dashboard prints an app's link again (from 0.3.0-beta.2). The dashboard
fills from deployed pages with telemetry on. Local and private hosts (localhost, *.local, *.test, private
networks) do not send by default; telemetry: true or any telemetry options object is an
explicit opt-in that sends from them too, with the token. Data is kept for 90 days (a year on Enterprise). Details:
docs/runtime/DASHBOARD.md.protect(name, fn) returns a function with the same signature (same this, arguments, return value and
errors); decisions about what it causes carry fn: name. Without a runtime it just calls fn.
Package README.eager
profile's value: one console.debug line each, ending in (possible). Your rt.on("detect") and report function
get them only with detect: "possible"; detect: "likely" turns them off. Situations raised while the model loads
or the tab is hidden are decided once it can, and reported at the possible tier at most until their false-report
rate is measured.
Package README.GenClass Runtime records what the app does: user actions, async operations and their causal chains, network traffic
(fetch, XHR, WebSocket, EventSource), store writes with per-field versions, errors and timing. It computes generic
facts about each write, request and response, and asks the model only about salient situations and the questions you
ask it yourself (step 3). The model answers two questions: what is happening, and which available action is best.
The model path has no list of known bugs in the code; the separate visual and CSS checks are measured checks with
documented thresholds and do not feed the model. One indirect path remains: a check that makes the browser lay out a
very heavy page can cause a long task, which the runtime records as a perf event the model can read
(VISUAL.md, section 1).
Observe. Fetch, XHR, WebSocket, EventSource, DOM events, errors, navigation, storage, long tasks and timers are instrumented. Async work is linked into causal chains. Stores created through GenClass, or wrapped with its Redux, Zustand, React or generic adapters, get per-field versions and write histories.
Learn. The runtime learns per-operation baselines (latency, failure rate, request rate) and which fields each
operation usually writes. It also learns cadences (polling, debounced saves) and relations that keep holding
(total == sum(items[*].price × qty), selectedId ∈ items[*].id).
Triage. Cheap facts are computed for every write and request. By default only salient situations reach the
model: a response landing over newer data, a repeated request, a failure streak, a broken relation, an error.
Your own questions (rt.ask(), rt.decide()) and plugin questions marked always are asked regardless.
Decide at the network boundary. In guard and heal, responses and push messages are judged before the app
sees them; in observe they reach the app at once and are judged in the background:
deliver (passive);discard (deliver, but drop the writes it makes over newer data);defer (wait for related in-flight work).Store writes are never held or reordered by default. Salient writes that no delivery decision covered are
decided in the background; in guard and heal one can be reverted only if the decision comes within 800 ms of
the write applying (LATE_REVERT_MS; 2 s before 0.2.0) and nothing has overwritten it.
Act by mode.
| mode | behaviour |
|---|---|
observe (default) | reports only; never holds, delays or changes a request, a response or a state write |
guard (opt-in) | discard, defer, coalesce, delay, only when the model's gate for that trigger says acting beats doing nothing by the margin of the chosen aggressiveness profile |
heal (experimental) | also retry, serve_cached, block, hedge, rollback, resync and plugin actions declared with tier: "heal" (the default; one declared tier: "guard" also runs in guard), at the heal margin of the profile |
Detections are reported when the top diagnosis is not expected with probability at or above the profile's
report threshold (0.95 / 0.90 / 0.70 for cautious / balanced / eager with model 0.2.0). rt.gates() shows what
is in force.
Explain.
?genclass=off installs nothing.0.3.0 its reports can go to your own logging through sinks (SINKS.md),
and for apps in a genclass.dev account on Pro or Enterprise the collector can forward likely detections to
Sentry, PostHog, Datadog, Slack or a signed webhook.guard it can discard a stale
write or coalesce a repeated request when its gate clears.Every recall is reported next to its false-intervention rate (FIR): the share of cases where doing nothing was best but the gate fired anyway. Source and history: RESULTS.md.
Shipped model: genclass-runtime-r17 2.0.0-rc4t (@genclass/runtime-model@0.2.0, run r17-v2dT, gain gate),
10.2 MB q8, about 180 to 600 ms per model pass at 500 to 1,170 tokens on one WASM thread (estimated from runs in Node,
not in a browser), loaded from jsDelivr at idle and cached. The model and the
situation text it reads (situation-v2.3) are the same in 0.2.2 and in every 0.3.0 release so far
(0.3.0-beta.0 to 0.3.0-beta.5; each CHANGELOG entry says no model-visible text changed). On held-out data (§1):
| profile | guard FIR | guard recall (clear / real) | heal FIR | heal recall (clear / real) | report threshold |
|---|---|---|---|---|---|
cautious | 0.005% | 2.4% / 1.4% | 0.26% | 3.7% / 3.8% | 0.95 |
balanced (default) | 0.13% | 7.8% / 7.5% | 0.59% | 7.1% / 10.4% | 0.90 |
eager | 0.54% | 14.2% / 21.0% | 1.84% | 17.1% / 24.2% | 0.70 |
The FIR columns are on simulated apps; on held-out real apps FIR was 0.00% for every profile. Our targets are guard
FIR ≤ 0.1% and heal FIR ≤ 0.5%: cautious stays under both, balanced is slightly over both, eager is well over.
Recall is still low: at balanced, guard acts on under 8% of the cases where acting would help. Calibration error
is not yet measured for this model (r17-v2b: 0.021 to 0.023). See the
model card.
| what | result |
|---|---|
Compatibility matrix (7 apps: 6 frameworks and plain HTML; 15 data layers, 8 scenarios, 10 seeds; an unpublished 0.1.0-beta.4 build, commit d04eff3, which does not contain 0.2.0's audit trail, protect presets, hold-budget ceilings and invariant fixes (committed on another branch) and predates 0.2.1's first-request hold and telemetry defaults; model 0.2.0, balanced, 2026-10-10; not re-run on 0.2.2 or 0.3.0) | 0 bugs introduced in 3,510 runs; 0 actions on correct apps in 1,760 guard and heal runs; observe: 49 false findings in 880 correct-app runs; of 250 runs where the app's own bug showed, guard left 249 buggy and heal 240. 350 of 351 cells left the app at least as correct as without GenClass on every seed (observe: the same final page and server state); the other is observe on Next.js + SWR, scenario d, where on seed 7 GenClass's timing tipped the app's own race to the correct result without any action (compat/RESULTS.md, §16). |
| Never make a correct app worse (always-passive model, heal vs observe, 66 real apps × 6 seeds; runtime as of 0.1.0-alpha.1, not re-run) | 0 of 396 clean runs changed (final page text, inputs and alerts excluded, and server state). Request timing and store contents are not compared, nor is observe against no runtime. With chaos: 3 of 198. In the demos (guard, same runtime and model), a clean typeahead made 0 model calls and held for 0 ms (§4). |
Six demo apps under network chaos (model 0.2.0, balanced, runtime 0.1.0-beta.4, an unpublished build of 2026-10-09; 10 chaos + 5 clean seeds per demo and mode) | Bug rate 72% off, 70% observe, 72% guard, 73% heal (differences under 5 points are noise): nothing is healed at the shipped gates, because candidate gains rarely clear the margins; 0 false interventions on clean runs (§5). |
Training. A 150M teacher was trained and scored below r17-v2b on every held-out set, so distillation was skipped
(§1). Data so far: 10.4M simulated gold rows plus a 2.1M situation-v2.3 top-up, 2.3M on-policy rows, 51M unlabeled
rows and 837,623 real-browser rows (§6). Recall is the open problem.
| what | result |
|---|---|
Round 1 model, R17 (9.6 MB q8; format situation-v1, not compatible with this runtime), simulated apps | Diagnosis 90.5%, action 81.9%, guard FIR 0.05%, heal FIR 0.24%; recall on clear stale and duplicate cases only 7.7% (precise but timid) (§1). |
| Why round 1 was timid (sim/SEPARABILITY.md, §3) | 62 to 82% of clear actionable rows had a benign twin with identical visible facts; 24% of clear rows were mislabelled expected; labels assumed knowledge a runtime cannot have. The v2 format adds measured facts, with relabelled data. |
r17-v2b (shipped as @genclass/runtime-model@0.1.0) | Simulated apps: diagnosis 84.2%, action 77.8%. Real apps: diagnosis 83.6%, action 80.0%. Guard FIR 0.01% with guard recall 0.6% of clear simulated cases; heal FIR 0.07% with heal recall 5.7% of actionable real-app cases (§1; an earlier, stricter fit, not exactly like-for-like with 0.2.0). |
| The same never-worse check on the v1 runtime (store-write holds) | 4 of 198 clean runs changed (2 apps); the React/Redux RealWorld app never rendered its home feed (§4). |
GenClass.init(), /auto and the script tag on public hosts,
sent to the GenClass maintainers' collector (telemetry-worker/, a Cloudflare Worker writing
to a private R2 bucket) to improve the model. One console line per page says it is on. Off on local and private
hosts (localhost, *.local, *.test, private networks) from 0.2.2 (0.1.0-beta.3 to 0.2.1 send from them
too), in Node/SSR and in createRuntime().expected, every
action and veto; in 0.3.0 possible detections too, marked tier: "possible", and routine decisions only one in
four, at most 200 per page load, with exact counts; 0.2.2 and earlier send every decision). The collector adds a
coarse country (two letters) and stores no IP address or user agent.GenClass.init({ telemetry: false }) (script tag: data-telemetry="off"; meta tag:
telemetry=off; or window.GENCLASS_CONFIG = { telemetry: false }), ?genclass=no-telemetry,
localStorage.setItem("genclass.telemetry", "off") or npx @genclass/runtime@beta init --no-telemetry; browsers
sending Global Privacy Control are never collected.telemetry: { include: { situation: true } };
off by default since 0.2.1, while 0.1.0-beta.3 to 0.2.0 send it by default). It is redacted by field
meaning, but can still contain route names with query strings, short error messages and short field values; read
TELEMETRY.md first.0.3.0), batches also carry the token and the names of your protect()ed functions, so
they show on your app's dashboard. Without telemetry, a token does nothing.analytics: true with the app's token; new in
0.3.0-beta.1): per page view the route, engaged time, scroll depth, and clicks, rage clicks and dead clicks per
element (named from markup, never its text); and, within one page load, how each page view was reached, the route
before it and the time between, the first element used on it, and where the page load ended with its routes in
order. No visitor id; one localStorage entry (the visit flag, which links the page loads of a visit and says
whether the browser visited before; runtime.analytics.stop() removes it); never used for a decision, and every
opt-out above turns them off. Where consent is needed (the EU, EEA and UK), leave analytics unset and call
runtime.analytics.start() once the visitor consents
(TELEMETRY.md).0.3.0-beta.5): whether they run on the page and whether
their runtime fixes are on, and in each summary the findings per check and per page path (at most 20 paths), the
fixes applied and undone, and their cost. Never a selector, element text, colour, URL, size or one event per finding;
the findings themselves stay in the page. They are off on public hosts unless you turn them on.init creates a dashboard only after you approve
its diff).disable() and
?genclass=off restore the page (checked against the code by a unit test).rt.audit() exports a structured record of every decision and action; payment, checkout and sign-in endpoints
should stay observe-only (requests: { protect: protectPreset("payments", "auth") }).Short answers to the common questions (race conditions in React, stale responses, double submits, whether it changes your app, what it sends, how big it is, what it costs, how it compares) are in FAQ.md. Ask in GitHub Discussions or on Discord; report bugs and false detections in Issues.
Node ≥ 20. From the repo root:
ONNXRUNTIME_NODE_INSTALL=skip npm ci # the root lockfile is committed; skip onnxruntime-node's CUDA download
npm run typecheck -w @genclass/runtime
npm run build -w @genclass/runtime
cd packages/runtime
NODE_OPTIONS=--expose-gc npx vitest run --exclude "test/browser/**" --exclude test/review-perf.test.ts
NODE_OPTIONS=--expose-gc npx vitest run test/review-perf.test.ts --retry=2 # timing budgets, run alone
CI (.github/workflows/ci.yml, Node 22) runs on pushes to main, runtime, mvp and
mvp-v2, on pull requests, and on manual dispatch, in three jobs:
runtime: the typecheck, build and unit tests above (14 tests skip: the model-parity tests, which need
GENCLASS_MODEL_DIR), then the perf budgets in their own step, reported but not blocking, because they time a
5,000-item store and can fail under parallel load;visual-browser: the first-load size against the release line, and the measured visual checks in Chromium with
Playwright;telemetry-worker: the collector's unit tests.@genclass/playwright has its own workflow,
.github/workflows/playwright-reporter.yml (typecheck, build, unit tests
and the fixture's end-to-end check in Chromium); it never blocks ci.yml. The
visual bench, .github/workflows/visual-measure.yml, runs on manual dispatch
and on pushes that change bench/visual/ on the wave2/visual branch, never on pull requests, because it loads
public sites.
Not in CI, because they are heavier or need Azure (read AGENTS.md before running them): the model
Playwright suite (npm run test:browser in packages/runtime), the npm tarball smoke test (test/smoke/smoke.sh),
the install suite (test/install/run-all.sh), the sim, the real-app corpus, the demos' evaluation, and training.
Releases are published by .github/workflows/release.yml from a v* tag, with npm
provenance.
The training format is tagged. The current tag is situation-v2.3, which runtime 0.1.0-beta.0 and later
render; the shipped model was trained on situation-v2 data plus the situation-v2.3 top-ups (simulated and real).
Any change to packages/runtime/src/situation/* (or other text the model reads) changes the model's input and means
a new tag and regenerated data (training/curriculum/rt.py mirrors the renderer and must change with it).
| path | what |
|---|---|
packages/runtime | @genclass/runtime, the library: observers, causality, stores and adapters, learned baselines, relations and profiles, facts, triage, policy gate, actions, model host (Web Worker, ONNX Runtime Web on WebGPU or WASM), measured visual checks, devtools overlay. README · CHANGELOG |
packages/runtime-model | @genclass/runtime-model, the default model package (data only; files/ is gitignored and filled at release time) and its model card |
packages/mcp | @genclass/mcp (0.2.0 on npm), the MCP server for coding agents: pages connect through @genclass/runtime/agent; the agent gets findings in causal order, replays, explore verdicts, generated regression tests and, with genclass_scan, the page audit (AGENT.md). README · CHANGELOG |
packages/playwright | @genclass/playwright (unreleased), GenClass for Playwright: a fixture that puts the runtime on every page under test (observe mode, seeded network chaos with page.route, the model skipped by default) and writes one race file per test, and a reporter that turns those files into one markdown report for the pull request, with the evidence line and what reproduced across seeds. README |
packages/nuxt, packages/astro | @genclass/nuxt and @genclass/astro (unreleased): the runtime as a Nuxt module and as an Astro integration, one line in the framework's config, with options for the mode, the token, telemetry and the devtools overlay; browser only. Nuxt README · Astro README |
packages/sv | @genclass/sv (unreleased), a community add-on for the Svelte CLI: npx sv add @genclass sets up GenClass in a SvelteKit app (the dependency and its import first in src/hooks.client). README |
docs/runtime | Docs index · Results · Coding agents · API · Architecture · Build contract · Threat model |
compat, templates | Framework compatibility matrix (7 apps, 15 data layers, every mode; RESULTS.md) and eight starter templates with the one line (React + Vite, Next.js, Vue + Vite, SvelteKit, Astro, Nuxt, React Router, Angular; templates/README.md) |
demos, bench | Six demo apps (typeahead, autosave, checkout, flaky dashboard, live kanban, real-time decisions) with a Service Worker chaos backend and Playwright trials; bench/heal runs them per mode, bench/visual measures the visual checks |
| path | what |
|---|---|
packages/genclass-runtime | genclass-runtime, the former short name for the CLI: no longer published, and its newest npm version installs an unsupported runtime; use @genclass/runtime |
sim | Training-data simulator: random apps run on the real runtime in a deterministic virtual world, labelled by counterfactual outcomes |
realapps | 158 real apps (144 written for the corpus, 14 open-source RealWorld front-ends) run with the real runtime in headless Chromium, labelled the same way; the never-worse sweep covered the first 66. README |
training | Vocabulary pruning, curriculum (curriculum/rt.py mirrors the runtime's renderer), multi-node CPU training on Azure, ONNX export, evaluation (EVAL.md) |
telemetry-worker | The diagnostics collector, the dashboards, the accounts and the GitHub App, genclass-dev[bot] (src/github, guide) (Cloudflare Worker). The genclass.dev site and the page check are in a separate, private repository. |
billing | plans.json, the one place the genclass.dev plans are defined; the collector and the pricing page read it |
research | Earlier GenClass/Jev research (voice-control Chrome extension, the jev_local encoder and server, classifier benchmarks); the training scripts still use jev_local (README) |
scripts | Azure VM helpers for training runs |
AGENTS.md, CONTRIBUTING.md | How to work in this repository |