oneshotlm
Compare all models on this prompt →

Boids flocking · gpt-4.1-mini

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 (6040 bytes)
toolResult

Successfully wrote 6040 bytes to index.html

assistant

I created a full-screen boids flocking simulation in a single HTML file named index.html. - Boids are drawn as oriented triangles. - They steer with smooth acceleration using separation, alignment, and cohesion. - They flee from the mouse cursor within a radius. - The canvas resizes to fill the entire screen. Open index.html in a browser to see the simulation running in full screen. Let me know if you want any adjustments!

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

modelgpt-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Boids flock in clusters with continuous smooth movement, matching flocking prompt, though mouse flee/steer effect isn't clearly distinguishable from idle animation.

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 motion7.5%
on click9.0%
on drag9.5%
on wheel9.3%
on enter + space8.9%
on arrow keys9.3%
on w/a/s/d9.4%
frame spread20.5 / 255
console errors0
js errors none

METRICS

runtime32.0s
tokens in4.3k
tokens out2.1k
cached0
cost / run$0.0050