REA use cases
Unofficial guide. This site is an independent community guide and is not affiliated with the REA project. For authoritative docs see the official REA website and the morluto/rea GitHub repository. Commands here are taken from the official README/docs (checked 2026-10-20); REA changes quickly, so verify against the official docs.
REA (Reverse Engineer Anything) is a free MIT-licensed tool letting an AI coding agent study software you don't have the source for. Running locally as an MCP server and CLI, it plugs Claude Code, Cursor, Codex and other agents into analyzers for native binaries (via Ghidra, Hopper or IDA), JavaScript/Electron apps, .NET, Android packages and websites. Answers include file-and-line evidence.
REA use cases at a glance
- Understand a feature and rebuild it: ask "how does X work?" and get evidence plus a working version. Example: official DX-Ball case, where pseudocode became C that passed 3,205 original-x86 test cases.
- Map an Electron or JavaScript app: modules, imports, IPC channels and handlers, without running the app. Example: our test run found the
price:formatIPC handler atmain.jsline 3 in 1.6 seconds (walkthrough below). - Read native binaries: pseudocode, strings, symbols and cross-references through your own Ghidra, Hopper or IDA. Example: official TH04 case, recovering a PC-98 bullet-ring calculation from 16-bit code.
- Triage Android and Flutter apps: manifest, classes and the Flutter build fingerprint. Example: on the Saber APK,
identify-flutter-buildreturned the Dart snapshot hash in about 2 seconds (Flutter guide). - Understand a website's API: inspect page bundles, or a saved HAR capture fully offline (HAR guide).
- Compare two versions: diff application graphs, exports or web captures between builds to see what changed.
- Interoperability and preservation: recover file formats and behaviors from old or unsupported software you own. Example: official Notion case tracing a clipboard bridge from renderer through preload into the main process.
Details
5. More targets
- Android APKs (with JADX) and devices (adb)
- .NET assemblies – metadata and CIL, static only
- Websites and saved HAR network captures
- Firmware (Binwalk/Unblob), Go binaries, WASM, EVM bytecode, Linux crash dumps
REA is intended for lawful research, education, interoperability, software preservation, and analysis of software you own or are authorized to examine.
Tested on 2026-10-17: Debian 13 x64, rea-agents 6.5.0, Node.js 20.19.2 and 22.20.0, run in a throwaway HOME folder so no real agent config was touched. Outputs are copied from the terminal; long ones are trimmed with "…".
Walkthrough: trace an Electron IPC feature (real run)
This is the smallest version of the official Notion clipboard-bridge showcase. We wrote a three-file Electron-style app so the output is short and easy to check:
// demo-app/main.js
const { app, ipcMain } = require('electron');
const { formatPrice } = require('./price');
ipcMain.handle('price:format', (_e, cents) => formatPrice(cents));
app.whenReady();
// demo-app/price.js
exports.formatPrice = (cents) => '$' + (cents / 100).toFixed(2);
Then we ran REA's static JavaScript analyzer on it. No native engine needed, and nothing in the app was executed:
$ time npx -y [email protected] analyze-javascript-application /abs/path/demo-app
{"rea_progress":{"phase":"parse_javascript_sources",…"message":"Parsing and projecting 3 selected application source files",…}}
…
{"rea_progress":{"phase":"analyze_javascript_application","completed":1,"total":1,"message":"Application graph and Electron boundaries reconstructed","terminal":true,…}}
evidence_id: ev_8e39922d45beac185dceae21d1e08d930cfa7cd1e9f4747c7ecef234dcc71df1
subject:
name: demo-app
digest:
sha256: 3de4c4f66a0cfd00d958dffaa2a36caf1e57bff7e1e151ca4fc1f28a3e049bb8
format: directory
provider:
id: rea-javascript-application
…
nodes[13]:
…
kind: ipc-handler
observations[1]:
- label: "price:format"
properties:
side: main
operation: handle
channel: "price:format"
handler_kind: inline-function
handler_location:
start:
line: 3
column: 31
…
edges[16]:
- relation: handles
properties:
channel: "price:format"
resolution: literal
evidence:
authority: static-relationship-inference
state: inferred
confidence: high
…
real 0m1.563s
How to read the result
- evidence_id and digest: the result is tied to the exact bytes analyzed (SHA-256 of the app folder), so you can show later which build you looked at.
- nodes and edges: REA built a graph of 13 nodes and 16 edges: files, modules, the
ipcMainimport, theprice:formatchannel and its handler. - handler_location: file and line (line 3, column 31) of the handler. That's the "evidence" your agent cites when it explains a feature.
- state: inferred, confidence: high: REA marks what it observed directly in the bytes and what it inferred from relationships. Ask your agent to separate the two.
In an agent, you'd ask something like "Which IPC channels does this app expose, and what does each handler do? Show file and line evidence." The agent calls the same analyzer through MCP, then reads price.js to explain the formatting rule and rebuild it.
Choosing the right command for your target
| You have… | Start with | Needs |
|---|---|---|
| Electron app (ASAR or folder) | analyze-javascript-application | Node.js only |
| Website | analyze-web-bundle, export-web-scripts | Chrome-family browser |
| Saved HAR file | inspect-web-network-capture (guide) | Nothing; offline |
| Android APK | inspect-android-package, decode-android-resources (guide) | JADX / apktool you provide |
| Native binary | analyze, decompile, function | Hopper, Ghidra or IDA (Ghidra setup) |
| Two versions of an app | compare-application-versions | Evidence from both |
The command names come from rea --help in rea-agents 6.5.0. Run rea <command> --help for options; for example, analyze-javascript-application accepts --artifact-format <auto|asar|directory> and --integrity-policy <fail|record-and-continue>.
What we didn't test
We didn't run the native-binary showcases (DX-Ball, TH04), because they need Hopper or Ghidra. Their results above come from the official case studies on rea.tools.
Sources: rea.tools showcases · README · rea --help (6.5.0)
Same demo, grep-only approach: REA vs leanrea. Flutter apps: Flutter APK walkthrough (tested on a real APK).
FAQ
Can REA reverse engineer Electron apps?
Yes. analyze-javascript-application inspects an extracted app directory or ASAR and returns modules, imports and Electron boundaries.
Can REA analyze Android APKs?
Yes, with headless JADX and a full JDK on Linux/macOS/Windows x64.