---
title: "What Is LeanREA? The 8 KB Skill File vs REA Explained"
url: "https://goremy.ai/blog/articles/what-is-leanrea"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-11-23T03:40:22.795Z"
updated: "2026-11-23T03:40:22.795Z"
topic: AI Agents & Automation
description: "LeanREA is an 8 KB skill file that replaces REA's 207-tool MCP server for AI reverse engineering. What it is, how to set it up, and what its benchmark shows."
---

# What Is LeanREA? The 8 KB Skill File vs REA Explained

> LeanREA is an 8 KB skill file that replaces REA's 207-tool MCP server for AI reverse engineering. What it is, how to set it up, and what its benchmark shows.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-11-23

## What is LeanREA?

LeanREA is a single 8 KB skill file that teaches an AI coding agent how to do reverse engineering work. It is a lightweight alternative to REA (Reverse Engineer Anything), a popular GitHub project that delivers the same kind of workflow through an MCP server with 207 tools. LeanREA has no server to run. It is one short text file that tells the agent which shell commands to use and in what order. It was built by the creator AICodeKing and is published on GitHub as aicodeking/leanrea.

## TL;DR

- **LeanREA is one 8 KB file**, not a server. REA's npm package is about 25 MB with 72 KB of skill documentation, and it exposes 207 tools.
- In a 36-run test inside Claude Code, LeanREA was **38% faster and 35% cheaper** than REA, with 56% fewer agent turns and 60% fewer tokens.
- Accuracy was nearly identical: **74 correct answers out of 75 for LeanREA, versus 75 out of 75 for REA**.
- The biggest gaps showed up on **Electron and Go binary tasks**, where REA sometimes returned enormous outputs (one run returned 140 MB of JSON) that the agent then had to work through.
- The test was small: four tasks, one agent environment. Treat it as **a strong hint, not a verdict**.
- If you already use REA and it works for you, you do not have to switch. If you are starting out or paying per token, LeanREA is cheap to try.

## What is reverse engineering, and why would an agent need help with it?

Reverse engineering means taking finished software, such as a compiled program or a packaged desktop app, and working out how it behaves without having the original source code. Security researchers do it to check whether a program is safe. Developers do it to understand an undocumented file format or to figure out how an old application worked.

It is slow, detail-heavy work, which makes it a good fit for an AI agent. But an agent needs to know which tools to run and how to read their output. REA and LeanREA are two different ways of handing the agent that knowledge.

## How is a skill file different from an MCP server?

An MCP server is a running program that exposes a set of tools to an AI agent. The agent sees a menu of tools, calls them, and gets results back. REA works this way, with 207 tools on the menu.

A skill file is plain text. It sits in a folder your agent reads, and it describes a workflow: when you are asked to do X, run these commands, look at this output, then do Y. There is nothing to install or keep running. The agent uses the shell commands already available on your machine.

The trade-off is control versus weight:

| | REA (MCP server) | LeanREA (skill file) |
|---|---|---|
| Format | MCP server with 207 tools | One 8 KB text file |
| Package size | About 25 MB, plus 72 KB of skill docs | 8 KB |
| Something to run | Yes | No |
| What the agent sees | A large tool list | A short list of commands and steps |

The central argument behind LeanREA is that for many agent tasks, a short list of the right shell commands works better than a big tool server built on top of the same underlying utilities.

## How do you set up LeanREA?

The exact steps live in the project's README on GitHub, so check there first. I am not going to invent commands. The general pattern for any skill file looks like this:

1. **Get the file.** Download or clone the repository at github.com/aicodeking/leanrea.
2. **Put it where your agent looks for skills.** Claude Code, for example, reads skills from a designated folder. The README should say where the file goes for your agent.
3. **Make sure the underlying tools exist.** A skill file tells the agent which commands to run. Those programs still need to be available on your machine. The README should list what the workflow expects.
4. **Ask for a task in plain language.** For example: "Look at this binary and tell me what it does." The agent reads the skill and follows the workflow.

If you were running REA, remove or disable its MCP server in your agent's settings so the two do not compete for the same job.

## What does LeanREA do, and what does it skip?

LeanREA condenses REA's reverse engineering workflows into one file. What it does is give the agent a compact playbook: the commands to reach for and the order to use them in.

What it skips is the server layer. That has real consequences:

- **No wrapper tools.** The agent runs commands directly instead of calling 207 pre-built tool functions.
- **No big tool list in context.** In the benchmark write-up, when Claude Code's tool search feature was disabled, loading REA's full tool list into context cost roughly 400,000 tokens. A skill file avoids that cost.
- **No structured tool outputs.** REA's tools return their own formatted results. With LeanREA the agent reads raw command output, which means it has to handle whatever the commands print.

Fewer moving parts is the appeal. Less packaged convenience is the price.

## What do the benchmark numbers show?

The figures come from a head-to-head test of 36 runs inside Claude Code, covering four reverse engineering tasks:

| Measure | LeanREA vs REA |
|---|---|
| Speed | 38% faster |
| Cost | 35% cheaper |
| Agent turns | 56% fewer |
| Tokens | 60% fewer |
| Correct answers | 74 of 75 (LeanREA) vs 75 of 75 (REA) |

The most useful detail is why the gaps appeared. On Electron app tasks and Go binary tasks, REA needed multiple tool calls and sometimes returned huge outputs. One run produced 140 MB of JSON, which the agent then spent extra turns parsing. A skill file that steers the agent toward targeted commands avoids that kind of dump.

## What don't the benchmark numbers show?

Be careful with these results. Several limits apply:

- **It is small.** Four tasks and 36 runs is enough to see a pattern, not enough to promise the same result on your work.
- **It is one environment.** The test ran in Claude Code. Other agents and models may behave differently.
- **Settings matter.** The 400,000-token figure applies when tool search is disabled. With tool search on, REA's overhead would likely be smaller, so the cost gap depends on how your agent is configured.
- **Accuracy was not perfect.** LeanREA missed one answer out of 75. That is close, but for work where a single wrong answer matters, a miss is a miss.
- **The tasks were chosen by the people testing.** Tasks where REA's tools are especially verbose will favor a lean approach.

Also note that a video from the same creator pairs LeanREA with DeepSeek V4.1 as a low-cost setup. The cost savings of a skill file and a cheaper model can stack, but the benchmark above only compares the two approaches inside Claude Code.

## Is LeanREA a usable replacement for REA?

For many people, yes, with a caveat. If your reverse engineering tasks resemble the benchmark (inspecting binaries and Electron apps, answering questions about them), LeanREA is lighter, cheaper to run, and nearly as accurate in the test. Trying it costs you one small file and an afternoon.

Stay with REA if you depend on its structured tool outputs, if your tasks go beyond what an 8 KB playbook covers, or if you want a fixed, tool-by-tool interface your team can audit. A 207-tool server is heavy, but it is also explicit about what the agent can do.

A reasonable approach is to run both on a task you already know the answer to. Compare time, cost and correctness yourself. That tells you more than any published benchmark.

## What does this mean for you?

If you are not a developer, the useful lesson is bigger than reverse engineering. More AI tooling is not always better. A short, well-written set of instructions can beat a large system, because it uses less of the agent's memory and attention. When you set up AI tools at work, ask whether a simple written procedure would do the job before adding another integration.

If you do technical work, test before you commit. Measure on your own tasks, and check how your agent is configured, since that changed the cost picture here.

If you manage a team, note the security side. Reverse engineering tools are powerful. Make sure anyone using them is working on software they have the right to analyze.

## Could you build your own tracker for comparing tools like this?

Comparing two tools fairly means logging the same things each time: task, time, cost, and whether the answer was right. That is easy to lose in a spreadsheet. With [Remy](https://goremy.ai), you can describe a small internal app in plain English, such as a form that records each test run with a tool name, task, minutes, token cost and a correct/incorrect flag, plus a dashboard that totals them by tool. Remy builds and deploys it with a database and sign-in, and you own the code. It is a practical way to keep your own benchmark instead of trusting someone else's.

## Frequently Asked Questions

### What does LeanREA stand for?

LeanREA is a lighter version of REA, which stands for Reverse Engineer Anything. "Lean" refers to the size: one 8 KB skill file instead of a 207-tool MCP server.

### Do I need to run a server to use LeanREA?

No. LeanREA is a skill file with no MCP server. Your agent reads the file and runs shell commands directly. Check the GitHub README for where to place the file and which command-line programs the workflow expects.

### Is LeanREA more accurate than REA?

No. In the 36-run benchmark, LeanREA got 74 of 75 answers right and REA got 75 of 75. LeanREA's advantage was speed (38% faster) and cost (35% cheaper), not accuracy.

### Does LeanREA work outside Claude Code?

The benchmark ran in Claude Code, and the sources do not report results for other agents. Skill files are a general pattern, but check the README for which agents are supported before relying on it.

### Is the 38% speed improvement guaranteed?

No. It comes from four tasks and 36 runs in one environment. Your results depend on your tasks, your agent, and settings like tool search. Run your own comparison on a task where you already know the answer.
