{
  "api_version": "1.0.0",
  "slug": "psxrecomp-tomba",
  "url": "https://reversedwithai.com/p/psxrecomp-tomba",
  "markdown_url": "https://reversedwithai.com/p/psxrecomp-tomba.md",
  "json_url": "https://reversedwithai.com/p/psxrecomp-tomba.json",
  "title": "Built a PS1 static recompiler with no prior experience and got Tomba! playable",
  "tagline": "No prior experience, three weeks, and a PS1 game running as native code.",
  "summary": "Claude Code, grounded by Ghidra and an emulator MCP server, built psxrecomp; the project now runs Tomba!, Tomba! 2, Ape Escape and Mega Man X4 to X6 natively.",
  "target": {
    "name": "Tomba! (PlayStation)",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "PlayStation",
  "models": [
    "Claude Sonnet 4.6"
  ],
  "tools": [
    "Claude Code",
    "Ghidra",
    "GhidraMCP",
    "PCSX-Redux"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": "About 3 weeks for the prototype",
  "cost": null,
  "license": "PolyForm Noncommercial 1.0.0",
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Matthew Stanley",
    "url": null
  },
  "sources": {
    "repository": "https://github.com/mstan/psxrecomp",
    "writeup": "https://1379.tech/i-built-a-ps1-static-recompiler-with-no-prior-experience-and-claude-code/",
    "discussions": [],
    "all": [
      "https://github.com/mstan/psxrecomp",
      "https://1379.tech/i-built-a-ps1-static-recompiler-with-no-prior-experience-and-claude-code/"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/psxrecomp-tomba.webp",
    "credit": "1379.tech"
  },
  "commit_history": {
    "commits": 3861,
    "ai_commits": 1685,
    "ai_days": 151,
    "first_ai_commit": "2026-04-11",
    "last_ai_commit": "2026-11-07",
    "credited_models": [
      {
        "name": "Claude Opus 5.5",
        "commits": 733
      },
      {
        "name": "Claude Opus 4.8",
        "commits": 353
      },
      {
        "name": "Claude Fable 5",
        "commits": 200
      },
      {
        "name": "Claude Opus 5",
        "commits": 144
      }
    ]
  },
  "added_at": "2026-10-13T00:00:18+00:00",
  "updated_at": "2026-10-13T00:00:18+00:00",
  "sources_reviewed_at": "2026-10-13T00:00:18+00:00",
  "reviewed_by": "editor",
  "human_notes": "Without Ghidra as ground truth, Claude speculated and burned tokens, so Stanley added rules forcing Ghidra checks and banning edits to generated code. He played the game, reported bugs and verified each fix. At the time of the write-up, sound and saving were still broken.",
  "reproduce": null,
  "body_md": "Matthew Stanley had no background in compilers or MIPS assembly. In about three weeks Stanley used Claude Code (Claude Sonnet 4.6) with Ghidra and the PCSX-Redux emulator to build psxrecomp, a static recompiler that turns a PlayStation disc into a native PC program. Tomba! was the first game to boot and play.\n\nStanley first had Claude analyse the ISO without Ghidra. That burned many tokens and produced only a rough title screen. On friends' advice Stanley added Ghidra through GhidraMCP as the source of truth, with a CLAUDE.md rule that every implementation decision be checked against it. A second rule said Claude could never edit generated code, only the recompiler's inputs. Stanley added input replay, fast-forward, screenshot capture and RAM and VRAM logging, which let Claude work alone for 60 to 90 minutes at a time. Claude also built a Lua-based MCP server inside PCSX-Redux to check hardware behaviour, though that link often needed manual help. In the main loop, Stanley played the game, reported bugs, let Claude fix them and verified each fix personally.\n\nAt the time of the write-up, Tomba! booted, played its intro, started a new game, and supported movement, combat, menus and quests. Softlocks, sound timing problems and broken saving remained. Stanley regularly hit the limits of the $100 a month Claude plan. psxrecomp has since joined RetroPortingToolkit and now runs Tomba!, Tomba! 2, Ape Escape and Mega Man X4 to X6.",
  "ai_use_excerpts": null
}
