- Reverse Engineer Anything (REA) is an open-source toolkit that lets AI coding agents inspect apps, websites, JavaScript, and native binaries.
- Dual interfaces: a local CLI for terminal users and an MCP server for agent tool calls.
- Evidence-first design: every investigation produces a reproducible chain of evidence, not guesses.
- Local analysis: work runs on your machine, with agent integrations including Claude, Cursor, Codex, and Gemini CLI.
- Quick start: initialize a project with
npx rea-agents@latest setup.
What Reverse Engineer Anything Actually Does
Reverse Engineer Anything, often shortened to REA, is an open-source reverse engineering toolkit built specifically for AI coding agents. Instead of trying to recover original source code or automate software cloning, REA focuses on three things the project treats as core: local analysis, an evidence chain, and a reproducible investigation process.
The project ships two interfaces. The CLI serves terminal users who want deterministic, scriptable commands such as analyze, inspect, search, function, xrefs, and trace. The MCP server exposes the same capabilities as typed tools that a coding agent can discover and call, which keeps the agent's access explicit and constrained rather than giving it a raw shell.
The official project on GitHub and the rea.tools website document supported targets and integrations. According to the official site's snapshot, the repository has accumulated roughly 129K+ stars, supports 6+ coding agent integrations, and offers 20+ locales.
| REA Capability | Interface | What It Produces |
|---|---|---|
| Target identification (format, architecture, hash) | CLI + MCP | Target profile with SHA-256 baseline |
| String and symbol discovery | CLI + MCP | Searchable inventories with offsets |
| Function and cross-reference analysis | CLI + MCP | Call relationships, candidate functions |
| Runtime observation | CLI-driven debugger workflows | Traces linked to instructions and inputs |
| Evidence recording | Both | Reproducible report with artifacts |
REA is designed for legitimate analysis of software you are authorized to investigate. The project emphasizes evidence and understanding, not copying or redistributing third-party software.
Supported Targets and Analysis Approaches
Different targets need different toolchains. REA's official showcases include Chrome Dino, Windows Calculator, Android APKs, Electron apps, and native programs, which illustrates the breadth of the target matrix.
| Target Type | Key Artifacts | Analysis Focus |
|---|---|---|
| Native binaries (ELF, PE, Mach-O) | Sections, symbols, imports | Disassembly, cross-references, call graphs |
| Electron apps | ASAR package, package.json | Main/Renderer/Preload processes, IPC flow |
| JavaScript / websites | Bundles, source maps | Entry points, runtime behavior |
| Android APKs | Manifest, DEX resources | Permissions, entry activities, logic |
| Browser runtimes | Live page state | DOM, network, runtime observations |
Static Analysis
- Symbol and section inventories
- String extraction with offsets
- Cross-reference tracing
- No target execution required
Dynamic Analysis
- Debugger-driven breakpoints
- Register and memory inspection
- Controlled execution traces
- Validates static hypotheses
Evidence Chain
- Hash-verified baselines
- Tool-call logs with inputs
- Separated facts vs. open questions
- Reproducible final reports
Before opening a debugger, always run file identification, hashing, and string extraction. A basic target profile frequently answers the first questions at zero risk.
Setup: From Install to First Analysis
REA bootstraps a project with a single command and a guided setup flow. The rea setup command handles installation planning, while rea doctor diagnoses missing dependencies, path errors, or Node.js issues.
Check prerequisites
Confirm Node.js and npm are installed and your operating system is supported. Run node --version before anything else so version mismatches surface early.
Initialize the project
Run npx rea-agents@latest setup. The setup wizard confirms the installation plan, detects agent configurations, and prepares the local workspace.
Diagnose the environment
Run rea doctor to check for missing dependencies, broken paths, or toolchain problems. Fix every reported issue before connecting an agent.
Connect your coding agent
Register the MCP server in your agent's configuration (Claude Desktop, Cursor, Codex, Gemini CLI, Windsurf, or Devin). Restart the host and confirm the REA tools appear.
Run a first investigation
Pick a benign target, ask the agent for a symbol or string search, then request a function summary. Export the context for human review.
For unknown binaries, use a disposable VM or container. Keep the original target read-only, record its SHA-256 hash, and separate reports from source files.
MCP Security and Permission Model
Because an MCP server mediates between an AI host and local analysis tools, boundaries matter. A well-configured REA setup enforces the same restrictions whether a request comes from an agent, a test harness, or a local script.
A typical permission policy looks like this:
| Resource | Recommended Policy |
|---|---|
| Target files | Read-only, restricted to approved analysis root |
| Output directory | Writable for reports and artifacts only |
| Process execution | Allowlisted disassembler/debugger commands |
| Network access | Disabled unless a workflow requires it |
| Subprocesses | Timeouts and output size limits |
| Logging | Tool name, input summary, timestamps, exit status |
Resolve paths before checking allowlists, and reject path traversal or symbolic-link escapes. Never grant the server unrestricted home-directory access.
Before Connecting an Agent:
- Restrict the server to an explicit analysis root
- Require confirmation before executing unknown binaries
- Keep credentials outside the server working directory
- Log every tool call with inputs and exit status
- Verify the target hash after analysis completes
Troubleshooting Common Issues
Most REA failures fall into a handful of categories. Use a symptom-first approach: reproduce the failure, collect the smallest useful diagnostic output, then apply the narrowest fix.
| Symptom | Likely Cause | First Check |
|---|---|---|
| MCP server exits immediately | Wrong path or missing dependency | Run the server command manually |
| Tools not discovered | Registration after init, cached capabilities | Review startup log, restart client |
| Decompilation incomplete | Stripped binary, wrong architecture | file and readelf on the target |
| Permission denied | File outside approved workspace | id and directory permissions |
| Analysis times out | Whole-file job for a narrow question | Add range or function parameters |
| Context window overflow | Entire disassembly in prompt | Pass paths, retrieve excerpts |
When debugging MCP startup, begin with a server exposing one read-only health tool. Expand capabilities only after the transport and discovery layers work.
FAQ
Q: Does Reverse Engineer Anything recover original source code?
No. REA is built for analysis, evidence gathering, and reproducible investigation. It helps agents explain and reconstruct behavior, but it does not aim to restore original source or automate software copying.
Q: Which coding agents work with Reverse Engineer Anything?
The official documentation lists configuration or integration support for Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin, connected through the MCP server or CLI workflows.
Q: What is the difference between the CLI and the MCP server in REA?
The CLI serves terminal users with deterministic commands like analyze, search, and xrefs. The MCP server exposes the same capabilities as typed tools that an AI coding agent can discover and call under constrained permissions.
Q: How do I keep an AI agent from guessing instead of analyzing?
Use the evidence chain. Require every conclusion to cite an address, artifact, or trace; separate confirmed observations from inferences; and reproduce important findings with the underlying tool before accepting them.