decomp
A general-purpose, ROM-agnostic N64 decompilation agent using Claude to iteratively refine C code until it matches target assembly.
0 projects
About decomp
decomp is an automated agent designed for Nintendo 64 (N64) reverse engineering. It orchestrates a loop using Claude models to read MIPS assembly and iteratively author candidate C code. The agent aims for "byte-for-byte" matching by wrapping standard community tools including `splat` for ROM splitting, `asm-differ` for instruction-level comparison, and `m2c` for initial assembly-to-C translation. It operates within existing N64 decompilation project structures (such as those for *Super Mario 64* or *The Legend of Zelda*) and requires the IDO compiler (via `ido-static-recomp`) to verify matches. The tool includes a CLI for manual discovery of unmatched functions and automated decompilation via a `/loop` command. Additionally, it provides a "Verifiers v1" environment for historical single-function reinforcement learning (RL) and episode logging for future model training.
Summarised from the official page linked above.