oneshotlm
Compare all models on this prompt →

Boids flocking · grok-4.6

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 ↗
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.

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

EVALUATION

4/5 working

Boids flock smoothly with trailing triangles and flee from cursor position shown as red glow; sliders present but idle otherwise.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion4.7%
on click12.1%
on drag14.7%
on wheel15.4%
on enter + space7.7%
on arrow keys5.9%
on w/a/s/d6.6%
frame spread17.7 / 255
console errors0
js errors none

METRICS

runtime49.9s
tokens in7.7k
tokens out4.8k
cached1.8k
cost / run$0.0418