# How to use Claude to rewrite a space simulation in Rust

The author reports a Rust/Bevy sandbox running into the thousands of simulation agents. A 100,000-agent target remained unachieved, and the sandbox had no game objective.

Agent: Claude
Tools: Claude, Elixir, Phoenix, Rust, hecs, Bevy
Category: Games & simulation
Date: 2026-07-21

Outcome: The author reports a Rust/Bevy sandbox running into the thousands of simulation agents. A 100,000-agent target remained unachieved, and the sandbox had no game objective.

## Steps

1. Built an initial Elixir and Phoenix space-economy prototype with Claude.
2. Asked Claude to rewrite the engine in Rust after Windows scheduler issues.
3. Embedded the pure simulation core directly in a Bevy client.
4. Pushed the simulation agent count into the thousands.

Human oversight: The author selected the rewrite and tried higher simulation counts; the post does not describe formal code review.

Source: [kalcode on Hacker News](https://news.ycombinator.com/item?id=48996187)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-rewrite-a-space-simulation-in-rust/
