Compare all models on this prompt →
Boids flocking · gpt-5.1-codex-mini
Output generated Cost / run $0.0053 Runtime 22.1s
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-5.1-codex-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01
METRICS
runtime22.1s
tokens in5.6k
tokens out2.3k
cached3.2k
cost / run$0.0053
Transcript · 6 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
**Planning a single-page site** I'm thinking about creating a single-page website, and the first step is to write an `index.html` file. I need to inspect the filesystem to ensure I’m following the right structure. It’s exciting to set everything up properly from the beginning! I want to make sure I include all necessary components so the page runs smoothly. Let's dive into crafting that page!
→ bash
{"command":"ls"}toolResult
(no output)
assistant
thinking
**Creating an index.html file** I need to create a complete solution in a single index.html file. I'll edit or write a new file using the necessary code. It has to include CSS and JavaScript, all within the same document. I want a full-screen canvas for simulating boids that will respond to mouse movement, showing behaviors like separation, alignment, and cohesion. I'll make sure that everything is self-contained without external resources. Let’s go ahead and start creating this file!
→ write
index.html (7055 bytes)toolResult
Successfully wrote 7055 bytes to index.html
assistant
Created `index.html` with a full-screen boid flocking simulation featuring separation, alignment, cohesion, and mouse-flee behavior.