oneshotlm
Compare all models on this prompt →

Boids flocking · ring-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
thinking
The user wants a full-screen flocking simulation (boids) with:
1. Separation, alignment, and cohesion behaviors
2. Boids drawn as oriented triangles
3. Smooth steering
4. Flee from mouse cursor
5. Single self-contained HTML file with inline CSS and JS
6. No external resources

Let me create this. I'll implement a complete boids simulation with canvas rendering.
write /tmp/ws/index.html (8200 bytes)
toolResult

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

assistant
thinking
The file has been written successfully. Let me verify it's in place and looks correct.

The boids flocking simulation is complete at `/tmp/ws/index.html`. Here's what it implements: - **Separation** — boids steer away from neighbours within a close range to avoid crowding - **Alignment** — boids match the average heading of nearby flockmates - **Cohesion** — boids steer toward the centre of mass of their neighbours - **Mouse flee** — boids within 180px of the cursor flee from it with proportional force - **Click burst** — clicking the canvas delivers a strong outward kick to nearby boids - **Screen wrapping** — boids wrap around edges with a gentle turning margin - **Smooth steering** — velocity uses inertia (0.92) so turns are gradual and organic - **Oriented triangles** — each boid is a small triangle that smoothly rotates toward its heading - **Trail effect** — a semi-transparent overlay per frame creates motion trails - **Per-boid colour** — slight HSLA variation in the blue-cyan range with randomised alpha No external resources, no CDNs — fully self-contained in one file. Just open `index.html` in a browser.

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

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

EVALUATION

4/5 working

Boid-like flocking with fish/streak shapes flows continuously and reacts to click, drag, and wheel with visible scattering.

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 motion32.8%
on click39.3%
on drag43.1%
on wheel39.2%
on enter + space36.2%
on arrow keys38.2%
on w/a/s/d38.4%
frame spread24.8 / 255
console errors0
js errors none

METRICS

runtime30.8s
tokens in6.2k
tokens out3.2k
cached0
cost / run$0.0025