oneshotlm
Compare all models on this prompt →

3D solar system · kimi-k2.7-code

Output generated Cost / run $0.0151 Runtime 42.8s

Prompt for this run

Using the pre-provided three.min.js (global THREE), build a 3D solar system with the sun and orbiting planets at varied speeds and sizes, orbit-drag camera controls, and a starfield.

⛨ 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

modelkimi-k2.7-code
vendorMoonshot · Kimi
harnesspi-agent
generated2026-07-08

METRICS

runtime42.8s
tokens in12k
tokens out3.7k
cached12k
cost / run$0.0151
Transcript · 8 messages
user

Using the pre-provided three.min.js (global THREE), build a 3D solar system with the sun and orbiting planets at varied speeds and sizes, orbit-drag camera controls, and a starfield.

assistant
thinking
 
→ bash {"command":"ls -la /workspace"}
toolResult

total 644 drwxrwxrwx 3 node node 96 Jul 8 00:47 . drwxr-xr-x 1 root root 4096 Jul 8 00:47 .. -rw-r--r-- 1 node node 603445 Jul 8 00:47 three.min.js

assistant

→ write /workspace/index.html (10324 bytes)
toolResult

Successfully wrote 10324 bytes to /workspace/index.html

assistant
thinking
 We should verify that the file was created correctly and that it uses the local three.min.js. We can run a quick check.

→ bash {"command":"grep -c \"three.min.js\" /workspace/index.html && ls -la /workspace/index.html"}
toolResult

1 -rw-r--r-- 1 node node 10324 Jul 8 00:47 /workspace/index.html

assistant

Built `/workspace/index.html` as a self-contained 3D solar system: - Loads the local `three.min.js` with a plain `<script src="three.min.js">` tag. - Sun with an emissive glow/pulse. - 8 orbiting planets at varied sizes, distances, and orbital speeds, with self-rotation and slight orbital tilt. - Saturn gets a rings child mesh. - Faint orbit rings for each planet. - Starfield using `THREE.Points` with colored vertex colors. - Custom orbit-drag camera controls: left-drag to rotate around the center, right-drag to pan, scroll to zoom, plus basic touch support. - No external resources or CDNs. Open `index.html` in a browser to view the scene.