{
  "api_version": "1.0.0",
  "slug": "snowboard-kids-2-decomp",
  "url": "https://reversedwithai.com/p/snowboard-kids-2-decomp",
  "markdown_url": "https://reversedwithai.com/p/snowboard-kids-2-decomp.md",
  "json_url": "https://reversedwithai.com/p/snowboard-kids-2-decomp.json",
  "title": "One-shot matching decompilation of Snowboard Kids 2 with Claude in a loop",
  "tagline": "Three weeks of Claude in a loop beat the previous three months by hand.",
  "summary": "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.",
  "target": {
    "name": "Snowboard Kids 2 (N64)",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "Nintendo 64",
  "models": [
    "Claude Opus 4.5"
  ],
  "tools": [
    "Claude Code",
    "m2c",
    "decomp-permuter"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": "3 weeks",
  "cost": null,
  "license": null,
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Chris Lewis",
    "url": null
  },
  "sources": {
    "repository": "https://github.com/cdlewis/snowboardkids2-decomp",
    "writeup": "https://blog.chrislewis.au/the-unexpected-effectiveness-of-one-shot-decompilation-with-claude/",
    "discussions": [
      "https://news.ycombinator.com/item?id=46080498",
      "https://blog.chrislewis.au/snowboard-kids-2-is-100-decompiled/",
      "https://blog.chrislewis.au/snowboard-kids-2-is-recompiled/"
    ],
    "all": [
      "https://github.com/cdlewis/snowboardkids2-decomp",
      "https://blog.chrislewis.au/the-unexpected-effectiveness-of-one-shot-decompilation-with-claude/",
      "https://news.ycombinator.com/item?id=46080498",
      "https://blog.chrislewis.au/snowboard-kids-2-is-100-decompiled/",
      "https://blog.chrislewis.au/snowboard-kids-2-is-recompiled/"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/snowboard-kids-2-decomp.webp",
    "credit": "blog.chrislewis.au"
  },
  "commit_history": {
    "commits": 7575,
    "ai_commits": 4732,
    "ai_days": 146,
    "first_ai_commit": "2025-11-20",
    "last_ai_commit": "2026-05-21",
    "credited_models": [
      {
        "name": "Claude Opus 4.5",
        "commits": 2075
      },
      {
        "name": "Claude (version not given)",
        "commits": 1350
      },
      {
        "name": "Claude Sonnet 4.5",
        "commits": 620
      },
      {
        "name": "Claude Opus 4.6",
        "commits": 386
      }
    ]
  },
  "added_at": "2026-10-13T00:00:19+00:00",
  "updated_at": "2026-10-13T00:00:19+00:00",
  "sources_reviewed_at": "2026-10-13T00:00:19+00:00",
  "reviewed_by": "editor",
  "human_notes": "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.",
  "reproduce": null,
  "body_md": "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.\n\n## The loop\n\nA 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.\n\n## What it matched\n\nOpus 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.",
  "ai_use_excerpts": null
}
