<!-- Canonical page: https://reversedwithai.com/p/snowboard-kids-2-decomp -->
Canonical page: https://reversedwithai.com/p/snowboard-kids-2-decomp

# One-shot matching decompilation of Snowboard Kids 2 with Claude in a loop

> Three weeks of Claude in a loop beat the previous three months by hand.

A bash loop has Claude pick the easiest unmatched N64 function and try to match it, running unattended for 8+ hours. Three weeks beat the previous three months.

## Key facts

- Target: Snowboard Kids 2 (N64)
- Category: Games and mods
- Platform: Nintendo 64
- Models: Claude Opus 4.5
- Tools: Claude Code, m2c, decomp-permuter
- Outcome: Works
- Time spent (author-reported): 3 weeks
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: Chris Lewis
- Added: 2026-10-13
- Updated: 2026-10-13
- Sources reviewed: 2026-10-13 (editor)

## What was done

Chris Lewis ran Claude Opus 4.5 in headless mode in a bash loop to decompile the N64 game Snowboard Kids 2, one function at a time, until each compiled to matching assembly. In three weeks this "one-shot" workflow made more progress than the previous three months of manual work. The project later reached 100% matching decompilation and a native recompiled release.

## The loop

A script called `vacuum.sh` runs the loop. A scorer picks the function most likely to match. It started as a hand-tuned formula over instruction, branch, jump and label counts and was later replaced by a logistic regression trained on past results. Claude gets a matching environment and simple Unix-style tools with no MCP servers. It gives up after ten attempts with no progress, and commits after every match. The driver retries, backs off when usage limits hit, and logs everything. Lewis left it running unattended for 8 hours or more. Claude sometimes ignored the attempt limit or got lost between directories. Clear error messages and guard rules in the tools fixed this better than prompt changes did.

## What it matched

Opus matched five of seven functions that Sonnet 4.5 had marked too hard. Codex, including 5.1-codex-max, did poorly at the time. In May 2026 the game reached 100% decompilation, with help from the N64 decomp community and from Claude, GLM and Codex. Lewis found Codex 5.5 xhigh best on the last ten functions. Snowboard Kids 2: Recompiled followed in June 2026 for Linux, Mac and Windows.

## Human work and limitations

Claude sometimes ignored the attempt limit and got lost between directories; defensive tooling fixed this better than prompt changes. The project later reached 100% matching decompilation with help from the N64 decomp community and other agents (GLM, Codex), and a native recompiled release followed.

## What the commit history shows

4,732 of 7,575 commits in the public repository credit an AI, over 146 days between 2025-11-20 and 2026-05-21. Credited: Claude Opus 4.5 (2,075), Claude (version not given) (1,350), Claude Sonnet 4.5 (620), Claude Opus 4.6 (386).

Measured by this site from public git history.

## Sources

- [Repository](https://github.com/cdlewis/snowboardkids2-decomp)
- [Write-up](https://blog.chrislewis.au/the-unexpected-effectiveness-of-one-shot-decompilation-with-claude/)
- [Discussion](https://news.ycombinator.com/item?id=46080498)
- [Discussion](https://blog.chrislewis.au/snowboard-kids-2-is-100-decompiled/)
- [Discussion](https://blog.chrislewis.au/snowboard-kids-2-is-recompiled/)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Chris Lewis (2026). One-shot matching decompilation of Snowboard Kids 2 with Claude in a loop. Reversed with AI. https://reversedwithai.com/p/snowboard-kids-2-decomp
