REA gives Claude Code, Codex or Cursor the tools of reverse engineering. Here you understand the technology, see the real cases and find out whether it is worth it for you.

Reverse engineering is figuring out how a program works by looking only at the executable, without the source code. REA (Reverse Engineer Anything) is an open tool that connects your AI agent to decompilers such as Ghidra, from the NSA, and returns its conclusions with the proof and the limits of each one. It is for developers, security people and anyone who studies software. This guide gathers the links, explains everything in plain English, shows real cases and a test done here. To use it, you need Node.js and an AI agent in the terminal.
REA is not a new decompiler. It gives the agent simple commands on top of Ghidra, Hopper and IDA, which used to take weeks to master.
Opens native binaries (Mac, Windows, Linux), Electron/JavaScript apps, .NET, Android and websites, and shows how a function works.
Every answer comes in four parts: evidence, recovered map, limits and what was left unanswered. No "trust me" paragraph.
The analysis runs locally. The analyzed program is not uploaded; only the results go to your agent's model.
Compiling erases names, types and comments. Reverse engineering is the way back, and REA puts the agent to work on that path.




The reason REA works so well isn’t the AI model. It’s the reference.
When you clone an existing program, the program itself shows you what the result should look like. No one needs to explain the intent: it’s already built in.
The agent builds, compares against the original, and knows right away whether it got it right. It’s a validation loop that doesn’t depend on you. That’s how DX-Ball reached 140 functions identical byte for byte.
This doesn’t prove the agent can build anything. What you want to create doesn’t exist yet. Without a reference, the agent writes good code that misses the mark. The solution is to create the reference: requirements, examples, and a side-by-side comparison at the end.
The test that applies to any skill: if the next model is twice as good, does it matter more or less? Prompt tricks matter less. Knowing how to explain what you want and set up a reference for the agent to check itself matters more.
REA reads what is on your computer: the app, the binary, the JavaScript. The data and logic on the company's server never reach you, so there is nothing to open. You see what the app sends and receives, never how the server decides.
Database and user accounts, business rules and pricing, AI models and prompts, payments, server keys and passwords.
For your version to work, you have to rebuild the server and pay for it: hosting, database, AI APIs. It is often the most expensive part of the system.
If your clone uses the original server, the company can block the key, change the API or shut off access whenever it wants, and everything stops working.
If you build apps: keep what is valuable on the server. Assume any agent can map your app; what protects you is the server, the data and trust, not closed code. ▶ Video: it reads the app, not the server
For JavaScript/Electron apps, Node is enough. For native binaries, you need an installed decompiler.
Versions 22.19+, 24.11+ or 26+ (23 and 25 are not supported).
node -vClaude Code, Claude Desktop, Codex, Cursor, Gemini CLI, Windsurf, OpenCode, Copilot CLI, VS Code and others.
claude --versionGhidra (free, needs Java), Hopper or IDA. The setup can install Hopper, with your permission.
# Ghidra: download at github.com/NationalSecurityAgency/ghidra/releases
Of the three REA supports, only Ghidra is fully free and open source. IDA has a Free edition, with limits.
| Tool | Free? | Open source? | Price |
|---|---|---|---|
| Ghidra | Yes | Yes | US$ 0 |
| Hopper | Free trial | No | Paid license |
| IDA | Free edition | No | Pro from ~US$ 1,099/year |
Built by the NSA, runs on Windows, Linux and Mac, decompiles and supports script automation. No license cost, commercial use included.
Commercial, with a free trial. The current version advertises native MCP integration, which matters for AI agents.
IDA Free only covers x86/x64 and non-commercial use, and lacks the IDAPython API of the paid plans, which gets in the way of automation.
| AI agent (Codex or Claude Code) | Variable: subscription or tokens |
| REA + MCP | Free (MIT): integration and orchestration |
| Ghidra | Free and open source |
Bottom line: to build your own reverse engineering system with agents, start with REA + Ghidra + Codex. There is no decompiler license to pay, and the analysis runs on a Windows or Linux machine, including a properly configured VPS. The main cost is compute and AI tokens, if you use a paid model. Prices change: check the official sites before buying.
Read in the version 6.4.0 code (10/12/2026). REA does not decompile on its own: it orchestrates specialist engines and returns everything in the same evidence format.
scripts/rea.mjs is the entry point: rea mcp starts the MCP server (stdio); any other command goes to the CLI. Both use the same application layer and evidence contract. The CLI has around 150 commands, and MCP has more than 100 tools.
Each response includes evidence_id, the sha256 of the analyzed file, who produced it (provider), the confidence level, and a list of limitations. When it doesn’t know, it says so. In a version comparison, it only says “removed” if coverage on the other side is complete; otherwise, it marks it as unknown.
| Engine | Purpose | License | Linux ARM64 |
|---|---|---|---|
| JavaScript/Electron (built in) | App graph, IPC, source maps, without execution | Free | Yes (tested) |
| Ghidra 12.1 + JDK 21 | Native binary: pseudocode, references | Free | Yes, with the decompiler compiled for ARM |
| Hopper | Native binary | Paid, with a demo | No with the setup (downloads the x86 package) |
| IDA · JEB | Native · Android | Paid | Depends on the product |
| Frida · browser (CDP) · adb | Observe at runtime | Free | Yes |
setup writesClaude Code: ~/.claude.json and the skill in ~/.claude/skills. Codex: ~/.codex/config.toml. OpenCode: opencode.json. It shows the plan, asks for approval, creates a .rea.backup copy, and pins the version. Run it first with --dry-run; to undo, use rea uninstall. The project warns that it is not a sandbox, and we found no code that sends usage data.
Claude, Codex and Gemini sometimes refuse parts of a reverse-engineering job, even a legitimate one. The way out is an open model that does not refuse. If your computer cannot run the model, these two prepaid platforms host it for you: add US$ 5 to 10 in credit, get the key and ask your agent (dsh, Claude Code, Codex) to use it.
Open "abliterated" models (the refusal reflex removed from the weights), through an OpenAI-compatible API. Prepaid per token or monthly plan.
# API endpoint https://api.abliteration.ai/v1
A router with 200+ models behind a single endpoint, just like OpenRouter. It has an open-source (MIT) version you can host yourself.
Heads up: in the cloud, your code leaves your machine. For your own app or sensitive files, prefer a local model (Ollama). Prices and catalogs change: check the page before adding credit.
Full step by step, with dsh and the tested local models: REA sem travas →
Commands from the project itself. REA changes almost every day: check the version first.
Static analysis of an Electron app needs neither Ghidra nor MCP, and does not run the app. Point it at the folder or the app.asar.
npx -y rea-agents@latest analyze-javascript-application /caminho/absoluto/app.asar \ --max-heap-mb 1024 --analysis-timeout-ms 60000 --json
The setup shows the plan, backs up your configuration and asks before changing anything. It registers the MCP server and installs the investigation method (skill).
npx rea-agents setup --dry-run # shows what it will write, without writing npx rea-agents setup # restart the agent afterwards
The scoped doctor tests one agent or one specific engine, without failing on something you will not even use.
rea doctor --client claude_code --json rea doctor --provider ghidra --json
In plain language, with a program of yours or one you are authorized to analyze.
"Understand how search works in app X, show me the evidence
and build something similar in my project."
REA brings the evidence and your agent writes the code. The method below is what separates a sloppy copy from a version of your own that works.
Simulated example. To illustrate, we imagine REA studying Obsidian's quick switcher (Ctrl+O), an Electron app. We did not run this test: the findings below show the shape of the work, not a measured result.
The company keeps the recipe, which is the source code. You have the cake, which is the installed app. REA tastes the cake and the agent works out a rough recipe, without the original names. Then you bake your own and compare until it tastes right.
You don't have to own the app, you need the right to examine it. Reading and learning is fine. Photocopying and selling (copying the code), breaking the lock (DRM) or sneaking past the desk (cheats, logins) is not.
A broad request gets a vague answer. Ask about one behavior you can see and test.
| Too broad | Focused |
|---|---|
| "Reverse engineer Obsidian" | How does the quick switcher find the right note from three letters? How does a [[link]] become a line in the graph view?How does the app notice a file changed outside it? |
Obsidian is Electron: the JavaScript ships inside app.asar, and REA's JavaScript analyzer is enough. Free, no Ghidra, and the app never runs.
| App type | Examples | Tool |
|---|---|---|
| Electron desktop | Obsidian, Notion, Slack | REA's JavaScript analyzer (free) |
| Native program | .exe, .app, games | Ghidra (free), Hopper or IDA |
| Website | any site | Browser tools: only what reaches you |
| Android or .NET | APK, DLL | Each format's own analyzers |
A whole-app analysis is big: in our 6.4.0 test, an Electron app with 210 files produced a 41 MB JSON. The agent doesn't need to read it all. It reads the overview (detail: "summary"), opens the search module and traces only that feature. And it never reruns the same analysis: it saves the result and goes back to it.
Before you build on a finding, say what kind it is. In the simulated example:
In the files, with the excerpt cited. "The note list lives in memory and is filtered on every keystroke."
A careful guess, not yet proven. "A letter at the start of a word seems to score higher than one in the middle."
Out of REA's reach. "Paid Sync resolves conflicts on the company's server."
Unknown is not defeat: it becomes a design decision. With no access to the Sync server, our version keeps notes in a local folder and that's it. And remember: reading code never proves it runs that way. The test does.
Each finding becomes a decision and a test against the original. Never copy the app's code, icons or text.
| Finding (simulated) | What it means | Our decision |
|---|---|---|
| In-memory filter on every key | Fast with thousands of notes, no database | In-memory list and a filter written from scratch |
| Word starts score higher | Inferred: still needs proof | 30 identical searches in both apps; the goal is the same top note every time |
| Sync on the server | Out of REA's reach | Out of scope: local folder |
Found a difference? Go back to step 3, trace the exact spot and adjust. Final goal: the same behavior and zero copied lines.
Use REA to learn how [the quick switcher (Ctrl+O)] works in [Obsidian].
Summary first. Trace only that feature.
Label each finding as seen, inferred or unknown.
Then build my own version, with my own code, and test it against the original.
Not a coder? Stop after the third line and ask for the plain-English report only. See the full step-by-step walkthrough.
This is not about copying all of Obsidian at once. It's about building your notes app, one feature per round, with the method above. Walkthrough for Windows.
First of all: read Obsidian's terms of use. Studying it for personal use is the safe ground. Distributing or selling the result, or copying the app's code, icons and text, is not.
Install Node.js (LTS version: next, next, finish) and have Claude Code or Codex installed and signed in with your subscription.
In File Explorer, paste the folder below into the address bar. Copy the .asar file to C:\projects\my-notes\target\. Obsidian usually has two (app.asar and obsidian.asar); the main one is usually obsidian.asar. If unsure, copy both. That way you work on the copy and never touch the Obsidian you use.
%LOCALAPPDATA%\Programs\Obsidian\resources
In cmd. It asks which agent you use: pick yours, accept, then close and reopen the agent.
npx rea-agents setup
cd C:\projects\my-notes claude # or: codex
Paste the request and read the report. If something isn't clear, ask: "what does that mean?".
Use REA to learn how the quick switcher (Ctrl+O) works
in the file target\obsidian.asar.
Summary first. Trace only that feature.
Label each finding as seen, inferred or unknown.
Explain it to me in plain English. Don't build anything yet.
Now create, from scratch and with your own code, a simple notes app:
- opens a folder of .md notes
- has the quick switcher you studied
Don't copy Obsidian's code, icons or text.
Then run it, test 10 searches in both and show me the differences.
Same pair of requests ("understand X", then "add X"): [[note]] links, the graph view, noticing when a file changes outside the app, dark theme. Fix one difference at a time and always test with your real notes.
Whatever runs on the server: paid Sync, Publish and the plugin store. REA can't see them. In your version, notes live in a local folder; to sync, use Google Drive or OneDrive.
Some REA tools only work on Linux. Then run the same walkthrough in WSL or on a VPS.
Where are you reading from? What did you think of this case? And where you live or work: are people already using AI like this, and which everyday program would you like to have your own way?
Want to learn how to do this? INEMA.CLUB has open, free courses and guides on hands-on AI.
Learn at INEMA.CLUBNumbers taken from the repositories and the official site on Oct 10, 2026.

FUN_… functions). The agent found the right function, recovered the 3 rules from the code and wrote a generator: AGNT-1001 opened it.


Assessment based on the documentation, the published cases and a test on this machine.
• Developers who want to understand how a very good app handles search, sync or the clipboard.
• Security and privacy: audit the apps on your machine and see what they send out.
• Recovering logic from a program of yours whose code was lost.
• Study, CTF and preservation of old software.
• People who build tools for AI: the evidence · map · limits · unknowns format is a great model.
• People who do not use a terminal: it requires Node and patience with versions that change every day (5.0 → 6.3 in three days).
• Copying a competitor's product: legally risky and misses the point.
• Heavily protected programs (VMProtect, heavy obfuscation) or with the logic on the server.
• Expecting miracles from any model: on deliberately protected binaries, even the best models solve only part of the cases (SRE-Bench).
We ran REA 6.3.0 (analyze-javascript-application, no Ghidra, no MCP) on a Linux ARM server. It worked on one of our own Node apps (97 files, 3.5 MB): in 20 s and 1.3 GB of RAM it returned a graph with 2,109 nodes and 3,104 edges, 2,508 findings and 5 declared limitations, without running the app. It hung on two targets that had a single huge JS file (the bundle of an installed Electron app and typescript/_tsc.js, 6 MB): it sat at 100% CPU for more than 20 min on the same file, ignored SIGTERM and only stopped with kill -9. Bottom line: it works well on normal-sized projects; on large apps, run it with a time cap (timeout -s KILL) and without node_modules. The full JSON is huge (241 MB here): day to day, let the agent query it through MCP instead of reading the whole file.
For those who sell software: assume any agent can map your app. What protects you is data, the server, distribution, trust and speed, not closed code.
Same ARM64 Linux server (Node 24.13), same Electron app that stalled on 6.3.0. We ran 6.4.0 in isolation: HOME and npm cache in a test folder, with memory and time limits on the entire process.
| Test | Result |
|---|---|
| Electron app (210 files) on 6.3.0, 10/10 | Stalled: 100% CPU for over 20 min on a single file; only stopped with kill -9 |
Same app on 6.4.0, with --max-heap-mb 1024 --analysis-timeout-ms 60000 | 94.5 s, peak of 1.26 GB: 202 JS files read, 0 failures, 7.9 million nodes, 4,898 modules, 13,500 findings. The file that stalled preserved the static facts, and the rest became a declared limitation (377 total) |
Our Node project, without node_modules | 19.7 s, 0.55 GB: graph with 998 nodes and 1,260 links, 1,295 findings |
Go binary (inspect-artifact) | 1.4 s: file format, hash, and inventory |
setup --dry-run in a test HOME | Nothing written; diagnostics show Ghidra and IDA are not configured |
# Test HOME: nothing touches your agent configuration mkdir -p /tmp/rea-test systemd-run --user --scope -p MemoryMax=8G -p RuntimeMaxSec=900 \ env HOME=/tmp/rea-test npm_config_cache=/tmp/rea-test/npm \ npx -y rea-agents@6.4.0 analyze-javascript-application /absolute/path/app.asar \ --max-heap-mb 1024 --analysis-timeout-ms 60000 --json > evidence.json
What changed in 6.4.0: each analysis runs in a separate process, with memory and time limits, and can be interrupted partway through while returning what it has completed. No Linux? Replace systemd-run with your system’s time limit. The JSON output is large (41 MB here): for everyday use, have the agent query it through MCP.
From concepts to technical details. The longer videos have a player with chapters and captions on the videos page. Videos are in Portuguese.
Why REA can read your bank app but cannot touch your account, what leaks, and the rule for app builders (video in Portuguese). Watch · short
Why it works, its architecture, evidence, the before-and-after test, and its limitations. Watch
What it is, Ghidra, the vault, DX-Ball, and what to watch out for (6 min). Watch
The hype and what’s real. YouTube
Third-party projects. Stars and versions checked on Oct 10, 2026.
REA: MCP + reverse engineering CLI for agents. TypeScript, MIT, ~144k stars, version 6.4.0 (Oct 12, 2026).
Official site with illustrated guides (native, JavaScript, browser) and the case studies.
Free, open-source decompiler from the NSA. Java, Apache-2.0, ~82k stars, version 12.1.4.
DX-Ball 1.07 rebuilt in C/C++ with REA + Ghidra, tested byte for byte. MIT. The game files are not included.
Reconstruction of a PC-98 game (DOS, 16-bit): the bullet ring calculation. MIT.
Photoshop rebuilt from scratch in Rust (clean room), ~39k stars, alpha. Also FilmCraft (Premiere) and LightCraft (Lightroom), from the ArtCraft suite.
Columbia University benchmark: agents reverse engineering protected binaries. Under development.
README in PT/EN/ES with the links and the assessment.
REA itself warns you: the responsibility is yours.

rea update or npx rea-agents@latest setup before reporting a problem.