glitchless-dsh 0.1.11 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,10 +7,11 @@ the stutter on level 2.
7
7
 
8
8
  This plugin adds Glitchless to [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH):
9
9
 
10
- - **25 tools** from the `glitchless-mcp` server, shown to the model as `mcp__glitchless__*`: ranked findings, frame
10
+ - **26 tools** from the `glitchless-mcp` server, shown to the model as `mcp__glitchless__*`: ranked findings, frame
11
11
  times by level and device, errors, one session's timeline, your game's own events and funnels, bug reports players
12
12
  sent, store reviews and revenue, each game's dashboard, playtest bots, share links, and its alerts (which rules are
13
- on, the weekly summary, findings you accept as known, and errors you resolve).
13
+ on, the weekly summary, findings you accept as known, and errors you resolve), and a way to tell the Glitchless
14
+ team what didn't work.
14
15
  - **3 skills**, also as slash commands:
15
16
 
16
17
  | Skill | What it does |
@@ -24,7 +25,7 @@ This plugin adds Glitchless to [DeepSeek Harness](https://github.com/deepseek-ai
24
25
  Before you add it:
25
26
 
26
27
  - Node.js 22 or newer has to be on the `PATH` that DSH runs with. DSH starts the Glitchless server with `npx`, and
27
- without Node the 25 tools never appear and nothing says why, so it looks like a broken plugin. `node --version` in
28
+ without Node the 26 tools never appear and nothing says why, so it looks like a broken plugin. `node --version` in
28
29
  the shell you start DSH from should print v22 or later.
29
30
  - Glitchless Cloud is a third-party service, not part of DSH or DeepSeek. It has a
30
31
  [free plan](https://www.glitchless.gg), and you sign in by approving a code in your browser (see Sign in). You can
@@ -38,7 +39,8 @@ Restart DSH. Use `--profile tui` or `--profile headless` for those profiles.
38
39
 
39
40
  ## Sign in
40
41
 
41
- Ask DSH to "sign in to Glitchless". It calls `glitchless_sign_in`, which shows a link and a code; approve the code in
42
+ Ask DSH to "sign in to Glitchless". It calls `glitchless_sign_in`, which shows a link and a code (or opens the approve page itself, in
43
+ an agent that can); approve the code in
42
44
  the Glitchless dashboard and the agent reaches every game in your workspace. No key goes in a config file: the server
43
45
  keeps a workspace key in `~/.config/glitchless/credentials.json`, readable only by you, and `npx -y glitchless-mcp
44
46
  logout` deletes it. A new workspace has a demo game, so you can try it before your game sends anything.
@@ -56,9 +58,11 @@ Tested with DSH 0.2.1-rc.5 and DeepSeek V4.1 Flash on macOS.
56
58
  ## Permissions
57
59
 
58
60
  The tools read your games' data and can create a game, save a game's dashboard and make or revoke read-only share
59
- links. They act as you, with your role in the workspace, and never delete data or touch billing or people. Settings →
61
+ links. They act as you, with your role in the workspace. They delete data only if you turned that on for the key and asked
62
+ for a whole game to be deleted, and never touch billing or people. Settings →
60
63
  Keys & access in the dashboard lists and revokes the key. `glitchless_playtest` runs bots against a build on your
61
- computer, and the setup skill edits your game's code when you ask it to.
64
+ computer, and the setup skill edits your game's code when you ask it to. The agent can also send the Glitchless team a
65
+ report of what didn't work (`glitchless_feedback`), and tells you what it sent.
62
66
 
63
67
  ## Self-hosted
64
68
 
@@ -74,7 +78,7 @@ other lines):
74
78
  serverName: glitchless
75
79
  transport: stdio
76
80
  command: npx
77
- args: ['-y', 'glitchless-mcp']
81
+ args: ['-y', 'glitchless-mcp', '--no-skills']
78
82
  cwd: !!js process.cwd()
79
83
  toolCallTimeoutMs: 600000
80
84
  failOnStartupError: false
package/cordis.patch.yml CHANGED
@@ -13,7 +13,8 @@
13
13
  serverName: glitchless
14
14
  transport: stdio
15
15
  command: npx
16
- args: ['-y', 'glitchless-mcp']
16
+ # The plugin registers the skills itself: the server serves none (older versions ignore the flag).
17
+ args: ['-y', 'glitchless-mcp', '--no-skills']
17
18
  cwd: !!js process.cwd()
18
19
  # A playtest runs bots through the game for a few minutes.
19
20
  toolCallTimeoutMs: 600000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitchless-dsh",
3
- "version": "0.1.11",
3
+ "version": "0.1.14",
4
4
  "description": "Let your agent understand your players. Glitchless for DeepSeek Harness: game observability tools over MCP (ranked findings, frame times, errors, where players quit, each game's own dashboard) and skills that add Glitchless to a game in Unity, Godot, Unreal, Three.js and more, design its dashboard and fix what players hit.",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",
@@ -11,7 +11,11 @@ platformer or shooter, where players die and whether frames hold up in a fight.
11
11
  add the collectors this game needs, and design its dashboard from them: its own pages, in its own words. The
12
12
  developer then sees it in Glitchless, and you can read the same data back over MCP to debug.
13
13
 
14
- Before this skill, the game should already send data (the `instrument` skill). If it doesn't, do that first.
14
+ Before this skill, the game should already send data (the `instrument` skill). If it doesn't, do that first. The
15
+ Glitchless MCP server serves the `instrument`, `dashboard` and `triage` skills itself (each where the connection has
16
+ its tools), to an agent whose client loads skills from MCP servers (in Claude Code, `/glitchless:instrument` for a
17
+ server added as `glitchless`); without that, `glitchless_create_game` with the game's `engine` returns the instrument
18
+ skill's steps for it.
15
19
 
16
20
  ## 1. Find out what they want to know
17
21
 
@@ -123,7 +127,7 @@ quarter of a million characters. `upload: true` asks for a link from any server.
123
127
  | --- | --- |
124
128
  | `stat` | `metric` (sessions, players, avg_session_s, median_session_s, crash_free_pct, error_free_pct, frame_p95, avg_fps, hitches_per_min, errors, deaths, rage_quit_pct, hours_played, players_now: playing now, whatever the range; runs; for a multiplayer game ping_p50, ping_p95, loss_pct, disconnects_per_hour, disconnect_pct; with servers in server mode servers_now, server_tick_p95, server_crash_free_pct, players_per_server; with `zone` (a zone's name from `setZone`) zone_time_pct, its share of play time, and zone_median_s, the median time in it of the sessions that went there), or `event` with an optional `per`: another event (a percentage), `$players` / `$sessions` (the share of them that sent it: conversion) or `$hours` (per hour played: matches per hour; `deaths` and `errors` take it too). With `sum` (a numeric attribute), it adds that up instead, and `per: "$players"` gives it per player, `"$hours"` per hour played (gold per hour). `rate`: the share of the events where a flag holds (`"won"`) or a word is sent (`"result=win"`), with `expect` for a rate the game intends; `avg`: a numeric attribute's average; `of` with `quantile` (1 to 99) and `unit`: one percentile (the median match). Instead of `event`, `first` (an event: the median seconds from a session's start to its first one, or `quantile`) or `never` (an event: the share of ended sessions that never sent it), 31 days or less. A money stat in Robux takes `devex: true`: an estimate in dollars at Roblox's DevEx rate under it, always labelled one |
125
129
  | `series` | `event`, optional `by` (split by an attribute, or `$version` / `$level` / `$zone`, or the sessions' `$platform` / `$browser` / `$device_tier` / `$link` / `$graphics` / `$site` or a property, `$rank`), `limit`, `sum`, `rate` or `avg`, `per: "$hours"` |
126
- | `breakdown` | `event`, `by`, `limit`, `sum` (each value's sum, largest first). `by` can split the sessions themselves: `$platform` (Windows, macOS, Linux, Steam Deck, iOS, Android, Web…; a Roblox game's Computer, Phone, Tablet, Xbox, PlayStation, VR), `$browser` (Chrome, Safari, Firefox, Edge…; a native build shows as "Godot app", a web build of an engine as "Unity web build") or `$device_tier` (High-end, Mid-range, Low-end GPU, Software rendering, high to low), `$link` (Wi-Fi, Mobile data, Wired), `$graphics` (the graphics setting: a `graphics` property the game sets, else what the SDK read itself, Roblox's Graphics Quality as Automatic or 1 to 10; Automatic first, then low to high), `$site` (where a web game was played: itch.io, CrazyGames, Poki, Newgrounds, GX.games, localhost, or the game's own site; "(none)" for a native build or an engine's web build, which don't send their page), or a property the game sets (`$rank`, `$class`; sessions without it are "(none)"). Without `event` it counts the sessions in each, and their players when the game sends player IDs. Ranges of 31 days or less. With `rate` (`"won"`, `"result=win"`) or `avg`, each row's rate with its likely range (or its average) next to the overall one: `min` leaves out rows of fewer events (default 30 for a rate), `expect` draws the rate the game intends (a gacha's published odds, as a percentage: 0.6), `order` is `rate` (default), `count` or `value` (heat 0, 1, 2). Any breakdown takes `order: "value"` (the values' own order: streak day 1, 2 … 10) or `"count"`. `per: "$hours"` makes each row per hour played. By a list attribute (a deck), each element is a row. With `sum` in Robux, `devex: true` gives each row and the total an estimate in dollars. `by: "$zone"` without `event`: the time played in each zone, most first (share of play time, sessions that went there, their median time; time outside every zone is "(none)"), any range |
130
+ | `breakdown` | `event`, `by`, `limit`, `sum` (each value's sum, largest first). `by` can split the sessions themselves: `$platform` (Windows, macOS, Linux, Steam Deck, iOS, Android, Web…; a Roblox game's Computer, Phone, Tablet, Xbox, PlayStation, VR), `$browser` (Chrome, Safari, Firefox, Edge…; a native build shows as "Godot app", a web build of an engine as "Unity web build") or `$device_tier` (High-end, Mid-range, Low-end GPU, Software rendering, high to low), `$link` (Wi-Fi, Mobile data, Wired), `$graphics` (the graphics setting: a `graphics` property the game sets, else what the SDK read itself, Roblox's Graphics Quality as Automatic or 1 to 10; Automatic first, then low to high), `$site` (where a web game was played: itch.io, CrazyGames, Poki, Newgrounds, GX.games, localhost, or the game's own site; "(none)" for a native build, or a web build from an SDK that sends no page: GameMaker's, or a Godot, Unity or Unreal one too old to), or a property the game sets (`$rank`, `$class`; sessions without it are "(none)"). Without `event` it counts the sessions in each, and their players when the game sends player IDs. Ranges of 31 days or less. With `rate` (`"won"`, `"result=win"`) or `avg`, each row's rate with its likely range (or its average) next to the overall one: `min` leaves out rows of fewer events (default 30 for a rate), `expect` draws the rate the game intends (a gacha's published odds, as a percentage: 0.6), `order` is `rate` (default), `count` or `value` (heat 0, 1, 2). Any breakdown takes `order: "value"` (the values' own order: streak day 1, 2 … 10) or `"count"`. `per: "$hours"` makes each row per hour played. By a list attribute (a deck), each element is a row. With `sum` in Robux, `devex: true` gives each row and the total an estimate in dollars. `by: "$zone"` without `event`: the time played in each zone, most first (share of play time, sessions that went there, their median time; time outside every zone is "(none)"), any range |
127
131
  | `distribution` | `event`, `of` (a numeric attribute), optional `by` (an attribute, `$version`, `$level`, a session split), `limit` (rows, up to 8), `bins` (bars, up to 40), `unit` (`"s"` shows minutes and hours; or the game's word, `"floors"`). How it spreads: half under, 1 in 10 over, and a histogram |
128
132
  | `funnel` | `steps`: events in order, comma-separated |
129
133
  | `levels` | `label`: what the game calls a level ("Stop", "Puzzle", "Wave"); shows each one's median clear time and the slowest 1 in 10, and the attempts a disconnect ended. `by` splits each level's attempts: an attribute of its `levelStart` (`"tier"`, `"party_size"`, a list such as `"build"`), a property (`"$class"`) or a split; `level` keeps one level; `count: "runs"` counts each run once at each level it reached |
@@ -136,8 +140,8 @@ quarter of a million characters. `upload: true` asks for a link from any server.
136
140
  | `findings`, `errors`, `deaths`, `events`, `reports` | none (`limit` for findings, errors and reports; `by` and `level` for deaths, as on `levels`) |
137
141
  | `retention` | `limit`: how many of the latest first-seen days (default 14); `by` a property (`$spender`): each value's D1, D7 and D30. Needs player IDs: a game in anonymous mode gets a panel saying to turn install mode on, except a Roblox game connected to Roblox, whose panel shows Roblox's own retention |
138
142
  | `store_revenue` | `measure` (required): `revenue`, `per_player`, `by_day`, `by_version` or `by_country` (a world map of installs or revenue by country with the countries ranked: installs, revenue, purchases; `show: "revenue"` opens it on revenue; size `l`); RevenueCat's `installs`, `active_users`, `mrr`, `actives`, `trials`, `players_by_day` and `by_store` (revenue in the App Store and Google Play next to the iOS and Android sessions measured); Stripe's `refunds`, `customers` (new paying customers) and `by_product`; Roblox's (in Robux) `installs` (new users), `active_users` (daily active users), `players_by_day` and `retention` (D1, D7, D30 by cohort day, size `m`), no `by_version`; itch.io's earnings: `revenue`, `per_player`, `by_day` only. `store`: `revenuecat`, `stripe`, `roblox` or `itch` (default: the first connected). Real revenue from RevenueCat or the game's own Stripe account, Roblox's Robux or itch.io's earnings, for a game connected to it in Glitchless Cloud |
139
- | `store_sales` | `store` (`steam` or `itch`): what the store counted by day. Steam: units, returns and wishlists. itch.io: its page as a funnel, page views → browser plays (the sessions Glitchless measured on itch.io) → downloads → purchases, with earnings; for a web game on itch.io, put it first on its itch.io page next to a `breakdown` by `$site` |
140
- | `store_score` | `store` (`app_store`, `google_play`, `steam` or `roblox`): a store's rating, one small panel per store. The average stars of the written reviews synced in the window and how many, next to Apple's own rating on the App Store. Google Play has no API for its overall rating, so its panel is the reviews' average and says so. Roblox has no reviews: its thumbs up and down, favorites and visits |
143
+ | `store_sales` | `store` (`steam`, `itch` or `microsoft_store`): what the store counted by day. Steam: units, returns and wishlists. The Microsoft Store: acquisitions of the game by kind (paid, free, trial, Xbox Game Pass) and of its add-ons. itch.io: its page as a funnel, page views → browser plays (the sessions Glitchless measured on itch.io) → downloads → purchases, with earnings; for a web game on itch.io, put it first on its itch.io page next to a `breakdown` by `$site` |
144
+ | `store_score` | `store` (`app_store`, `google_play`, `steam`, `roblox` or `microsoft_store`): a store's rating, one small panel per store. The average stars of the written reviews synced in the window and how many, next to Apple's own rating on the App Store and Microsoft's ratings in the window on the Microsoft Store. Google Play has no API for its overall rating, so its panel is the reviews' average and says so. Roblox has no reviews: its thumbs up and down, favorites and visits |
141
145
  | `positions` | `level`, or `zone` (what the game passes to `setZone`), or neither: every position and death in the game, for a hub with no levels; `show`: `deaths` (default), `path` or `both`, `bin`: a bin's width in world units (default about a hundredth of the place). Where players died there, counted per bin, and where they went on a coarser grid, over the place's background: one panel per place |
142
146
  | `table` | `event` (required), `columns` (up to 12: attributes, `$time`, `$version`, `$platform`, `$level`, `$session`; `{ "key": "duration_s", "unit": "s" }` for a unit; default the event's own attributes, up to 8), `group_by` (an attribute, `$version`, `$level` or `$platform`), `sort` (`"-score"`: highest first; default newest first), `of` (a number whose lowest, average and highest each group shows), `limit` (rows a group, up to 100; default 20). The event's events one by one, size `l` |
143
147
 
@@ -197,6 +201,14 @@ developer, then change what they ask for: "split opens by version", "add the sho
197
201
  more panel, "a page for the tutorial" one more board. People can rename, reorder, add and remove pages in the
198
202
  dashboard too (Edit pages), so read the current pages before saving over them.
199
203
 
204
+ **A game that came from a game check.** `glitchless_playtest` with `check_url` plays a game with nothing installed
205
+ and designs its dashboard from what its bots saw: a "Game check" page first (its numbers come from Glitchless's
206
+ test machine, its sessions are bots), then pages titled "… with Glitchless installed" whose notes name the levels,
207
+ waves, modes and inputs the bots found. Once the game sends its own data, add the collectors those notes name
208
+ (`levelStart` for each wave or level the bots saw, a `mode` property for the modes, `track()` for the actions), drop
209
+ "with Glitchless installed" from the titles, rewrite the notes for players, and keep the Game check page last or
210
+ remove it: its link shows only the check's bot runs.
211
+
200
212
  ## 4. Use it to debug
201
213
 
202
214
  The boards also decide what a release is judged on: the Versions view and `glitchless_compare_versions` compare
@@ -201,3 +201,6 @@ goes to the room's arcade, where everyone plays everyone's game on their phones:
201
201
  Tell the user what you wired (with file:line), the gauges you chose and why, the events you track and count, the
202
202
  properties and groups you set, the netcode and server mode you wired for a multiplayer game, and the board you
203
203
  designed, the agent tools or measure commands you set up, and anything you weren't sure about.
204
+
205
+ If a step here didn't work in this engine, or a Glitchless tool failed or misled you, report it to the Glitchless team
206
+ with the `glitchless_feedback` MCP tool, then tell the user what you sent and its ID.
@@ -37,6 +37,16 @@ If the game has no players yet, or the user asks for their own runs or playtests
37
37
  them to every run). Tell the user it's there, that it counts their runs as a player's, and to take it out once the game
38
38
  has players. Don't pass `"enabled": true` to `init` instead: that turns on every debug build for good.
39
39
 
40
+ ## Crashes
41
+
42
+ Nothing to add: when Godot itself dies, the next launch sends an `error` of kind `crash` and the session counts as
43
+ crashed (README, "Crashes"). The game must quit through `get_tree().quit()` or the window's close button, never
44
+ `OS.kill()` on itself, or every quit counts as a crash. A debug build's crash has Godot's crash handler's words
45
+ (`Program crashed with signal 11`, the script function running then); a release build's says only `The game stopped
46
+ without closing`, which a force quit also sends, so for a backtrace suggest testers play a debug export. Runs from the
47
+ editor send none (its Stop button kills the game), so to see one, run the game from a terminal with `--glitchless`,
48
+ crash it (`OS.crash("test")`), and launch it again.
49
+
40
50
  ## Playtests
41
51
 
42
52
  `glitchless_playtest` runs the game with its autoplay bot before and after a change and compares the two. If the game
@@ -22,7 +22,7 @@ Add one line to `dependencies` in `Packages/manifest.json`:
22
22
  "gg.glitchless.sdk": "https://github.com/glitchless-gg/glitchless.git?path=unity/Packages/gg.glitchless.sdk"
23
23
  ```
24
24
 
25
- Unity resolves it the next time the Editor has focus. Pin a release by adding `#gg.glitchless.sdk/v0.7.3`.
25
+ Unity resolves it the next time the Editor has focus. Pin a release by adding `#gg.glitchless.sdk/v0.7.4`.
26
26
 
27
27
  ## 3. Initialize, without touching a scene file
28
28
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: triage
3
- description: Find and fix the most important problem in a game (Three.js, Phaser, Babylon.js, PlayCanvas, Unity, Godot, Unreal or Roblox) using Glitchless player telemetry — frame-time hitches, leaks, errors, difficulty spikes and rage quits — then verify the fix with measurements. Use when the user asks what's wrong with their game, why it stutters or lags, why players quit, or to "fix the Glitchless findings".
3
+ description: Find and fix the most important problem in a game (Unity, Godot, Unreal, Three.js, GameMaker, Roblox, Phaser, Babylon.js or PlayCanvas) using Glitchless player telemetry — frame-time hitches, leaks, errors, difficulty spikes and rage quits — then verify the fix with measurements. Use when the user asks what's wrong with their game, why it stutters or lags, why players quit, or to "fix the Glitchless findings".
4
4
  ---
5
5
 
6
6
  # Triage a game with Glitchless
@@ -9,7 +9,7 @@ You have two sources of truth:
9
9
  - **Glitchless MCP** (`glitchless_*` tools without "live") — production telemetry from every player, aggregated.
10
10
  - **The running game.** For a web game (Three.js, Phaser, Babylon.js, PlayCanvas): **WebMCP** (`glitchless_live_performance`, `glitchless_measure`, `glitchless_inspect_scene`, `glitchless_errors`, plus the game's own tools like `<game>_load_level`) in the user's browser right now. Tool names may carry a channel prefix (e.g. `localhost_5173-glitchless_measure`).
11
11
  If WebMCP tools are missing, ask the user to open the game, call the `_webmcp_get-token` tool and have them paste the token into the WebMCP widget. Work without it if they decline.
12
- For Unity, Godot, Unreal and GameMaker there is no WebMCP: `glitchless_playtest` with `command` runs a build with its autoplay bot and compares it with a baseline (steps 5 and 8), and for one measurement, run a build with `--glitchless-measure=SECONDS` (Unity: `--glitchless-out=FILE` writes the JSON; Godot prints one line starting `{"glitchless_measure"`; Unreal takes `-glitchless-measure=SECONDS`, prints that line too and writes `-glitchless-out`), started with the game's autoplay flags if it has them. The JSON has the same fields as `glitchless_measure`. In the Unreal editor, Unreal MCP with the Glitchless Toolset adds a `Measure` tool for Play In Editor (the instrument skill sets it up); confirm with a packaged Development build, since the editor compiles shaders on first use.
12
+ For Unity, Godot, Unreal and GameMaker there is no WebMCP: `glitchless_playtest` with `command` (on the Glitchless MCP server on this computer, `npx glitchless-mcp`; the hosted one at api.glitchless.gg has no playtests) runs a build with its autoplay bot and compares it with a baseline (steps 5 and 8), and for one measurement, run a build with `--glitchless-measure=SECONDS` (Unity: `--glitchless-out=FILE` writes the JSON; Godot prints one line starting `{"glitchless_measure"`; Unreal takes `-glitchless-measure=SECONDS`, prints that line too and writes `-glitchless-out`), started with the game's autoplay flags if it has them. The JSON has the same fields as `glitchless_measure`. In the Unreal editor, Unreal MCP with the Glitchless Toolset adds a `Measure` tool for Play In Editor (the instrument skill sets it up); confirm with a packaged Development build, since the editor compiles shaders on first use.
13
13
 
14
14
  ## Loop
15
15
 
@@ -30,7 +30,7 @@ You have two sources of truth:
30
30
  active users. Not connected: say that connecting it (with an Open Cloud key) brings these.
31
31
  3. **Find the code.** Use the evidence as search keys: event names from `preceding_events` (e.g. the `glitchless.track('powerup')` call site), gauge names passed to `glitchless.setContext`, the error's function/file, level data near the hotspot's x range.
32
32
  4. **Reproduce and baseline.** Web: load the level / trigger the effect with the game's tools, then run `glitchless_measure` for 5–10s. Unity, Godot and Unreal: build (Unreal: a packaged Development build), then run the measure flag on the level in question. Record p95, worst frame, draw calls, render and update CPU, peak gauges, the memory delta. For errors, reproduce and confirm with `glitchless_errors` (web) or the session in `glitchless_session`.
33
- 5. **Save a playtest baseline before touching code.** Call `glitchless_playtest` with `save_as: "baseline"`. The game's autoplay bot plays fixed-seed runs on the current code so you can prove later that your change made nothing else worse. A web game needs the game and Glitchless server running and Playwright in the project. For Unity, Godot, Unreal and GameMaker, pass `command` (what starts the build: `["godot", "--path", "."]`, or the exported build, rebuilt first) or set it in `glitchless.playtest.json`; each run starts the build with `--autoplay --seed=N` and the SDK's measure flag, and the game's autoplay mode has to keep playing for the whole measure (the error says how to add one if it has none). For Roblox, pass `engine: "roblox"` (and `studio` with several Studios open): it plays the place open in Studio over Studio's MCP server, with the scenario's params as Workspace attributes for the game's bot. If it can't run, say so, keep the measure JSON from step 4 as the baseline, and continue.
33
+ 5. **Save a playtest baseline before touching code.** Where `glitchless_playtest` is available (the Glitchless MCP server on this computer, not the hosted one), call it with `save_as: "baseline"`. The game's autoplay bot plays fixed-seed runs on the current code so you can prove later that your change made nothing else worse. A web game needs the game and Glitchless server running and Playwright in the project. For Unity, Godot, Unreal and GameMaker, pass `command` (what starts the build: `["godot", "--path", "."]`, or the exported build, rebuilt first) or set it in `glitchless.playtest.json`; each run starts the build with `--autoplay --seed=N` and the SDK's measure flag, and the game's autoplay mode has to keep playing for the whole measure (the error says how to add one if it has none). For Roblox, pass `engine: "roblox"` (and `studio` with several Studios open): it plays the place open in Studio over Studio's MCP server, with the scenario's params as Workspace attributes for the game's bot. If it isn't available or can't run, say so, keep the measure JSON from step 4 as the baseline, and continue.
34
34
  6. **Fix the root cause**, minimally and idiomatically:
35
35
  - many short-lived meshes → one `InstancedMesh`/`THREE.Points` or a pool; shared geometry/material; remove **and** `dispose()` when done
36
36
  - geometry growth per level load → dispose geometries/materials/textures on unload; share per-tile geometry
@@ -43,7 +43,7 @@ You have two sources of truth:
43
43
  - **Unreal:** `pso_compile` hitches → keep PSO precaching on, ship a bundled PSO cache (record with `-logPSO`), spawn first-use effects behind the loading screen; `-LogCmds="LogPSOHitching Verbose"` names each material; `gc` hitches → pool actors and objects instead of SpawnActor/NewObject per shot, keep short-lived data out of UObjects; `ensure` or `crash` → a UObject that is null or pending kill: test with `IsValid()`, keep it in a `UPROPERTY()`; `script` → a Blueprint read None: add an Is Valid node. With Unreal MCP connected, make Blueprint changes through it
44
44
  - **design findings** (a jump nobody makes): propose 1–2 concrete level-data changes with the numbers, and ask the user before changing game design.
45
45
  7. **Verify.** Repeat the exact reproduction and measure again (web: reload and `glitchless_measure`; Unity, Godot and Unreal: rebuild and run the measure flag). Show a before/after table. On the web, drop a breadcrumb with `glitchless_annotate` (e.g. "agent: confetti → InstancedMesh, p95 48→15ms").
46
- 8. **Playtest the change.** Rebuild an engine game's export first, then call `glitchless_playtest` with no arguments (and the same `command`) to compare every scenario against the baseline. A FAIL means the work isn't done: read the regressions and new errors, fix them, and run it again. Report the verdict and the improvements table to the user.
46
+ 8. **Playtest the change.** Where step 5 saved a baseline, rebuild an engine game's export first, then call `glitchless_playtest` with no arguments (and the same `command`) to compare every scenario against the baseline. A FAIL means the work isn't done: read the regressions and new errors, fix them, and run it again. Report the verdict and the improvements table to the user. Without `glitchless_playtest`, repeat step 7's measurement on every level the change touched, and say that no playtest ran.
47
47
  9. **Version it.** Bump the patch version the game reports (`version` in `Glitchless.init`; Unity's `Application.version`; Godot's `application/config/version`; Unreal's `ProjectVersion` in `DefaultGame.ini`; Roblox's place version goes up by itself on each publish) so production data from the fix is separable, and tell the user to run `glitchless_compare_versions` (or open Versions in the dashboard) once players have played the new build. In a jam room, publish the new build to the room straight after (`glitchless_jam` with `action: "publish"`), so the next round of players gets the fix.
48
48
 
49
- Never claim a fix worked without a measurement and a passing playtest; if you couldn't run either, say so and say what to watch in production.
49
+ Never claim a fix worked without a measurement and, where `glitchless_playtest` is available, a passing playtest; if you couldn't run either, say so and say what to watch in production.