DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to write one function in C and check it against the ROM with Decomp WTF

Edit a function in the app, press Ctrl+Enter, and see the judge's diff against the original.

Short answer: Install Decomp WTF with curl -fsSL https://decomp.wtf/install.sh | bash on Linux, then open the app; then 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. All steps.

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

  1. Install Decomp WTF with curl -fsSL https://decomp.wtf/install.sh | bash on Linux, then open the app.
  2. Import a game you own, such as the bundled Demo Quest 64 ROM for a first try.
  3. Open a function in the editor and write C for it.
  4. Press Ctrl+Enter to compile and read the judge's instruction diff.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer