A Rust space-economy sim runs hundreds of autonomous ships, built with Claude

kalcode · hn · 2026-07-22

A developer shows a self-running space-economy simulator built in Rust and Bevy, with hundreds of autonomous ships planning their own actions.

The sim has no scripted objectives: ships chase trade routes, contracts, refueling, retrofits, and morale; markets move with supply and demand plus shortage multipliers; factions tax and subsidize; unhappy populations migrate; and failing stations are abandoned. The author says Claude helped rewrite the engine from an Elixir/Phoenix prototype into a synchronous Rust core, with a GOAP-based ship planner, shared sim/renderer world, and a single native binary. They report about 485 agents at roughly 10–20 ms per tick, and say the architecture is meant to scale toward 100k agents even though that has been difficult in practice.

The repo is currently more of a sandbox than a shippable game, but the author invites others to fork it and is open to discussing the Claude-assisted workflow behind it.

Original post →

More from coding & agent

coding & agent channel →