oneshotlm
Compare all models on this prompt →

Boids flocking · mistral-medium-3.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 · 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
write index.html (14405 bytes)
toolResult

Successfully wrote 14405 bytes to index.html

assistant

Created a self-contained, full-screen flocking simulation in `index.html` with: - **Boids** (150) as oriented triangles with trails - **Flocking behaviors**: separation, alignment, cohesion - **Mouse interaction**: boids flee from cursor - **Visuals**: smooth steering, trails, full-screen canvas - **No dependencies**: pure HTML/CSS/JS, no external resources Open `index.html` in a browser to run. Use your mouse to interact with the boids.

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

modelmistral-medium-3.1
vendorMistral AI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Green triangular boids flock and drift continuously; some odd horizontal green line artifacts appear but flocking behavior looks functional.

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 motion6.8%
on click7.0%
on drag7.0%
on wheel6.8%
on enter + space7.6%
on arrow keys6.8%
on w/a/s/d6.8%
frame spread10 / 255
console errors0
js errors none

METRICS

runtime28.9s
tokens in6.2k
tokens out3.5k
cached6.0k
cost / run$0.0073