oneshotlm
Compare all models on this prompt →

Boids flocking · qwen3.5-397b-a17b

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 flocking simulation (boids) in a single HTML file. I need to implement:

1. Boids as oriented triangles
2. Three flocking rules: separation, alignment, cohesion
3. Fleeing behavior from mouse cursor
4. Smooth steering
5. Full-screen canvas

Let me create a complete, self-contained index.html file with all the CSS and JavaScript inline.
write /tmp/ws/index.html (11824 bytes)
toolResult

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

assistant
thinking
I've created a complete boids flocking simulation in a single HTML file. Let me verify it was written correctly.

Done! Created `index.html` with a complete boids flocking simulation featuring: - **200 boids** rendered as oriented triangles - **Three flocking behaviors:** - **Separation** - steers away from nearby boids - **Alignment** - steers toward average heading of neighbors - **Cohesion** - steers toward center of mass of neighbors - **Mouse flee behavior** - boids scatter when cursor approaches - **Smooth steering** with force limiting for natural movement - **Visual effects:** - Color shifts based on speed (cyan to yellow) - Subtle glow effect - Motion trails from fade-clear rendering - **Edge wrapping** - boids reappear on opposite side - **Touch support** for mobile devices Open `index.html` in a browser to see the simulation. Move your mouse to scatter the flock!

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

modelqwen3.5-397b-a17b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Boids flock and swirl continuously as oriented triangles, with visible reaction to mouse near cursor (fleeing curve shape).

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 motion13.7%
on click13.9%
on drag13.5%
on wheel12.1%
on enter + space13.9%
on arrow keys13.8%
on w/a/s/d13.5%
frame spread12.9 / 255
console errors0
js errors none

METRICS

runtime44.6s
tokens in6.2k
tokens out3.2k
cached0
cost / run$0.0099