Authorization notice. Decomp WTF is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer learning decompilation who wants to try writing matching C by hand before letting agents run.
The problemIt is hard to know whether a hand-written C function really compiles to the original bytes without a checker.
The outcomeA function whose C either matches byte for byte or shows an instruction diff explaining what differs.
What you need first
- A game you own, as a ROM, disc image or program file (the README says to use it only on games you own)
- Linux, or Windows with WSL 2 (Windows support is marked unstable); macOS is not supported
- An AI agent such as Claude Code, Codex, Antigravity CLI or opencode, or an API key for another model
- A terminal and basic familiarity with C and MIPS or PowerPC assembly
Steps
- Install Decomp WTF with
curl -fsSL https://decomp.wtf/install.sh | bashon Linux, then open the app. - Import a game you own, such as the bundled Demo Quest 64 ROM for a first try.
- Open a function in the editor and write C for it.
- Press Ctrl+Enter to compile and read the judge's instruction diff.
- Adjust the C until the function scores 100 and is marked matched.
Prompt for your agent
Using the decomp.wtf repo (i12bp8/decomp.wtf), open the bundled Demo Quest 64 ROM and write C for one function of your choice in the editor. Report the score the judge gives and the instruction diff, if any. Verify that the function only counts as matched when the score is 100 and the bytes are identical.
Caveat. The app ships with Demo Quest 64, a ROM built from public-domain code and zlib, which is the safest first target before you use a game you own.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for i12bp8/decomp.wtf and "Write one function in C and check it against the ROM"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer