Skip to content
AIRepoHub

rea

by morluto

Connects AI agents to reverse-engineering tools for inspecting binaries, apps and websites.

Coding AssistantsDeveloper ToolsTypeScriptMIT license
Stars
479,961
stars
Forks
117k
forks
Last push
today
Activity
Active
rea: quick start
# Connect REA to your agent$ npx rea-agents setup# Inspect a JavaScript or Electron app from the terminal$ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --json

Commands from the project's README. Run them after installing (see below).

Overview

Understand rea in 60 seconds

What it does
REA links your AI agent to a set of reverse-engineering tools over MCP, and offers the same tools from the terminal. It inspects native binaries, JavaScript and Electron apps, .NET assemblies, websites, Android apps, firmware, and recorded runtime and network activity.
The problem it solves
When you see a feature in an app you don't have source code for, working out how it actually behaves usually means slow manual digging. REA lets your agent do that inspection and hand back the evidence behind each conclusion.
Why choose it
Analysis runs locally, and results include the evidence and limitations behind each conclusion, so you can see how a finding was reached rather than taking it on trust.
Who should use it
  • Developers who want to understand a feature in someone else's app
  • Reverse engineers exploring binaries and runtime behaviour
  • People building RL environments for agents to practise tasks
  • Teams using MCP-capable coding agents
Setup difficulty

You'll need:

  • Node.js and npm
  • An agent that supports local MCP servers (for the agent workflow)
  • For deep native analysis, an existing Hopper, Ghidra, IDA or Kuna installation
  • No native analysis engine needed for static JavaScript and .NET inspection

How rea works

REA is a tool that connects your AI agent to reverse-engineering capabilities through MCP. Setup registers REA with your agent and installs matching workflow instructions, so you can ask your agent to investigate an app and get back an explanation with evidence. The same workflows are available from the command line if you prefer to work in a terminal.

It covers native binaries, JavaScript and Electron apps, websites, .NET assemblies, Android apps, firmware, and recorded runtime and network activity. Native analysis returns pseudocode and assembly, while JavaScript and Electron analysis recovers modules and their relationships. Your agent can then use those findings to write and test an implementation for your own project.

Analysis runs locally on your machine. Deep native analysis uses a provider such as Hopper, Ghidra, IDA or Kuna depending on the target format and host OS, while static JavaScript and .NET inspection work without a native analysis engine. Setup can optionally install Hopper with your approval; the other providers use installations you already have.

The project also supports building local RL environments from a recorded web session or a Linux desktop app, so an agent can practise a task and check its result.

Features

Key features

Agent connection over MCP

Setup registers REA's MCP server with your agent and installs the matching investigation skill, then you restart the agent.

Terminal CLI

The same workflows are available as commands, so you can inspect a target without going through an agent.

Native binary analysis

With a configured provider, native analysis returns pseudocode and assembly for the target.

JavaScript and Electron inspection

Static analysis of an extracted app directory or ASAR recovers modules, imports and Electron boundaries with their evidence.

Evidence-backed results

Results include the evidence and limitations behind each conclusion, so findings can be checked.

RL environment building

You can build a local environment from a recorded web session or a Linux desktop app for an agent to practise in.

Strengths

  • Works with any agent that supports local MCP servers
  • Analysis runs locally rather than uploading your target
  • Results come with evidence and stated limitations
  • Static JavaScript and .NET inspection need no native analysis engine
  • The same capabilities are reachable from an agent or the terminal

Limitations

  • Deep native analysis depends on a separate provider such as Hopper, Ghidra, IDA or Kuna
  • Commercial tools must be legally obtained and you must be authorized to use them; REA grants no tool license or key
  • On macOS, Hopper may show a first-run dialog asking you to choose demo mode or activate a license before your first operation
  • Your agent's model provider has its own data policy even though REA analyzes targets locally
  • Setup backs up and modifies your agent configuration, so you need to review and approve the plan

Practical use cases

Understand a feature you want to copy

Ask your agent to investigate how a feature in another app works, then build a similar one for your project.

Trace an Electron bridge

Follow a renderer API through preload and IPC into the main process to see how an app handles data.

Recover a calculation from native code

Use a native provider to reconstruct a helper from instructions and compare it against the original behaviour.

Build an RL environment

Turn a recorded web session or a Linux desktop app into a local environment an agent can practise in.

Installation

Install rea

Based on official documentation

Commands come from rea's README. AIRepoHub hasn't run them yet. Steps are as of Nov 27, 2026; projects change often, so if a command doesn't work, check the project's latest README. View source

Prerequisites

  • Node.js and npm installed
  • A trusted directory outside the project you plan to analyze, for running setup
  • An MCP-capable agent, if you want the agent workflow
  • A configured native analysis provider, if you need deep native analysis

Supported systems

  • Windows
  • macOS
  • Linux
  1. 1

    Run setup from a trusted directory

    Run this outside the project you plan to analyze. Choose your agent, review and approve the setup plan.

    Shell
    npx rea-agents setup
  2. 2

    Restart your agent

    Setup backs up existing configuration and adds REA's MCP connection and investigation skill. Restart your agent afterwards.

  1. 1

    Install the rea command

    Use this if you want the rea command available for regular use.

    Shell
    npm install --global rea-agents
  2. 2

    Check the command

    Confirm the command is available.

    Shell
    rea --help
  1. 1

    Analyze an extracted app directory or ASAR

    Replace the path with your target, such as "D:/apps/example" on Windows. The result includes modules, imports, Electron boundaries and their evidence.

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

    Choose a provider for your target

    Deep native analysis uses Hopper, Ghidra, IDA or Kuna depending on the target and operation. See the provider setup section of the installation guide for the options and their supported targets.

  2. 2

    Check Linux prerequisites if needed

    The installation guide has a Linux owned-process prerequisite section.

Configuration and API keys

SettingWhat it's for

First run

  1. 1

    Restart your agent

    After setup finishes and you approve the plan, restart your agent so it picks up the new MCP connection and skill.

  2. 2

    Ask your agent to investigate something

    Replace Notes with your target app and the feature you want to understand.

    Shell
    Understand how search works in the Notes app, show me the evidence, and build asimilar feature for my project.

rea's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.

Your first project

Investigate a feature in an app you don't have source for

You have seen a feature in an app and want to understand how it works before building something similar.

Before you start

  • Install Node.js and npm
  • Open a trusted directory outside the project you plan to analyze
  • Have your MCP-capable agent ready to restart
  1. 1

    Register REA with your agent

    Run setup, choose your agent, and review and approve the setup plan.

    Shell
    npx rea-agents setup
  2. 2

    Restart your agent

    Setup backs up existing configuration and adds REA's MCP connection and investigation skill. Restart so the changes take effect.

  3. 3

    Ask for the investigation

    Replace Notes with your target app and the feature you want to understand.

    Shell
    Understand how search works in the Notes app, show me the evidence, and build asimilar feature for my project.
  4. 4

    Follow up on the evidence

    Your agent can use the evidence REA returns to ask follow-up questions, explain behaviour, or build and test an implementation.

What to expect

Your agent reports how the feature works, shows the evidence behind the conclusion, and can go on to build and test a version for your project.

Next steps

  • Read the worked guides on the project website for more examples
  • Try the same inspection from the terminal with the CLI
  • Configure a native analysis provider if you need to go down to the binary level

Costs and requirements

What it costs to run

Software
Free and open source under the MIT license.Free
Native analysis providers
Depends. Deep native analysis uses Hopper, Ghidra, IDA or Kuna. You must legally obtain and be authorized to use commercial tools under their own licenses; REA grants no tool license, key or activation entitlement.Depends
Agent model usage
Depends on your agent's model provider, which has its own data policy.Depends

Troubleshooting

Common setup issues

You hit a bug or something stops working.

Update first, since a recent release may already fix it. For a CLI installed with npm install --global or bun add --global, run rea update. For agent setup through npx, run npx rea-agents@latest setup, complete the setup refresh and restart your agent. Retry the same task, and if the problem persists open an issue with your REA version, target type, steps to reproduce and error output.

Source: README.md

Hopper shows a first-run dialog on macOS.

A first-run dialog may ask you to choose demo mode or activate your license. Complete that prompt in the same user session before your first CLI or MCP operation or unattended job. You can also open Hopper manually if needed.

Source: README.md

You are not sure whether a download is official.

Get REA from morluto/rea, rea.tools, or the rea-agents npm package, and follow the installation and release links from those official sources. A similar repository name or copied README does not establish that a download is official.

Source: README.md

Alternatives

Similar AI repositories