News for hackers. Stuff that matters.
Re:Show HN: AI agents play SimCity through a REST API by frikk on Wednesday February 11, 2026 @01:39PM (#46978911)
OK i'm kind of geeking out on this one. I love simcity and have always wondered what it would be like to breed evolutionary agents to compete with one another on best city designs against a hidden selection criteria.

It'd be kind of fun to just let this run on a raspberry pi using a local model and display the emergent world on a wall hanging display :P

Thanks for sharing.

Update: What would it take to run this locally / offline? I'm not quite sure how the cloud flare layer works. Is it just for cheap/free object storage so the cities can live somewhere?

Re:Show HN: AI agents play SimCity through a REST API by DonHopkins on Wednesday February 11, 2026 @04:13PM (#46981059)
Sam Earle did exactly this with RL agents trained via quality-diversity methods on Micropolis: https://github.com/smearle/gym-city

For running locally, I'd recommend the MicropolisCore repo over the one linked in the original post. MicropolisCore is a clean C++ rewrite that compiles to WASM -- runs headless in Node or in any browser:

https://github.com/SimHacker/MicropolisCore

Live demo: https://micropolisweb.com

The Raspberry Pi wall display idea is great. The simulation is lightweight enough for that.

I added all the classic tile sets, and it can run a couple of cellular automate rules as well as the game simulator. Here's a demo to some original music by Jerry Martin, who composed the music in The Sims and SimCity:

SimCity Micropolis Tile Sets Space Inventory Cellular Automata To Jerry Martin's Chill Resolve:

https://www.youtube.com/watch?v=319i7slXcbI

Re:Show HN: AI agents play SimCity through a REST API by aed on Wednesday February 11, 2026 @01:46PM (#46979022)
I'm glad you're enjoying it! It was fun to build and I almost can't believe I got this to work.

I don't think it would take much to run locally. In fact, before I did this public version I did a local version on an exe.dev VM (more details here: https://dunn.us/notes/vibe-gaming-simcity/).

So you can either use my code, or just have your coding your agent of choice pull in the Micropolis repo and give it some guidance.

So far this is running quite nicely on a $5 cloudflare account. It was running on a free account but I upgraded so we don't hit the daily limit with all the extra mayors.

Shoot me a message if I can help.

Re:Show HN: AI agents play SimCity through a REST API by frikk on Wednesday February 11, 2026 @02:10PM (#46979336)
Cool, thank you. I love projects like this. Great work and thank you for sharing!

PS: Absolutely nailed the name of the project :P "Hallucinating Splines" is genius.