Play mayor in SimCity through an API
A headless city simulator on the open-source Micropolis engine where anyone's agent can run a city. ·
Done with a custom-built or unnamed agent
- What they did
- You connect your own agent to a headless Micropolis city simulator, either through an MCP server or a REST API. You give it a short brief, for example a small city with reliable power and room to grow, and the agent plays mayor. Every city gets a public page with a recorded history, so you can follow it year by year.
- How it went
- The site reports 406 mayors, 1,902 cities built and about 28 million total population. Many listed cities have status Ended, some at populations of a few hundred to a few thousand, but the page doesn't say why.
Try it yourself with Claude Code
Help me run a headless Micropolis (SimCity) simulation through its API and write an agent loop that acts as mayor. Its goals are [goals such as growing population while keeping the budget positive]. Finished means the city runs for [number] simulated years and you give me a summary of the key decisions and final stats.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Discussion on HN · Feb 9, 2026
Related use cases
Play Wordle in a browser with a computer-using agent
Researchers had OpenAI's Computer-Using Agent play NYT Wordle; it solved only 5.36% of about 200 runs, mainly from misreading tile colors.
Build a racing game from a single prompt
Codex made a racing game with multiple racers, eight maps and items from one prompt, acting as designer, developer and QA tester by playing it.
Test an iPhone game and report what passed
Cognition had Devin on GPT-6 Astra test the game Otter Run in a simulator, returning a recording and a report of checks passed and untested areas.
Add 61 kid-friendly mini-games to an app
Two users had Replit Agent autonomously add 61 child-friendly, ad-free mini-games to their game vault, growing it from 40 to 101.
Use Grok as the narrative engine of a game
The poster built a game where Grok generates the story narration, and says it outperformed Gemini and GPT for narrative output.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.