rea.run

2026-10-12

Agent reverse engineering with MCP

Agent reverse engineering means a coding agent (Cursor, Codex, Claude Code, Gemini CLI, Windsurf, Grok Build, Hermes, and other MCP clients) calls local tools to inspect software, then writes explanations for a human reviewer.

MCP is the connector: the agent launches a registered stdio server such as npx -y rea-agents@VERSION mcp and uses advertised tools — it should not invent a private RE API.

Roles table

RoleDoesDoes not
Coding agentCalls MCP tools; drafts notesGrant legal authorization
REA MCP/CLIExposes inventory/analysis toolsReplace BYO decompilers
HumanApproves targets, writes, sendsRubber-stamp unknowns as facts
Doctor/setupRegisters clients; checks providersInstall Ghidra/IDA for you

Good practice checklist

  1. Absolute paths only.
  2. Ask specific questions (“list imports of X”).
  3. Require Evidence + unknowns.
  4. Keep write/send behind approval.
  5. Pin rea-agents version; dry-run setup.
  6. Reconnect client after setup — /docs/mcp-clients/.
  7. Prefer compact schema / domain-split when catalogs choke clients — /faq/mcp-schema-size/.
  8. Measure tokens per verified finding — /faq/token-efficient-rea/.

Structured investigation skills

Community skill packaging such as /showcase/rea-investigate/ (Plan→Trace→Verify→Report + SHA-256 ledger) shows how to keep agents inside gates.

Compliance

Sources

Host wiring checklist

  1. Pick MCP-capable host.
  2. Register rea-agents server.
  3. Set schema profile if tool list overwhelms the model.
  4. Doctor before first reverse session.
  5. Prefer Evidence tools for durable notes.

Compliance

Agents amplify mistakes: keep allowlists, refuse secrets, and stay on authorized targets.