<!-- Canonical page: https://reversedwithai.com/p/psxrecomp-tomba -->
Canonical page: https://reversedwithai.com/p/psxrecomp-tomba

# Built a PS1 static recompiler with no prior experience and got Tomba! playable

> No prior experience, three weeks, and a PS1 game running as native code.

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.

## Key facts

- Target: Tomba! (PlayStation)
- Category: Games and mods
- Platform: PlayStation
- Models: Claude Sonnet 4.6
- Tools: Claude Code, Ghidra, GhidraMCP, PCSX-Redux
- Outcome: Works
- Time spent (author-reported): About 3 weeks for the prototype
- License: PolyForm Noncommercial 1.0.0
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: Matthew Stanley
- Added: 2026-10-13
- Updated: 2026-10-13
- Sources reviewed: 2026-10-13 (editor)

## What was done

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.

Stanley 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.

At 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.

## Human work and limitations

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.

## What the commit history shows

1,685 of 3,861 commits in the public repository credit an AI, over 151 days between 2026-04-11 and 2026-11-07. Credited: Claude Opus 5.5 (733), Claude Opus 4.8 (353), Claude Fable 5 (200), Claude Opus 5 (144).

Measured by this site from public git history.

## Sources

- [Repository](https://github.com/mstan/psxrecomp)
- [Write-up](https://1379.tech/i-built-a-ps1-static-recompiler-with-no-prior-experience-and-claude-code/)

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: Matthew Stanley (2026). Built a PS1 static recompiler with no prior experience and got Tomba! playable. Reversed with AI. https://reversedwithai.com/p/psxrecomp-tomba
