mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 16:57:19 +00:00
* fix(desktop): keep a program word and a directory's neighbor The program after env stays the program even when a captured file sits in a folder of that name. A selected directory is not a database, so a neighboring file keeps the parent folder's spelling. * fix(desktop): record whether a selected path is a directory Capture stores the walked path's kind. A neighboring file of a selected directory keeps the parent folder's spelling even when that directory never changes and its children are not content roots. * fix(desktop): mark containing paths without a pairwise scan A recorded path marks its known ancestors as directories in one walk up the path, instead of comparing every recorded path with every other. * fix(desktop): keep a selected folder that is named like a database log A folder the caller selected stays a selected root when its name ends in -journal or -wal. A generated log beside a database file still does not. * fix(desktop): refuse a build command that exceeds the argument vector Splitting one argument still leaves the whole command under Linux's E2BIG limit. A request past that budget is refused before the process starts. * fix(desktop): remap a captured path in an env assignment The program word stays the program. A NAME=value assignment keeps its name and follows a captured path value when that path's spelling moves. * fix(desktop): keep oversized text out of draft guards A value or line longer than the draft's text bound is not copied into a guard, so one large frame cannot fill the task by itself. * docs(desktop): correct dconf and check-preview guidance A dconf version kept without its bytes is unreadable, not an empty key list. A values preview is copied into a check only when it is an uncut scalar. * fix(desktop): keep an empty env value empty An empty assignment is not a path. Resolving it named the working directory and rewrote the value when that directory's spelling moved. * fix(desktop): keep a run's font on the run, not the frame's text A formatting attribute such as Scribus FONT is not the document's words. Joining it across runs made a frame-wide text check of ItalicBold that failed when a run was split. The font stays a value check on its own run. * fix(desktop): do not pair JSON records by a selector-shaped field A field named @record_id matched the id suffix and became [@record_id=one], which reads an XML attribute. Records paired while their pointers matched nothing. Names that start with @ or > are not id fields. * fix(desktop): count a save-numbered id once when pairing members xml:id and draw:id values such as id123456 were both generated and numbered, so the same selector was counted twice and refused. A text edit of two elements keyed only by those ids now keeps its check. * fix(desktop): preserve selected state directory aliases * docs(desktop): explain tool and skill refresh prerequisites * fix(desktop): align nested state selections with aliases * fix(desktop): check build runtime export capability * fix(desktop): provide complete runtime repack command * fix(desktop): retain runtime probe failures * test(desktop): identify capture independently of schema preflight * fix(desktop): preserve document URLs and value formats * fix(desktop): bound added checks and omit noisy text guards * fix(desktop): exclude unseeded locks from task checks * fix(desktop): preserve draft bounds and launch URLs * fix(desktop): render draft values using their source format * fix(desktop): preserve launch URLs and JSON draft values * fix(desktop): recognize captured file URL documents * fix(desktop): render captured file URLs for runtime home * fix(desktop): distinguish phone numbers from save metadata * fix(desktop): preserve launch URLs and user text * fix(desktop): preserve captured URLs and user text * fix(desktop): preserve local file URL authority * fix(desktop): preserve local file URL authority * fix(desktop): preserve local file URL authority * fix(desktop): render captured file URLs at launch * fix(desktop): classify numeric timestamps using field context * fix(desktop): classify numeric timestamps using field context * fix(desktop): classify numeric timestamps using field context * fix(desktop): retain context for generated draft values * fix(desktop): retain context for generated draft values * fix(desktop): retain context for generated draft values * test(desktop): cover generated IDs in text guards * test(desktop): cover generated IDs in text guards * test(desktop): cover generated IDs in text guards * fix(desktop): isolate launcher URL encoding * fix(desktop): isolate launcher URL encoding * fix(desktop): isolate launcher URL encoding * fix(desktop): isolate launcher URL encoding * fix(desktop): retain clean text in noisy record fields * fix(desktop): classify added line values in one pass * fix(desktop): apply XML quote rules to text drafts * fix(desktop): distinguish XML attributes from quoted text * fix(desktop): preserve parsed XML line context * fix(desktop): retain partial XML syntax facts * fix(desktop): recognize markdown autolinks in drafts * fix(desktop): reuse export exclusions in task drafts * docs(desktop): clarify gzip scrub limits * style(desktop): format the noisy-record draft files with the pinned oxfmt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(desktop): move launch execution to boundary suite * fix(desktop): redact build schema failure output * refactor(desktop): normalize schema failure once * fix(desktop): omit unsafe schema parser snippets * fix(desktop): preserve draft change and selected path evidence * test(desktop): group retained dconf note regressions * fix(desktop): respect archive entry format in draft checks * test(desktop): separate unowned-file draft note cases * fix(desktop): preserve explicitly selected journal documents * fix(xml): avoid scanning selected ancestors per tag * fix(desktop): exclude covered text runs from draft counts * fix: preserve text when drafting desktop checks * fix: restore nested desktop state aliases * refactor: share UUID recognition across draft checks * fix: retain multiline XML attribute context * fix: retain relationship identifiers in task drafts * docs: clarify desktop draft identifier handling * test(desktop): type formatting run cases as pairs * test(desktop): separate markup boundary regression group * test(desktop): remove duplicate seed filename case * docs(desktop): clarify task checks before scratch export * fix(desktop): respell selected paths in file URLs * test(desktop): group captured document spelling cases * fix(desktop): bound draft preview serialization * fix(desktop): restore selected state aliases * fix(desktop): respect entry format in draft noise * test(desktop): match exported alias evidence at its JSON boundary * fix(desktop): retain app state logs in exported seeds * fix: align desktop numeric seed comparisons * test(desktop): keep one draft exclusion fixture import * test(desktop): retain log eligibility across draft test groups * style: fix desktop launch test formatting * style: format native command path schema * fix(desktop): map selected external launch paths * style(desktop): format seed document regressions * test(desktop): group launch URL regressions * fix(desktop): omit redundant nested state aliases * fix(desktop): compare added free text as a whole * fix(desktop): check recompressed seeds as shipped * docs(desktop): clarify recovered seed format * test(desktop): group shipped gzip seed checks * fix: retain quoted identifier text in task drafts * fix: recognize Unicode XML in desktop state readers * fix(desktop): bound nested draft checks * fix(desktop): explain missing arrays in truncated views * fix(desktop): find XML type references in archives * test(desktop): remove duplicated capture assertions * fix(desktop): retain nested omitted text boundaries * style(desktop): format draft value imports * test(desktop): group model and draft value checks * fix(desktop): map captured launch paths once * refactor: remove unused whole-text guard state * refactor: stop passing unused text children * test: align free-text checks with whole-note policy * fix: validate recompressed desktop archive seeds * style(desktop): format archive seed regression * fix(desktop): retain placed-item sibling guards * fix(desktop): redact runtime schema errors * fix(desktop): normalize captured file URLs * fix(desktop): report seeded files by capture path * fix(desktop): retain startup readiness failure stage * fix(desktop): retain JSON date checks * fix(desktop): preserve archive formatting checks * fix(desktop): preserve explicitly selected journal files * fix(desktop): report build command transport limits * docs(desktop): clarify unreadable dconf versions * test(desktop): remove duplicate history regression * fix(desktop): align XML names with exported reader * fix(desktop): scrub XML independently of reader compatibility * style(desktop): format review fixes * style(desktop): format capture review fixes --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
492 lines
32 KiB
Markdown
492 lines
32 KiB
Markdown
<div align="center">
|
||
|
||
**English** · [简体中文](docs/readme/README_zh.md) · [繁體中文](docs/readme/README_zh-TW.md) · [日本語](docs/readme/README_ja.md) · [한국어](docs/readme/README_ko.md) · [Türkçe](docs/readme/README_tr.md) · [Русский](docs/readme/README_ru.md) · [Tiếng Việt](docs/readme/README_vi.md) · [ไทย](docs/readme/README_th.md) · [Deutsch](docs/readme/README_de.md) · [Español](docs/readme/README_es.md) · [Français](docs/readme/README_fr.md) · [Українська](docs/readme/README_uk.md) · [Polski](docs/readme/README_pl.md) · [Português (Brasil)](docs/readme/README_pt-BR.md) · [العربية](docs/readme/README_ar.md) · [فارسی](docs/readme/README_fa.md) · [Bahasa Indonesia](docs/readme/README_id.md) · [Italiano](docs/readme/README_it.md)
|
||
· [Ελληνικά](docs/readme/README_el.md) · [മലയാളം](docs/readme/README_ml.md) · [Roman Urdu](docs/readme/README_ur-Latn.md) · [Română](docs/readme/README_ro.md) · [Български](docs/readme/README_bg.md)
|
||
|
||
# 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.**
|
||
|
||
[](https://www.npmjs.com/package/rea-agents)
|
||
[](docs/reference/mcp-contracts.md#generated-catalog)
|
||
[](#what-you-can-analyze)
|
||
[](https://skills.sh/morluto/rea/reverse-engineer-anything)
|
||
[](LICENSE)
|
||
[](https://discord.gg/GkcryMnJDM)
|
||
|
||
<a href="https://trendshift.io/repositories/82054?utm_source=repository-badge&utm_medium=badge&utm_campaign=badge-repository-82054" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/82054" alt="morluto%2Frea | Trendshift" width="250" height="55"/></a>
|
||
|
||
**[Website](https://rea.tools/) · [Guides](https://rea.tools/guides/) · [Showcases](https://rea.tools/showcase/)**
|
||
|
||
<a href="https://discord.com/invite/GkcryMnJDM"><img alt="Join the REA community on Discord" src="https://img.shields.io/badge/Join%20us%20on%20Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" height="40"></a>
|
||
|
||
[Quick start](#quick-start) · [How REA works](#how-rea-works) · [What you can analyze](#what-you-can-analyze) · [Showcases](#showcases) · [Build RL environments](#build-rl-environments) · [FAQ](#faq) · [Documentation](#documentation)
|
||
|
||
<code>npx rea-agents setup</code>
|
||
|
||
</div>
|
||
|
||
> [!IMPORTANT]
|
||
> Get REA from [morluto/rea](https://github.com/morluto/rea),
|
||
> [rea.tools](https://rea.tools/), or the [rea-agents npm package](https://www.npmjs.com/package/rea-agents).
|
||
> 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.
|
||
|
||
<div align="center">
|
||
|
||
<br />
|
||
|
||
<img src="docs/assets/rea-hopper-analysis.png" alt="REA launching its analysis bridge inside Hopper while inspecting a native binary" width="1200" />
|
||
|
||
<br /><br />
|
||
|
||
<table aria-label="REA community">
|
||
<tr>
|
||
<td align="center" width="360">
|
||
<a href="https://discord.gg/GkcryMnJDM">
|
||
<img src="docs/assets/discord.svg" height="42" alt="Discord" /><br />
|
||
<strong>Join the Reverse Engineering Community</strong>
|
||
</a><br />
|
||
<sub>Discord · Q&A · Show and Tell</sub>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<br />
|
||
|
||
</div>
|
||
|
||
---
|
||
|
||
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.
|
||
|
||
> **[Visit the REA website](https://rea.tools/)** for setup instructions, illustrated guides, and real case studies.
|
||
|
||
## Quick start
|
||
|
||
On Linux, Ghidra, JADX, firmware tool launches and static JavaScript/Electron
|
||
analysis require a procps-compatible `ps` on REA's `PATH` for process ownership
|
||
checks. Recovery steps are in `docs/getting-started/installation.md` under
|
||
"Linux owned-process prerequisite".
|
||
|
||
### Set up your agent
|
||
|
||
With Node.js and npm installed, run:
|
||
|
||
```bash
|
||
npx rea-agents setup
|
||
```
|
||
|
||
Choose your agents, review the proposed changes, and approve them. Setup adds
|
||
REA's MCP server and matching workflow instructions, with backups of existing
|
||
configuration. Restart your agent afterward. Setup records the selected runtime and REA
|
||
entry script directly. If acquired through a package runner, keep its cache entry
|
||
available. Run package acquisition from a trusted directory outside the target
|
||
project. Installation and recovery details are in the setup guide below.
|
||
|
||
Setup supports Claude Code, Codex, Cursor, Gemini CLI, Grok Build and
|
||
[other agents](docs/getting-started/installation.md#supported-agents). See
|
||
[installation and setup](docs/getting-started/installation.md) for provider configuration and
|
||
manual MCP registration and Claude Code/Codex plugin installation.
|
||
|
||
MCP uses compact input schemas by default to reduce context overhead. Set
|
||
`REA_MCP_INPUT_SCHEMA_PROFILE=full` in your MCP registration when you need the
|
||
complete advertised field guidance and nested validation details. Both profiles
|
||
keep the full tool set and canonical server validation. See
|
||
"Compact input schema profile" in the MCP contracts guide.
|
||
|
||
Complete output schemas are advertised by default. If your client caps the
|
||
complete `tools/list` frame, set `REA_MCP_OUTPUT_SCHEMA_PROFILE=compact` to
|
||
bound each advertised output schema, or `off` to omit output schemas entirely.
|
||
Both settings keep canonical server-side validation and complete structured
|
||
results. See "Output schemas" in the MCP contracts guide.
|
||
|
||
### Ask your agent
|
||
|
||
```text
|
||
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 the terminal
|
||
|
||
Inspect an extracted JavaScript/Electron app directory or ASAR:
|
||
|
||
```bash
|
||
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:
|
||
|
||
```bash
|
||
npm install --global rea-agents
|
||
rea --help
|
||
```
|
||
|
||
For native analysis, configure a provider first. See the
|
||
[CLI and Evidence guide](docs/getting-started/cli.md) for native commands, provider selection,
|
||
snapshots and scripting.
|
||
|
||
### Update REA
|
||
|
||
REA changes quickly, and new releases include frequent bug fixes. Keep your
|
||
installation up to date.
|
||
|
||
For a CLI installed with `npm install --global` or `bun add --global`:
|
||
|
||
```bash
|
||
rea update
|
||
```
|
||
|
||
`rea --update` is an alias for this verified workflow and accepts the same global
|
||
output flags. Use `rea update` when combining it with other command controls.
|
||
|
||
Updater commands retain at most 4 MiB of stdout and stderr combined. Oversized
|
||
metadata replies are rejected after the command exits; verbose installs continue
|
||
with bounded diagnostics. Human progress output respects terminal backpressure
|
||
and waits for submitted writes to finish.
|
||
|
||
Bun global updates require Bun 1.2.17 or later. With an older Bun release,
|
||
upgrade Bun manually before running `rea update`.
|
||
|
||
To refresh your agent registrations and skill, run the setup command printed
|
||
by the update.
|
||
|
||
If you use `npx`, update your agent setup with:
|
||
|
||
```bash
|
||
npx rea-agents@latest setup
|
||
```
|
||
|
||
Review the setup changes and restart your agent. For one-off CLI commands,
|
||
use `npx rea-agents@latest` followed by the command. With Bun, use
|
||
`bunx rea-agents@latest` in place of `npx rea-agents@latest`.
|
||
|
||
## How REA works
|
||
|
||
Your agent calls REA through MCP to inspect the target and trace relevant code.
|
||
REA returns findings with their evidence. The agent uses them to ask follow-up
|
||
questions, explain the behavior, or write and test an implementation.
|
||
CLI commands use the same workflows.
|
||
|
||

|
||
|
||
[Open the full-size figure](website/public/assets/figures/rea-investigation-flow.svg).
|
||
|
||
<a id="current-status"></a>
|
||
|
||
## What you can analyze
|
||
|
||
REA requires Node.js 22.x (>=22.23.4), 24.x (>=24.22.1), or 26.12.1+, plus npm.
|
||
Additional tools and host support depend on the target:
|
||
|
||
| Target | What REA returns | Requirements and guide |
|
||
| ----------------------- | ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||
| Desktop installations | Runtime candidates, supporting files, component markers and next probes | Built-in bounded directory/header inspection; [desktop applications](docs/desktop-applications.md) |
|
||
| Native binaries | Pseudocode, assembly, strings, symbols, calls and references | Hopper, Ghidra, IDA or Kuna; [native analysis](docs/guides/native/native-investigation.md) |
|
||
| Offline ELF layout | Sections, segments, original symbols/relocations and static mitigation candidates | Caller-supplied pwntools on Linux x64; [binary diagnostics](docs/guides/native/binary-diagnostics.md) |
|
||
| Go binaries | Embedded compiler version, modules, replacements and build settings | Built-in static ELF/PE/thin Mach-O inspection; no Go installation required |
|
||
| GPU code objects | CUDA/HIP targets, selected kernel parameters and resources, retained PTX text | Built-in static ELF/PE/fatbin/CUBIN/PTX inspection; [GPU code objects](docs/gpu-code-objects.md) |
|
||
| Model artifacts | GGUF / safetensors metadata, tensor declarations and derived totals | Built-in header inspection; optional full-file hash; [model files](docs/model-artifacts.md) |
|
||
| IL2CPP metadata | Unity global-metadata.dat assembly images, type and method names and index ranges | Built-in static decoding of versions 24, 27, 29, 31 and 39; no Unity required |
|
||
| Godot PCK | Archive inventory and extraction, original header/directory facts and selected content identities | Built-in static formats 2, 3 and 4; no Godot required |
|
||
| Rust binaries | Embedded cargo-auditable crate names, versions, sources and dependency edges | Built-in static ELF/PE/thin Mach-O inspection; [Rust binaries](docs/rust-binaries.md) |
|
||
| PE certificates | Authenticode WIN_CERTIFICATE entries and PKCS#7 signer/X.509 identity fields | Built-in static PE inspection; [PE certificates](docs/pe-certificates.md) |
|
||
| PE imports | Import and delay-load DLL names, ordinals, IAT RVAs and pefile import hash | Built-in static PE inspection; [PE imports](docs/pe-imports.md) |
|
||
| Windows shortcuts | Shell Link target, arguments, working dir, ExtraData and Tracker droid facts | Built-in static LNK inspection; [Windows shortcuts](docs/guides/native/windows-shortcut.md) |
|
||
| ELF notes | PT_NOTE/SHT_NOTE owners, types, GNU build-id and ABI-tag fields | Built-in static ELF inspection; [ELF notes](docs/elf-notes.md) |
|
||
| Binary hardening | PIE, NX, RELRO, CFG and related header flags for ELF, PE and Mach-O | Built-in static header inspection; [binary hardening](docs/binary-hardening.md) |
|
||
| Apple IPS crashes | .ips metadata, threads, images, registers and documented crash classes | Built-in static JSON inspection; [Apple IPS](docs/apple-ips.md) |
|
||
| Linux kernel modules | .modinfo keys, __versions CRCs, this_module presence, and signature trailer | Built-in static ELF inspection; [kernel modules](docs/kernel-modules.md) |
|
||
| Erlang BEAM | IFF chunks, atoms, exports, imports, lambdas and the Code header | Built-in static BEAM inspection; [Erlang BEAM](docs/erlang-beam.md) |
|
||
| WASM artifact | Validation, sections, exact import/export WAT forms and decoded WAT | Caller-supplied WABT 1.0.42; `inspect_wasm_artifact` |
|
||
| EVM bytecode | Dispatch selectors, byte offsets, inferred arguments and mutability | Local raw/hex carrier on Linux x64; [offline EVM guide](docs/guides/evm/evm-bytecode.md) |
|
||
| SQLite databases | Tables, columns, indexes, views, triggers and selected ordinary-table rows | Local database/WAL snapshot; Node.js 24.x >=24.15 or 26+ with native SQLite limits |
|
||
| Recorded Linux crashes | Raw notes, every recorded thread's registers/signals and optional mapping candidates | Caller-supplied pwntools on Linux x64; optional GDB/pwndbg; [recorded crashes](docs/guides/native/recorded-crashes.md) |
|
||
| JavaScript / Electron | Modules, imports, source maps, routes, IPC and native add-on relationships | Node.js and npm; Linux: procps-compatible `ps`; [application analysis](docs/guides/javascript/javascript-application-workflows.md) |
|
||
| Websites | Page structure, scripts, network observations and requested screenshots | A Chrome-family browser; [browser analysis](docs/guides/web/browser-observation.md) |
|
||
| Saved network captures | Requests, responses, exposed payloads and source locations | HAR or Fiddler Everywhere SAZ; mitmdump on Linux for native mitmproxy; [capture guide](docs/guides/web/web-network-captures.md) |
|
||
| .NET assemblies | Metadata, CIL instructions, declared native dependencies and build comparisons | None (static only); [managed-code guide](docs/guides/managed/managed-code-analysis.md) |
|
||
| Android APKs | Manifest declarations, classes, decompiled methods and references | Headless JADX and a full JDK on Linux/macOS/Windows x64; [Android guide](docs/guides/android/android-analysis.md) |
|
||
| APK signatures | v1/v2/v3/v3.1 signers, certificate fingerprints, key rotation and digest self-consistency | None (static only); `inspect_apk_signature` |
|
||
| Android devices | Devices, packages, processes, logs, dumps, screen captures, and APK/file transfers | Caller-supplied adb (emulator or hardware); [ADB guide](docs/guides/android/adb-device-analysis.md) |
|
||
| JEB projects | Engine-backed project units, artifact digests and type/method pseudo-code | A caller-started JEB client serving MCP, selected with REA_JEB_MCP_URL; [JEB guide](docs/providers/jeb-analysis.md) |
|
||
| Android resources | Decoded manifest, string tables, locales and version facts | Caller-supplied Apktool launcher; [resource guide](docs/guides/android/apktool-resource-analysis.md) |
|
||
| Flutter apps | Dart snapshot hash, per-ABI library digests and engine build provenance | None (static APK parsing); [Flutter guide](docs/guides/android/flutter-analysis.md) |
|
||
| Firmware | Regions, extraction results and native-analysis handoffs | Binwalk / Unblob on Linux; [firmware guide](docs/guides/firmware/firmware-analysis.md) |
|
||
| Recorded packets | Selected fields, repeated values, filters and decode-as rules | Linux: TShark 4.x + prlimit; [capture guide](docs/guides/data/packet-captures.md) |
|
||
| Packet summaries | Endpoints, DNS, TLS SNI, protocol distribution and HTTP requests | Caller-supplied tshark and capinfos (Linux-verified); [pcap guide](docs/guides/data/pcap-analysis.md) |
|
||
| Recorded logic signals | Decoder annotations, sample ranges and diagnostics | Linux: sigrok-cli 0.7.2 + prlimit; [signal recordings](docs/guides/signals/signal-recordings.md) |
|
||
| Packages and resources | File inventories, digests, plists, Apple bundle anatomy and extracted resources | [Artifact and JavaScript guide](docs/guides/javascript/javascript-artifact-reconstruction.md), [Apple applications](docs/guides/apple/apple-application-analysis.md) |
|
||
| Process behavior | Terminal output, interactions, exit and filesystem observations, and run comparisons | Linux/macOS with a native PTY; [process capture](docs/guides/runtime/process-capture.md) |
|
||
| PyInstaller executables | CArchive members, Python version, entry scripts and extracted bytecode | None (static only); [Python packaged applications](docs/python-packaged-applications.md) |
|
||
| Deno compile binaries | Virtual files, entry point, recorded options, npm snapshot length | None (static only); [Deno compile executables](docs/deno-standalone.md) |
|
||
|
||
Static JavaScript and .NET inspection read the supplied files without running
|
||
the application. Runtime capture runs or interacts with the selected target
|
||
using your user permissions; each runtime guide describes its effects.
|
||
|
||
For offline native-binary inspection, REA also supports caller-supplied GNU
|
||
objdump and Rizin. See the [reverse-engineering tools guide](docs/reverse-engineering-tools.md)
|
||
for provider setup, CLI commands, and Evidence limitations. REA does not install
|
||
or update either provider.
|
||
|
||
<a id="choosing-a-deep-analysis-provider"></a>
|
||
|
||
Native formats and host support vary by provider. See
|
||
[Hopper and Ghidra setup](docs/getting-started/installation.md#hopper), the
|
||
[IDA guide](docs/providers/ida-provider.md) (including an optional native MCP bridge), the
|
||
[Kuna decompiler guide](docs/kuna-provider.md), and
|
||
[experimental Windows Ghidra support](docs/providers/windows-ghidra-p0.md).
|
||
Ghidra also supports [16-bit DOS analysis](docs/providers/ghidra-dos.md).
|
||
For large binaries, raise the provider's startup deadline with
|
||
`REA_GHIDRA_STARTUP_TIMEOUT_MS` or `REA_HOPPER_STARTUP_TIMEOUT_MS`.
|
||
For provider selection, see the [CLI guide](docs/getting-started/cli.md#choose-a-provider).
|
||
Check [release availability](docs/getting-started/installation.md#released-package-and-main)
|
||
for features added since the latest npm release.
|
||
|
||
## Showcases
|
||
|
||
<a href="https://rea.tools/showcase/">
|
||
<picture>
|
||
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/rea-showcases-dark.svg" />
|
||
<img alt="Illustrations of the DX-Ball sound-pan, Notion clipboard-bridge, and TH04 bullet-ring showcases" src="docs/assets/rea-showcases.svg" />
|
||
</picture>
|
||
</a>
|
||
|
||
### DX-Ball: reconstruct a sound-pan calculation
|
||
|
||
Follow a sound call into its position-to-pan helper, inspect the instructions,
|
||
and turn incomplete pseudocode into C. The reconstruction passes 3,205
|
||
original-x86 cases and reproduces all 63 compiled function bytes.
|
||
|
||
[Read the case study](https://rea.tools/showcase/dx-ball/) ·
|
||
[Reconstruction repository](https://github.com/N0zoM1z0/dx-ball)
|
||
|
||
### Notion: trace the Electron clipboard bridge
|
||
|
||
Find the renderer's clipboard API, follow it through preload and IPC into the
|
||
main process, and inspect the rich clipboard format.
|
||
|
||
[Read the case study](https://rea.tools/showcase/notion/)
|
||
|
||
### TH04: recover a DOS bullet-ring calculation
|
||
|
||
Inspect the original PC-98 game's 16-bit instructions, recover the fixed and
|
||
aimed angle calculations, and compare the reconstructed C++ with the
|
||
historical compiler output.
|
||
|
||
[Read the case study](https://rea.tools/showcase/th04/) ·
|
||
[Reconstruction repository](https://github.com/N0zoM1z0/th04)
|
||
|
||
### Build RL environments with REA
|
||
|
||
Record a web app session, turn its API into tools, and export an environment an AI agent can use. Run it with AgentEnv, then add tasks and reward checks for RL training or evaluation.
|
||
|
||
[Read the guide](https://rea.tools/guides/rl-environments/) ·
|
||
[Watch the video](https://x.com/reatools/status/2112574822584918075?s=20)
|
||
|
||
If you've used REA on something interesting, we'd love to see it. Share your
|
||
case in an [issue](https://github.com/morluto/rea/issues) or a
|
||
[pull request](https://github.com/morluto/rea/pulls), including the target,
|
||
your question, how REA helped, and what you found.
|
||
|
||
## Build RL environments
|
||
|
||
Give an AI agent a local environment to practice tasks such as finding an issue or creating a folder, without running the original app. Use it for reinforcement learning (RL) or to test how well an agent completes tasks.
|
||
|
||
REA turns recorded API requests and responses into tools the agent can call. The environment uses the recorded data and supports changes only when the recording confirms their effects.
|
||
|
||
With REA set up in your agent, replace the example URL and folder tasks below with your own:
|
||
|
||
```text
|
||
Use REA to build an RL environment from my test web app at
|
||
http://127.0.0.1:3000.
|
||
Cover listing, creating, renaming, and deleting folders. You may create and
|
||
remove test folders. Leave existing data unchanged.
|
||
Save it in a folder named my-env. Check which operations work and tell me
|
||
how to run it.
|
||
```
|
||
|
||
<details>
|
||
<summary>Use the command line instead</summary>
|
||
|
||
Use these commands if you already have a file containing the app’s recorded browser requests and responses. Running the result also requires AgentEnv and Docker.
|
||
|
||
```sh
|
||
rea environment-build ./session.har ./my-env --name my-env --json
|
||
agent-env run ./my-env
|
||
```
|
||
|
||
</details>
|
||
|
||
REA exports a runnable environment with a basic test to check that it starts and responds. Use it with your RL framework to define task goals, add reward checks, and run training.
|
||
|
||
[Build an environment](https://rea.tools/guides/rl-environments/) ·
|
||
[Environment reference](docs/agent-environments.md) ·
|
||
[Watch the demo on X](https://x.com/reatools/status/2112574822584918075?s=20)
|
||
|
||
### Desktop app environments
|
||
|
||
REA can also build an environment of a Linux desktop app, which an agent uses through screenshots, the mouse and the keyboard. From a one-line request, such as "Build me a Gnote environment where the agent adds olive oil to the shopping list note", your agent installs the app on a local build computer, writes the task, exports the environment and checks the task in a fresh computer. The machine that builds it needs Linux on amd64 or arm64, Docker and the agentenv framework version the guide pins.
|
||
|
||
[Set up desktop app environments](docs/desktop-build-computer.md)
|
||
|
||
## FAQ
|
||
|
||
<details>
|
||
<summary><strong>Which agents can use REA?</strong></summary>
|
||
|
||
Any agent that supports local MCP servers. Setup configures the
|
||
[supported agents](docs/getting-started/installation.md#supported-agents); other clients can use
|
||
[manual MCP registration](docs/getting-started/installation.md#mcp-registry).
|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary><strong>Do I need a native analysis engine?</strong></summary>
|
||
|
||
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](docs/getting-started/installation.md#hopper)
|
||
for the options and their supported targets.
|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary><strong>Do I need to start Hopper first?</strong></summary>
|
||
|
||
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](docs/getting-started/installation.md#launcher-paths-and-troubleshooting).
|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary><strong>What does installing the skill from skills.sh do?</strong></summary>
|
||
|
||
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](docs/getting-started/installation.md#skill-only-installation).
|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary><strong>What code does REA return?</strong></summary>
|
||
|
||
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](#showcases) give worked examples.
|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary><strong>Does REA upload my app?</strong></summary>
|
||
|
||
REA analyzes targets locally. Your agent receives the tool results, and its
|
||
model provider has its own data policy.
|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary><strong>What should I do if I hit a bug?</strong></summary>
|
||
|
||
Update first; a recent release may already fix it.
|
||
|
||
For a CLI installed with `npm install --global` or `bun add --global`:
|
||
|
||
```bash
|
||
rea update
|
||
```
|
||
|
||
For agent setup through `npx`:
|
||
|
||
```bash
|
||
npx rea-agents@latest setup
|
||
```
|
||
|
||
If you're using an agent, complete the [setup refresh](#update-rea) and restart
|
||
it. Retry the same task. If the problem persists, [open an issue](https://github.com/morluto/rea/issues)
|
||
with your REA version, target type, steps to reproduce and error output.
|
||
|
||
</details>
|
||
|
||
## Documentation
|
||
|
||
Start with the website's [worked guides](https://rea.tools/guides/).
|
||
For exact options, prerequisites and result contracts:
|
||
|
||
- [Installation and setup](docs/getting-started/installation.md): agent registration, provider configuration, updates and uninstall.
|
||
- [Readiness and troubleshooting](docs/getting-started/installation.md#check-readiness-for-your-task): diagnose one agent or analysis engine.
|
||
- [CLI and Evidence](docs/getting-started/cli.md): commands, provider selection, snapshots, import/export and exit statuses.
|
||
- [MCP contracts](docs/reference/mcp-contracts.md) and [agent prompts](docs/getting-started/mcp-prompts.md): tool results, sessions and guided investigations.
|
||
- [Tool catalog](docs/reference/mcp-contracts.md#generated-catalog): generated inventory of tools, providers and CLI commands.
|
||
- [Roadmap](docs/development/roadmap.md): planned work and capability trackers.
|
||
|
||
Report vulnerabilities through [SECURITY.md](SECURITY.md).
|
||
|
||
## Star history
|
||
|
||
🎉 **400,000 GitHub stars — thank you!**
|
||
|
||
Thanks to everyone using REA, reporting bugs, requesting features, testing builds, and contributing fixes.
|
||
|
||
<a href="https://www.star-history.com/?repos=morluto%2Frea&type=date">
|
||
<picture>
|
||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=morluto/rea&type=date&theme=dark&legend=top-left" />
|
||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=morluto/rea&type=date" />
|
||
<img alt="REA GitHub star history" src="https://api.star-history.com/chart?repos=morluto/rea&type=date" />
|
||
</picture>
|
||
</a>
|
||
|
||
## Disclaimer
|
||
|
||
See [DISCLAIMER.md](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.
|
||
|
||
## Contributing
|
||
|
||
We'd love your help with REA! [Open an issue](https://github.com/morluto/rea/issues) to
|
||
report a bug or suggest a feature, or [send a pull request](https://github.com/morluto/rea/pulls)
|
||
to improve the code or docs.
|
||
|
||
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and checks,
|
||
[testing](docs/development/testing.md) for verification lanes, and the
|
||
[architecture map](docs/architecture/architecture.mermaid) for selected layers and dependency paths.
|
||
|
||
## License
|
||
|
||
[MIT](LICENSE)
|
||
|
||
REA-authored code is licensed under MIT. Third-party material retains its own
|
||
licenses and copyright notices; see
|
||
[Third-party notices](THIRD_PARTY_NOTICES.md) 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.
|