oneshotlm
Compare all models on this prompt →

Fluid simulation · kat-coder-air-v2.5

Create a real-time fluid simulation on a full-screen canvas where dragging the mouse pushes swirling colored dye through the fluid.

⛨ sandboxed Open in new tab ↗
transcript · 8 messages
user

Create a real-time fluid simulation on a full-screen canvas where dragging the mouse pushes swirling colored dye through the fluid.

assistant

write /tmp/ws/index.html (10803 bytes)
toolResult

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

assistant

bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 10803 Aug 1 20:01 /tmp/ws/index.html

assistant

The file is written. Let me verify it's complete:

bash {"command":"tail -5 /tmp/ws/index.html"}
toolResult

requestAnimationFrame(loop); })(); </script> </body> </html>

assistant

Done! `/tmp/ws/index.html` is a self-contained fluid simulation with: - **Navier-Stokes solver** on a 200×200 grid (Gauss-Seidel pressure projection, semi-Lagrangian advection) - **RGB dye channels** — drag to inject swirling colored dye that gets advected by the velocity field - **Rainbow hue cycling** based on drag direction and time - **Touch support** for mobile - **Sub-pixel scaling** so the simulation fills the screen at any resolution - **No external dependencies** — runs fully offline in a sandboxed browser

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

modelkat-coder-air-v2.5
vendorKwaipilot
harnesspi-agent
generated2026-08-01

EVALUATION

2/5 partial

Fluid sim reacts to drag with a whitish blob but lacks visible swirling colored dye, mostly washed out white.

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 motion0.0%
on click1.2%
on drag26.1%
on wheel1.9%
on enter + space2.9%
on arrow keys5.3%
on w/a/s/d20.2%
frame spread25.7 / 255
console errors0
js errors none

METRICS

runtime26.0s
tokens in20k
tokens out4.7k
cached15k
cost / run$0.0040