<!-- Canonical page: https://reversedwithai.com/p/gta-san-andreas-reagent -->
Canonical page: https://reversedwithai.com/p/gta-san-andreas-reagent

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

> A reverser LLM, a checker LLM and Ghidra evidence gates, used on San Andreas.

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.

## Key facts

- Target: Grand Theft Auto: San Andreas
- Category: Games and mods
- Platform: Windows, POSIX
- Models: Claude, Codex, GPT-5.4
- Tools: Ghidra
- Outcome: Research
- License: MIT
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: [Dryxio](https://www.youtube.com/@dryxiogta)
- Added: 2026-10-14
- Updated: 2026-10-14
- Sources reviewed: 2026-10-14 (editor)

## What was done

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](https://raw.githubusercontent.com/dryxio/reagent/HEAD/README.md)

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

## Human work and limitations

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 the commit history shows

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

Measured by this site from public git history.

## Sources

- [Repository](https://github.com/Dryxio/reagent)
- [Write-up](https://www.youtube.com/watch?v=zBQJYMKmwAs)
- [Discussion](https://news.ycombinator.com/item?id=47595048)
- [Discussion](https://github.com/Dryxio/plugin-sdk-sa)

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: Dryxio (2026). Reverse engineering GTA San Andreas with autonomous LLM agents (ReAgent). Reversed with AI. https://reversedwithai.com/p/gta-san-andreas-reagent
