oneshotlm
Compare all models on this prompt →

Boids flocking · gpt-4.1-mini

Output generated Cost / run $0.0050 Runtime 32.0s

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

modelgpt-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime32.0s
tokens in4.3k
tokens out2.1k
cached0
cost / run$0.0050
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 (6040 bytes)
toolResult

Successfully wrote 6040 bytes to index.html

assistant

I created a full-screen boids flocking simulation in a single HTML file named index.html. - Boids are drawn as oriented triangles. - They steer with smooth acceleration using separation, alignment, and cohesion. - They flee from the mouse cursor within a radius. - The canvas resizes to fill the entire screen. Open index.html in a browser to see the simulation running in full screen. Let me know if you want any adjustments!