leanrea - Setup Guide¶
Source: aicodeking/leanrea via skills.sh - 3.6K combined installs across 1 indexed listing; first seen 2026-11-29 (Nov 29 morning sweep)
GitHub: aicodeking/leanrea - 4,558 stars, MIT license, branch main, last pushed 2026-10-19; one skill lives at leanrea/SKILL.md, with a bench/ directory (BENCHMARK.md, run.py, results/final.jsonl) that ships the benchmark harness for re-running the published numbers.
Category: Engineering - reverse engineering shipped software with plain CLI tools
Quality Tier: 🟡 Yellow - the single listing (leanrea) passes Gen Agent Trust Hub and Socket but carries a Warn on Snyk.
leanrea is a single 8 KB skill file from aicodeking that replaces the REA (Reverse Engineer Anything) MCP server with plain local CLI tools. Instead of installing a 25 MB npm package and an MCP server with 207 tool definitions, leanrea tells the agent which command is fastest for each target type, gives ready-to-paste recon commands, and lists the traps that the tools would otherwise handle. The agent runs the real tools itself through Bash, adding zero tool definitions.
The repository reports that its own benchmark (Claude Code headless, Sonnet 5.5, macOS arm64) measured 38% less wall time and 35% lower cost than REA at the same accuracy. The benchmark harness ships in-tree under bench/ (run.py, tasks.json, results/final.jsonl), so a reader can re-run those numbers.
Installation¶
npx skills add aicodeking/leanrea
The skills CLI finds the leanrea skill and asks which agents to install it for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode and the others it supports.
Common variants:
npx skills add aicodeking/leanrea -g # install for your user, in every project
npx skills add aicodeking/leanrea -a claude-code -y # Claude Code only, no prompts
npx skills add aicodeking/leanrea -g -a '*' -y # every supported agent, user level
npx skills update leanrea # pull the latest version later
Manual install, if preferred:
git clone https://github.com/aicodeking/leanrea
mkdir -p ~/.claude/skills && cp -R leanrea/leanrea ~/.claude/skills/
If an agent has no skills support, paste leanrea/SKILL.md into its rules or system prompt; it is plain text.
What It Provides¶
| Skill | Installs | Use For |
|---|---|---|
| leanrea | 3,569 | Reverse engineer shipped software with plain local CLI tools, no MCP needed: pick the fastest command for Electron, native, Go, Rust, .NET, Flutter, WASM, APK, SQLite, pcap, firmware and website targets. |
All 1 indexed listing clears the 500-install threshold and appears in the table above.
Why This Matters for Hermes Agents¶
leanrea is a working demonstration that a compact skill can replace a heavyweight MCP server. It swaps 207 tool definitions (about 3.35 MB) for a single 8 KB note that routes the agent to the right CLI command and lets the agent's own Bash tool do the work. The structure is worth copying: a router that maps each target type to its fastest command, one paste-and-run "first move" block per target, speed patterns such as diffing inventories before diffing code, and an evidence discipline that marks every claim as seen, inferred, or unknown. The benchmark harness ships in-tree, so a Hermes builder can re-run it against their own machine and model. For Hermes agents, which already expose shell tools natively, the takeaway is that a short skill often beats adding an MCP layer for work the agent can already do with existing CLIs.
Usage¶
| You say | What happens |
|---|---|
| "How does the search feature in Foo.app work? Show the evidence." | Uses leanrea to route the Electron app through asar extraction and rg -uu, then traces the feature to its IPC channels. |
| "What Go version and dependencies is this stripped binary built with?" | Uses the Go path: go version -m T to read the build info. |
| "Inventory the exports and entitlements of this Mach-O binary." | Uses the native first-move command: lipo, otool, nm and strings in one batched shell call. |
| "Compare these two builds and tell me what changed." | Uses the speed pattern of diffing inventories before diffing code. |
| "Is this claim actually in the binary, or are you guessing?" | Uses the evidence rule to mark each claim as seen, inferred, or unknown. |
Verification¶
The skill lives at leanrea/SKILL.md on branch main. Fetch it directly to review before installing:
curl -sL https://raw.githubusercontent.com/aicodeking/leanrea/main/leanrea/SKILL.md
The tree ships 12 files: .gitignore, LICENSE, README.md, leanrea/SKILL.md, and a bench/ directory (BENCHMARK.md, ctx.sh, mcp_list.py, results/final.jsonl, run.py, run_all.sh, setup.sh, tasks.json). The benchmark harness reproduces the numbers the README cites.
Security¶
skills.sh verdicts for sampled skills (verified 2026-11-29) - re-check the security pages on skills.sh before production use:
| Skill | Gen Agent Trust Hub | Socket | Snyk |
|---|---|---|---|
| leanrea | Pass | Pass | Warn |
The single listing passes Gen Agent Trust Hub and Socket and carries a Warn on Snyk, which is why this guide is Yellow. Review the Snyk page before relying on it in production.
Integration with CorpusIQ¶
CorpusIQ is the connector layer that lets AI assistants read the systems a business already runs on - accounting, payments, CRM, email, files and analytics - and answer with the source named. It is read-only by design: it retrieves data and never writes to, or acts in, a connected system, which is what makes it safe to point at live accounts.
This page is part of the CorpusIQ directory, the reference we maintain for the MCP server and agent-skill ecosystem. Run alongside CorpusIQ, a third-party server like this one can be combined with a company's own business data in a single answer.
Limitations¶
- Snapshot data, verified 2026-11-29: 3,569 combined installs across 1 indexed listing; 4,558 GitHub stars; MIT license; last pushed 2026-10-19. Counts drift over time.
- The 38% faster and 35% cheaper figures come from the repository's own benchmark (3 reps per cell, one model, one machine); the repository notes the plain model is already close to leanrea without any skill.
- The skill is guidance only: it does not install or ship the reverse-engineering tools it references (asar, otool, nm, Ghidra, jadx, apktool, tshark, binwalk, sqlite3); the agent must have them available or install them.
- The benchmark harness assumes macOS with a specific target Electron app installed and a
ghbuilt with go1.27.1; other versions need new answer keys. - leanrea is not affiliated with REA; the repository credits the morluto team as the source of most of the gotchas it documents.
Related¶
- REA - Reverse Engineer Anything Skill Setup
- Reverse Engineering Skills - Frida and IDA Setup
- Reverse Skill - Security Research Router Pack
Skills Catalog | Skills Marketplace
Pro Tips¶
- Review
leanrea/SKILL.mdbefore installing; the curl path above returns the whole skill, which is only 8 KB. - Prefer
npx skills add aicodeking/leanreafor reproducibility; add-gfor a user-level install across projects. - Work on a copy and batch independent probes into one shell call, as the skill's rules direct, to keep turn counts low.
- Use
rg -uuwhen searching extracted trees; bundlers hide code in dot-folders like.webpack/. - The skill does not install the tools it references; have asar, otool and nm available, or use the fallback in the same router row.
← Skills Catalog | Skills Marketplace → Powered by CorpusIQ