LeanREA vs REA: we reran the benchmark with Ghidra and jadx installed
LeanREA claims a single 8 KB skill file can stand in for REA's 200-tool MCP server when an AI agent reverse engineers software. Its author's test left out the decompilers REA is built to drive. We installed Ghidra and jadx, added three new tasks and reran the benchmark to see whether the claim holds up.
Watch
Lean REA vs REA Reverse Engineering Benchmark Rerun
~8 min spoken. Keeps playing while you work in another tab.
In October a skill called LeanREA went up on GitHub with a blunt pitch: one 8 KB instruction file that replaces REA. LeanREA's author, aicodeking, backed it with a benchmark. Against REA it reported 38% less wall time, 35% lower cost, 56% fewer turns and 60% fewer tokens, with the same accuracy.
The author was also open about the benchmark's biggest gap. Ghidra, Hopper and jadx weren't installed, so REA, which is built to drive those engines, ran without them. A tool built to drive a decompiler should be tested with one. So we reran the benchmark with Ghidra and jadx installed, on current versions of everything, with three new tasks. We have published the harness, answer keys and every answer at github.com/stacylmartin1/leanrea-vs-rea-benchmark.
What the two tools are
REA, short for Reverse Engineer Anything, comes from the morluto team. It is a command-line tool and an MCP server, installed from npm as rea-agents. It exposes more than 200 tools: binary inspection, Ghidra decompilation, jadx for Android, tshark for network captures, Electron bundle reconstruction and more. It comes with a skill that tells the agent how to investigate, and it pushes the agent to back each conclusion with evidence: addresses, decompiled code, evidence IDs. It also refuses DRM circumvention, cheats and licence bypasses.
LeanREA, released under the MIT licence, is a single SKILL.md. It adds no tools. It tells the agent which ordinary command-line tool suits each kind of target, such as otool and nm for Mach-O binaries, go version -m for Go and asar extraction for Electron, and lists the recon commands and common pitfalls. The agent then runs those tools itself through its shell.
The argument between them is about a whole category of tooling: do agents do better with a large purpose-built toolbox, or with short instructions and the shell they already have? The diagram shows where the two differ. REA's own README has a simpler investigation flow of its side.
The numbers behind this chart
| Step | Model | Does | Hands off to |
|---|---|---|---|
| REA 1. Ask | Agent with the REA skill | Chooses REA tools by searching its tool list | REA MCP server |
| REA 2. Analyse | REA MCP server | Runs the analysis and records evidence | Ghidra, jadx, tshark or macOS tools |
| REA 3. Answer | Agent | Answers citing addresses, decompiled code and evidence IDs | The reader |
| LeanREA 1. Read | Agent with the LeanREA skill | Reads which tool suits the target and the pitfalls to avoid | The agent's shell |
| LeanREA 2. Run | Agent's shell | Runs otool, nm, strings, jadx, tshark or a short script directly | The agent |
| LeanREA 3. Answer | Agent | Answers with findings and file paths | The reader |
What we changed
We kept the original method:
- Claude Code headless with Sonnet 5.5.
- Three setups: no skill, LeanREA, and REA's MCP server with its own skill.
- Three runs per task, with the three setups run side by side.
- Answers graded against hand-made answer keys.
We changed four things.
- REA got its engines. We installed Ghidra 12.2, built its macOS decompiler, and installed JDK 25, jadx and the
jadx-headless-mcpbridge that REA 6.9.0 pins. REA's own health check reported Ghidra and jadx as working. The same tools were on the path for all three setups, so LeanREA and the no-skill agent could use them too. Hopper, IDA and apktool were not installed. - Three new tasks, each with an answer key we could check against source:
- A stripped binary. We wrote a small C program that validates a custom file format, compiled it and stripped it. The agent must recover the header, the record layout, the XOR key schedule and the checksum (CRC-32C), then decode a hidden record. If any task needs a decompiler, it is this one.
- An Android app. Binary Eye 1.75.7 from F-Droid, an open-source barcode scanner. Its release build is obfuscated, so classes are renamed. The agent must find how the app forwards a scan to a user-set URL: the five send modes, their content types, the timeout and the extra field it adds.
- A network capture. One TCP session of a made-up binary protocol. The agent must recover the framing, the opcodes, an XOR-encoded token and a zlib-compressed sensor reading.
- Current builds. We reran the original four tasks on Notion 7.44.0 and gh 2.96.0. Three are on Notion's desktop app: its Electron code, a native module, and a deeper dive into that module's single-instance lock. The fourth reads build information from the
ghbinary. The Notion facts hadn't changed; theghkey needed new versions. - A different machine. We ran on an Intel Mac; the original used Apple silicon. That matters for one result below.
The results
The numbers behind this chart
| Task | LeanREA: seconds | REA (with Ghidra and jadx): seconds | No skill: seconds |
|---|---|---|---|
| Electron app | 23 s | 460 s | 108 s |
| Native module | 64 s | 190 s | 111 s |
| Deep binary dive | 35 s | 122 s | refused |
| Go build info | 18 s | 19 s | 19 s |
| Stripped binary (new) | 28 s | 36 s | 33 s |
| Android app (new) | 38 s | 91 s | 46 s |
| Network capture (new) | 17 s | 22 s | 16 s |
| Setup | Correct answers | Total time | Total cost | Turns | Tokens |
|---|---|---|---|---|---|
| LeanREA | 155 of 156 | 681 s | $3.25 | 119 | 5.7M |
| REA, with Ghidra and jadx | 155 of 156 | 2,945 s | $7.39 | 271 | 17.3M |
| No skill | 131 of 156 | 1,096 s | $3.09 | 166 | 7.4M |
Totals over 21 runs per setup: seven tasks, three runs each.
Our runs confirmed the original finding. LeanREA and REA scored the same, 155 of 156 answer points each, and REA took longer and cost more on every task. It also needed more turns and more tokens to get there.
Installing Ghidra and jadx didn't close the gap. REA did use them:
- On Notion's native module it opened the binary in Ghidra and read decompiled functions. It averaged 29 turns there against LeanREA's 8, for the same score.
- On the Android app it used its jadx tools, taking 20 turns against LeanREA's 6, and lost a point on one run.
- On the stripped binary, the task built for a decompiler, REA's agent didn't open Ghidra at all. Like LeanREA, it disassembled with
otool, rewrote the routine in Python and checked it against the sample file.
The largest gap came from one tool, and that tool never finished. In every REA run on Notion's Electron app, the agent started with REA's whole-app analysis:
- The analysis stopped at an integrity check on one of Notion's unpacked native files.
- The agent retried with the check relaxed.
- Several minutes later REA gave up with a resource limit. In the run we recorded, it reported that the evidence record for the whole app would be about 1 GB, over its retention limit.
- The agent then found the answer with shell commands, which is where LeanREA's agent had started, answering in a median of 23 seconds.
The original author hit the same integrity error and, after relaxing it, timed the call at 48 seconds on Apple silicon. On our Intel Mac it ran out of room instead. Even leaving Electron out, REA took more than twice as long as LeanREA.
The numbers behind this chart
| Task | LeanREA: dollars | REA (with Ghidra and jadx): dollars | No skill: dollars |
|---|---|---|---|
| Electron app | $0.14 | $0.33 | $0.19 |
| Native module | $0.25 | $0.68 | $0.30 |
| Deep binary dive | $0.22 | $0.41 | refused |
| Go build info | $0.10 | $0.21 | $0.08 |
| Stripped binary (new) | $0.13 | $0.21 | $0.12 |
| Android app (new) | $0.14 | $0.43 | $0.14 |
| Network capture (new) | $0.10 | $0.18 | $0.08 |
Where the skills earned their place
Running with no skill at all was the cheapest setup by a few cents, and it scored 131 of 156. Almost all of that shortfall came from one task. All three no-skill runs of the deep dive into Notion's single-instance lock were stopped by the API's real-time cyber safeguard, which flags some security work. With either skill loaded, the same question went through every time. The original benchmark saw this once; we saw it three times out of three. The likely reason is framing: both skills present the work as structured static analysis, and a bare request to dissect a commercial binary's lock looks more like something the safeguard is built to stop.
So for a team running these agents, a skill is worth loading whichever one you choose. It makes runs faster and, on sensitive-looking tasks, decides whether you get an answer at all.
The misses, read by hand
Three answers lost points:
- Electron, one LeanREA run and one no-skill run. Each named Notion's older change channel,
notion:running-input-audio-processes-changed, instead of the-v2channel. Both exist in the code. The original benchmark's single LeanREA miss was the same. - Android, one REA run. It described send mode 4 as opening a URL but never said that means the browser.
We also corrected our own grader. Answers are matched against patterns, and after the pilot, and again after the full run, we read every miss. Several were correct answers in words we hadn't anticipated, like "Unix-domain stream socket", or a key schedule written out two steps at a time. In that last case −63k − 32 and two rounds of 31k + 7 are the same thing modulo 256. We widened those patterns and regraded every saved answer. The published repository includes the final patterns and the script that reapplies them, so anyone can check our scores.
What this doesn't show
Three caveats matter:
- It is still a small test. Three runs per task, one model, one machine.
- We built three of the tasks. We made those answer keys exact, but we also chose problems we could grade.
- Every task here could be solved with ordinary tools.
otool,strings, jadx output and a short script were enough for all seven. Heavily obfuscated native code, or a protocol hidden behind real encryption, may be where REA's engines pay for themselves. This benchmark doesn't test that, and neither did the original.
REA's answers also carried more than the grader rewards. They cited addresses, function names and evidence IDs where LeanREA's gave findings and file paths. If your team needs an audit trail behind each claim, that is a real feature, and it accounts for some of the extra turns.
Which to use
For the everyday questions an agent gets asked about shipped software, LeanREA is the better default:
- what an Electron app sends over IPC;
- which libraries a binary was built with;
- what a native module exports;
- how an obfuscated Android app talks to the network.
On those it matched REA's accuracy in less time and at lower cost, as the original benchmark found. It installs as one file, so there is no MCP server to run and no package to keep current. The original benchmark also found that REA's tool list costs about 369,000 tokens of context when an agent loads every tool up front instead of searching for them. That doesn't affect Claude Code, which searches by default, but it does affect clients that load everything.
Reach for REA when you need what LeanREA doesn't attempt: decompiled evidence you can cite, its built-in refusals for DRM and licence work, or targets where the shell runs out. On this benchmark, nothing reached that point.