- Reverse Engineer Anything (REA) is an open-source toolkit that lets AI coding agents inspect apps, websites, JavaScript, Electron packages, and native binaries.
- Two interfaces: a local CLI for terminal users and an MCP Server for agent tool calls.
- Setup takes one command:
npx rea-agents@latest setupbootstraps the environment and detects agent configs. - Local-first analysis: everything runs on your machine with evidence chains, not cloud uploads.
- Works with Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin.
What Is the Reverse Engineer Anything App?
Reverse Engineer Anything, or REA, is an open-source reverse engineering toolkit built specifically for AI coding agents. Instead of replacing your disassembler or debugger, it bridges them: through a CLI and an MCP Server, agents can analyze applications, websites, JavaScript bundles, Electron packages, and native binaries while you keep control of every tool call.
The project emphasizes three principles that shape every workflow:
Local Analysis
- Targets never leave your machine
- No cloud upload of proprietary code
- Suitable for sensitive binaries
Evidence Chains
- Every conclusion links to addresses, strings, or traces
- Agents must cite tool output
- Reduces AI guesswork
Reproducible Work
- Recorded hashes, commands, and configs
- Investigations can be replayed
- Reports are auditable
The official site reports a GitHub snapshot of roughly 129K stars, two interfaces (CLI + MCP), 6+ coding agent integrations, and 20+ official locales including English, Japanese, Korean, and Spanish.
REA is an analysis and investigation toolkit. It does not recover original source code automatically, and it is not designed for copying or pirating software. Use it on software you are authorized to analyze.
Supported Target Types
| Target | What REA Examines | Typical Use Case |
|---|---|---|
| Native binaries | Functions, strings, cross-references, disassembly | Understanding desktop app logic |
| Electron apps | ASAR archives, package.json, Main/Renderer/Preload, IPC | Modifying or auditing packaged JS apps |
| JavaScript | Bundles, source maps, call graphs | Rebuilding web features |
| Websites | Runtime behavior, browser execution | Learning interaction patterns |
| Android APKs | Package structure and resources | Mobile feature analysis |
| Browser games | Speed rules, physics parameters | Case-study reconstruction |
The official site ships interactive showcases — Chrome Dino speed rules and the Windows Calculator percent-key logic are the two flagship examples. They are the fastest way to see what an evidence-backed investigation looks like before you run your own.
Setup: From Zero to First Analysis
Installation is intentionally lightweight. REA runs on Node.js, so the entire setup is a single npx invocation followed by a diagnostic pass.
Check prerequisites
Confirm Node.js and npm are installed and current. Keep a dedicated working directory with read-only access to the target and a separate writable folder for reports.
Run the installer
Execute npx rea-agents@latest setup. The setup wizard confirms the install plan, initializes the CLI, and prepares MCP configuration for detected agents.
Diagnose the environment
Run rea doctor to catch missing dependencies, broken paths, Node version issues, or disassembler integration problems before they interrupt an investigation.
Connect your agent
Add the MCP server entry to your agent's configuration (Claude Desktop JSON, Cursor project settings, or your terminal agent's config), then restart the host and confirm tools appear.
Pick a target and start
Begin with a low-risk target such as a browser game or an open-source Electron app. Record the file hash before analysis so you can verify the original never changed.
CLI Command Quick Reference
| Command | Purpose | Output |
|---|---|---|
rea setup | Initialize environment and agent detection | Configured workspace and agent entries |
rea doctor | Diagnose dependencies and paths | Issue list with fix suggestions |
analyze | Run structured analysis on a target | Functions, strings, architecture summary |
inspect | Examine metadata, sections, imports | Target profile |
search | Find strings and symbols | Match list with locations |
xrefs | Trace cross-references | Caller/callee relationships |
trace | Capture runtime behavior | Execution evidence log |
If an agent cannot see REA tools, run rea doctor before touching MCP JSON. Most integration failures trace back to a Node version mismatch, a wrong absolute path, or stdout log text corrupting the stdio protocol stream.
Agent Integrations Compared
REA supports several popular coding agents. The integration pattern differs mainly in where configuration lives and how tool calls are surfaced.
| Agent | Integration Style | Best For |
|---|---|---|
| Claude Code / Claude Desktop | Skill install + MCP JSON config | Long multi-step investigations with evidence review |
| Cursor | Project-level MCP config | Iterative analysis inside an active codebase |
| Codex | CLI-first workflow | Terminal-driven scripted analysis |
| Gemini CLI | MCP server registration | Quick target triage |
| Windsurf | IDE-integrated MCP | Flows mixing source work and binary analysis |
| Devin | Hosted agent via controlled gateway | Long-running jobs with job IDs and progress events |
MCP Route
- Agent discovers tools automatically
- Structured, schema-validated calls
- Bounded outputs protect context windows
- Best for interactive investigation
CLI Route
- Deterministic shell commands
- Easy to script and batch
- Output saved with
teefor reports - Best for automation and pipelines
Restrict the server's filesystem access to a dedicated analysis root. Reject paths outside the workspace, require confirmation before executing unknown binaries, and keep credentials out of the server's working directory. This applies whether the request comes from an agent or a local script.
The Evidence-Backed Workflow
A solid investigation moves from low-risk observation to focused analysis to validated conclusions. The agent coordinates tools and summarizes output; you remain responsible for validating behavior.
Identify and preserve the baseline
Detect file type and architecture, record the SHA-256 hash, and collect sections and imports. Deliverable: a target profile.
Run static analysis
List symbols, extract strings, inspect entry points, and flag candidate functions without executing the target.
Locate functions and trace relationships
Use cross-references and call graphs to shrink a large binary into the few functions that matter for your question.
Validate dynamically
Launch the target in an isolated environment, set breakpoints, and compare observed runtime behavior against static hypotheses.
Report with evidence
Separate confirmed observations from open questions, link each conclusion to an address or artifact, and save the tool logs alongside the report.
Case Study Snapshots
| Case | Question | Key Evidence | Outcome |
|---|---|---|---|
| Chrome Dino | How does speed scale? | Frame-rate traces, speed constants, acceleration parameters | Rebuilt adjustable-speed version |
| Windows Calculator | Why does % behave differently? | Function decompilation of percent logic in additive vs multiplicative paths | Explained dual calculation rules |
| Electron apps | Where is business logic hidden? | ASAR contents, IPC channel maps, preload scripts | Architecture map for reconstruction |
Prompt the agent to separate directly observed behavior from inferred intent, and to cite the code pattern or string reference supporting every inference. Recheck important conclusions in the disassembler or debugger yourself — treat the agent as an assistant, not an authority.
Investigation Milestones:
- Isolated workspace created with target hash recorded
- Target profile completed (format, architecture, imports)
- Static map with candidate functions and strings
- Runtime evidence linked to specific addresses
- Final report separating facts from open questions
Troubleshooting Common Issues
| Symptom | Likely Cause | First Fix |
|---|---|---|
| MCP server exits immediately | Wrong path or missing dependency | Run the server command manually as the same user |
| Tools not discovered | Registration after init or invalid schema | Validate input schema, restart the client |
| Decompilation unreadable | Stripped or obfuscated binary | Confirm architecture and format with file / readelf |
| Permission denied | Target outside approved root | Move inputs into the analysis workspace |
| Analysis times out | Whole-file scan for a narrow question | Add range and max-result parameters |
| Context window overflow | Entire disassembly pasted into prompt | Pass artifact paths and retrieve excerpts |
Most timeouts and context overloads come from asking whole-file questions. Scope requests to one function, one section, or one address range — the agent produces better answers and the evidence stays verifiable.
FAQ
Q: Is the Reverse Engineer Anything app free to use?
Yes. REA is an open-source toolkit available through GitHub and rea.tools, distributed with a CLI and MCP Server. There is no paid tier required for local analysis workflows.
Q: Does REA recover the original source code of an app?
No. REA is designed for analysis, evidence collection, and reproducible investigation — not automatic source recovery or software copying. It helps agents understand behavior through functions, strings, cross-references, and runtime traces.
Q: Which coding agents work with the Reverse Engineer Anything app?
REA supports 6+ integrations including Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin. MCP-capable agents connect through the server config; terminal agents can use the CLI directly.
Q: What should I do if my agent cannot find REA tools?
Run `rea doctor` first, then verify the MCP configuration uses an absolute server path with the correct working directory. Restart the client after any capability change, and test the smallest tool call before complex analysis.