Full prompt released: build a self-rehearsing clockwork puppet theatre with MiniMax M4

CtrlAltDwayne · x · 2026-12-05

Follow-up to the MiniMax M4 visual demo: the author released the full source code and prompt for "Clockwork Theatre."

The prompt asks the model to build a complete standalone browser project from an empty folder: the audience gives a cue (e.g. "Ring the bell twice, then raise the paper moon. Use one marble"), the theatre assembles a machine, rehearses it while recording what actually happened ("Bell rang once. Marble stopped under the lever"), and if the rehearsal misses the cue, revises the layout and retries until the show works.

This assemble → rehearse → record → self-correct loop is a practical template for using coding models as visual agents.

Original post →

More from coding & agent

coding & agent channel →