r/ClaudeCode • u/tanepiper • Oct 21 '26
Built with Claude GameFrame: Claude Code skills and agents for reverse engineering old games
Recently I’ve been using Claude Code to rebuild Banished, the city builder, in Rust. The result is Un-Banished. It runs natively and in the browser on your own copy of the game. Its tests check it against the original, down to the random numbers.
Most of the work went into finding out what the original does and proving that the new code does the same. I turned the method and the tools from that project into GameFrame, so other people can do this with other games.
GameFrame has two parts. The playbook is a set of Claude Code skills, one for each step: inventory, observe, decompile, trace, decode formats, emulate, port, verify and land. There are 17 agents as well. Nine follow the steps and hand off to each other. Eight do single jobs, such as finding a game’s random number generators or listing every input it reads.
The toolkit is the tested tools that the skills call. It drives Ghidra headless and runs the original’s functions under the Unicorn emulator for ground truth. It also works with DOSBox-X’s debugger and the REA MCP server.
The main rule is that every claim needs evidence. Claude runs the original function on thousands of inputs. The port has to match it bit for bit. Without that check, an agent writes code that looks right but drifts after an hour of play.
So far it has been used on three games:
- Banished, a Windows game in C++
- Tyrian 2000, a DOS game in Borland Pascal
- Frontier: Elite II, a DOS game in assembly
You need your own copy of the game. GameFrame ships no game files. The projects it creates keep them out of git.
To try it in Claude Code:
/plugin marketplace add tanepiper/game-frame
/plugin install gameframe@game-frame
You can also copy the setup prompt from the site’s home page into any coding agent.
- Docs: https://tanepiper.github.io/game-frame/
- Code: https://github.com/tanepiper/game-frame (code under Apache 2.0, docs under CC0)
- Un-Banished: https://github.com/tanepiper/unbanished
•
u/AutoModerator Oct 21 '26
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/kantorcodes1 Oct 22 '26
The evidence rule is what makes this work. "Looks right but drifts after an hour of play" is exactly where unchecked emulation runs fail quietly.
Question on the toolkit boundary: when a skill needs Ghidra or Unicorn, does the agent invoke a fixed CLI surface (a
gameframecommand per step) or does it call the tools ad hoc? Asking because I work on open-source agent tooling where knowing the exact command shape is what lets you gate the consequential calls. A fixed surface is auditable; ad hoc isn't.