<!-- Canonical page: https://reversedwithai.com/p/colin-mcrae-rally-2-decomp-claude-codex -->
Canonical page: https://reversedwithai.com/p/colin-mcrae-rally-2-decomp-claude-codex

# Rebuilt every function of Colin McRae Rally 2.0 as C++ with Claude and Codex agents

> Every function of a 2000 rally game rebuilt in C++.

pablocpas used Claude and Codex agents to write C++ for every function in the Colin McRae Rally 2.0 PC executable, most of it byte-identical, and the rebuilt game is mostly playable.

## Key facts

- Target: Colin McRae Rally 2.0 (PC, 2000)
- Category: Games and mods
- Platform: Windows (Win32)
- Models: Claude, Codex
- Tools: reccmp, Unicorn, Wine, Visual C++ 6.0
- Outcome: Partial
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: [pablocpas](https://github.com/pablocpas)
- Added: 2026-10-15
- Updated: 2026-10-15
- Sources reviewed: 2026-10-15 (editor)

## What was done

pablocpas is rebuilding Colin McRae Rally 2.0 (PC, Win32) as C++ source that the original Visual C++ 6.0 compiler turns into the same code. The README says most of the source, tooling and documentation was written by AI coding agents, Anthropic's Claude and OpenAI's Codex, under human direction, with correctness resting on automated byte comparison and differential tests, not line-by-line review.

## Checking the output

Every function is compared byte for byte with the original executable using reccmp, and a byte audit after relocation is the authoritative measure. Differential tests run original and rebuilt code side by side under Unicorn with the same inputs and compare memory and calls. A matching loop script compiles one translation unit, diffs it and checks the whole unit in about a second, and a CLAUDE.md file records the fixes that worked. The project also tries semantics-preserving renames of local variables, because the old compiler breaks stack-slot ties by name.

## Where it stands

The README, which has no date, reports C++ source for all 3,364 game functions identified in the executable. Most compile to byte-identical code, and the rest differ mainly in instruction scheduling and register allocation; live progress is on decomp.dev. The rebuilt executable boots, runs the menus and drives rallies on the original game data under Wine on Linux, with some bugs, so it is playable for the most part. Next goals are finishing the matches, an SDL3 port and optional modern upgrades. No game data is included.

You need your own copy of the game and its original CMR2.exe, the Visual C++ 6.0 compiler with the SP3 passes, and the SDK submodules. On Linux, scripts/setup_linux.sh sets up Wine, the compiler and a first build. scripts/match.py checks a single function. The code is GPL-3.0.

Sources:
- https://github.com/pablocpas/CMR2Decomp

## What the commit history shows

1,027 of 1,869 commits in the public repository credit an AI, over 34 days between 2026-09-20 and 2026-11-07. Credited: Claude Opus 5.5 (674), Claude (version not given) (133), Claude Opus 5 (85), deepseek-v4.1-flash (63).

Measured by this site from public git history.

## Questions about Colin McRae Rally 2.0 (PC, 2000)

### What is the Colin McRae Rally 2.0 (PC, 2000) project?

pablocpas used Claude and Codex agents to write C++ for every function in the Colin McRae Rally 2.0 PC executable, most of it byte-identical, and the rebuilt game is mostly playable. It is listed under Games and mods for Windows (Win32).

### Which AI model was used on Colin McRae Rally 2.0 (PC, 2000)?

The entry names Claude and Codex. The tools named alongside are reccmp, Unicorn, Wine and Visual C++ 6.0.

### Did the AI reverse engineering of Colin McRae Rally 2.0 (PC, 2000) work?

Its author reports that it partly works. Checks recorded: source available yes, repro steps yes.

### Is the source code for Colin McRae Rally 2.0 (PC, 2000) available?

Yes. The code, patches or tooling are public: https://github.com/pablocpas/CMR2Decomp. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/pablocpas/CMR2Decomp)

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: pablocpas (2026). Rebuilt every function of Colin McRae Rally 2.0 as C++ with Claude and Codex agents. Reversed with AI. https://reversedwithai.com/p/colin-mcrae-rally-2-decomp-claude-codex
