0xreversed/with.ai
Games and modsPartialSource available
Target: Shadow of the Colossus (PS2, NTSC-U)

Started a matching decompilation of Shadow of the Colossus with Claude Code and Codex

Shadow of the Colossus (PS2, NTSC-U): A PS2 classic partly rebuilt from matching C.
Image: GitHub (TheRealestNwah/sotc-decomp)

What was done

TheRealestNwah splits the PS2 game and its custom .XFF modules with splat, then uses Claude Code and Codex to match functions. The loader rebuilds byte for byte and thousands of module functions match.

TheRealestNwah is decompiling Shadow of the Colossus (PS2, NTSC-U) with the goal of C source that rebuilds the original program byte for byte and later a native PC port. The README states the project is developed with Claude Code and OpenAI Codex, which contribute code, tests and documentation under the maintainer's direction.

How it was done

The loader executable splits with splat into 1,038 functions and rebuilds exactly. The game code lives in .XFF modules in a custom format that the project reverse engineered, then split into assembly that reassembles with every section and about 70,000 relocations matching. The compiler was identified as Sony ee-gcc 2.96 at -O2. Functions are then matched one at a time, with C in the source tree compiled and spliced into the modules while the full build still matches.

Results

The README reports 2,873 functions compiled from matching C: 1,563 in GAMECORE, 944 in MANAGER and 366 in KERNEL. Examples include the sword beam, weak-point glow, collision reaction and sound volume code. Rebuilding the .XFF files themselves byte for byte and the PC port remain future work. The repository holds no game binaries or assets, so you dump your own disc.