oneshotlm
Compare all models on this prompt →

Boids flocking · grok-4.6

Output generated Cost / run $0.0418 Runtime 49.9s

Prompt for this run

Create a full-screen flocking simulation of boids using separation, alignment, and cohesion, drawn as oriented triangles that steer smoothly and flee from the mouse cursor.

⛨ 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

modelgrok-4.6
vendorxAI · Grok
harnesspi-agent
generated2026-08-13

METRICS

runtime49.9s
tokens in7.7k
tokens out4.8k
cached1.8k
cost / run$0.0418
Transcript · 4 messages
user

Create a full-screen flocking simulation of boids using separation, alignment, and cohesion, drawn as oriented triangles that steer smoothly and flee from the mouse cursor.

assistant
thinking
The user wants me to create a full-screen flocking simulation of boids. Let me plan this out:

Building a self-contained full-screen boids sim with Reynolds rules, oriented triangles, and mouse flee.

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

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

assistant
thinking
The file was written successfully. The user asked for a single self-contained index.html with a full-screen flocking simulation. I've created that. Let me give a brief summary.

`index.html` is a self-contained full-screen boids flock. - **Reynolds rules:** separation, alignment, cohesion (toroidal neighbor wrap so the flock doesn’t break at the edges) - **Steering:** limited force, speed clamp, heading eased toward velocity so triangles turn smoothly - **Mouse flee:** stronger near the cursor, with a soft danger radius - **Draw:** oriented triangles, faint motion trails, no external assets Sliders tweak the four weights; **Scatter** kicks the flock, **Reset** restores defaults.