* feat(setup): discover project-scoped MCP registrations in doctor and uninstall * fix(setup): preserve OpenCode layer fields, user launcher provenance, and user fallback * fix(setup): restore working directory in tests and refine replacement and launcher provenance * fix(setup): bound OpenCode discovery to worktree and enforce Pi project trust * fix(setup): preserve Pi project trust failures in doctor and prevent skipping project registrations in uninstall * fix(setup): defer cross-setting environment validation and decouple OpenCode launcher ownership * fix(setup): separate OpenCode readiness schema from launcher ownership and fix cross-setting test * fix(doctor): include project remediation when disabled project registration inherits outdated user launcher * fix(setup): scope status properties to project-scoped registrations Omit scope and launcher_scope when no project-level configuration was discovered or evaluated, ensuring user-level registrations retain their exact unextended status contract in isolated environments without project files. * fix(setup): prevent activating unowned launchers during uninstall and align array normalization Prevent activating unowned or foreign launchers hidden in lower-precedence configurations during project-scoped uninstall, normalize array command arguments uniformly in OpenCode ownership parsing without appending separate args, and clarify field inheritance in client configuration documentation. * fix(setup): check effective remaining launcher on uninstall and preserve cleanup failure * fix(uninstall): preserve user configuration path in project client to check fallback ownership * fix(uninstall): scope fallback configuration paths only to project-scoped clients * fix(doctor): validate effective merged Pi flags and preserve MSIX selection during uninstall * fix(uninstall): preserve surviving OpenCode project registrations across complete configuration layers * fix(uninstall): require surviving OpenCode server to carry a launcher when checking layered activation * fix(uninstall): rely on full layered check for OpenCode instead of lower-only fallback * fix(doctor): preserve source paths for inherited environment failures When a trusted Pi project partial override or an OpenCode project registration inherits an invalid REA environment value from user configuration (or an ancestor configuration), attribute the resulting doctor invalid registration error to the contributing configuration source rather than the winning project file. Preserves source evidence provenance across merged configuration layers so doctor remediation points the user to the file that actually requires repair. * test(doctor): exercise effective cross-setting merge failure in inherited environment tests Replace scalar validation errors with cross-setting constraints (REA_GHIDRA_PROGRAM_NAME without REA_GHIDRA_PROJECT_PATH) in inherited environment regression tests so individual fragments pass and the failure is only triggered during effective layer merge, directly protecting contributingEnvironmentSource provenance lookup. * fix(uninstall): allow cleaning up owned entries in untrusted Pi projects Evaluate Pi project trust in unownedLowerLayerFallback so owned entries in untrusted Pi projects can be cleanly removed without falsely claiming that removal would activate an unowned user launcher. * fix(uninstall): require confirmed untrusted decision to skip Pi fallback check Only skip the unowned lower-layer fallback check when Pi project trust is confirmed untrusted (trust.ok && !trust.value). When Pi trust reading or parsing fails (!trust.ok), preserve the unresolved state and conservatively inspect the lower layer so that an unowned user launcher is not inadvertently exposed if the project was trusted. * fix(doctor): track activation provenance across layers and normalize platform path identity - Track activation source provenance (activationScope, activationConfigPath) across Pi and OpenCode configuration layers so activation drift remediation points to the exact file contributing the disable/enable flag rather than nearest fragment. - Normalize path identity case-insensitively on Windows and macOS when deduplicating user configuration from OpenCode hierarchy and Pi project candidates. - Qualify Pi project registration docs with trusted projects prerequisite and fallback semantics. * fix(doctor): isolate platform casing tests and restore cwd mocks * fix(doctor): use filesystem identity for path normalization and verify present files in case tests * fix(doctor): preserve inherited schema provenance and include activation in project package remediation * fix(doctor): report the contributing registration and activation sources * test(doctor): exercise combined Pi activation and launcher repairs * fix(doctor): honor OpenCode activation by config dialect * fix(doctor): share project registration activation and provenance * fix(setup): plan project removals before writes and isolate provider probes * fix(doctor): preserve OpenCode registration and launcher provenance * fix(doctor): use shared registration error and path provenance * fix(doctor): gate desktop probes on registration authority * fix(uninstall): skip absent project configuration candidates * fix(uninstall): compare effective project registration before removal * fix(doctor): guide project package launcher migration * test(doctor): verify OpenCode project launcher migration advice * fix(uninstall): separate project load order from write targets * fix(doctor): preserve OpenCode directory alias precedence * fix(uninstall): preserve unchanged remote project registrations --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Türkçe · Русский · Tiếng Việt · ไทย · Deutsch · Español · Français · Українська · Polski · Português (Brasil) · العربية · فارسی · Bahasa Indonesia · Italiano · Ελληνικά · മലയാളം · Roman Urdu · Română · Български
REA: Reverse Engineer Anything
One MCP for reverse engineering across binaries, applications, and runtime behavior.
See a feature you like. Understand how it works, down to the binary level.
Quick start · Showcases · How REA works · What you can analyze · Build RL environments · FAQ · Documentation
npx rea-agents setup
Important
Get REA from morluto/rea, rea.tools, or the rea-agents npm package. Follow the installation and release links from these official sources. A similar repository name or copied README does not establish that a download is official.
See a feature in an app that you want in your own product? Ask your agent to investigate it with REA. It can inspect the app without its source code, explain how the feature works, show the evidence, and build a version for your project.
REA connects your agent to tools for inspecting native binaries, JavaScript and Electron apps, .NET assemblies, and websites. You can also use the same tools from your terminal. Analysis runs locally, and results include the evidence and limitations behind each conclusion.
Setup registers REA with your agent and installs matching workflow instructions. Native analysis can use an existing Hopper, Ghidra, IDA or Kuna installation; setup can optionally install Hopper with approval. Static JavaScript analysis needs no native analysis engine.
Quick start
Get started at rea.tools for step-by-step instructions by operating system, agent, and analysis provider.
Connect your agent (MCP)
With Node.js and npm installed, run this from a trusted directory outside the project you plan to analyze.
npx rea-agents setup
Choose your agent, review and approve the setup plan, then restart your agent. Setup backs up existing configuration and adds REA's MCP connection and investigation skill. See the installation guide for supported clients, plugins, manual registration, and troubleshooting.
Try asking your agent:
Understand how search works in the Notes app, show me the evidence, and build a
similar feature for my project.
Replace Notes with your target app and the feature you want to understand.
Use REA from the terminal (CLI)
Inspect an extracted JavaScript/Electron app directory or ASAR:
npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --json
The result includes modules, imports, Electron boundaries and their evidence.
Replace the path with your target, such as "D:/apps/example" on Windows.
To install the rea command for regular use:
npm install --global rea-agents
rea --help
For native analysis, configure a provider first. The CLI and Evidence guide covers provider selection, native commands, snapshots, and scripting. For Linux prerequisites, see the installation guide.
Update REA
For a global npm or Bun installation, run the updater and follow its setup instructions.
rea update
If you use npx, refresh your agent setup with:
npx rea-agents@latest setup
Review the setup changes and restart your agent. See update and uninstall instructions for package runner options and troubleshooting.
Showcases
DX-Ball: reconstruct a sound-pan calculationRecover a position-to-pan helper from x86 instructions and verify the C reconstruction against 3,205 original-x86 cases and all 63 compiled function bytes. Read the case study · Reconstruction repository |
Notion: trace the Electron clipboard bridgeFollow the renderer’s clipboard API through preload and IPC into the main process to see how Notion handles rich clipboard data. Read the case study |
TH04: recover a DOS bullet-ring calculationRecover fixed and aimed angle calculations from the PC-98 game’s 16-bit instructions and compare the reconstructed C++ with historical compiler output. Read the case study · Reconstruction repository |
If you've used REA on something interesting, we'd love to see it. Share your case in an issue or a pull request, including the target, your question, how REA helped, and what you found.
How REA works
Your agent uses REA through MCP to inspect a target and trace the relevant code. It can use the evidence REA returns to ask follow-up questions, explain behavior, or build and test an implementation. The CLI uses the same workflows.
What you can analyze
REA covers native binaries, JavaScript and Electron apps, websites, .NET assemblies, Android apps, firmware, and recorded runtime and network activity.
Supported targets and requirements
For native decompilation, choose a provider that supports your target format and host OS. See choosing a deep analysis provider.
Build RL environments
Build a local environment from a recorded web session or a Linux desktop app so an agent can practice a task and check its result. Build an RL environment with REA.
FAQ
Which agents can use REA?
Any agent that supports local MCP servers. Setup configures the supported agents; other clients can use manual MCP registration.
Do I need a native analysis engine?
Deep native analysis uses Hopper, Ghidra, IDA or Kuna, depending on the target and operation. Static JavaScript and .NET inspection work without a native analysis engine. Setup can install Hopper after approval; Ghidra, IDA and Kuna use your existing installations. See provider setup for the options and their supported targets.
Do I need to start Hopper first?
REA starts Hopper when an operation needs it. On macOS, a first-run dialog may ask you to choose demo mode or activate your license. Complete that prompt in the same user session before your first CLI/MCP operation or unattended job. Open Hopper manually if needed. See Hopper startup and troubleshooting.
What does installing the skill from skills.sh do?
The skill supplies investigation instructions for your agent. Use npx rea-agents setup
to register REA's MCP server and install the matching instructions, then restart
your agent. See skill-only installation.
What code does REA return?
Native analysis returns pseudocode and assembly. JavaScript/Electron analysis recovers modules and their relationships. Your agent uses these findings to write and test an implementation; the showcases give worked examples.
Does REA upload my app?
REA analyzes targets locally. Your agent receives the tool results, and its model provider has its own data policy.
What should I do if I hit a bug?
Update first; a recent release may already fix it.
For a CLI installed with npm install --global or bun add --global:
rea update
For agent setup through npx:
npx rea-agents@latest setup
If you're using an agent, complete the setup refresh and restart it. Retry the same task. If the problem persists, open an issue with your REA version, target type, steps to reproduce and error output.
Documentation
Start with the website's worked guides. For exact options, prerequisites and result contracts:
- Installation and setup: agent registration, provider configuration, updates and uninstall.
- Readiness and troubleshooting: diagnose one agent or analysis engine.
- CLI and Evidence: commands, provider selection, snapshots, import/export and exit statuses.
- MCP contracts and agent prompts: tool results, sessions and guided investigations.
- Tool catalog: generated inventory of tools, providers and CLI commands.
Report vulnerabilities through SECURITY.md.
Community & Support
- Discord — Ask questions and share what you’re investigating with our passionate community of over 50,000 reverse engineers and builders!
- Twitter / X — Follow @reatools for updates and announcements.
- Feedback & Ideas — Want a new feature or support for a file format? Open a GitHub issue or join our Discord and let us know.
Star history
🎉 400,000 GitHub stars — thank you!
Thanks to everyone using REA, reporting bugs, requesting features, testing builds, and contributing fixes.
Contributing
We'd love your help with REA! Open an issue to report a bug or suggest a feature, or send a pull request to improve the code or docs.
See CONTRIBUTING.md for development setup and checks. See the testing guide for verification lanes.
Disclaimer
See DISCLAIMER.md for responsible-use guidance.
The project's position on illegal or unauthorized use covers all REA versions, distribution channels, and platforms; each copy retains its applicable licenses.
REA is for lawful research, education, interoperability, software preservation, and analysis of software you own or are authorized to examine.
License
REA-authored code is licensed under MIT. Third-party material retains its own licenses and copyright notices; see Third-party notices for the dependency inventory, preserved license texts, and external-tool terms.
You must legally obtain and be authorized to use commercial tools, including IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. REA grants no tool license, key, or activation entitlement. Trials and demos remain subject to vendor terms, including user, feature, automation, and output sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, and bypassing license restrictions are not authorized. This guidance does not amend MIT or third-party licenses.
