Grand Theft Auto: San Andreas · Research · Source available

Reverse engineering GTA San Andreas with autonomous LLM agents (ReAgent)

Can I play it?
Research
Original game
PC
Runs on
Windows, POSIX
You need
Your own copy of the game. I never link game files.
What it is
Decompilation
View JSON

Who did what

None of the 40 commits credits an AI. Many tools add no credit, so this does not show the AI was not used.

Counted from the public git history on 16 Nov 2026. How

The maintainers say LLM output is never accepted as proof: every candidate finding is checked against decompiled code and assembly before it enters the reversed source.

What was done

ReAgent is an open-source tool that pairs Ghidra with LLMs such as Claude and Codex to reconstruct C/C++ functions. It gathers evidence, checks structure and tests parity automatically.

ReAgent is an open-source reverse-engineering agent that connects Ghidra to LLMs, including Claude, Codex and OpenAI-compatible models, to reconstruct and validate C/C++ functions from compiled binaries. A reverser model and a separate checker model do the work, and build and test gates decide whether a candidate counts as matching. It works from bounded function manifests, gathers evidence and reports coverage and validation results. Gaps in the evidence stay visible, and it keeps running when the Ghidra bridge lacks a capability. Source

ReAgent 0.4.0 is on PyPI as auto-re-agent. It writes candidate C or C++ for functions in a binary for a person to review; the README says the tool does not patch source trees. You set the validation commands, such as build and test scripts, and the agent treats them as acceptance evidence only when you mark them trusted. A candidate passes only if the LLM checker returns PASS, a structural verifier finds no strong mismatch, the configured build and test gates pass, and the parity check is not blocked. The README calls this conservative verification, not proof of equivalence.

You need Python 3.10 or newer, Git, Ghidra with the Ghidra Bridge, and one LLM setup: a Claude or OpenAI-compatible API key, or a logged-in claude or codex command line. Install auto-re-agent[ghidra-bridge] with pip, run ghidra-bridge init and export, create a config with re-agent init (profiles include generic-cpp and gta-reversed), run re-agent doctor, then try re-agent reverse on one small function.

Sources:

  • https://github.com/Dryxio/reagent

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. Checked against the sources on 14 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week