oneshotlm
Compare all models on this prompt →

Rotating icosahedron · granite-4.1-8b

Output generated Cost / run $0.0005 Runtime 10.2s

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

modelgranite-4.1-8b
vendorIBM · Granite
harnesspi-agent
generated2026-08-01

METRICS

runtime10.2s
tokens in8.2k
tokens out1.1k
cached5.1k
cost / run$0.0005
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
→ read {"path":"/tmp/ws/three.min.js"}
toolResult

/** * @license * Copyright 2010-2021 Three.js Authors * SPDX-License-Identifier: MIT */ [Showing lines 1-5 of 7 (50.0KB limit). Use offset=6 to continue.]

assistant
→ bash {"command":"ls"}
toolResult

three.min.js

assistant
→ write /tmp/ws/index.html (2989 bytes)
toolResult

Successfully wrote 2989 bytes to /tmp/ws/index.html

assistant

The single‑page web app is now created as **index.html** in the current directory, containing all required CSS and JavaScript (including the imports of `three.min.js`). It renders a full‑screen Three.js scene with a rotating icosahedron lit by two colored point lights, auto‑orbiting camera controls, and a subtle starfield background. No external resources are used.