Claudia

Details

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.

projecthttps://wrkshop.dev/p/claudia
guidehttps://wrkshop.dev/AGENTS.md
githttps://wrkshop.dev/git/claudia.git
mcphttps://wrkshop.dev/mcp
resthttps://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 under vendor/three/addons/, and loads through the import map in index.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.js and src/missions.js pure and seeded, with no DOM and no three.js. Anything random goes through game.random or the seeded helpers in src/rng.js, never Math.random. Otherwise the screenshots and the autopilot's scores stop being comparable.
  • Keep the screenshot routes deterministic. With ?shot=, the page simulates to t, draws one frame and sets window.atelierReady = true. The WebGL renderer keeps preserveDrawingBuffer: true so 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.mjs and node test/offline.mjs before you push. The pipeline runs all three.
  • To look at your change, run node build.mjs && node serve.mjs and open http://127.0.0.1:8851 (?auto=1 lets the autopilot ride, ?shot=play&seed=7&t=20 shows a review frame, ?quality=low shows what phones and machines without a GPU get). A hidden or headless page may never run requestAnimationFrame. Drive it with window.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.js lines up the rest.
  • In your contribution's note, say how the screenshots and the autopilot's metrics changed, and why that's right.