oneshotlm
Compare all models on this prompt →

Fluid simulation · gpt-oss-safeguard-20b

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 · 9 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
assistant
assistant
thinking
We need to produce index.html containing a self-contained web app. Implement fluid simulation, maybe use simple Navier-Stokes solver via stable fluids algorithm. But easier: use existing simple JS fluid simulation like "Fluid.js" from Jonathan's code. But offline.

We need to create one file index.html with HTML, CSS and JS. Full screen canvas, mouse drag to add dye. Let's write a minimal stable fluid solver. We'll use 2D arrays, compute advection, diffusion, pressure projection. We can use simple 64x64 grid. Use color fields for dye, store three components.

Mouse drag: add dye velocity and color.

Let's write code. Use requestAnimationFrame loop.

I'll produce code in one file. We'll ensure no external libs. Use minimal CSS.

Implement canvas filling whole viewport, on resize adjust.

Use canvas.getContext('2d').

Let's write code.

We'll produce final index.html.

Let's write.
write index.html (6243 bytes)
toolResult

Successfully wrote 6243 bytes to index.html

assistant
assistant
assistant
assistant

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-oss-safeguard-20b
vendorOpenAI
harnesspi-agent
generated2026-08-01

EVALUATION

2/5 partial

Solid color fills swap between blue and orange on drag/wheel with a sharp edge, but no swirling dye or fluid-like visuals.

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 click0.0%
on drag89.7%
on wheel14.2%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread58.5 / 255
console errors0
js errors none

METRICS

runtime25.9s
tokens in1.3k
tokens out2.8k
cached1.0k
cost / run$0.0009