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 bots to ship and improve a mobile game
A developer split game work across six bots, including a bot that reused a recorded upload flow to publish ad creatives each day.
Build and play-test a Mars simulator game
They used Grok Build to create, test, and refine a browser Mars simulator for a nephew.
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.
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 a text game around AI narration
A developer used Grok to narrate a choice-based game and said it handled story text better than Gemini and GPT.
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.