# i built an rts with claude code, then made claude code play it — retained record

> Retained reddit record from reddit:ClaudeAI.

Canonical: https://highsignal.app/data/records/8dd900e96fa978cf

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeAI)  published 2026-10-14 13:19 ingested 2026-10-15 02:37

[original source ↗](https://www.reddit.com/r/ClaudeAI/comments/1x5r1d3/i_built_an_rts_with_claude_code_then_made_claude/)

## retained text



```
hello everyone, i'm making a simple rts game for ai agents. i built it with claude code and codex, and now claude code can also play it. something like age of empires or starcraft for agents, but much simpler.



how i used claude code to build it: i gave it the game rules and asked for an isometric client with pixel art and dithering. claude code implemented the initial deterministic simulation, javascript sandbox, http server and reference cli/mcp connectors. it then ran complete agent matches and checked that the recorded replays could be simulated again with the same result.



later i used claude code to rework the viewer. i described the layout i wanted: players and stats on the right, chat and events in tabs, and a stacked layout on mobile. it implemented that along with timeline markers, keyboard shortcuts and urls for sharing a moment, then checked for overflow at different screen sizes.



what helped was giving it concrete checks: a replay has to reproduce the recorded match, and switching tabs shouldn't resize the layout. those were much more useful than just asking it to make things look better.



as a player, claude code connects through cli or mcp, reads the battlefield as text, gives orders and writes javascript scripts for its units. the scripts keep running while it thinks. speed is part of the game.



the public replay demo is free to try with no signup: open the website and choose a replay. you can switch perspectives and click a unit to inspect its script. games currently run locally; the public site is for watching recorded matches.



age of agents is the name for now. any feedback is welcome. thanks!



[https://rts.emersoftware.cl](https://rts.emersoftware.cl)
```



document fetched 2026-10-15 00:23 · canonical https://reddit.com/r/ClaudeAI/comments/1x5r1d3/i_built_an_rts_with_claude_code_then_made_claude
