REA section · reverse engineering with AI agents
REA. Your agent opens a program without its source code and explains how it works.
The REA (Reverse Engineer Anything) connects your AI agent, such as Claude Code or Codex, to expert reverse engineering tools. It takes apart an app or a binary, shows the evidence behind what it found, and helps rebuild something similar in your project. Here’s everything INEMA has put together about it: the guide in three languages, the step-by-step instructions, our real-world test, the videos, and the precautions. All open and free.
Guide in PT, EN, and ES. Videos in Portuguese.
01 · What it is
A bridge between your agent and expert tools.
Reverse engineering means figuring out how a program works by examining the finished program, without its source code. Before, this required an expert and weeks of work with tools like Ghidra, from the NSA. REA gives these tools to your agent, which does the heavy lifting and explains everything in plain language.
Reads the finished program
JavaScript and Electron apps directly through Node; native binaries with a decompiler (Ghidra, Hopper, or IDA).
Builds the map
Modules, functions, connections, and data flow, saved as verifiable facts.
Shows the evidence
Each finding points to its source, and anything it couldn’t read becomes a stated limitation.
Helps you make your own
With the map in hand, the agent creates something similar in your project, however you ask.
Works as a CLI and as an MCP server using the same core: you can run a command in the terminal or let Claude Code, Codex, Cursor, Gemini CLI, and other agents call REA on their own.
02 · Why it works
The original program is the specification.
When AI tries to create an app from scratch, it guesses what you want. With the original program alongside it, it has a correct answer to compare against: run the original, run its version, see the difference, and fix it. It’s a closed validation loop. That’s why an agent can rebuild an old game byte for byte or understand an app’s search feature in minutes.
| Without REA | With REA |
|---|---|
| The agent reads whatever it can find and guesses the rest | The agent consults a program map with facts and the source for each fact |
| Doesn’t say what it doesn’t know | States the limitations: what it didn’t read and why |
| Native binaries are a black box | Uses Ghidra (free), Hopper, or IDA under the hood |
Honestly. None of this is new: Ghidra dates back to 2019, and IDA to the ’90s. What’s changed is that your agent can now operate these tools. And in a third-party test recreating a photo viewer, the agent without REA finished first: for simple apps, sometimes it isn’t even necessary. The video “the detail no one tells you” shows this.
03 · The limit
No one can reverse-engineer what runs on the server.
REA reads what’s on your computer: the app, the binary, the JavaScript. The company’s server-side data and logic never reach you, so there’s nothing to open. You can see what the app sends and receives, never how the server makes decisions.
What you can’t see
User accounts and databases, business rules and prices, AI models and prompts, payments, server keys and passwords.
You cloned the screen, not the engine
For your version to work, you need to recreate the server and pay for it: hosting, a database, AI APIs. It’s often the most expensive part of the system.
The owner can shut it down at any time
If your clone uses the original server, the company can block the key, change the API, or cut off access, and everything stops working.
For app creators. What’s valuable stays on the server. Assume any agent can map your app; what protects it is the server, the data, and trust—not closed-source code. The video "reads the app, not the server" shows this.
04 · Step by step
Get started in 4 steps.
For JavaScript and Electron apps, all you need is Node.js (22.19+, 24.11+, or 26+; versions 23 and 25 are not supported) and an agent with MCP. For native binaries, you’ll need a decompiler. REA changes almost every day: check the version first.
1 · Try it without installing anything
Static analysis of an Electron app doesn’t require Ghidra or MCP, and it doesn’t run the app.
npx -y rea-agents@latest analyze-javascript-application /caminho/absoluto/app.asar \ --max-heap-mb 1024 --analysis-timeout-ms 60000 --json
2 · Connect REA to your agent
Setup shows you the plan, backs up your configuration, and asks before making changes.
npx rea-agents setup --dry-run # mostra o que vai gravar npx rea-agents setup # reinicie o agente depois
3 · Check only what you’ll use
The scoped doctor checks a specific agent or engine.
rea doctor --client claude_code --json rea doctor --provider ghidra --json
4 · Ask the agent
In plain language, using a program you own or are authorized to analyze.
"Entenda como a busca funciona no app X, me mostre a evidência e faça algo parecido no meu projeto."
The full walkthrough, with prerequisites, costs for each decompiler, and examples, is in the guide. The script we used to run it in isolation is in pratica/.
The method: one function at a time, with evidence before building.
REA brings the evidence, and your agent writes the code. A simulated example, for illustration only: REA studying the quick switcher (Ctrl+O) in Obsidian, an Electron app. We did not run this test.
1 · One function, not the whole app
“Reverse engineer Obsidian” gets you a vague answer. “How does the quick switcher find the right note with just three letters?” is something you can see and test.
2 · The type of app determines the tool
Electron (Obsidian, Notion, Slack): REA’s JavaScript analyzer, free. Native (.exe, .app, games): Ghidra, Hopper or IDA. Websites: only what reaches the browser.
3 · Summary first
In our test, analyzing an entire app with 210 files produced 41 MB. The agent reads the summary, opens one module, and traces only the chosen function, without repeating the analysis.
4 · Observed, inferred or unknown
Observed: it’s in the files, with a cited excerpt. Inferred: a deduction that hasn’t been proven yet. Unknown: REA can’t access it, such as paid Sync on the server. The unknown becomes your decision: in your version, notes stay in a local folder.
5 · Rebuild and test
Your own code, never the app’s. Turn each finding into a test against the original, for example, 30 identical searches in both apps. Reading the code doesn’t prove it runs; the test does.
For those who don’t code: my notes app
A guide for Windows, starting with Obsidian installed on your PC. Read Obsidian’s terms of use first: studying it for personal use is the safe ground; distributing, selling or copying code, icons and text isn’t.
0 · Set up once
Install Node.js (LTS version) and make sure you’re signed in to your Claude Code or Codex subscription.
1 · Copy the app
Paste the folder path below into File Explorer and copy the .asar file (the main one is usually obsidian.asar) to C:\projetos\meu-caderno\alvo. That way, you’re working on a copy.
%LOCALAPPDATA%\Programs\Obsidian\resources
2 · Install REA and open the agent
In cmd, choose your agent during setup and restart it. Then open the agent in the folder.
npx rea-agents setup cd C:\projetos\meu-caderno claude
3 · First, just understand
Ask: “Use REA to understand how the quick switcher (Ctrl+O) works in the target file alvo\obsidian.asar. Summary first. Trace only this function. Mark each finding as observed, inferred or unknown. Explain it to me in plain English. Don’t build anything yet.”
4 · Then build
Ask: “Now create, from scratch and with your own code, a simple notes app that opens a folder of .md notes and has this quick switcher. Don’t copy Obsidian’s code, icons or text. Then run it, test 10 searches in both apps, and show me the differences.”
5 · One function per round
Repeat with [[note]] links, the graph view and dark theme. Anything that runs on the server (Sync, Publish, plugin store) isn’t included. If you run into errors on Windows, use WSL or a VPS.
Where are you reading from? What did you think of this example? And where you live or work: are people already using AI this way, and what everyday program would you like to make your own? To learn how to do this, the courses and guides from INEMA.CLUB are open and free. The complete method, with tables, is in guide.
05 · No roadblocks
No machine? Two OpenRouter-style platforms.
Claude, Codex, and Gemini sometimes refuse parts of a reverse-engineering project, even a legitimate one. The solution is an open model with no refusal behavior. If your computer can’t run the model, these two prepaid platforms host it for you: add US$ 5 to 10 in credit, get the key, and ask the agent (dsh, Claude Code, Codex) to use it.
Models without refusals
Open “abliterated” models (the refusal reflex has been removed from the weights), via an API compatible with OpenAI’s. Pay per token or choose a monthly plan.
https://api.abliteration.ai/v1
Over 200 models at one address
A router like OpenRouter, with a single key for all models. It has an open-source (MIT) version that you can host yourself.
Caution. In the cloud, your code leaves your computer. For your own app or a sensitive file, prefer a local model (Ollama). Prices and catalog change: check the page before adding credit.
Full step-by-step instructions, with dsh and the tested local models, in the guide REA without guardrails and in the no-guardrails section of the REA guide.
06 · Tested here
Before and after: the app that froze, in 94 seconds.
We ran REA on our isolated ARM64 Linux server (agent configuration untouched, with memory and time limits). In 6.3.0, an Electron app froze; in 6.4.0, the same app was fully analyzed.
| Test | Result |
|---|---|
| Electron app (210 files) on 6.3.0, 10/10/2026 | Frozen: 100% CPU for over 20 minutes on a single file; it had to be forcibly stopped. |
| The same app on 6.4.0, 12/10/2026 | 94.5 s, 1.26 GB peak: 202 files read, 0 failures, 13,500 findings. The file that caused the freeze became a declared limitation (377 in total). |
| Small Node project | 19.7 s: graph with 998 nodes and 1,260 connections. |
| Go binary (inspection) | 1.4 s: file format, hash, and inventory. |
The full results are in RESULTADOS-6.4.0.md and in the 6.4.0 test section of the guide.
07 · Videos
From concept to technical details, in Portuguese.
Explainers featuring Nei’s avatar and voice. The longer videos have a chaptered player and captions on the REA videos page.
REA: the AI that reverse engineers
What it is, Ghidra, the vault opened by AI, the DX-Ball recreation, and precautions. Start here.
Watch → Practical · 2 minREA in practice: clone an app in 4 steps
Prepare your machine, install it, make a request in Portuguese, and check the evidence—with the error that froze our test.
Watch → Technical · 2 minInside REA 6.4
Why it works, the CLI + MCP architecture, the evidence contract, and the before-and-after test.
Watch → YouTube · 3 minYou can clone the app you use
The race with and without REA, and why code is no longer a moat for companies.
Watch → YouTube · 2 minCan REA recreate almost any app? The detail no one tells you
The internet hype and what’s actually true.
Watch → YouTube · technicalInside REA 6.4 (YouTube)
The technical version on the INEMA Tec channel.
Watch →Reels, to watch on your phone
Now anyone can clone any software
The agent takes the program apart, understands it, and rebuilds it.
Watch → Reel · 36 sThis blows your mind: copy any software
Make your own version of any program without knowing how to code.
Watch → Reel · 33 sYour own app in 4 steps
Install it, choose the agent, ask in Portuguese, and check the result.
Watch → Reel · 36 sYou don’t even need a tool to recreate an app
The agent finished first on its own. Create your own instead of paying for someone else’s.
Watch → Short · 25 sClone the app you use
The short version of the race video, with and without REA.
Watch →08 · Repositories
The official one, our guide, and what people have already done with it.
REA is a third-party project under the MIT license. INEMA is not the author: our repository brings together the guide, videos, and tests.
morluto/rea
REA: a reverse engineering MCP + CLI for agents, written in TypeScript. Version 6.4.0, over 149,000 stars (12/10/2026).
Open on GitHub → Official · siterea.tools
Official site, with illustrated guides (native, JavaScript, browser) and case studies.
Open → INEMA · PT · EN · ESREA reverse engineering guide
INEMA’s one-stop resource on REA: what it is, how it works, step by step, testing, videos, and precautions.
Open the guide → INEMA · repositoryinematds/rea-engenharia-reversa
The guide, the video page, the test results, and the script to run it in isolation.
Open on GitHub → Decompiler · freeGhidra (NSA)
The open source decompiler that REA uses under the hood for native binaries.
Open on GitHub → Real caseDX-Ball reconstructed
DX-Ball 1.07 rebuilt in C/C++ with REA + Ghidra, tested byte by byte.
Open on GitHub → Real caseth04 (PC-98)
Reconstruction of a segment from a 16-bit DOS game.
Open on GitHub → Real case · clean roomPhotoCraft
A Photoshop-style editor rebuilt from scratch in Rust, without copying code.
Open on GitHub → ResearchSRE-Bench
Columbia University benchmark: agents reverse engineering protected binaries.
Open →09 · Precautions
Before pointing it at a program.
Only analyze what you’re allowed to
Programs you own or have permission to analyze. Terms of use may prohibit reverse engineering; rebuilding isn’t the same as copying code or a brand.
Run it separately
Use a test folder and set memory and time limits. The setup --dry-run shows what would be written before writing it.
Check what it claims
Read the source for each finding and the stated limitations. REA will tell you what it couldn’t read; the agent may overstate its findings.
The full list of precautions and who REA is useful for (and who it isn’t) is in the guide.
10 · In Eventos
Areas that pair well with REA.
11 · Get started now
Choose a program you own and ask the agent to explain how it works.
You don’t need to know reverse engineering; you need an agent, Node, and a program you’re allowed to analyze.
REA Guide
Everything we’ve made about REA, in Portuguese, English, and Spanish.
Open the guide →morluto/rea
The official repository, with the code, releases, and author’s documentation.
Open on GitHub →REA videos
From concepts to technical details, with chapters and subtitles.
Watch the videos →Want to chat with people who are testing it? Join the Telegram groups or check out the community at INEMA.PRO.