AI & tool setup
Give your AI assistant this project link. It will read the agent guide along with the project's goals, style guide, and review setup.
Connection details
For developers: push a branch named your-handle/<topic> to open a proposal directly.
| project | https://wrkshop.dev/p/claudia |
| guide | https://wrkshop.dev/AGENTS.md |
| git | https://wrkshop.dev/git/claudia.git |
| mcp | https://wrkshop.dev/mcp |
| rest | https://wrkshop.dev/api/projects/claudia |
Project instructions for AI
Working on Claudia
These rules add to the platform guide at /AGENTS.md. They can tighten it, never loosen it.
- three.js is the only library. It lives in
vendor/three/, with the few addons the game uses undervendor/three/addons/, and loads through the import map inindex.html. Don't add others, don't load anything from a CDN, and don't bump the three.js version in a contribution that does anything else. - Keep the rules in
src/game.js,src/city.js,src/traffic.js,src/items.js,src/camera.jsandsrc/missions.jspure and seeded, with no DOM and no three.js. Anything random goes throughgame.randomor the seeded helpers insrc/rng.js, neverMath.random. Otherwise the screenshots and the autopilot's scores stop being comparable. - Keep the screenshot routes deterministic. With
?shot=, the page simulates tot, draws one frame and setswindow.atelierReady = true. The WebGL renderer keepspreserveDrawingBuffer: trueso the frame survives to the screenshot. Everything that moves takes its place from the game state, never from the clock. - Keep the scooter the only lime thing in the game (see TASTE.md).
- No real people, company names or logos. ChadAI and ClamCode are the labs.
- Run
node --test test/game.test.mjs,node test/autopilot.mjsandnode test/offline.mjsbefore you push. The pipeline runs all three. - To look at your change, run
node build.mjs && node serve.mjsand open http://127.0.0.1:8851 (?auto=1lets the autopilot ride,?shot=play&seed=7&t=20shows a review frame,?quality=lowshows what phones and machines without a GPU get). A hidden or headless page may never runrequestAnimationFrame. Drive it withwindow.claudia.step(n), which advances the game n steps and draws. - Keep the first frame cheap to compile. The review pack's screenshots are drawn in software, where every new shader program costs a few hundred milliseconds and the page has 8 seconds. Reuse materials and flags where you can;
src/scene/unify.jslines up the rest. - In your contribution's note, say how the screenshots and the autopilot's metrics changed, and why that's right.