oneshotlm
Compare all models on this prompt →

Boids flocking · mercury-2

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
write index.html (5424 bytes)
toolResult

Successfully wrote 5424 bytes to index.html

assistant

The **index.html** file has been created in the current directory. It contains a full‑screen canvas that runs a flocking simulation of boids with separation, alignment, cohesion, oriented triangle rendering, smooth steering, and mouse‑flee behavior. No external resources are required; everything is self‑contained.

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

modelmercury-2
vendorInception
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Boids rendered as small triangles flock and drift smoothly across the screen, consistent with idle animation and slight variance on input.

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 motion1.8%
on click8.0%
on drag8.1%
on wheel7.6%
on enter + space7.5%
on arrow keys7.5%
on w/a/s/d7.9%
frame spread13.6 / 255
console errors0
js errors none

METRICS

runtime8.8s
tokens in4.5k
tokens out2.6k
cached1.5k
cost / run$0.0027