Proof of concept: Claude proposes CSS/page-chrome variants for a fixed Unity WebGL scene, islo.dev sandboxes serve them, and Claude vision scores screenshots.
Project page: https://zozo123.github.io/unity-loop-page/
Live champion: expired (islo shares last 24h–7d); the last champion variant is in
runs/champion.json.Writeup:
docs/POST.mdBuilt on: islo.dev — agent sandboxes with snapshots, shares, gateway egress.
Inspired by: pokeloop (GA over LLM policies), meta-harness-on-islo (proposer/eval loop).
A bandit-search loop where Claude iterates on the presentation of a Unity WebGL scene. Each variant is a JSON spec of CSS + page chrome wrapped around a fixed Unity build. N islo sandboxes serve N variants in parallel. Claude (vision) judges screenshots against a target prompt. The winner is written to runs/champion.json, which the project page reads.
The Unity wasm is fixed — Lightning VFX by @MirzaBeig. Variation lives in the wrapper. That's the honest thing to do without a 10GB Unity Editor image; rebuilding .wasm inside the sandbox is a separate ticket (docs/POST.md#tier-3).
bin/unity-loop demo # 6-round canned trajectory, 1.2 → 4.8 score
bin/unity-loop viz # serve the dashboard
# open http://localhost:8765/viz/You should see the scripted scores 1.2 → 2.4 → 3.1 → 3.7 → 4.4 → 4.8 for task synthwave. These are canned values (DEMO_TRAJECTORY in bin/orchestrator.py), not a measured run: the demo calls neither Claude nor islo. The dashboard shows the same canned trajectory; its preview loads the champion share URL when that share is live and otherwise shows a still from the recorded reel (the May 2026 share has expired).
export ANTHROPIC_API_KEY=...
bin/unity-loop loop --task synthwave --k 4 --steps 6Spawns K islo sandboxes (one per variant), each serving Unity + variant CSS via Caddy, calls Claude vision for the judge round, writes runs/<run-id>/, updates runs/champion.json. The project page fetches runs/champion.json from this repo's main branch on each load.
Run directories are git-ignored, so no real run logs are committed. The committed runs/champion.json holds the demo's final variant (score 4.8 from the canned trajectory).
islo.yaml base sandbox config
tasks/<name>/ prompt.md (target aesthetic)
harness/v<N>/ system.md (proposer system prompt)
bin/unity-loop CLI (demo | loop | eval | propose | host | viz)
bin/orchestrator.py loop + `demo` (deterministic offline trajectory, DEMO_TRAJECTORY)
bin/proposer.py asks Claude for the next variant given the score history
bin/judge.py Claude-vision scoring of screenshots
bin/host.py spawns islo sandbox, templates variant, writes the Caddyfile
(precompressed gzip + COOP/COEP + application/wasm), shares port 8080
unity/template.html Unity host with {{TITLE}} {{BG}} {{FILTER}} {{FRAME_COLOR}} {{FRAME_GLOW}} slots
viz/index.html single-file local dashboard (shows the canned demo trajectory)
runs/ populated by the loop; runs/champion.json drives the page
The Unity build ships pre-gzipped .unityweb files, so the host has to keep Content-Encoding: gzip, serve application/wasm, and send COOP/COEP. Checked through the islo share gateway in May 2026 (that share has since expired):
content-type: application/wasmcontent-encoding: gzipcross-origin-opener-policy: same-origincross-origin-embedder-policy: require-corp- HTTP/2; the ~7MB wasm body arrived in 2.4s in that check, streamed (no 10MB buffered-mode truncation)
- Unity scene: MirzaBeig/Lightning-VFX-WebGL (cloned into each sandbox at run time; not included in this repo)
- Sandbox infra: islo.dev
- Pattern: pokeloop + meta-harness-on-islo, both by Yossi Eliaz
- Movie:
agentreel
MIT for the code in this repo; see LICENSE. The Unity scene belongs to its author and is not covered by this license.