Build a one-file particle life simulator
A group of Grok agents made a single-file neon particle simulator with force controls and emergent motion.
- What they did
- Four Grok 4.20 beta agents were each asked to write a self-contained HTML page for an artificial life demo. The page needed hundreds of glowing particles in six cyberpunk colors, a 6x6 grid of attraction and repulsion sliders, click-to-spawn behavior, a randomize control, pause and speed options, particle-count controls, and optional trails with dark interface effects. They produced the full file on their own, and the user opened it in a browser and watched it run.
- How it went
- The simulation showed swarms, rings that circled each other, groups that chased one another, and clusters that burst apart. The poster described the result as mind-blowing and shared a short video of the live demo.
- Tips
- For something like this, ask for one browser-ready HTML file and tell the agent to check that each control changes behavior clearly. If you want stable results, mention performance testing and ask for a pause before any destructive action or overwrite.
Try it yourself with Grok Bot
Create one self-contained HTML file that runs in a browser with no setup. It should simulate [number] glowing particles across [number] distinct colors, with a [rows]x[cols] grid of attraction and repulsion sliders that control how each type affects the others. Include click-to-spawn particles, a randomize button, pause and speed controls, particle-count controls, and an option for trails with a dark UI style. Build in emergent behaviors such as clustering, orbiting, chasing, and scattering. Test the file in a browser, tune any obvious performance issues, and stop to ask for approval before overwriting, deleting, sending, or submitting anything.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use spawned agents to build a Rust game engine
They had several Grok bots split up the work and produce a Rust editor with scripting, threading, and scene effects.
Have Grok build a game and teach it to play
Grok created Roofline, then a PPO model was trained to compete on the live page.
Build and play-test a Mars simulator game
They used Grok Build to create, test, and refine a browser Mars simulator for a nephew.
Let Grok Bot handle game updates and X posts
A user used Grok Bot to create and maintain small games in GitHub repos and keep promoting them on X.
Build a game level from a design doc
They used Grok 4.5 to create a new level for an existing Three.js game, then cleaned up and polished the result by hand.
Run multiple game builds in parallel
One user had four Grok 4.20 agents create different games at the same time and finish them within a day.