What the agent reads
-
Agent skills: markdown playbooks in
skills/(copied to.claude/skills/) for interviewing, scaffolding, verifying and polishing a game. -
AGENTS.md: where things are, the commands, the invariants it must not break, and a before-you-finish checklist. -
llms.txtindexes every docs page, andllms-full.txtis all of them in one file. Every docs page also has a raw markdown twin: add.mdto its path, as in/docs/getting-started.md. -
scene.schema.json: the JSON Schema for scene files, generated from the zod source, so a scene can be validated before it runs. The scene reference lists every field. - The cookbook and the examples map point at real code in the demos, by file and line range.
What the agent can verify
| Command | What it proves |
|---|---|
pnpm shot --scene <name> --cam hero |
Renders a scene in Chromium and writes a PNG plus a JSON sidecar with the adapter, render stats, state hash, tick and console. Exits 1 on any unexpected console warning or error. Needs a GPU. |
pnpm shot --app rockfall --param demo=1 --ticks 600 |
The same for a game app, driven by its ?demo=1 autoplayer bot. Needs a GPU. |
node --experimental-strip-types packages/sdk/test/determinism.mjs --expect "$(cat packages/sdk/test/fixtures/det-hash.txt)" |
Runs the determinism fixture in Node; it must print 2d76d9927e780425. |
pnpm test && pnpm typecheck && pnpm lint |
Unit tests (including Node runs of the game sims on the real wasm), types and lint. |
pnpm --filter chain-reaction verify |
Replays every puzzle solution headless in Node and checks the stored state hashes. |
pnpm docs:gen --check |
Fails if the generated scene and API references are stale after a schema or export change. |
Details, flags and the console-error policy: Verification. A failing check and its fix: Troubleshooting.
Why this works for agents
- Scenes are data. A level is a JSON file with defaults for every field, not engine code, so a model edits a small, checkable surface.
- Physics is deterministic. The same seed and inputs give the same state hash in Node and in Chromium, so "did my change break the sim?" has a yes or no answer. See the deterministic game loop.
-
Every game has a bot.
?demo=1plays the game, so an agent can capture it mid-play without a person at the keyboard. See demo bots and captures.
Product names belong to their owners. Pebble3D is not affiliated with or endorsed by any of them; these pages only describe how the repo's files work with each tool.