REA MCP
☰
ZH-CN
● — 人在线 · 浏览 — 次
赞助提交案例
教程资源 · 发布者 tanepiper

GameFrame:用于逆向工程老游戏的 Claude Code 技能和代理

Reddit 帖子介绍了 GameFrame,这是一套 Claude Code 技能和代理,用于逐位逆向工程和重新实现老游戏,基于作者的 Un-Banished 项目构建,并集成了 REA MCP 服务器以及 Ghidra、Unicorn 和 DOSBox-X。

已翻译

关于这个案例

作者解释了如何用 Rust 重建 Banished(Un-Banished),从而引出 GameFrame,这是一本 Claude Code 技能手册(inventory、observe、decompile、trace、decode formats、emulate、port、verify、land)和 17 个代理,背后有一个工具包,可以无头驱动 Ghidra,在 Unicorn 下运行原始函数以获取基准真相,并与 DOSBox-X 的调试器和 REA MCP 服务器配合工作。每个声明都必须有证据支持,移植版本必须与原始版本逐位匹配。迄今为止已用于 Banished、Tyrian 2000 和 Frontier: Elite II。用户需要自己的游戏副本;不附带任何游戏文件。通过 Claude Code 插件市场安装,并提供了文档和代码链接。

安装配置

安装方法请查看原始来源。

原文 / README

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 submitted by /u/tanepiper to r/ClaudeCode [link] [comments]

更多类似作品