r/opencode • • 1d ago

MiniMax M4 single-file WebGPU ocean test

Tested MiniMax M4 on a single-file WebGPU water prompt with headless Chrome critic subagents, and just added minimax/minimax-m4 to my OpenCode model list now that it is up on OpenRouter.

Result is one 135 KB HTML file with no libraries: JONSWAP + Toba wave spectrum, three FFT cascades, floating camera, five sea states from calm noon to gale. Prompt in comments.

113 Upvotes

12 comments sorted by

10

u/SquareBat780 1d ago

Prompt used for the WebGPU ocean build:

Make the most realistic water scene you can, in WebGPU, with a floating camera. Write the renderer from scratch with no engine or libraries, and deliver it as a single self-contained HTML file. Check your own work: render screenshots in headless Chrome and have separate critic subagents review them, so you are not grading your own output.

1

u/Hudsxn98 1d ago

You forgot "no em dashes", "make no mistakes" do you even vibe bro ;)

3

u/tepung_ 1d ago

ok now im intrigued, how other models perform?

1

u/SquareBat780 8h ago

Haven't run this exact prompt on other models yet since the Chrome critic loop went past 1,000 tool calls. Dropped the full prompt above if anyone wants to try Opus or Gemini on it.

2

u/warpaint_james 1d ago

Used it last night on high to fix a stubborn issue. Got it fixed very quickly. Didn't even need max!

1

u/SquareBat780 8h ago

Same experience so far, high handles normal repo bugs fine and feels much snappier. Mostly just save max for long multi-step builds like this where it's iterating on shaders from scratch.

5

u/Nenad1979 1d ago

How many minutes

1

u/ahmedranaa 18h ago

M4 is currently the best open-source model. Open code should host it and provide us with better limits

2

u/SquareBat780 8h ago

Hoping it lands on Zen or Go too. Routing minimax/minimax-m4 through OpenRouter in OpenCode has been smooth in the meantime, especially with cache reads at $0.05/M on long agent runs.

1

u/Sanyoura 1d ago

Where the final file?

0

u/Ordinary_Policy820 4h ago

Which model you used to review the work??