Compare all models on this prompt →
Boids flocking · nex-n2-mini
Output generated Cost / run $0.0006 Runtime 19.7s
Prompt for this run
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 ↗
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
METRICS
runtime19.7s
tokens in7.3k
tokens out4.1k
cached0
cost / run$0.0006
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`.