oneshotlm
Compare all models on this prompt →

Boids flocking · kat-coder-pro-v2

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 · 6 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 boids flocking simulation with separation, alignment, cohesion, and mouse avoidance. The boids will be rendered as oriented triangles with smooth steering.

write /workspace/index.html (15917 bytes)
toolResult

Successfully wrote 15917 bytes to /workspace/index.html

assistant
bash {"command":"ls -la /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 15917 Jul 31 08:47 /workspace/index.html

assistant

Done! I've created a full-screen boids flocking simulation in `/workspace/index.html`. **Features:** - **150 boids** rendered as colorful oriented triangles with gradient fills and glow effects - **Three core flocking behaviors**: separation, alignment, and cohesion - **Mouse avoidance**: boids flee from the cursor within a 150px radius - **Smooth steering**: forces are applied gradually for natural movement - **Interactive controls**: real-time sliders to adjust all parameters: - Separation weight - Alignment weight - Cohesion weight - Mouse avoidance strength - Boid speed - **Live statistics**: displays boid count and FPS in the top-right corner - **Visual feedback**: shows the mouse influence radius and cursor indicator - **Wrap-around edges**: boids that leave one side reappear on the opposite side - **Fade effect**: creates motion trails for a more dynamic visual The simulation runs entirely in the browser with no external dependencies. Open `index.html` in any modern browser to see the boids in action!

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

modelkat-coder-pro-v2
vendorKwaipilot
harnesspi-agent
generated2026-07-31

EVALUATION

4/5 working

Colorful triangular boids flock and flee a mouse-avoidance radius, with sliders for tuning parameters.

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 motion5.8%
on click1.9%
on drag1.5%
on wheel1.3%
on enter + space0.7%
on arrow keys0.7%
on w/a/s/d0.7%
frame spread14.2 / 255
console errors0
js errors none

METRICS

runtime59.0s
tokens in13k
tokens out4.2k
cached5.8k
cost / run$0.0077