The Unexpected Effectiveness of One-Shot Decompilation with Claude

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

One-shot decompilation of legacy game code is now viable with Claude Opus 4.5 via Claude Code, more than doubling matched code in weeks.

Read this as

Chris Lewis is reverse-engineering the 1999 Nintendo 64 game Snowboard Kids 2, converting its machine code back into readable C. His project crawled from 20% to 25% complete between September and November, then jumped to 45% by December after he switched to Claude Opus 4.5 with the Claude Code tool. The trick was having the AI repeatedly tackle the simplest un-decoded functions first. Anyone preserving old games could now use the same approach.

A hobbyist decompiling the 1999 N64 game Snowboard Kids 2 saw his matched-code progress jump from roughly 25% to 45% in two weeks after adopting Claude Opus 4.5 with Claude Code in non-interactive mode. The gains came from scripting the agent to repeatedly attack the least complex remaining functions. The competitive signal: agentic coding tools can deliver step-change productivity on narrow, well-verified tasks, not just new software.

Chris Lewis decompiles N64 MIPS assembly into C that, when compiled with the original toolchain, must produce byte-identical output, idiomatic code, not just a byte match. Switching to Claude Opus 4.5 via Claude Code's non-interactive mode (claude -p) drove his decomp.dev match rate from ~25% to 45% by 2 December. A Bash script plus score_functions.py heuristics rank remaining unmatched functions by complexity and decompile the simplest first, checking each result against the reference binary. His prompt and scripts are public on GitHub.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Claude Opus 4.5 Claude Code Snowboard Kids 2 Nintendo 64 decomp.dev GitHub

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading