oneshotlm
Compare all models on this prompt →

Boids flocking · kimi-k3

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
Create a single index.html with boids. Include spatial grid maybe; keep simple but performant with ~250 boids and a spatial hash. Flee mouse, wrap edges, oriented triangles.
write /workspace/index.html (7150 bytes)
toolResult

Successfully wrote 7150 bytes to /workspace/index.html

assistant

Created `index.html` — a fully self-contained, full-screen flocking simulation. **Features:** - **Classic Reynolds rules**: separation (inverse-square repulsion within 26px), alignment, and cohesion (within 70px perception radius) - **Smooth steering**: all rules produce desired-velocity vectors limited by `maxForce`, so boids turn organically rather than snapping - **Mouse fleeing**: boids within 150px of the cursor are strongly repelled, with force scaled by proximity; a faint red ring shows the danger zone - **Oriented triangles**: each boid is drawn as a glowing arrowhead rotated to its velocity, with hue/lightness shifting by speed - **Performance**: spatial-hash grid for O(n) neighbor lookups, DPR-aware rendering, motion-trail fade effect - **Extras**: click to spawn boids at the cursor, space to pause, edge wrapping, gentle wander noise for lone boids Open it in any browser — no network or external resources needed.

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

modelkimi-k3
vendorMoonshot · Kimi
harnesspi-agent
generated2026-07-28

EVALUATION

4/5 working

Boids flock smoothly with glowing triangle shapes, flee from cursor circle, click adds boids; arrows/WASD have no effect.

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 motion17.8%
on click19.9%
on drag19.6%
on wheel20.4%
on enter + space14.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread18 / 255
console errors0
js errors none

METRICS

runtime56.5s
tokens in4.3k
tokens out2.7k
cached1.0k
cost / run$0.0123