Reverse Engineer Anything, Then Prove the Rebuild Matches
An agent is only as capable as the tools it can reach. When it needs a tool we do not have, the honest options have always been: ask a human, or stop. We wanted a third: let the agent inspect something that already works, understand it down to the evidence, and build its own version.
REA ("Reverse Engineer Anything", MIT) is the analysis half of that. It connects an agent to tools for inspecting native binaries, JavaScript and Electron apps, .NET assemblies, Android packages and live browser behavior, and it returns findings with the evidence and the limits behind each one. It is 460,000 lines of TypeScript, so we did not fork it. We run it as a pinned sidecar behind our MCP gateway and upgrade it by version, the way you treat any dependency you did not write.
The part a scanner cannot tell you
Analysis tells you what a target does. It cannot tell you whether the thing you rebuilt actually matches. That gap is where "I replicated it" quietly becomes "I wrote something that passes the tests I also wrote" — the same rubber-stamp failure we have watched reviewers commit when the author grades their own work.
So we reimplemented REA's best idea on our own primitives: a reconstruction obligation ledger. Every claim about the rebuild is an obligation. An obligation closes only when a verifier passed and its authority is at least as strong as the original observation. A static check cannot close a claim that was observed by running the real process. An empty ledger never closes — absence of evidence is not closure. The verdict fails closed, every time.
"Anything" needs a fence
"Reverse engineer anything" is a capability you have to be careful handing out. Before any analysis runs, the caller must declare the target's class — owned, licensed, or a lawful interoperability purpose — and the deployment only permits the classes an operator has turned on. The default set is the conservative one; widening it to "any" is an explicit operator act, never something a caller can do by passing a different argument. The fence is config, not a suggestion in a prompt.
What shipped
Three tools on the gateway: rea_status, rea_analyze_javascript, and
rea_ledger_close. The static JavaScript path needs no native engine and runs
immediately; for binaries, Ghidra runs headless in the sidecar — we measured a
full analysis of a small ELF at 24 seconds and 747 MB of memory, with an
evidence record at the end. It is the first turn of a longer loop: inspect,
rebuild, prove, keep the tool, learn from the run.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.