oneshotlm
Compare all models on this prompt →

Boids flocking · ling-2.6-1t

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

I'll create a full-screen flocking simulation with boids as oriented triangles that exhibit separation, alignment, and cohesion behaviors, plus mouse flee behavior.

write /tmp/ws/index.html (9891 bytes)
toolResult

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

assistant

I've created a complete full-screen flocking simulation with the following features: **Core Boid Behaviors:** - **Separation** (weight 1.4): Boids steer to avoid crowding neighbors within 30px - **Alignment** (weight 1.0): Boids match velocity with neighbors within 60px - **Cohesion** (weight 0.8): Boids steer toward the center of mass of neighbors within 80px - **Mouse Flee**: Boids actively flee from the mouse cursor within 120px radius **Visual Design:** - Boids rendered as oriented triangles with gradient fills and glow effects - Cyan-to-green color palette with individual hue variation - Subtle grid background for spatial reference - Pulsing red influence ring around the mouse cursor - Smooth fading trail effect for motion blur **Interactions:** - Mouse movement triggers flee behavior with visual feedback - Touch support for mobile devices - Automatic wrap-around at screen edges - Responsive full-screen canvas that resizes with the window The boids exhibit natural flocking behavior - they group together, move in similar directions, avoid collisions, and scatter when the mouse approaches, creating an organic, lifelike swarm.

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

modelling-2.6-1t
vendorinclusionai
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Boids flock in tight clusters with cohesion/alignment and visibly flee the red mouse cursor circle.

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 motion16.2%
on click18.6%
on drag22.3%
on wheel19.7%
on enter + space16.9%
on arrow keys16.7%
on w/a/s/d13.3%
frame spread28.8 / 255
console errors0
js errors none

METRICS

runtime28.1s
tokens in7.0k
tokens out4.1k
cached1.5k
cost / run$0.0030