3 min read

How to Use REA (Reverse Engineer Anything): A Practical Setup and Workflow Guide

In the previous post, we looked at what REA (Reverse Engineer Anything) is and why connecting an AI coding agent to real disassemblers and runtime tracers beats blind guessing.

This guide is the hands-on follow-up: how to install REA cleanly, connect it to Claude Code, Cursor, Codex, or Gemini CLI, and actually prompt it on real targets—Electron apps, live web pages, and compiled native binaries.

Four-step REA setup checklist: Node prerequisites, npx rea-agents setup, optional Ghidra backend, and full client restart

Step 1: Install and Wire Up REA

Make sure you have Node.js 22.19+ (or 24.11+) installed. If you are on Linux, double-check that a procps-compatible ps binary is available, since REA uses it for process-ownership checks.

Run the interactive setup CLI:

npx rea-agents@latest setup

If you only want to configure a single editor or agent, scope it directly:

npx rea-agents setup --client cursor

During setup:

  1. Use the arrow keys and Spacebar to select the coding agents installed on your machine.
  2. Review the exact config paths and file edits REA proposes, then approve them.
  3. Optional native backend: If you plan to inspect compiled executables, link an existing local Ghidra install (with JDK 21) or Hopper. If you only care about JavaScript, Electron, or web apps, you can skip this step completely.
  4. Fully restart your agent client (e.g., quit Cursor or Claude Desktop completely and reopen it) so the MCP server and its 130+ tools register cleanly.

Step 2: Pick the Right Workflow for Your Target

You do not need to memorize over a hundred MCP tool names. Once REA is registered, you talk to your coding agent in plain English and let it choose the right probes—or run the direct CLI commands when you want raw JSON output.

Three practical REA usage playbooks: Electron and JS apps, Web apps via CDP, and Native binaries via Ghidra

A. Electron & JavaScript Desktop Apps

REA can map unpacked Electron directories and .asar bundles statically—no execution required. It inspects entry points, dependencies, preload scripts, source maps, and IPC channels.

Prompt to paste into your agent:

Analyze the unpacked Electron app at /absolute/path/to/app using REA.
Trace how the "Export notes" button works, list the IPC channels it triggers, and cite exact files and line numbers.

Or run the static analyzer straight from your terminal:

npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --json

B. Web Applications (Passive Browser Observation)

When you want to understand a client-rendered web app's network calls or UI event flow, REA can attach passively to a local Chrome DevTools Protocol (CDP) browser session, capture HAR/network traffic, and inspect DOM event listeners as you click through the app yourself.

Prompt to paste into your agent:

Observe my local browser session with REA while I trigger the search filter, then map the API endpoints, request parameters, and response schema.

C. Compiled Native Binaries (.exe, ELF, Mach-O)

With Ghidra or Hopper linked during setup, your agent can inspect native binaries directly—pulling strings, cross-references, call graphs, and decompiled pseudo-C without you having to click through fifty disassembly windows by hand.

Prompt to paste into your agent:

Open /absolute/path/to/binary with REA's Ghidra backend.
Find the config parser function, inspect its cross-references and decompiled pseudocode, and list what is verified vs. still unknown.

Step 3: Three Habits That Get Better Results

  • Always give absolute paths: Passing /absolute/path/to/target avoids ambiguity across workspaces and sandboxed subagents.
  • Ask for evidence and unknowns: REA is built around strict evidence records with confidence levels. Explicitly asking your agent to separate observed symbols/lines from inferred behavior stops it from filling gaps with plausible fiction.
  • Start static before going dynamic: Static bundle/binary inspection answers 80% of questions safely and fast; only spin up live instrumentation or Frida/CDP sessions when you actually need runtime values.

If you run into a specific target—like an Electron app, a .NET tool, or a native CLI—which part of the workflow trips you up most? Drop a note in the comments.

Related Reading

Comments

Leave a Comment

Math verification challenge