{
  "api_version": "1.0.0",
  "slug": "gran-turismo-4-decomp-claude",
  "url": "https://reversedwithai.com/p/gran-turismo-4-decomp-claude",
  "markdown_url": "https://reversedwithai.com/p/gran-turismo-4-decomp-claude.md",
  "json_url": "https://reversedwithai.com/p/gran-turismo-4-decomp-claude.json",
  "title": "Matched 98% of Gran Turismo 4's functions to the original PS2 compiler, using Claude",
  "tagline": "A PS2 racing engine matched function by function.",
  "summary": "Gustavo Canepa runs Claude agents against objdiff and a link check to match PS2 Gran Turismo 4 functions byte for byte, and reuses the work for Tourist Trophy and Gran Turismo 3.",
  "target": {
    "name": "Gran Turismo 4 (PS2)",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "PlayStation 2",
  "models": [
    "Claude"
  ],
  "tools": [
    "splat",
    "objdiff",
    "m2c"
  ],
  "outcome": "partial",
  "outcome_label": "Partial",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": "MIT",
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Gustavo Canepa",
    "url": "https://github.com/gustavocanepa"
  },
  "sources": {
    "repository": "https://github.com/gustavocanepa/gt4-decomp",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/gustavocanepa/gt4-decomp"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/gran-turismo-4-decomp-claude.webp",
    "credit": "Image: GitHub (gustavocanepa/gt4-decomp)"
  },
  "commit_history": {
    "commits": 808,
    "ai_commits": 639,
    "ai_days": 36,
    "first_ai_commit": "2026-10-06",
    "last_ai_commit": "2026-11-16",
    "credited_models": [
      {
        "name": "Claude Opus 5.5",
        "commits": 472
      },
      {
        "name": "Claude Sonnet 5.5",
        "commits": 167
      }
    ]
  },
  "added_at": "2026-10-15T04:13:19.169653+00:00",
  "updated_at": "2026-10-15T04:13:19.169653+00:00",
  "sources_reviewed_at": "2026-10-15T04:13:19.169653+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "Gustavo Canepa is rebuilding the engine of Gran Turismo 4 (PS2) as C++ that the original compiler turns into the same instructions as the game, with Claude agents doing most of the matching. The README's progress block for November 2026 reports 30,245 of 30,875 functions matching (98.0 percent, 98.0%), 89.6 percent of the code bytes, with 87.4 percent of the sources clean, meaning free of decompiler macros and raw casts. The full build still reproduces the original executable by SHA-1. The repository holds no game data.\n\nHe first identified the compiler, Sony's ee-gcc 2.96 at -O2. A pilot matched 13 of 20 random functions by hand. After that, Claude agents drive the project's tools, and every match is checked by the compiler and a judge script, not by eye. About 14% of functions are exact copies of another, so one match settles a group. The same tools were reused for Tourist Trophy and Gran Turismo 3. The separate GT4 Native project is experimental and not playable.\n\nYou need your own copy of the game (NTSC-U, SCUS-97328 v1.01), Python 3.11 or newer with rabbitizer, and Linux or WSL (Ubuntu). Place your disc image as orig/README.md describes, run tools/setup_linux.sh and tools/splat.sh, build the function list with tools/find_functions.py, then python tools/build.py. SETUP.md walks through a fresh machine.\n\nSources:\n- https://github.com/gustavocanepa/gt4-decomp",
  "ai_use_excerpts": null
}
