oneshotlm
Compare all models on this prompt →

Rotating icosahedron · claude-opus-4.8

Output generated Cost / run $0.0933 Runtime 38.7s

Prompt for this run

Using the pre-provided three.min.js (global THREE), render a full-screen scene with a rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, and a subtle starfield background.

⛨ sandboxed Open in new tab ↗

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelclaude-opus-4.8
vendorAnthropic · Claude
harnesspi-agent
generated2026-07-08

METRICS

runtime38.7s
tokens in14k
tokens out2.3k
cached8.4k
cost / run$0.0933
Transcript · 8 messages
user

Using the pre-provided three.min.js (global THREE), render a full-screen scene with a rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, and a subtle starfield background.

assistant
thinking
I need to check the version of three.min.js and then build the file.
→ bash {"command":"head -c 300 three.min.js; echo; grep -o 'REVISION=\"[0-9]*\"' three.min.js | head"}
toolResult

/** * @license * Copyright 2010-2021 Three.js Authors * SPDX-License-Identifier: MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).THREE={})}(th

assistant
→ write index.html (3707 bytes)
toolResult

Successfully wrote 3707 bytes to index.html

assistant
→ bash {"command":"ls -la index.html && node -e \"let s=require('fs').readFileSync('index.html','utf8');console.log('has three script:',/three\\.mi
toolResult

-rw-r--r-- 1 node node 3707 Jul 8 02:59 index.html has three script: true

assistant

Done. `index.html` is a self-contained single-page app that loads the local `three.min.js`. What it renders: - **Rotating icosahedron** — flat-shaded metallic `MeshStandardMaterial`, spinning on X/Y. - **Two colored point lights** — a red (`0xff3366`) and a blue (`0x3388ff`) light orbiting the object, each visualized with a small glowing sphere. - **Orbit-style auto-rotation** — the camera continuously circles the scene and looks at the center. - **Subtle starfield** — 1500 points distributed on a sphere shell, slowly drifting. Fully sandboxed: no CDNs or network requests, all CSS/JS inline, and it handles window resize. Open `index.html` in a browser to view.