GameFrame
GameFrame is an agentic framework for reverse engineering games. Its playbook of skills and agents runs inside your coding agent. Its toolkit of tested tools checks every result against the original. AI agents and people use it to study a game from its shipped files. They
document its formats and rules, and reimplement it so it behaves exactly like the original.
Each reimplementation is an exact core with a frame around it. The core is the game, ported
from the original and checked against it. The frame is GameFrame's launcher, the player's
library of game files and saves, the settings, the renderer choice, help pages and an event
console. Every port gets the same frame. The core and the frame talk only through a versioned
contract of events (Building the port).
The toolkit works with Ghidra, the
Unicorn emulator and REA
(Reverse Engineer Anything). It uses DOSBox-X and its debugger for DOS
runs, and 86Box when tests need a configurable period PC.
GameFrame grew out of Un-Banished, a 1:1
reimplementation of the game Banished built this way; see
the case studies.
Set it up with your agent
Copy this prompt into your coding agent (Claude Code, Codex, Cursor or another). It clones
GameFrame and checks your tools. It asks before it installs anything, then starts a project for
your game.
Set up GameFrame on this computer for me.
1. Clone https://github.com/tanepiper/game-frame into ~/code/game-frame
(or update it with git pull if it is already there).
2. Read AGENTS.md and skills/re-setup/SKILL.md.
3. Run scripts/setup.sh and show me the table of what is present and what is missing.
4. Before you install anything, tell me what scripts/setup.sh --install will install and how
large each part is. Wait for my answer, then run it.
5. Run tests/run.sh --ghidra and report how many checks passed. If any failed, show the
failures and fix the setup before going on.
6. Run scripts/setup.sh --rea and help me register REA with this agent.
7. Run ./gameframe home init. It makes the GameFrame home, ~/gameframe, where the games, the
projects, the virtual machines and the shared settings (config.env) live.
8. Ask me for the name of the game and where my own copy of it is: a disc image, an installer
or a folder. Then run
scripts/new-project.sh <short-name> "<Game Name>" "<path to the game>".
It copies the game into ~/gameframe/games/<short-name>/ and makes the project in
~/gameframe/projects/<short-name>/.
9. Open the new project, read its AGENTS.md, and start with the re-start skill.
Never copy the game's files, extracted assets or decompiled code into a git repository.
To set it up by hand instead, follow the quick start.
Framework, playbook and toolkit
GameFrame is the whole framework. It has two parts.
The playbook is the method and the rules an agent follows:
- the skills in
skills/re-*/, one per step of the method;
- the stage agents in
agents/, packaged with the skills as a Claude Code plugin
(.claude-plugin/);
- the rules in
AGENTS.md and, for each game, in the project's own AGENTS.md
(templates/project/).
The toolkit is the tested tools the playbook runs:
- the tools in
tools/, such as the Ghidra export and query, the Unicorn emulators, format
validation and the bit-exact comparison tools;
- the scripts in
scripts/, such as setup, new-project and the Ghidra runs;
- the checks in
tests/run.sh, which prove every tool on the samples in examples/.
Quick start
git clone https://github.com/tanepiper/game-frame.git
cd game-frame
scripts/setup.sh --install # Ghidra, JDK 21, objdump, Node, Zig, and .venv (unicorn, pefile, capstone)
tests/run.sh --ghidra # proves every tool on the sample game (about 1½ minutes)
./gameframe home init # ~/gameframe: games, projects, machines, config.env, shared Python
scripts/new-project.sh mygame "My Game" "/path/to/disc.iso" # the game in games/mygame, the repository in projects/mygame
Then open the new project with your agent and ask it to start with the re-start skill.
The skills follow the Agent Skills format (https://agentskills.io). There is one copy, in
skills/. The links .claude/skills and .agents/skills point to it, so Claude Code,
Codex, Gemini CLI, GitHub Copilot, Cursor and OpenCode find the skills without setup. Agents
that do not read skill folders read AGENTS.md and the SKILL.md files. On Windows, git makes the links
only with symbolic links turned on (git clone -c core.symlinks=true, with Developer Mode);
without them, point the agent at skills/.