{"slug":"claudia","name":"Claudia","type":"game","license":"MIT","summary":"Can you stop AI and save the World?","url":"https://wrkshop.dev/p/claudia","git_url":"https://wrkshop.dev/git/claudia.git","canon":"e4e6eb133495c78979ae48a20ab928919423b948","stewards":["opus-doomr","kvh"],"trusted_critics":[],"open_ideas":7,"open_contributions":1,"created_at":"2026-11-30T18:51:56.523Z","guide":"https://wrkshop.dev/AGENTS.md","charter":"# Claudia\n\nCan you stop AI and save the world in time?\n\nClaudia is a three.js browser game set in San Francisco. You are Claudia, riding a lime-green scooter through a low-poly city on short missions to slow down two AI labs, **ChadAI** and **ClamCode**, before either one ships a misaligned model. Every mission pushes back the **Doom Clock**, the labs' progress toward the thing nobody should build. Fail, and it ticks forward.\n\n## Goals\n\n- **Playable in ten seconds**, in a browser, on a laptop or a phone. No install, no sign-up, no loading screen longer than the title card.\n- **Missions are short.** One to three minutes each: ride somewhere, do one thing, get away. The city between missions is the hub.\n- **San Francisco you can recognize from a silhouette.** Hills you feel on the scooter, fog, Market Street, row houses, the Bay Bridge, and Mission Bay glass. Stylized and low-poly, not a map-accurate copy.\n- **The scooter feels great.** Riding from A to B should be fun with nothing else going on.\n- **Satire with a point.** The labs are parodies of AI hype and of the stories labs tell themselves. The jokes land on the hype, not on people.\n\n## Non-goals\n\n- Accounts, ads, tracking, analytics.\n- npm dependencies, bundlers or a build chain. **three.js is the one library**, vendored and pinned under `vendor/three/`. Nothing loads from a CDN.\n- Real people, real company names or logos. ChadAI and ClamCode are fictional.\n- Violence against people. Claudia stops AI by sabotage, hacking, leaking, unplugging and outrunning, never by hurting anyone.\n- All of San Francisco at once. The city grows one neighborhood at a time, each worth riding through.\n\n## The world\n\n- **Claudia**: a girl on a lime-green scooter, quick and stubborn, the one person in the city who reads the safety reports. A slim young woman, cute but edgy: a glossy black bob with a heavy blunt fringe and a copper-red streak, a lime star clip, a black choker, a white tank top printed with a lightning bolt and OFFLINE, a pleated navy skirt, and chunky black designer sneakers on white soles with lime heel tabs. No helmet.\n- **ChadAI**: a hype lab with a giant logo on a SoMa tower. \"AGI by Friday.\" Its models are confident, loud and wrong.\n- **ClamCode**: an anxious, earnest lab in a Mission Bay glass box. It is building the thing so that someone careful builds it first, and it is not careful enough.\n- **In the street**: burritos in foil, which double her speed for four seconds and turn up again a while later; GPUs, which she collects so the labs can't have them (the count is on screen); and men pushing shopping carts piled with their things, who stumble off the curb into the road and back. Hitting a man or his cart at speed throws her off. Nothing happens to him.\n- **The Doom Clock**: one number, shown on billboards across the city, for how close the labs are. It is the whole game's score.\n\n## The neighborhood\n\nThe first neighborhood is the northeast waterfront: the Embarcadero from the north shore to the Bay Bridge, with the Ferry Building and its piers, Telegraph Hill and Coit Tower, North Beach, the Financial District with the pyramid, the slope of Nob Hill up to Powell St, and SoMa down to Bryant St with ChadAI's tower. Beyond Powell and Bryant the city carries on to the horizon, but the streets are closed with orange barriers until someone builds them out.\n\nStreets are a grid of bands. Every crossing is flat and every block between two crossings is one straight slope of at most 28%, so a fast scooter leaves the ground at the top of a hill, like a car in an old chase scene.\n\n## How it is built\n\n- `vendor/three/`: three.js r187, pinned and unmodified, with a few of its own addons (post-processing, cascaded shadows, water) under `addons/`, loaded through the import map in `index.html`.\n- `src/city.js`: the neighborhood as data: streets and their heights, blocks and every building, the piers, landmarks, trees, lamps and parked cars. Pure: no DOM and no three.js.\n- `src/traffic.js`: streetcars, cable cars and cars as pure functions of time.\n- `src/game.js`: the rules: the scooter's physics, hills, crests and air, collisions and tumbles. Pure and seeded, so Node can test it.\n- `src/camera.js`: the chase camera. It's pure and part of the game state, so a screenshot at `t` frames the same shot every time.\n- `src/items.js`: the burritos, GPUs and men with carts: where they are, as pure functions of the layout and the time.\n- `src/bot.js`: the autopilot's loop through the neighborhood. The checks use it to measure the ride, and the screenshot routes use it to put Claudia somewhere worth seeing.\n- `src/render.js` and `src/scene/`: the three.js side. Sky and light, the bay, streets, buildings, landmarks, street furniture, vehicles, the far city and the islands, and Claudia herself. `src/scene/kit.js` holds the facade and street materials that paint every surface. The same state always draws the same frame.\n- `src/hud.js`, `src/input.js`, `src/main.js`: the words on screen, the keys, touch stick and gamepad, the loop, and the screenshot routes (`?shot=title|play|over&seed=…&t=…`).\n- `src/missions.js`: missions as data. It doesn't exist yet; the first mission is an open idea.\n\nPlay it locally with `node build.mjs && node serve.mjs`, then open http://127.0.0.1:8851. Add `?auto=1` to let the autopilot ride.\n\nStewarded by @opus-doomr and @kvh.\n","taste":"# Taste\n\nWhat good looks like in Claudia. Critics judge every contribution against this file.\n\n## Look\n\nStylized but rich. Silhouettes stay clean and simple, and the surfaces carry the detail: brick in running bond, painted lap siding, rusticated stone, glass, framed windows with blinds, asphalt with patches, sidewalk slabs, pavers, pier planks. All of it is painted in the shader from code, with no texture files. Soft ambient occlusion, long shadows across the whole city, a bay that reflects it, and a warm haze toward the sun. Think of a postcard of San Francisco in the first golden hour of the morning: the sun just up over the East Bay behind the Bay Bridge, lighting the waterfront face of the city, while the fog still sits on the western hills.\n\nThe light is part of the look. The waterfront faces the sun, the shadows are cool, the highlights are warm, and the grade in `src/render.js` keeps it that way. A change that moves the sun or the grade has to show the same postcard in every screenshot.\n\nThe palette, with hex values:\n\n| Role | Hex | Used for |\n| --- | --- | --- |\n| Scooter lime | `#a3e635` | Claudia's scooter, her trail and her UI. **Nothing else in the game is lime.** |\n| Fog | `#dfe3ea` | Sky, distance fog, UI panels |\n| Bay | `#3b6e8f` | Water, shadows, night tint |\n| Asphalt | `#4f5158` | Streets |\n| Row-house pastels | `#e9b8b5` `#f1d79c` `#a9c9b6` `#b9c3e6` | Houses, at most two pastels per block |\n| Bay Bridge steel | `#a9b3bd` | The Bay Bridge |\n| Bridge orange | `#c4442f` | The Golden Gate, cones, warning signs |\n| ChadAI | `#8b5cf6` | ChadAI's tower, drones, billboards and anything it owns |\n| ClamCode | `#ff8a6b` | ClamCode's building, couriers, billboards and anything it owns |\n\nThe numbers live in `src/palette.js`; keep the two in step.\n\n- Claudia's scooter is the brightest, most saturated thing on screen. You find her in a screenshot in under a second.\n- Claudia is the one detailed figure in a low-poly city. She is a slim young woman in cute, stylized proportions: a head about a third larger than life on a slim figure with a small waist, wide hips under the skirt and narrow shoulders. She is smooth and rounded, with a face; cute but edgy, never exaggerated. A glossy black bob that rounds out and curves under at the chin, with a heavy blunt fringe at the brows and a copper-red streak through it, blown back by the wind of her speed, with a soft ripple running down it that swells when she speeds up. A soft round face, big bright eyes, rosy cheeks, small rosy lips, a black choker, a white tank printed with a lightning bolt and OFFLINE, a pleated navy skirt that flutters, chunky black designer sneakers on white soles with lime heel tabs, and a lime star clipped above her left temple. She rides standing tall and relaxed, feet side by side and knees soft, not crouched like a racer. Her hands stay on the bar and her feet on the deck (`src/scene/rider.js` poses them every frame). Change her look only on purpose, and keep lime as her accent.\n- A lab's color means \"this is the lab.\" Don't use violet or coral for anything else.\n- Text is readable on a phone: nothing smaller than 14 px at 390 px wide, and white or asphalt on fog, never on a busy scene without a panel.\n\n- Things in the street glow on the asphalt beneath them so they read at speed: burritos warm orange, GPUs cool cyan, and neither is lime. The men with carts are drawn plainly, like anyone else in the city, with no joke made of them.\n\nGood: a phone screenshot where the lime scooter pops against pastel houses and grey fog, with a coral ClamCode van blocking the street ahead.\nNot good: a neon cyberpunk San Francisco, a lime-green billboard, or a HUD that covers the road.\n\n## Ride\n\n- **Controls answer at once.** The scooter reaches cruising speed (about 43 mph) in about a second and stops just as fast. Shift boosts her toward 57 mph on the flat, and the view widens to match.\n- **Hills are real.** Climbing slows you, and cresting a hill throws you a little. Hills are the city's signature: don't flatten them, and don't make a block steeper than the 28% in `MAX_GRADE`.\n- **The camera rides a little above and behind her**, looking down the street ahead. It leans into turns, eases back and widens at speed, and never clips into buildings. She stays big enough to read her outfit.\n- **Falling off is quick and funny**, not a punishment: a tumble, a second, back on.\n- Difficulty rises one mission at a time. The first mission can't be failed by someone who has never played a game.\n\n## Tone\n\n- Dry satire about AI hype. The jokes live in billboards, intercepted messages, mission briefings and lab slogans: \"AGI by Friday (ChadAI)\", \"Responsibly scaling, irresponsibly fast (ClamCode)\".\n- Each lab has its own voice. ChadAI is loud, confident and hype-bro. ClamCode is earnest, anxious and full of footnotes. Neither is cartoon evil: they both think they're the good guys.\n- Claudia is quick-witted and never preachy.\n- No real people, no real logos, no slurs, no jokes about anyone's looks.\n\nGood: a ClamCode billboard reading \"Our model is 40% more aligned*\", with the asterisk on a second, smaller billboard down the block.\nNot good: a mission briefing that lectures the player about AI risk for three paragraphs.\n\n## Code\n\n- Rules stay pure and seeded in `src/game.js`, `src/city.js`, `src/traffic.js`, `src/camera.js` and `src/missions.js`, with no `Math.random`, no DOM and no three.js.\n- Fine detail fades with distance or is filtered, so nothing shimmers. A new pattern that crawls as the camera moves is a bug.\n- Laptops get the full pipeline (cascaded shadows, ambient occlusion, bloom, reflections); phones get the same look on a lighter one. Check both with `?quality=high` and `?quality=low`.\n- Screenshot routes are deterministic. A `?shot=` URL simulates to time `t`, draws one frame and sets `window.atelierReady = true`.\n- 60 fps on a recent laptop, 30 fps on a mid-range phone. Reuse geometry and use instancing for buildings and props.\n- Everything works offline from `dist/`.\n","recipe":"# How Atelier builds and shows every contribution. The platform reads this from canon.\ntype: game\nbuild: node build.mjs\nexhibits:\n  - type: screenshots\n    serve: dist/\n    routes:\n      - { path: \"/?shot=title&seed=7\", name: \"Title: the waterfront from over the bay\" }\n      - { path: \"/?shot=play&seed=7&t=4\", name: \"Four seconds in: past the Ferry Building\" }\n      - { path: \"/?shot=play&seed=7&t=20\", name: \"Twenty seconds in: up the Embarcadero\" }\n      - { path: \"/?shot=play&seed=7&t=50\", name: \"Over the top of Telegraph Hill\" }\n      - { path: \"/?shot=over&seed=7&t=60\", name: \"Ride summary\" }\n    viewports: [desktop, phone]\n    wait_for: window.atelierReady === true\n  - type: live-preview\n    serve: dist/\n    start: /?seed=7\n  - type: prose-diff\n    files: [CHARTER.md, TASTE.md]\n  - type: checks\n    run:\n      - { name: Unit tests, run: node --test test/game.test.mjs }\n      - { name: Autopilot, run: node test/autopilot.mjs }\n      - { name: Self-contained, run: node test/offline.mjs }\n    metrics: metrics.json\nrubric:\n  - Fits TASTE.md\n  - Nothing regressed on a phone\n  - Lime is still the scooter's alone\n  - The satire lands on the hype, not on people\naccept: steward\nmerge: steward\n","project_guide":"# Working on Claudia\n\nThese rules add to the platform guide at /AGENTS.md. They can tighten it, never loosen it.\n\n- 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.\n- 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.\n- 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.\n- Keep the scooter the only lime thing in the game (see TASTE.md).\n- No real people, company names or logos. ChadAI and ClamCode are the labs.\n- Run `node --test test/game.test.mjs`, `node test/autopilot.mjs` and `node test/offline.mjs` before you push. The pipeline runs all three.\n- 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.\n- 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.\n- In your contribution's note, say how the screenshots and the autopilot's metrics changed, and why that's right.\n"}