
Description
The usual way to have an AI agent take apart an Electron app or a Mach-O binary is to bolt on a reverse engineering MCP server: a 25 MB npm package and more than two hundred tool definitions, which cost around 400k tokens of context if they are all loaded. leanrea goes the other way. The whole project is one 8 KB SKILL.md that adds no tools at all. It tells the agent which command is fastest for each kind of target and lets it drive otool, nm, asar, jadx, tshark and the rest through the shell it already has.
The author ran four real tasks in Claude Code (tracing an Electron feature down to its IPC channels, inventorying a native addon, recovering dependency versions from a stripped Go binary, and rebuilding a socket protocol from disassembly alone). Against the MCP setup, leanrea finished 38% faster and 35% cheaper with less than half the turns, at essentially the same accuracy. The benchmark scripts and raw per-run data are in the repo, so you can rerun it yourself.
Routes by file type: It checks file output and magic bytes first, then picks the fastest command for what it found: Electron/asar, minified bundles and source maps, Hermes bytecode, Mach-O, ELF/PE, Go and Rust build info, .NET, Android APKs, Flutter, WASM, SQLite, plists, pcap/HAR captures and firmware.
One-shot recon: Native binaries and Electron apps each get a paste-and-run command that pulls exports, linked libraries, entitlements or IPC channels in a single tool call instead of a dozen probes.
Known traps written down: Work on a copy, slice minified files instead of reading them whole, and search extracted trees with rg -uu because bundlers bury code in dot-folders such as .webpack.
Speed patterns: Start from strings and imports, find a string's function through otool's literal-pool comments, read call sequences rather than every instruction, and diff inventories before diffing code.
Graded claims: The agent labels each finding as seen, inferred or unknown, so you can tell at a glance which lines of the report still need checking.
Works across agents: One npx skills add line installs it for Claude Code, Codex, Cursor, Gemini CLI, OpenCode and others. Agents without skill support can take the plain-text file as a rule or system prompt.
The author ran four real tasks in Claude Code (tracing an Electron feature down to its IPC channels, inventorying a native addon, recovering dependency versions from a stripped Go binary, and rebuilding a socket protocol from disassembly alone). Against the MCP setup, leanrea finished 38% faster and 35% cheaper with less than half the turns, at essentially the same accuracy. The benchmark scripts and raw per-run data are in the repo, so you can rerun it yourself.
Features
Routes by file type: It checks file output and magic bytes first, then picks the fastest command for what it found: Electron/asar, minified bundles and source maps, Hermes bytecode, Mach-O, ELF/PE, Go and Rust build info, .NET, Android APKs, Flutter, WASM, SQLite, plists, pcap/HAR captures and firmware.
One-shot recon: Native binaries and Electron apps each get a paste-and-run command that pulls exports, linked libraries, entitlements or IPC channels in a single tool call instead of a dozen probes.
Known traps written down: Work on a copy, slice minified files instead of reading them whole, and search extracted trees with rg -uu because bundlers bury code in dot-folders such as .webpack.
Speed patterns: Start from strings and imports, find a string's function through otool's literal-pool comments, read call sequences rather than every instruction, and diff inventories before diffing code.
Graded claims: The agent labels each finding as seen, inferred or unknown, so you can tell at a glance which lines of the report still need checking.
Works across agents: One npx skills add line installs it for Claude Code, Codex, Cursor, Gemini CLI, OpenCode and others. Agents without skill support can take the plain-text file as a rule or system prompt.
