oneshotlm
Compare all models on this prompt →

Boids flocking · laguna-s-2.1

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 · 10 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
assistant
assistant
assistant
thinking
The user wants a full-screen flocking simulation of boids with separation, alignment, cohesion, drawn as oriented triangles that steer smoothly and flee from the mouse cursor. All in one self-contained index.html file with CSS and JS inline, no external resources.

Let me create this. I'll use HTML5 Canvas for the rendering. The boids algorithm is classic Craig Reynolds flocking.

Key features:
1. Full-screen canvas
2. Boids with separation, alignment, cohesion
3. Boids drawn as oriented triangles
4. Smooth steering (lerp-based velocity updates)
5. Mouse cursor fleeing (boids flee from mouse)

Let me write this carefully with good physics.

I'll implement:
- Boid class with position, velocity, acceleration
- flock() method with three rules
- mouse avoidance
- Edges wrapping
- Drawing oriented triangles
- Smooth steering using force application

Let me make it polished with good parameters. I'll write the whole thing.

I'll create a full-screen boids flocking simulation with all the requested features. Let me write it as a single self-contained file.

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

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

assistant
assistant
assistant
assistant

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

modellaguna-s-2.1
vendorpoolside
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Boids flock continuously as colorful triangles, matching separation/alignment/cohesion prompt, but no visible reaction to click/drag/keys.

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 motion4.5%
on click4.5%
on drag4.6%
on wheel4.5%
on enter + space4.5%
on arrow keys4.5%
on w/a/s/d4.5%
frame spread5.2 / 255
console errors0
js errors none

METRICS

runtime65.4s
tokens in1.5k
tokens out3.8k
cached608
cost / run$0.0009