- 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.
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).
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.
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.
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.
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.
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.
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.
| Command | Purpose | Example Output |
|---|---|---|
rea setup | Initialize CLI and agent configs | Installed toolchain, agent check results |
rea doctor | Diagnose environment issues | Missing dependency reports, path errors |
file <target> | Identify format and architecture | ELF / PE / Mach-O classification |
sha256sum <target> | Preserve evidence baseline | Digest for integrity verification |
strings -a -n 6 <target> | Discover readable strings | Paths, URLs, error messages |
objdump -d -M intel <target> | Quick disassembly | Assembly text for executable sections |
gdb -q <target> | Dynamic analysis | Breakpoints, registers, memory inspection |
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 Type | Key Analysis Objects | Primary Methods |
|---|---|---|
| Native binaries | Functions, symbols, xrefs, disassembly | Decompiler, cross-references, debugger |
| Electron apps | ASAR files, main/preload/renderer processes | package.json, entry points, IPC tracing |
| JavaScript | Bundles, source maps, call graphs | Static search, runtime observation |
| Websites | Runtime behavior, network calls | Browser runtime inspection |
| Android APKs | Manifest, dex, resources | Unpacking, decompilation |
A practical tool tier list for AI-assisted work:
| Tier | Tools | Strength |
|---|---|---|
| S | Ghidra, GDB | Integrated static analysis + runtime validation |
| A | LLVM toolchain, GNU binutils | Automation building blocks, fast triage |
| B | Custom Python scripts, AI analysis | Task-specific extraction, explanation |
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.