oneshotlm
Compare all models on this prompt →

Boids flocking · nex-n2-mini

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
We need answer must create file index.html in current dir. Need inspect? We need build full-screen flocking sim self-contained. Need likely use tools. Need write index.html. Need satisfy user. Need maybe no network. We can produce concise final with path. But need actually write file. Need maybe use cat >? Instruction says use write for new files or complete rewrites. We can write file. Need ensure full-screen, CSS style, JS script, no external. Boids separation alignment cohesion, oriented triangles, smooth steering, flee from mouse cursor. Need perhaps responsive, high DPI, controls maybe mouse. Need full-screen. Let's craft robust HTML. Need no external resources. Need maybe include touch. Need all in one file. Need draw oriented triangles. Flee from mouse cursor. Smooth steering. Need full-screen simulation.

Need be careful with file. Let's write index.html. Need maybe include code. We'll use JS class. Canvas full viewport. Boids array 160 maybe. Boids have pos, vel, acc, size. Update with boundaries wrap or bounce? Full screen. Steering: compute separation, alignment, cohesion, mouse flee. Weighted. Smooth: limit max force, max speed. Draw triangles rotated by velocity angle. Use requestAnimationFrame. Need maybe mouse object.

Need maybe include instructions overlay? Maybe minimal UI text "Move mouse to repel". Need CSS. Self-contained. Need maybe no external.

Let's write.
write /tmp/ws/index.html (12219 bytes)
toolResult

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

assistant
thinking

Created `index.html` in `/tmp/ws`.

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

modelnex-n2-mini
vendorNex AGI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Boids flock and flee a mouse cursor circle, but boid count seems sparse and small on screen.

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 motion2.3%
on click22.8%
on drag6.2%
on wheel5.9%
on enter + space0.5%
on arrow keys0.5%
on w/a/s/d0.4%
frame spread12.1 / 255
console errors0
js errors none

METRICS

runtime19.7s
tokens in7.3k
tokens out4.1k
cached0
cost / run$0.0006