- Reverse Engineer Anything skill lets AI coding agents run structured reverse engineering investigations locally
- Two interfaces: CLI commands for terminal users, MCP Server for agent tool calls
- Evidence-first: every conclusion is backed by recorded tool output, hashes, and traces
- Agent support: Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin
- Quick start: run
npx rea-agents@latest setupto install and configure the skill
What Is the Reverse Engineer Anything Skill?
The Reverse Engineer Anything skill (REA) is an open-source toolkit that gives AI coding agents a disciplined way to inspect applications, websites, JavaScript bundles, Electron packages, and native binaries. Instead of letting an agent guess at how software works, the skill wraps analysis operations behind a CLI + MCP Server pair so every step produces verifiable evidence on your local machine.
The project's core philosophy separates it from naive "decompile and copy" approaches. REA emphasizes local analysis, an auditable evidence chain, and reproducible investigation workflows rather than automatic source recovery or software cloning. The agent proposes and coordinates; you validate and decide.
| Skill Component | Interface | Primary Use |
|---|---|---|
| CLI | Terminal | Direct commands like analyze, inspect, search, xrefs, trace |
| MCP Server | Agent tool calls | Registered tools the agent discovers and invokes |
| Evidence records | Both | Saved tool output, hashes, and traces for review |
| Agent integrations | Config files | Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Devin |
| Setup tooling | npx rea-agents@latest setup | Install, initialize, and diagnose the environment |
A raw LLM asked to "explain this binary" will hallucinate. The REA skill forces the agent to call real tools, cite addresses and function names, and separate observed behavior from inference — which is what makes its conclusions trustworthy.
Installing the Skill: Step-by-Step
Installation follows a linear path: prepare the environment, run the setup command, verify with diagnostics, then connect your agent of choice. The whole flow typically takes under ten minutes on a machine that already has Node.js installed.
Verify Prerequisites
Confirm Node.js is installed and up to date (node --version), check that your terminal can run npx, and create a dedicated, isolated working directory for analysis targets. Keep unknown binaries out of personal folders.
Run the Setup Command
Execute npx rea-agents@latest setup. The interactive installer walks through the installation plan, detects your configured coding agents, and writes the appropriate MCP or skill configuration entries.
Diagnose the Environment
Run rea doctor to check for missing dependencies, incorrect paths, and Node.js version issues. Fix anything flagged before starting a real investigation.
Confirm Agent Discovery
Restart your agent (Claude Code, Cursor, or another supported client) and verify that the REA tools appear in its available tool list. Test with a read-only command before pointing it at a target.
Always analyze untrusted binaries inside a disposable VM or container. Record the target's SHA-256 hash before and after analysis to prove the original file was never modified.
Core CLI and MCP Capabilities
Once installed, the skill exposes two parallel entry points. Terminal users work through the CLI; agents work through MCP tool calls. Both operate on the same evidence model, so results are interchangeable.
| Command / Tool | Category | What It Does |
|---|---|---|
analyze | CLI | Runs a structured analysis pass on a target |
inspect | CLI / MCP | Non-invasive profile: format, architecture, imports, sections |
search | CLI / MCP | Finds strings, symbols, and references in the target |
function | CLI / MCP | Summarizes a specific function, including decompiled views |
xrefs | CLI / MCP | Traces cross-references and caller/callee relationships |
trace | CLI / MCP | Captures runtime execution traces for validation |
| Evidence export | Both | Saves tool inputs and outputs into a reproducible report |
Static Analysis
- Symbols, strings, imports
- Section and entry-point maps
- Candidate function discovery
- No target execution required
Dynamic Analysis
- Breakpoints and watchpoints
- Register and memory inspection
- Runtime traces tied to addresses
- Validates static hypotheses
Evidence Chain
- Hashed target baseline
- Tool-call logging
- Confirmed facts vs. open questions
- Reproducible report output
Ask the agent for focused operations — "find references to this error string" or "summarize the function at this address" — rather than "explain the whole program." Focused requests keep context small and make each conclusion easy to verify.
The Investigation Workflow
A reliable REA investigation moves from low-risk observation to controlled validation. The agent coordinates tools and summarizes output; you stay responsible for target selection and final judgment.
| Phase | Goal | Key Outputs |
|---|---|---|
| 1. Identify target | Understand format and architecture | File type, hash, imports, sections |
| 2. Static analysis | Map code and data without execution | Function inventory, strings, cross-references |
| 3. Trace relationships | Reduce the binary to relevant functions | Call graph, working names, hypotheses |
| 4. Dynamic analysis | Compare runtime with static predictions | Breakpoint evidence, traces, arguments and returns |
| 5. Validate hypotheses | Test behavioral conclusions | Documented original-vs-observed comparison |
| 6. Report | Produce reproducible conclusions | Evidence-linked report with saved artifacts |
Before You Close an Investigation:
- Record the target SHA-256 hash before and after analysis
- Reproduce every important conclusion with the underlying tool
- Separate confirmed behavior from open questions
- Save tool logs and configuration alongside the report
- Keep secrets and unrelated files outside the analysis root
The agent is an analysis accelerator, not an authority. Recheck important conclusions in the disassembler or debugger yourself before acting on them, and record the addresses and inputs that support each finding.
Troubleshooting Common Skill Issues
Most problems fall into a handful of categories, and each has a narrow, testable fix. Start with the smallest diagnostic output before changing configuration.
| Symptom | Likely Cause | First Fix |
|---|---|---|
| MCP server exits immediately | Wrong path, missing dependency, or stdout pollution | Run the server command manually under the same user |
| Agent finds no tools | Registration timing or schema mismatch | Restart the client; validate the tool input schema |
| Decompilation unreadable | Stripped or obfuscated binary, wrong architecture | Confirm format with file; validate dynamically |
| Permission denied | Target outside approved workspace | Move inputs under the configured analysis root |
| Analysis times out | Whole-file job for a narrow question | Add range/function parameters; split the job |
| Context too large | Entire disassembly pasted into prompt | Pass artifact paths and retrieve excerpts |
If a server works standalone but fails under the agent, verify the transport matches, diagnostics go to stderr rather than stdout, and the configured working directory is readable by the agent's user.
FAQ
Q: Does the Reverse Engineer Anything skill recover original source code?
No. REA is designed for evidence-based analysis and reproducible investigation workflows, not automatic source recovery or software copying. It helps agents explain behavior, trace relationships, and support reconstruction projects built on verified findings.
Q: Which coding agents can use the Reverse Engineer Anything skill?
Official documentation lists support for Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin through CLI and MCP workflows. Configuration details vary by agent, but the setup command detects installed clients and writes the appropriate entries.
Q: Can I use the skill through the terminal without an AI agent?
Yes. The CLI exposes commands like analyze, inspect, search, function, xrefs, and trace directly in the terminal, so the workflow works without any agent while still producing the same evidence records.
Q: Is analysis performed locally?
Yes. REA emphasizes local analysis with an evidence chain on your machine. Targets stay on your workstation, and reports capture tool inputs and outputs so another researcher can reproduce the investigation.