With your agent
Run setup to connect REA to Claude Code, Codex, Cursor or another supported client.
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/appand 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.
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:
npm install --global rea-agents
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 hostsHopper
Connect Hopper on macOS or Linux. Setup can also install it after you review and approve the installation plan.
Hopper installationIDA
Reuse an existing IDA MCP registration for read-only analysis through an attached GUI or headless database.
IDA connection guideFor an existing Ghidra setup, inspect a function with:
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:
npx -y rea-agents@latest doctor --client codex --json
If a provider needs attention
Check the provider you're using. For Ghidra:
npx -y rea-agents@latest doctor --provider ghidra --json
The report gives the failed check and a suggested next step.
- Installation and troubleshootingClient configuration, versions and provider requirements.
- GitHub issuesReport a problem with the command and diagnostics.
- REA communityQuestions, investigations and work in progress.