# ReAgent

An open-source agent that uses Ghidra and LLMs such as Claude, Codex or OpenAI-compatible models to reconstruct and validate C/C++ functions from compiled binaries.

ReAgent is an open-source AI reverse-engineering agent that combines Ghidra with large language models, including Claude, Codex and OpenAI-compatible models, to reconstruct and validate C/C++ functions from compiled binaries. It runs independent reverser and checker models alongside agentic evidence gathering, candidate build-and-test gates, structural verification and parity analysis in one autonomous workflow.

The tool generates candidate C/C++ implementations rather than patching the original source tree automatically. A reversal is only accepted when four conditions hold: the LLM checker returns a pass, the objective verifier finds no strong structural mismatch, candidate validation satisfies the configured acceptance policy, and parity is not blocked by the configured red or yellow policy - conservative verification rather than proof of semantic equivalence.

A later release added build, test and runtime validation using argument arrays that run directly on Windows and POSIX, and a doctor command that reports a missing shell.

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