Auto RE Agent

Reconstruct and conservatively validate C/C++ functions from binaries with Ghidra evidence and LLMs.

Source repo
Dryxio/reagent
Stars
★ 2.4k
Last updated
2mo ago
License
MIT
Primary language
Python

At a glance

How it runs
CLI
Works with
Universal · cross-platformCodex · Claude Code · OpenAI API · Claude API
Cost
Free software; you pay for model usage
Setup effort
High · needs real infrastructure
You'll need
Python 3.10+GitGhidraghidra-ai-bridgeShell / CLINetwork accessLocal filesystem
Typical use
A reverse engineer maintaining a legacy C++ codebase who needs to reconstruct one function at a known binary address using exported Ghidra evidence.
Not a fit if
  • Teams that cannot install Ghidra and the local bridge
  • Users who want the original source tree patched automatically
  • Anyone needing a formal proof of binary equivalence
Maintenance
Commits in the last 6 monthslast commit 2026-09-09latest release v0.4.0 (2026-09-09)+1.9 ★/day over 7 days
Source review
70/100 · Some gaps

What does this agent do, and when should you use it?

Auto RE Agent is an open-source tool for reconstructing C/C++ functions from compiled binaries. It consumes Ghidra evidence through ghidra-ai-bridge and runs bounded reverser/checker review loops over decompilation, references, types, control flow, and assembly context. Generated implementations are written to reports and candidate overlays rather than directly changing the original source tree. Optional validation copies the target project to a temporary location, replaces the matching candidate body there, and runs configured build, test, and runtime gates. Its CLI includes init, reverse, parity, status, and estimate commands, with support for Claude API, Claude CLI, OpenAI-compatible APIs, and Codex CLI. The checks provide conservative evidence, not a formal proof that generated source is semantically equivalent to a binary.

With re-agent reverse --address ADDR or re-agent reverse --class CLASS, the tool selects functions according to configuration and obtains available evidence from ghidra-ai-bridge, including decompile, xrefs_from, xrefs_to, struct, enum, vtable, global, strings, context, normalized pcode, and cfg. A reverser produces candidate C/C++ code, while a checker reviews it through bounded repair and investigation rounds. Each round invokes an objective structural verifier against decompile, assembly, CFG, and normalized high P-code evidence, then evaluates 11 built-in parity signals. It writes final code to reports/re-agent/code/ and candidates to overlays; when validation is enabled, it copies the project, replaces the matching body, and executes configured build_commands, test_commands, and runtime commands. Outputs also include per-round logs, re-agent-progress.json, and reports/re-agent/knowledge-graph.json.

  1. A reverse engineer maintaining a legacy C++ codebase who needs to reconstruct one function at a known binary address using exported Ghidra evidence.
  2. A team recovering methods from a large class that wants a bounded, dependency-ordered batch through re-agent reverse --class CTrain --max-functions 10.
  3. A project maintainer with reliable build and test commands who wants to validate a candidate implementation in a temporary copy without overwriting source files.
  4. An analyst reviewing existing recovered source who wants to run re-agent parity --filter REGEX or source-only checks with --skip-ghidra.
  5. A reverse-engineering project that needs function-level run history, model logs, and an evidence graph alongside generated implementations.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Environment variables
ANTHROPIC_API_KEY RE_AGENT_LLM_API_KEY OPENAI_API_KEY
Config files
re-agent.yaml
Runtime
Python 3.10+

How do you install or deploy this agent?

Requires Python 3.10+, Git, Ghidra, a configured ghidra-ai-bridge, and at least one LLM setup. Install the agent and bridge:

python3 -m pip install --upgrade "auto-re-agent[ghidra-bridge]>=0.2.0"

For headless Ghidra exports:

python3 -m pip install --upgrade "auto-re-agent[headless]>=0.2.0"

From the target project, run:

ghidra-bridge init
ghidra-bridge export all
ghidra-bridge info

Claude API requires ANTHROPIC_API_KEY or RE_AGENT_LLM_API_KEY. OpenAI-compatible APIs require OPENAI_API_KEY or RE_AGENT_LLM_API_KEY. Claude CLI and Codex CLI require an authenticated local command.

How do you use this agent?

In the target project, start with re-agent init --profile generic-cpp and edit re-agent.yaml. At minimum, configure llm, backend.cli_path, source_root, and validation. One supported example uses llm.provider: codex, llm.model: gpt-5.4, backend.type: ghidra-bridge, and backend.cli_path: ghidra-bridge. Run re-agent reverse --address 0x401000 for an initial function, or re-agent reverse --class CTrain --max-functions 10 for a bounded class batch; use re-agent status to inspect progress. For strict candidate validation, configure build_commands, test_commands, require_build, require_tests, and require_verified, then set trust_configured_commands: true only after confirming the project-owned shell commands are meaningful gates.

What are this agent's strengths and limitations?

Pros
  • Builds an evidence bundle from Ghidra decompilation, references, types, control flow, assembly, and normalized P-code instead of relying on a decompiler snippet alone.
  • Combines independent reverser and checker roles with structural verification, configured build/test gates, and parity signals in a bounded workflow.
  • Uses candidate overlays and can validate in a temporary project copy, avoiding automatic replacement of the original source tree.
  • Supports Claude API, Claude CLI, OpenAI-compatible APIs, and Codex CLI; the reverser and checker may use different provider or model configurations.
Limitations
  • The complete binary-backed workflow depends on local Ghidra, ghidra-ai-bridge, and correctly configured projects and exports.
  • Validation commands are arbitrary project-owned shell commands; the tool cannot establish from their text that they validate a candidate, so they require explicit trust_configured_commands attestation.
  • Structural and parity checks are not formal semantic or binary-equivalence proofs, and insufficient evidence can yield UNKNOWN.
  • Cost and run time depend on selected models, evidence volume, and target complexity; review rounds, investigations, and attempts per function must be managed in configuration.

How does this agent compare with similar options?

Compared with a traditional decompiler, Ghidra continues to perform disassembly, decompilation, and program analysis, while Auto RE Agent orchestrates evidence collection, candidate implementation, review, validation, and reporting. Compared with an interactive Ghidra AI or MCP assistant, it uses a bounded reverser/checker pipeline and persistent reports rather than an analyst-led conversational workflow.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Auto RE Agent This agent 70 · Some gaps CLIFree + model costs ★ 2.4k 2mo ago Python Codex · Claude Code · OpenAI API · Claude API
REA: Reverse Engineer Anything with Agents 84 · Good CLIFree ★ 455k today TypeScript Codex · Claude Code · Claude.ai
REA Reverse Engineering Workbench 55 · Major gaps CLIFree ★ 99 25d ago HTML Codex · Claude Code
Eleven Reverse Engineering Workbench 63 · Some gaps Desktop appFree ★ 990 12d ago TypeScript Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
70/ 100 5-point scale 3.5 / 5
Trust 14/29
Reliability 9/14
Adaptability 15/18
Convention 15/18
Effectiveness 10/13
Verifiability 7/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

The docs say generated code goes to reports and candidate overlays, describe optional isolated copies and cleanup, bound rounds and investigations, and disclose that configured commands may access external paths. This supports partial credit for limited scope, visible effects, and recovery paths. Deductions: the workflow can incur model costs and run arbitrary project-configured build/test commands; confirmation is mostly configuration and setup guidance, with no demonstrated secret protection or dependency vulnerability process. An author name is present, but maintenance ownership and update responsibility are unclear.

Reliability9 / 14 · 3.2/5

README, configuration docs, and CLI are broadly consistent on Python versions, providers, validation policy, and commands. The docs describe UNKNOWN and RED/YELLOW outcomes and handling for malformed input and session corruption, supporting ordinary-use reliability. Deductions: capabilities depend on an external Ghidra bridge and local tools, while package dependencies have lower bounds but no lockfile or security review evidence in the packet. The CLI shows general error reporting, but the sample does not establish clarity across all failure paths.

Adaptability15 / 18 · 4.2/5

The project targets C/C++ reverse engineering and documents generic, Windows x64, and project-specific profiles, multiple LLM providers, Ghidra exports, manifests, source-only parity checks, and cross-platform argument arrays. It clearly states that it complements Ghidra and does not prove semantic equivalence. Deductions: trigger and autonomous workflow boundaries are chiefly documented; practical use depends on a local Ghidra project, bridge, provider authentication, and project-specific validation commands.

Convention15 / 18 · 4.2/5

README, getting-started, configuration, CLI reference, FAQ, safety limitations, and migration/changelog guidance form a clear information structure. Installation steps are concrete, the MIT license text is complete, and a version is visible. Deductions: ReAgent, re-agent, and auto-re-agent are used interchangeably, which slightly weakens naming stability. Publisher identity is unknown, and the packet does not clearly assign maintenance responsibility or promise support.

Effectiveness10 / 13 · 3.8/5

The tool presents per-function candidate code, reports, call logs, session progress, an evidence graph, and manifest status. It combines checker review, structural verification, build/test gates, and parity signals into a useful project workflow. Deductions: the docs explicitly say these checks do not prove equivalence, and outcomes depend on available evidence and project commands. Model costs vary with provider, evidence volume, and target complexity; limits help, but users still need to manage spend.

Verifiability7 / 8 · 4.4/5

The README gives concrete descriptions of checks, acceptance conditions, parity signals, costs, and limitations; configuration docs add command-trust rules, UNKNOWN handling, and the scope of differential observations. The materials distinguish documented behavior from a formal proof claim. Deductions: most product claims come from README and configuration text, while the sampled source only shows CLI argument parsing and does not independently establish the workflow implementation; cross-source corroboration is therefore partial.

Risks and how to mitigate them
  • Configured build, test, and runtime commands are project-owned and can perform arbitrary actions; the docs say an isolated copy is not an OS sandbox. Run only trusted commands and review their external access.
  • LLM prompts, responses, and evidence are written to run logs. Check that the target program, source context, and logs do not contain sensitive material that should not be sent or retained.
  • Checker review, structural checks, build/tests, and parity signals provide limited evidence; they do not prove semantic equivalence to the binary.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision d12cea338c61
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/auto-re-agent.svg)](https://followagents.com/en/agents/auto-re-agent)
<a href="https://followagents.com/en/agents/auto-re-agent"><img src="https://followagents.com/badge/auto-re-agent.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.4.0 auto-re-agent v0.4.0
    Release notes excerpt
    Windows validation and migration Build, test, and runtime gates now accept argument arrays that execute directly on Windows and POSIX. This addresses [#11](https://github.com/Dryxio/reagent/issues/11) without requiring /bin/sh for native Windows validation. Upgrade with: ```console python -m pip install --upgrade "auto-re-agent>=0.4.0" ``` On native Windows, convert string commands to arrays. For example, from a Visual Studio Developer Command Prompt with cl available: ```yaml validation: build_commands: …
    View on GitHub ↗
  2. v0.3.0 auto-re-agent v0.3.0
    Release notes excerpt
    What changed Candidate compilation, tests, runtime checks, differential comparisons and semantic parity rules now run inside the repair loop. Failures and counterexamples feed the next attempt instead of rejecting an otherwise repairable candidate after the last model review. - Evidence: direct ghidra-json export reader, repaired legacy struct/xref/symbol parsing, shared checker evidence and bounded valid JSON. - Source identity: optional Clang compilation-database indexing, overload refusal and safer function-body replacement. …
    View on GitHub ↗
  3. v0.2.1 auto-re-agent v0.2.1
    Release notes excerpt
    What's Changed * Fix/windows overlay filename sanitize by @HorvathAlteisen in https://github.com/Dryxio/auto-re-agent/pull/6 New Contributors * @HorvathAlteisen made their first contribution in https://github.com/Dryxio/auto-re-agent/pull/6 Full Changelog: https://github.com/Dryxio/auto-re-agent/compare/v0.2.0...v0.2.1
    View on GitHub ↗

FAQ

Does it modify or commit the original source tree?
No. Generated implementations go to reports and candidate overlays; isolated validation runs against a temporary project copy.
Can it work without Ghidra?
The full binary-backed reversal workflow currently uses Ghidra through ghidra-ai-bridge. Existing source can be examined with re-agent parity --skip-ghidra, but that mode has less evidence.
Which model connection options are supported?
It supports Claude API, an authenticated local Claude CLI, OpenAI-compatible APIs, and an authenticated local Codex CLI. Reverser and checker roles may use different configurations.
Does a passing build or test prove the reconstruction is correct?
No. Acceptance also depends on checker, structural-verifier, validation-policy, and parity-policy results, and none of those checks is a proof of equivalence.
Is Auto RE Agent free?
The software is free, but Auto RE Agent calls an AI model, and you pay that model provider for usage (or run a local model).
Is Auto RE Agent open source?
Yes. The source code is on GitHub (Dryxio/reagent) under the MIT licence.
Is Auto RE Agent safe to use?
FollowAgents' FARS review (Nov 08, 2026) scored Auto RE Agent 14/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is Auto RE Agent still maintained?
Development has slowed: the latest commit on GitHub is from 2026-09-09, within the last six months but not the last 30 days. The latest release is v0.4.0 (2026-09-09).
Who makes Auto RE Agent?
Auto RE Agent is published on GitHub by the account Dryxio. FollowAgents has not verified which person or company is behind that account.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.