glitchless-dsh 0.1.13 → 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.13",
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
 
@@ -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
@@ -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.