Start with a question.

Connect REA to your coding agent, or inspect a local app from your terminal.

You'll need Node.js 22 (22.19+), 24 (24.11+) or 26+, and npm. Full installation guide

With your agent

Run setup to connect REA to Claude Code, Codex, Cursor or another supported client.

Terminal
npx rea-agents@latest setup

Choose your client and review the setup plan. REA adds its MCP connection and the matching investigation skill, keeping a backup of existing configuration. It asks before applying the changes.

Restart your client when setup finishes. Give your agent a target path and a specific question. For a JavaScript or Electron app, you might start with:

Look at /absolute/path/to/app and find how it exports data. Show the entry points, calls and dependencies involved, with the source locations for your findings.

Replace the path with your local target. Read the findings, then ask a narrower follow-up about a function or connection you want to understand.

From the terminal

You can start with a JavaScript or Electron application folder or ASAR archive. This path uses Node.js and npm and reads the app without running it.

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

Replace the path with your extracted app directory or .asar file. On Windows, a path such as "D:/apps/example" works here.

The result includes the application's identity, recovered module relationships and evidence locations. It also records relationships that remain unresolved. Use those findings to choose where to investigate next.

If you'd like a permanent rea command in your shell:

Install the CLI
npm install --global rea-agents

Continue with the JavaScript application guide

Working with native binaries

Choose a deep-analysis provider for your target and host. If you already use one of these tools, start with its connection guide.

Ghidra

Use an existing Ghidra installation and JDK. Setup checks their paths and records them for your selected clients.

Ghidra setup and supported hosts

Hopper

Connect Hopper on macOS or Linux. Setup can also install it after you review and approve the installation plan.

Hopper installation

IDA

Reuse an existing IDA MCP registration for read-only analysis through an attached GUI or headless database.

IDA connection guide

For an existing Ghidra setup, inspect a function with:

Function analysis
rea function /absolute/path/to/program main \
  --provider ghidra --json

Replace main with the function name or address you want to inspect. The first query imports and analyzes the target, so it can take longer than later requests.

Getting help

If your agent doesn't see REA

Restart or reconnect the client after setup. To check its registration, use a client-scoped report; for Codex:

Check one client
npx -y rea-agents@latest doctor --client codex --json

If a provider needs attention

Check the provider you're using. For Ghidra:

Check one provider
npx -y rea-agents@latest doctor --provider ghidra --json

The report gives the failed check and a suggested next step.