{"id":51077022,"url":"https://github.com/zozo123/unity-loop","last_synced_at":"2026-06-23T15:02:16.085Z","repository":{"id":357548401,"uuid":"1235630787","full_name":"zozo123/unity-loop","owner":"zozo123","description":"How AI vibes Unity on islo.dev sandboxes — Claude-vision tournament over presentation variants","archived":false,"fork":false,"pushed_at":"2026-05-13T09:04:05.000Z","size":9066,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-13T09:33:04.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zozo123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-11T14:02:19.000Z","updated_at":"2026-05-13T09:04:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zozo123/unity-loop","commit_stats":null,"previous_names":["zozo123/unity-loop"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zozo123/unity-loop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozo123%2Funity-loop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozo123%2Funity-loop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozo123%2Funity-loop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozo123%2Funity-loop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zozo123","download_url":"https://codeload.github.com/zozo123/unity-loop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozo123%2Funity-loop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34694786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-23T15:02:15.011Z","updated_at":"2026-06-23T15:02:16.075Z","avatar_url":"https://github.com/zozo123.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unity-loop\n\n**How AI vibes Unity on [islo.dev](https://islo.dev/) sandboxes — Claude-vision tournament over presentation variants.**\n\n\u003e **Project page:** https://zozo123.github.io/unity-loop-page/\n\u003e\n\u003e **Live champion:** [https://ssotep9384qyc19npfpqg8h7q.share.islo.dev](https://ssotep9384qyc19npfpqg8h7q.share.islo.dev) (24h islo share — refresh from `runs/champion.json`)\n\u003e\n\u003e **Writeup:** [`docs/POST.md`](./docs/POST.md)\n\u003e\n\u003e **Built on:** [islo.dev](https://islo.dev/) — agent sandboxes with snapshots, shares, gateway egress.\n\u003e\n\u003e **Inspired by:** [pokeloop](https://github.com/zozo123/pokeloop) (GA over LLM policies), [meta-harness-on-islo](https://github.com/zozo123/meta-harness-on-islo) (proposer/eval loop).\n\n---\n\n## What this is\n\nA bandit-search loop where Claude *vibes* 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. Winner is promoted to the gh-pages champion.\n\n**The Unity wasm is fixed** — Lightning VFX by [@MirzaBeig](https://github.com/MirzaBeig/Lightning-VFX-WebGL). 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`](./docs/POST.md#tier-3-real-unity-editor-rebuilds)).\n\n## Quick start (offline, deterministic — ~5s)\n\n```bash\nbin/unity-loop demo            # 6-round canned trajectory, 1.2 → 4.8 score\nbin/unity-loop viz             # serve the dashboard\n# open http://localhost:8765\n```\n\nYou should see scores climb **1.2 → 2.4 → 3.1 → 3.7 → 4.4 → 4.8** for task `synthwave`, with the converging variant rendered live.\n\n## Real run (Claude API + N islo sandboxes)\n\n```bash\nexport ANTHROPIC_API_KEY=...\nbin/unity-loop loop --task synthwave --k 4 --steps 6\n```\n\nSpawns K islo sandboxes (one per variant), each serving Unity + variant CSS via Caddy, calls Claude vision for the judge round, writes `runs/\u003crun-id\u003e/`, updates `runs/champion.json`. The page repo's CI re-deploys gh-pages on champion change.\n\n## Layout (mirrors meta-harness-on-islo)\n\n```\nislo.yaml             base sandbox config\ntasks/\u003cname\u003e/         prompt.md (target aesthetic)\nharness/v\u003cN\u003e/         system.md + proposer template\nbin/unity-loop        orchestrator (eval | propose | loop | viz | demo)\nbin/proposer.py       reads runs/, asks Claude for next variant\nbin/judge.py          Claude-vision scoring of screenshots\nbin/host.py           spawns islo sandbox, templates variant, shares port\nbin/agent_sim.py      deterministic offline agent stand-in (for `demo`)\nunity/template.html   Unity host with {{VARIANT_CSS}} + {{VARIANT_HTML}} slots\nunity/Caddyfile       precompressed gzip + COOP/COEP + application/wasm\nviz/index.html        single-file dashboard (timeline + variants + judge trace)\nruns/                 populated by the loop; runs/champion.json drives the page\n```\n\n## Credits\n\n- Unity scene: [MirzaBeig/Lightning-VFX-WebGL](https://github.com/MirzaBeig/Lightning-VFX-WebGL)\n- Sandbox infra: [islo.dev](https://islo.dev/)\n- Pattern: pokeloop + meta-harness-on-islo, both by [@zozo123](https://github.com/zozo123)\n- Movie: [`agentreel`](https://github.com/islo-labs/agentreel)\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzozo123%2Funity-loop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzozo123%2Funity-loop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzozo123%2Funity-loop/lists"}