Reverse Engineer Anything: Build Apps with AI Agents - Guías

Reverse Engineer Anything: Build Apps with AI Agents

Learn how to reverse engineer anything and build apps using REA's CLI and MCP workflows, agent integrations, and evidence-backed analysis.

2026-10-18
reverse engineer anything Wiki Team
Quick Guide
  • Reverse engineer anything (REA) is an open-source toolkit connecting AI coding agents to analysis tools via CLI + MCP Server.
  • Dual interfaces: terminal-first CLI for humans, MCP Server for agents like Claude, Cursor, and Gemini CLI.
  • Local-first analysis: evidence chains and reproducible investigations keep everything on your machine.
  • Build apps from your findings by turning confirmed behavior into reconstruction specs.
  • Safety first: REA analyzes structure and evidence, not recovering original source code.

What Is Reverse Engineer Anything?

Reverse engineer anything (REA) is an open-source reverse engineering toolkit built for AI coding agents. It exposes two interfaces — a CLI for terminal workflows and an MCP Server that agents connect to directly — letting tools like Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin inspect apps, websites, JavaScript, Electron packages, and native binaries.

The project emphasizes three principles that distinguish it from naive "decompile and copy" approaches:

Local Analysis

  • Runs on your machine
  • No target uploads to cloud services
  • Full control over data and evidence

Evidence Chains

  • Every conclusion links to artifacts
  • Addresses, traces, and hashes recorded
  • Reduces AI guessing

Reproducibility

  • Investigations can be re-run
  • Reports include tool inputs and outputs
  • Others can verify findings

The official site reports roughly 129K+ GitHub stars, 6+ agent integrations, and 20+ locales, making REA one of the most widely adopted AI-assisted analysis toolkits available in 2026.

Know the Boundary

REA documents application structure, behavior, and logic through evidence. It is designed for legitimate research, interoperability, and reconstruction learning — not for bypassing licensing or copying proprietary software.

From Analysis to App: The Build Workflow

The core value of REA is the pipeline from reverse engineer → understand → rebuild. Official showcases demonstrate this with Chrome Dino (recovering speed-growth rules and maximum-velocity parameters to rebuild an adjustable version) and Windows Calculator (documenting percent-key behavior differences between addition and multiplication contexts).

1

Set Up Your Environment

Run the quick-start installer: npx rea-agents@latest setup. This initializes the CLI, checks Node.js and dependencies, and prepares agent configuration. Use rea doctor to diagnose missing tools or path problems.

2

Connect Your Agent

Register the MCP Server in your agent's configuration (stdio transport for local setups). Claude Code uses skills; Cursor uses project-level MCP JSON. Confirm tools appear in the host before proceeding.

3

Profile the Target

Start non-invasively: file type, architecture, hashes, symbols, imports, and strings. Build a baseline target profile before deeper analysis. Preserve the original file read-only.

4

Ask Focused Questions

Use narrow requests — list symbols, find string references, trace cross-references, decompile a specific function. Focused queries produce context the agent can validate rather than guess.

5

Validate and Rebuild

Recheck key conclusions in the disassembler or debugger, record evidence, then use confirmed behavior as a spec to build your own app implementation.

Isolate Unknown Binaries

Analyze unknown executables in a disposable VM or container with network access disabled. Record SHA-256 hashes before and after analysis to verify the target was never modified.

CLI and MCP Command Reference

REA exposes commands such as analyze, inspect, search, function, xrefs, and trace, alongside standard analysis tools that compose well in agent workflows.

CommandPurposeExample Output
rea setupInitialize CLI and agent configsInstalled toolchain, agent check results
rea doctorDiagnose environment issuesMissing dependency reports, path errors
file <target>Identify format and architectureELF / PE / Mach-O classification
sha256sum <target>Preserve evidence baselineDigest for integrity verification
strings -a -n 6 <target>Discover readable stringsPaths, URLs, error messages
objdump -d -M intel <target>Quick disassemblyAssembly text for executable sections
gdb -q <target>Dynamic analysisBreakpoints, registers, memory inspection
CLI vs MCP

Use the CLI when you drive the investigation yourself. Use the MCP Server when an AI agent selects tools, passes structured context (addresses, architectures, prior findings), and returns evidence-backed summaries for your review.

Targets and Tooling Compared

REA handles multiple target classes, each requiring different analysis approaches:

Target TypeKey Analysis ObjectsPrimary Methods
Native binariesFunctions, symbols, xrefs, disassemblyDecompiler, cross-references, debugger
Electron appsASAR files, main/preload/renderer processespackage.json, entry points, IPC tracing
JavaScriptBundles, source maps, call graphsStatic search, runtime observation
WebsitesRuntime behavior, network callsBrowser runtime inspection
Android APKsManifest, dex, resourcesUnpacking, decompilation

A practical tool tier list for AI-assisted work:

TierToolsStrength
SGhidra, GDBIntegrated static analysis + runtime validation
ALLVM toolchain, GNU binutilsAutomation building blocks, fast triage
BCustom Python scripts, AI analysisTask-specific extraction, explanation
Best Pairing

Combine Ghidra for broad static mapping with GDB for runtime validation, then let the agent summarize and organize evidence between the two stages.

Investigation Checklist

Evidence-Backed Investigation:

  • Isolate the target in a VM or container
  • Record file type, size, and SHA-256 hash
  • Build a static profile: symbols, strings, imports
  • Trace cross-references for the behavior in question
  • Validate hypotheses dynamically with breakpoints
  • Separate confirmed facts from open questions in the report
  • Rebuild the feature from the documented spec

FAQ

Q: Does REA recover the original source code of an app?

No. REA documents structure, behavior, and logic through evidence chains so you can understand and rebuild functionality yourself. It is not designed to reproduce original source code.

Q: Which AI coding agents work with reverse engineer anything?

REA integrates with Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin through its MCP Server, plus any terminal agent through the CLI workflow.

Q: How do I start with REA?

Run `npx rea-agents@latest setup`, then use `rea doctor` to verify your environment. Register the MCP Server in your agent's configuration to connect an AI coding agent.

Q: How do I stop the agent from hallucinating findings?

Use narrow tool-backed requests, require every conclusion to cite addresses or traces, and recheck important results in the disassembler or debugger before treating them as confirmed.

Related Articles