REA: understand a feature, build your own version

morluto/rea

Ask Claude Code or Codex how one app feature works, get the code evidence, and plan your own implementation with REA.

Contenuto aggiornato: SKILL.md
Punteggio di qualità 89/100
npx rea-agents@latest setup
453.913Stelle111.553ForkUltimo push del repository

Get your first useful result

Start with one feature in a JavaScript or Electron app you can inspect. Static analysis does not need Hopper, Ghidra or IDA. Have Node.js 22.19+ (22.x), 24.11+ (24.x) or 26+ and npm ready.

  1. Connect your agent, then restart it

    Start with one feature in a JavaScript or Electron app you are entitled to inspect. Static JavaScript analysis does not require a native analysis engine. Check the current upstream installation guide for supported Node.js versions.

    npx rea-agents@latest setup
  2. Copy this prompt and choose one feature

    Replace [APP PATH] and [FEATURE]. Try search, clipboard formatting or a keyboard shortcut. Keep the first task to analysis and a small build plan.

    Use REA to inspect [APP PATH] and explain how [FEATURE] works. Start with a summary, then trace only the relevant modules or functions. Cite files, symbols or addresses for each finding, and separate observations from assumptions. Return a short explanation, the evidence, anything still unknown, and the smallest implementation plan for my project.
  3. Check the evidence before building

    A useful first result contains a clear explanation, source locations and a small implementation plan. Open one cited location and verify it. Then ask your agent to implement just that feature and compare its behavior on the same input.

Official READMESkill entry and workflowInstallation, clients and dependencies

What people are making with REA

Two first-person examples from X, with the original posts embedded below. These are creator-reported results; use each feature as a starting point for your own experiment.

Video editor with captions — @Mehal_Kay

The creator says they used REA and Claude Code to study CapCut, then shared a video of their editor with captions, transitions, animations and text. A small first task: trace how one caption is placed and rendered.

A SwiftUI fan-control app — @zou_chris

The creator shared their REA prompt and two screenshots after studying Mac Fan Control and asking for a SwiftUI implementation. A small first task: investigate how one fan-speed reading reaches the interface.

Watch the REA walkthrough

Eric Tech introduces REA’s Skill and MCP tools, walks through setup with Hopper, and demonstrates a Wispr Flow-style app with a hotkey, note taking and local transcription.

This walkthrough is in English. Setup starts at 02:06, and the app demo starts at 05:01.

Eric Tech — How To Use REA To Clone Any Software In Minutes

Eric Tech: How To Use REA To Clone Any Software In Minutes (YouTube)

Informazioni sullo Skill

REA connects a coding agent with tools for investigating shipped applications and their behavior. It routes different targets, such as native binaries, packaged apps, Electron and JavaScript, to suitable analysis workflows. Use the evidence to answer a specific question about a feature; for an ordinary source repository, the current instructions recommend normal source-analysis tools.

SKILL.md

Autore: morluto · morluto/rea · MIT · SKILL.md @ 04089d5

---
name: reverse-engineer-anything
description: Reverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.
metadata:
  version: "39"
---

# REA

Use REA when a claim depends on a shipped binary or package, decompilation,
passive application runtime evidence, or comparison with
behavior not established by available source. For ordinary analysis of a
complete source repository, use normal repository tools and do not run REA
readiness or provider commands.

## Connect only when needed

Installing this skill supplies instructions; it does not register the REA MCP
server, install analysis engines, or add tools to an already-running agent.

If REA tools are available and their registration is not known to be stale,
proceed directly to the target. Do not run diagnostics or setup before every
investigation. Use the connected server's actual tool list and input schemas;
a skill installed from repository main may describe capabilities absent from
an older npm release. Keep complete inline Evidence when that server does not
advertise retained references.

If tools are absent, a call is blocked by the client, or a required provider is
unavailable, read [connection and recovery](references/connection-and-recovery.md).
Diagnose the observed blocker, continue useful supported work, and resume the
original task after repair. Client approval, shell PATH, registration and engine
availability have different remedies; avoid repeating setup for all of them.

Prefer an existing `rea` CLI. When none is installed and REA package acquisition
is within the authorized scope, use `npx -y rea-agents@latest` in its place.
Configuration repair starts with a read-only setup plan; show paths, backups and
skill replacement before applying authorized changes. Preserve existing approval
and target-execution boundaries. REA setup never installs or upgrades unrelated
software, including Node.js, npm, Homebrew, Java, Ghidra, IDA, JADX, Binwalk or Unblob.

## Route the target first

Choose the first tool from the target the user supplied. Use `open_binary` for
active-target native or archive workflows; target-free tools take their own
explicit path or endpoint and do not need it.

- ASAR or extracted JavaScript/Electron tree:
  `analyze_javascript_application`.
- Archive/package member inventory (ZIP/APK/IPA/MSIX/AppX or DMG):
  `open_binary` with the supplied local path; use `inspect_artifact` when its
  graph and findings help answer the question.
- Android APK code, classes, methods, or incoming references:
  `inspect_android_package`, then focused Android tools when advertised.
  Archive member inventory still uses the archive route above.
- Managed PE/CLI assembly: `inspect_managed_artifact`.
- Firmware image: `inspect_firmware_regions` when advertised. Use
  `extract_firmware` when extraction is requested, with a caller-selected new
  absolute output directory. These tools use caller-supplied Binwalk/Unblob on
  Linux; see the [firmware guide](https://github.com/morluto/rea/blob/main/docs/firmware-analysis.md).
- .NET NativeAOT PE/ELF: native Ghidra analysis. Native code can yield pseudocode;
  consult the NativeAOT workflow in `references/native-and-artifacts.md` for
  optional metadata recovery and its supported host/layout boundary.
- User-owned browser page already open: `list_browser_targets`.
- Retained HAR/native mitmproxy capture: `inspect_web_network_capture`. Select
  original record ordinals when useful; inspect producer fields and byte/number
  sidecars without fetching recorded URLs or claiming live attribution. See
  [historical captures](https://github.com/morluto/rea/blob/main/docs/web-network-captures.md) for the exact upstream
  profile and credential exclusions.
- User-owned Electron runtime already open: `list_electron_targets`.
- Explicit local WebAssembly artifact: `inspect_wasm_artifact`. Supply WABT 1.0.42
  through `REA_WABT_BIN_DIRECTORY`; retain exact byte/tool identity and decoded WAT.
  Select JavaScript glue and candidate paths explicitly and preserve URL/path
  ambiguity. No implicit fetch or target execution; WAT is not original source.
  See the [WASM guide](https://github.com/morluto/rea/blob/main/docs/wasm-artifacts.md).
- Explicit local EVM bytecode carrier: `inspect_evm_interface` with caller-selected
  `raw` or `hex` encoding. Preserve carrier/decoded digests and treat selectors,
  argument strings and mutability as inferred candidates; this performs no chain
  lookup or target execution. See the
  [EVM bytecode guide](https://github.com/morluto/rea/blob/main/docs/evm-bytecode.md).
- Explicit Linux ELF file for offline layout, symbols, relocations or static
  mitigation evidence: `inspect_binary_layout`. This target-free operation uses
  caller-supplied pwntools without opening a disassembler database. Preserve its
  raw locations and inference/coverage limits; see the
  [offline binary guide](https://github.com/morluto/rea/blob/main/docs/binary-diagnostics.md).
- Supplied Linux x86-64 ELF core: `inspect_recorded_crash`. Read every recorded
  thread, raw note and source-bound register without opening a live target.
  Historical PIDs do not select live processes. Request `include_debugger_context`
  only when core-only mapping candidates help; see the
  [recorded crash guide](https://github.com/morluto/rea/blob/main/docs/recorded-crashes.md).
- PE resource type/name/language trees and static icon group references:
  `inspect_pe_resources` with an explicit path. This portable operation requires
  no active target or engine; opaque payloads retain file ranges and SHA-256.
- Native executable, library, or analysis database: `open_binary`, then
  use focused analysis tools directly; call `binary_overview` when metadata or
  inventory context is useful and available from the selected provider.

For an existing IDA MCP configuration, use `open_binary` with the original
input binary and `provider_id: "ida"`; do not pass an `.idb` or `.i64` database.
The legacy attached profile binds the already-open GUI input by SHA-256 and
leaves its database open. The modern headless profile creates and closes an
owned private database without saving. Installation and registration reuse
[mrexodia/ida-pro-mcp](https://github.com/mrexodia/ida-pro-mcp); see the
[IDA provider guide](https://github.com/morluto/rea/blob/main/docs/ida-provider.md).
Proceed directly to `analyze_function`, pseudocode, or function/string searches
after opening; IDA does not supply `binary_overview`. Consult session availability
when composing broader workflows. Modern direct callers and unsupported dossier
facets remain unknown; live IDA results are not replayed from snapshots.

If the user says only "my app" without a name, path, or target already selected
for this task, ask which app before searching for artifacts. Paths in unrelated
saved reports and nearby test fixtures do not select the user's target. Resolve
an actual human-readable app name to one clear installed artifact when possible;
ask when matches are ambiguous. Never choose an example app on the user's behalf.

In a target-free session, use `open_binary` to bind any archive/package or
native target whose analysis tool operates on the active target. Do not call an
unadvertised tool; inspect `binary_session` with `{}` and its
`result.tool_availability` for availability reasons and remediation. Expand each
group's `names` into entries, inheriting the inventory-level client requirements
unless the group overrides them. In its closed effect and annotation vocabularies,
listed flags are true and omitted known flags are false. The grouped name union
is the complete tool inventory; use `tools/list` for canonical tool schemas.
Provider candidate facts describe possible providers, while top-level session
capabilities describe the current route and `analysis_provider_binding` names the
selected provider. Do not treat those scopes as interchangeable.

## Work summary-first

Start with the default result and use its inline Evidence and graph context.
For a JavaScript application or ELF layout whose size is unknown or large,
call `analyze_javascript_application` or `inspect_binary_layout` with
`"detail": "summary"`, then inspect the retained `parent_evidence_id` with
`inspect_analysis_view`.
Page module identities and select the returned `node_id` before requesting an
item; a single file path can represent several graph roles. Do not repeat an
identical analysis or rejected call without a changed input or resolved blocker.
Recheck session state when a lifecycle change makes that status useful.
Make a focused follow-up only when the
returned result leaves a specific question unanswered.

If MCP reports `resource_constraint` with `details.resource: "transport"`, call
`inspect_analysis_view` with its reported same-session Evidence reference for a
summary, one section/module, or a stable page. Use `trace_application_feature`
once a seed is known, or call `export_evidence_bundle` to write the complete
session to a selected path. The analysis remains complete in the ledger; avoid
repeating it merely to request the same oversized response. Complete CLI JSON
output also streams without a single MCP frame.

When the retained parent ID is unknown, use `get_evidence_bundle` with
`detail: "summary"` and exact filters for operation, target SHA-256,
analysis-profile digest or canonical procedure address. Select its returned
Evidence ID for the next view instead of requesting the complete bundle.
`retention: "complete-record"` means the whole record is stored; native
value-flow truncation and unknown metadata remain separate. For an exported
portable bundle, use `rea inspect-evidence-bundle` with JSON containing `path`,
`detail: "summary"` and the same `filters`. Reading that file still requires
validating its full contents within the local memory budget.

A client can also truncate a successful tool result without a REA transport
error. Treat that preview as incomplete; use the retained parent ID for smaller
views or export when the full record is needed. Do not parse the preview as
canonical JSON or repeat the producer. For JavaScript, read the
[module-view and trace recipes](references/javascript-applications.md) before
drilling into a large graph; a broad bidirectional trace can expand unrelated
containment relationships even after summary analysis.

Every conclusion must distinguish observations, inferences, and unknowns. Cite
Evidence IDs, preserve limitations and incomplete coverage, and never imply
that static analysis observed execution. Runtime requests execute the declared
target and lifecycle; do not broaden the target or action beyond those fields.

Within the user's requested investigation, call available analysis tools
directly. REA does not require permission grants or per-call approval flags.
The agent client can independently require approval. Follow the declared request
scope and the host's actual access requirements; use the recovery guide for an
observed client-policy rejection.

## Plan broader investigations

For requests that span multiple features or subsystems, use a staged workflow:

1. Turn the request into a checklist of questions and the evidence each answer
   needs. Resolve target identity and constraints from the conversation and
   workspace before asking for information again.
2. Inspect the current REA session, artifact identity, saved analysis database,
   bookmarks, and prior evidence. Reuse matching state; do not open duplicate
   sessions or repeat identical analysis.
3. Start with the smallest useful overview or inventory. Follow each question
   from its entry point through relevant data and state changes to its result.
   Batch related operations around a specific hypothesis, then expand only when
   the returned evidence leaves a concrete gap.
4. Inspect relevant packaged resources and configuration alongside code when
   they affect the question. Use format-aware inventory and parsers; do not
   infer behavior from filenames, strings, or layout alone.
5. Corroborate a conclusion with the evidence type it requires. Use runtime
   observation only when static evidence cannot answer the question and the
   required host runtime and OS access are available. For JavaScript behavior,
   run probes against the actual app through the available browser, Electron,
   or process capture workflow.
6. Decompose work into independent questions. When parallel workers are
   available and the questions do not depend on one another, assign distinct
   scopes, point workers to existing evidence, and ask them to return sources,
   conclusions, and unresolved gaps. Otherwise, work sequentially.
7. Keep a concise finding ledger linking each conclusion to Evidence IDs,
   confidence/evidence type, search boundary, and remaining unknowns. Update
   the shared index or investigation report so later passes can reuse results.

Before finishing, revisit the original checklist. Mark each question as
answered, partially answered, or unresolved based on its evidence; keep
bounded negative searches bounded, and do not describe a broad investigation
as complete while required questions remain open.

## Read only the relevant guide

- Native binaries, managed assemblies, archives, and extraction:
  [references/native-and-artifacts.md](references/native-and-artifacts.md)
- ASARs, extracted JavaScript, feature tracing, and version comparison:
  [references/javascript-applications.md](references/javascript-applications.md)
- Android APK declarations, classes, methods, and static references:
  [references/android-applications.md](references/android-applications.md)
- Passive browser/Electron observation and static/runtime reconciliation:
  [references/runtime-observation.md](references/runtime-observation.md)
- Evidence paging, comparisons, residual unknowns, and verification:
  [references/evidence-workflows.md](references/evidence-workflows.md)

## Finish the task

Explain findings in plain language and tie them to returned evidence. When the
user asks to build something, use normal coding tools and separate observed
behavior from design choices. Close an opened native session with
`close_binary` when the investigation is complete.

Perché lo abbiamo scelto

Start with a small feature you can verify: a search interaction, clipboard behavior or a hotkey. REA supplies the analysis tools; your agent explains the findings and helps implement and test your version.

A cosa serve

  • Developers investigating how a specific feature works in a shipped application.
  • Analysts comparing application builds, inspecting packaged resources or tracing binary functions.
  • Teams using evidence from their own software to plan a reconstruction or compatibility implementation.

Choose the workflow by target

Native binaries and packages

Inspect functions, strings, symbols, pseudocode and references with a supported provider; package inspection can inventory ZIP, APK, IPA and other artifacts.

JavaScript and Electron

Analyze extracted directories or ASAR files for modules, imports, source maps, routes, preload/IPC boundaries and native add-on relationships.

.NET and Android

Inspect .NET metadata and CIL statically; Android code and resource workflows use their documented external tools.

Websites and runtime behavior

Inspect a supplied browser or Electron target, recorded network captures, or explicitly requested process behavior. Runtime capture interacts with the selected target.

Official READMESkill entry and workflow

Install instructions, then connect REA tools

The skills CLI installs reverse-engineer-anything and its bundled references. It does not register the MCP service, install an analysis engine or add tools to an already running agent.

For the complete integration, run REA’s setup, select the intended clients, review its changes, then restart the agent. Setup installs matching workflow instructions by default. If tools already work, use them directly; run scoped diagnostics only for a missing connection or provider.

The supported agents shown here are the intersection of SkillHey’s shared catalog and upstream documented setup/manual integration clients. Other MCP-capable clients may use upstream manual registration.

ComandoA cosa serve
npx skills add morluto/rea --skill reverse-engineer-anythingInstall only the Agent Skill and references.
npx rea-agents setupConfigure selected clients with the MCP service and matching Skill; review the proposed changes.
npx rea-agents@latest doctor --client codex --jsonInspect one Codex registration if the connection is missing; substitute your client ID.
npx rea-agents@latest setup --client codex --dry-run --jsonPreview a scoped connection repair without applying configuration changes.

Skill entry and workflowInstallation, clients and dependencies

From a question to an evidence-based explanation

ComandoA cosa serve
npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --jsonOptional direct CLI inspection of an extracted JavaScript/Electron application; does not require MCP or a native analysis engine.
  1. Supply a specific target and question

    Give a local app, binary, ASAR, package or browser target and specify the feature or behavior to understand.

  2. Inspect a useful overview and follow relevant paths

    Choose the target-appropriate tool; use a summary first for large artifacts, then follow selected functions, modules, imports or IPC boundaries.

  3. Preserve evidence and unknowns

    Keep Evidence IDs and limitations with each finding. Request smaller retained views or an evidence export when a result is too large.

  4. Explain or reconstruct the requested feature

    Use the findings to explain behavior or guide a separate implementation and its tests, with observed behavior distinguished from design choices.

Official READMESkill entry and workflowArtifact and JavaScript reconstruction guide

Outputs, release compatibility and limits

Native analysis returns pseudocode and assembly, while JavaScript analysis returns recovered modules and relationships. These are analysis results; exact recovery of the original source code is not guaranteed.

Static inspection reads supplied artifacts without executing the application. Runtime workflows can start or interact with the selected target. REA analyzes locally; model-provider processing of tool results follows your agent service’s terms.

Repository-main instructions may describe capabilities not yet present in an older npm release. Select features using the connected server’s actual tool list and input schemas, and refresh registrations and restart the client when updating.

Use targets you are entitled to inspect. Native format and host support vary by provider; consult the matching upstream guide rather than assuming every workflow is portable.

Official READMESkill entry and workflowInstallation, clients and dependenciesMIT license

When to use REA and what to prepare

Use REA when the answer depends on a shipped artifact, a supported analysis provider or a requested runtime observation. For a source repository you can already inspect, start with ordinary code search and tracing.

Installing Skill instructions alone does not install analysis engines or automatically configure every client. The upstream documentation describes plugin registration as an exception; check the actual host and available tools. Treat pseudocode and recovered modules as evidence with limits, not guaranteed original source.

Installation, clients and dependenciesReviewed upstream Skill

Prima di usarlo

  • A local agent with REA MCP tools available, or a shell workflow using the REA CLI. The Skill alone supplies instructions and references.
  • Node.js 22.x (22.19+), 24.x (24.11+) or 26+, plus npm. See the upstream setup guide for supported clients and host prerequisites.
  • Deep native analysis needs a supported Hopper, Ghidra or IDA installation. Static JavaScript/Electron and .NET inspection do not require a native analysis engine.
  • Extra targets have their own dependencies, such as a Chrome-family browser for website inspection, JADX and a JDK for Android code, or Binwalk/Unblob on Linux for firmware.
  • REA is MIT-licensed. AI services and separate analysis tools may have their own costs; Hopper and IDA licensing are independent of this Skill.

Agenti supportati

Claude CodeCodex CLICursorGitHub CopilotDeepSeek HarnessGemini CLIGrok BuildHermes AgentOpenCodePiGoogle Antigravity

Domande frequenti

Is REA a Skill or an MCP tool?

The repository includes both. reverse-engineer-anything is a standard Agent Skill with instructions and references; REA also provides a local MCP server and CLI that perform the analysis.

Does the Skill installation register REA automatically?

No. The skills CLI installs instructions only. Use npx rea-agents setup for selected-client MCP registration and matching instructions, then restart the client.

Do I always need Hopper, Ghidra or IDA?

Deep native analysis uses a supported provider. Static JavaScript/Electron and .NET inspection can work without one. Other targets have their own documented dependencies.

Can it recover the original source code exactly?

No such guarantee is made. Native outputs include pseudocode and assembly; an agent can use these findings to explain or test a reconstruction while retaining evidence and unknowns.

Fonti e riferimenti

Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.