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.
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.
- Diagnose without changing REA or client configuration.
npx may download
the package and write to npm's cache. For Codex, run
npx -y rea-agents@latest doctor --client codex --json. Substitute the current
supported client: claude_code, claude_desktop, codex, cursor,
gemini_cli, windsurf, devin, opencode, antigravity, copilot_cli,
commandcode, vscode, grok_build, omp, or grok_bot. grok_bot has no local
file registration: doctor reports the Grok Bot chat step, and setup does not
write mcp.json. If the client is unknown, use doctor --json and
inspect its registration results before choosing a setup scope.
- Distinguish the reason. Missing, malformed, or stale registration needs a
scoped configuration repair. An aligned registration with no tools in the
active session needs a restart/reconnection; doctor cannot prove that the
current agent has connected. A missing provider affects only tasks requiring
that provider: static JavaScript inspection needs neither Hopper nor Ghidra,
and Android inspection has separate bring-your-own JADX/Java prerequisites.
- For a configuration repair, prepare the read-only plan:
npx -y rea-agents@latest setup --client codex --dry-run --json.
Use the current client's ID, show its exact proposed paths, backups, and
changes, and obtain approval before setup writes configuration or installs
Hopper. Setup normally installs the matching bundled skill too; include that
replacement in the reviewed plan. After approval, apply the same scope with
npx -y rea-agents@latest setup --client codex --yes. Add --install-hopper
only if that separate installation was needed and explicitly approved.
- Restart/reconnect the affected agent. Verify that REA tools actually appear
in the session, then resume the original investigation. If they remain
absent, inspect the client's MCP launch error rather than repeating setup.
REA setup never installs or upgrades Node.js, npm, Homebrew, Java, Ghidra, IDA,
JADX, Kuna, Binwalk, or Unblob. Use existing prerequisites; do not install unrelated
software to repair
MCP registration. For an unsupported client, use manual stdio registration
with a version-pinned rea-agents package or continue through the CLI.
A concrete CLI fallback for an operator-supplied JavaScript tree or ASAR is:
npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --json
No MCP registration or native engine is required. Read the returned Evidence,
graph, limitations, and unknowns with the same care as an MCP result; the CLI
returns the Evidence record directly. This fallback does not establish that
MCP is configured. Native CLI tasks still require their selected engine.
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, Kuna, 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.
.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.
Browser action the agent must perform (click, type, navigate):
capture_browser_scenario with declared actions. See
runtime observation for connect/launch
and the focused follow-up browser tools.
Fiddler Everywhere traffic or a native .saz capture: read the
Fiddler workflow.
Inspect saved SAZ with inspect_web_network_capture and format: "saz";
connect Everywhere's separate MCP server for live traffic.
Retained HAR/SAZ/native mitmproxy/aioquic qlog 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 for the exact upstream
profile and credential exclusions. Qlog support starts with aioquic 1.5.0
JSON 0.3; stream coverage and endpoint loss declarations do not recover bodies
or establish network loss. Prefer detail summary, then kind qlog trace/stream
pages; select one trace, stream ID and direction for contribution/range pages.
Facts retain all-recorded-events-before-selection scope. Other qlog layouts
and PCAP correlation are unsupported.
User-owned Electron runtime already open: list_electron_targets. Before an electron-main Inspector attempt, check packaged fuses with inspect_electron_fuses; disabled EnableNodeCliInspectArguments means the app ignores --inspect.
Packet-field discovery: inspect_packet_fields searches installed protocols
and field names/types before choosing fields for inspect_packet_capture.
Query/page the relevant records; registrations do not establish observed traffic.
Recorded packet captures: inspect_packet_capture with selected TShark fields,
display filters and decode-as rules. Requires Linux, util-linux prlimit and REA_TSHARK_COMMAND; see
capture guide.
Packet limits count input packets before filtering. Output defaults to 50 matching
frames; use match_offset / match_limit for later pages, or explicit null
limit for complete matching output. Preserve the source digest across pages.
This does not perform live capture.
For address/DNS/SNI/protocol summaries use inspect_pcap_capture with MCP
detail summary, then retained kind pcap pages. Requires Wireshark 4.x tshark
and capinfos, with Linux prlimit or Windows Job Objects; see
packet summaries.
Select an exact DNS question for address pages; page exhaustion does not prove
network completeness. This reads recordings and does not acquire traffic.
Decoder discovery: inspect_signal_decoders searches installed decoder IDs
or selected decoder help, including channels and options. Query and page the
relevant details before choosing settings; this does not scan hardware.
Recorded logic/signal traces: decode_signal_recording with explicit decoder,
channel and protocol settings. On Linux with util-linux prlimit, supply sigrok-cli 0.7.2 through
REA_SIGROK_COMMAND; see recording guide.
Output defaults to 50 literal lines; select annotation classes and page with
line_offset / line_limit, or explicit null for all remaining output.
Window counts are display lines, not annotations or samples. Preserve source digests across pages.
This reads existing files; it does not acquire hardware signals.
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.
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. For the complete inferred interface without hex or
duplicate stdout, discover support and select detail: "summary"; complete
Evidence stays retained under its original identity. Use the returned
parent_evidence_id for exact function or bytecode_hex/stdout/stderr pages.
Candidate coverage does not establish interface completeness. See the
EVM bytecode guide.
Embedded Go compiler, module or build-setting metadata: inspect_go_binary
with the explicit local file. This built-in target-free inspection requires no
Go installation or disassembler. Preserve raw module bytes and source ranges;
absent metadata does not prove a binary is not Go, and unparsed text records
remain explicit. See the
Go binary guide.
Embedded cargo-auditable Rust dependency metadata: inspect_rust_binary
with the explicit local ELF, PE, or thin Mach-O file. This built-in
target-free inspection requires no Rust installation or disassembler. Preserve
package order, dependency indices, and the section file range. A missing
.dep-v0 section is null metadata, not proof the binary has no dependencies.
A rustc commit hash is an inference from a read-only /rustc/<40-hex>/ path.
See the
Rust binary guide.
Explicit local SQLite database snapshot: inspect_sqlite_database. Inspect
with Node.js 24.x >=24.15 or 26+ providing native SQLite limits. Read schema
first (compact inventory by default), or select an exact ordinary table
and columns when rows are needed. Defaults are selected-table schema and
20 rows; request schema_scope: "database" for the complete stored schema. Preserve both database and existing sibling WAL identity; row samples
report truncation and have unspecified order. Use a quiescent snapshot rather
than assuming a live database/WAL pair was copied atomically. See the
SQLite guide.
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.
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.
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; see the
IDA provider guide.
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.
With REA_KUNA_COMMAND configured, provider_id: "kuna" answers procedure
lists, lookups, pseudocode, assembly and analyze_function from Kuna's cached
whole-program export. Callers/callees use a separate body-free graph shared by
the session; xrefs returns exact-address incoming sites and filters forwarding
aliases. These queries and inventory lookups do not trigger a C export. Indirect
targets remain unknown and can make relationship coverage partial. Reference
caches expire on close; a fresh CLI process repeats the native reference walk.
Typed references, CFG, raw-memory tools and annotations remain unsupported. A cold first
answer can come from a single-function run (its limitations say so); assembly
waits for the export. For pseudocode and assembly, raw_result.source names the
cached .c/.asm file and byte span, which you may search directly instead of
calling per function. See the
Kuna provider guide.
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 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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- ASARs, extracted JavaScript, feature tracing, and version comparison:
references/javascript-applications.md
- Android APK declarations, classes, methods, and static references:
references/android-applications.md
- Browser/Electron observation (passive and scenario) and static/runtime
reconciliation:
references/runtime-observation.md
- Evidence paging, comparisons, residual unknowns, and verification:
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.
1---2name: reverse-engineer-anything3description: 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.4metadata:5 source: https://skillmd.com/skills/pinkpixel-dev/reverse-engineer-anything6 version: "42"7---89# REA1011Use REA when a claim depends on a shipped binary or package, decompilation,12passive application runtime evidence, or comparison with13behavior not established by available source. For ordinary analysis of a14complete source repository, use normal repository tools and do not run REA15readiness or provider commands.1617## Connect only when needed1819Installing this skill supplies instructions; it does not register the REA MCP20server, install analysis engines, or add tools to an already-running agent.2122If REA tools are available and their registration is not known to be stale,23proceed directly to the target. Do not run diagnostics or setup before every24investigation. Use the connected server's actual tool list and input schemas;25a skill installed from repository main may describe capabilities absent from26an older npm release. Keep complete inline Evidence when that server does not27advertise retained references.2829If tools are absent, a call is blocked by the client, or a required provider is30unavailable, read [connection and recovery](references/connection-and-recovery.md).31Diagnose the observed blocker, continue useful supported work, and resume the32original task after repair. Client approval, shell PATH, registration and engine33availability have different remedies; avoid repeating setup for all of them.34351. Diagnose without changing REA or client configuration. `npx` may download36 the package and write to npm's cache. For Codex, run37 `npx -y rea-agents@latest doctor --client codex --json`. Substitute the current38 supported client: `claude_code`, `claude_desktop`, `codex`, `cursor`,39 `gemini_cli`, `windsurf`, `devin`, `opencode`, `antigravity`, `copilot_cli`,40 `commandcode`, `vscode`, `grok_build`, `omp`, or `grok_bot`. `grok_bot` has no local41 file registration: doctor reports the Grok Bot chat step, and setup does not42 write `mcp.json`. If the client is unknown, use `doctor --json` and43 inspect its registration results before choosing a setup scope.442. Distinguish the reason. Missing, malformed, or stale registration needs a45 scoped configuration repair. An aligned registration with no tools in the46 active session needs a restart/reconnection; doctor cannot prove that the47 current agent has connected. A missing provider affects only tasks requiring48 that provider: static JavaScript inspection needs neither Hopper nor Ghidra,49 and Android inspection has separate bring-your-own JADX/Java prerequisites.503. For a configuration repair, prepare the read-only plan:51 `npx -y rea-agents@latest setup --client codex --dry-run --json`.52 Use the current client's ID, show its exact proposed paths, backups, and53 changes, and obtain approval before setup writes configuration or installs54 Hopper. Setup normally installs the matching bundled skill too; include that55 replacement in the reviewed plan. After approval, apply the same scope with56 `npx -y rea-agents@latest setup --client codex --yes`. Add `--install-hopper`57 only if that separate installation was needed and explicitly approved.584. Restart/reconnect the affected agent. Verify that REA tools actually appear59 in the session, then resume the original investigation. If they remain60 absent, inspect the client's MCP launch error rather than repeating setup.6162REA setup never installs or upgrades Node.js, npm, Homebrew, Java, Ghidra, IDA,63JADX, Kuna, Binwalk, or Unblob. Use existing prerequisites; do not install unrelated64software to repair65MCP registration. For an unsupported client, use manual stdio registration66with a version-pinned `rea-agents` package or continue through the CLI.6768A concrete CLI fallback for an operator-supplied JavaScript tree or ASAR is:6970```bash71npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --json72```7374No MCP registration or native engine is required. Read the returned Evidence,75graph, limitations, and unknowns with the same care as an MCP result; the CLI76returns the Evidence record directly. This fallback does not establish that77MCP is configured. Native CLI tasks still require their selected engine.78Prefer an existing `rea` CLI. When none is installed and REA package acquisition79is within the authorized scope, use `npx -y rea-agents@latest` in its place.80Configuration repair starts with a read-only setup plan; show paths, backups and81skill replacement before applying authorized changes. Preserve existing approval82and target-execution boundaries. REA setup never installs or upgrades unrelated83software, including Node.js, npm, Homebrew, Java, Ghidra, IDA, JADX, Kuna, Binwalk or Unblob.8485## Route the target first8687Choose the first tool from the target the user supplied. Use `open_binary` for88active-target native or archive workflows; target-free tools take their own89explicit path or endpoint and do not need it.9091- ASAR or extracted JavaScript/Electron tree:92 `analyze_javascript_application`.93- Archive/package member inventory (ZIP/APK/IPA/MSIX/AppX or DMG):94 `open_binary` with the supplied local path; use `inspect_artifact` when its95 graph and findings help answer the question.96- Android APK code, classes, methods, or incoming references:97 `inspect_android_package`, then focused Android tools when advertised.98 Archive member inventory still uses the archive route above.99- Managed PE/CLI assembly: `inspect_managed_artifact`.100- Firmware image: `inspect_firmware_regions` when advertised. Use101 `extract_firmware` when extraction is requested, with a caller-selected new102 absolute output directory. These tools use caller-supplied Binwalk/Unblob on103 Linux; see the [firmware guide](https://github.com/morluto/rea/blob/main/docs/firmware-analysis.md).104- .NET NativeAOT PE/ELF: native Ghidra analysis. Native code can yield pseudocode;105 consult the NativeAOT workflow in `references/native-and-artifacts.md` for106 optional metadata recovery and its supported host/layout boundary.107- User-owned browser page already open: `list_browser_targets`.108- Browser action the agent must perform (click, type, navigate):109 `capture_browser_scenario` with declared actions. See110 [runtime observation](references/runtime-observation.md) for connect/launch111 and the focused follow-up browser tools.112- Fiddler Everywhere traffic or a native `.saz` capture: read the113 [Fiddler workflow](references/runtime-observation.md#fiddler-everywhere-traffic-debugging).114 Inspect saved SAZ with `inspect_web_network_capture` and `format: "saz"`;115 connect Everywhere's separate MCP server for live traffic.116- Retained HAR/SAZ/native mitmproxy/aioquic qlog capture: `inspect_web_network_capture`. Select117 original record ordinals when useful; inspect producer fields and byte/number118 sidecars without fetching recorded URLs or claiming live attribution. See119 [historical captures](https://github.com/morluto/rea/blob/main/docs/web-network-captures.md) for the exact upstream120 profile and credential exclusions. Qlog support starts with aioquic 1.5.0121 JSON 0.3; stream coverage and endpoint loss declarations do not recover bodies122 or establish network loss. Prefer detail summary, then kind qlog trace/stream123 pages; select one trace, stream ID and direction for contribution/range pages.124 Facts retain all-recorded-events-before-selection scope. Other qlog layouts125 and PCAP correlation are unsupported.126- User-owned Electron runtime already open: `list_electron_targets`. Before an electron-main Inspector attempt, check packaged fuses with `inspect_electron_fuses`; disabled `EnableNodeCliInspectArguments` means the app ignores `--inspect`.127- Packet-field discovery: `inspect_packet_fields` searches installed protocols128 and field names/types before choosing fields for `inspect_packet_capture`.129 Query/page the relevant records; registrations do not establish observed traffic.130- Recorded packet captures: `inspect_packet_capture` with selected TShark fields,131 display filters and decode-as rules. Requires Linux, util-linux prlimit and `REA_TSHARK_COMMAND`; see132 [capture guide](https://github.com/morluto/rea/blob/main/docs/packet-captures.md).133 Packet limits count input packets before filtering. Output defaults to 50 matching134 frames; use `match_offset` / `match_limit` for later pages, or explicit null135 limit for complete matching output. Preserve the source digest across pages.136 This does not perform live capture.137 For address/DNS/SNI/protocol summaries use `inspect_pcap_capture` with MCP138 detail summary, then retained kind pcap pages. Requires Wireshark 4.x tshark139 and capinfos, with Linux prlimit or Windows Job Objects; see140 [packet summaries](https://github.com/morluto/rea/blob/main/docs/pcap-analysis.md).141 Select an exact DNS question for address pages; page exhaustion does not prove142 network completeness. This reads recordings and does not acquire traffic.143- Decoder discovery: `inspect_signal_decoders` searches installed decoder IDs144 or selected decoder help, including channels and options. Query and page the145 relevant details before choosing settings; this does not scan hardware.146- Recorded logic/signal traces: `decode_signal_recording` with explicit decoder,147 channel and protocol settings. On Linux with util-linux prlimit, supply sigrok-cli 0.7.2 through148 `REA_SIGROK_COMMAND`; see [recording guide](https://github.com/morluto/rea/blob/main/docs/signal-recordings.md).149 Output defaults to 50 literal lines; select annotation classes and page with150 `line_offset` / `line_limit`, or explicit null for all remaining output.151 Window counts are display lines, not annotations or samples. Preserve source digests across pages.152 This reads existing files; it does not acquire hardware signals.153- Explicit local WebAssembly artifact: `inspect_wasm_artifact`. Supply WABT 1.0.42154 through `REA_WABT_BIN_DIRECTORY`; retain exact byte/tool identity and decoded WAT.155 Select JavaScript glue and candidate paths explicitly and preserve URL/path156 ambiguity. No implicit fetch or target execution; WAT is not original source.157 See the [WASM guide](https://github.com/morluto/rea/blob/main/docs/wasm-artifacts.md).158- Explicit local EVM bytecode carrier: `inspect_evm_interface` with caller-selected159 `raw` or `hex` encoding. Preserve carrier/decoded digests and treat selectors,160 argument strings and mutability as inferred candidates; this performs no chain161 lookup or target execution. For the complete inferred interface without hex or162 duplicate stdout, discover support and select `detail: "summary"`; complete163 Evidence stays retained under its original identity. Use the returned164 `parent_evidence_id` for exact function or `bytecode_hex`/stdout/stderr pages.165 Candidate coverage does not establish interface completeness. See the166 [EVM bytecode guide](https://github.com/morluto/rea/blob/main/docs/evm-bytecode.md).167- Embedded Go compiler, module or build-setting metadata: `inspect_go_binary`168 with the explicit local file. This built-in target-free inspection requires no169 Go installation or disassembler. Preserve raw module bytes and source ranges;170 absent metadata does not prove a binary is not Go, and unparsed text records171 remain explicit. See the172 [Go binary guide](https://github.com/morluto/rea/blob/main/docs/go-binaries.md).173- Embedded cargo-auditable Rust dependency metadata: `inspect_rust_binary`174 with the explicit local ELF, PE, or thin Mach-O file. This built-in175 target-free inspection requires no Rust installation or disassembler. Preserve176 package order, dependency indices, and the section file range. A missing177 `.dep-v0` section is null metadata, not proof the binary has no dependencies.178 A rustc commit hash is an inference from a read-only `/rustc/<40-hex>/` path.179 See the180 [Rust binary guide](https://github.com/morluto/rea/blob/main/docs/rust-binaries.md).181182- Explicit local SQLite database snapshot: `inspect_sqlite_database`. Inspect183 with Node.js 24.x >=24.15 or 26+ providing native SQLite limits. Read schema184 first (compact inventory by default), or select an exact ordinary table185 and `columns` when rows are needed. Defaults are selected-table schema and186 20 rows; request `schema_scope: "database"` for the complete stored schema. Preserve both database and existing sibling WAL identity; row samples187 report truncation and have unspecified order. Use a quiescent snapshot rather188 than assuming a live database/WAL pair was copied atomically. See the189 [SQLite guide](https://github.com/morluto/rea/blob/main/docs/sqlite-databases.md).190- Explicit Linux ELF file for offline layout, symbols, relocations or static191 mitigation evidence: `inspect_binary_layout`. This target-free operation uses192 caller-supplied pwntools without opening a disassembler database. Preserve its193 raw locations and inference/coverage limits; see the194 [offline binary guide](https://github.com/morluto/rea/blob/main/docs/binary-diagnostics.md).195- Supplied Linux x86-64 ELF core: `inspect_recorded_crash`. Read every recorded196 thread, raw note and source-bound register without opening a live target.197 Historical PIDs do not select live processes. Request `include_debugger_context`198 only when core-only mapping candidates help; see the199 [recorded crash guide](https://github.com/morluto/rea/blob/main/docs/recorded-crashes.md).200- PE resource type/name/language trees and static icon group references:201 `inspect_pe_resources` with an explicit path. This portable operation requires202 no active target or engine; opaque payloads retain file ranges and SHA-256.203- Native executable, library, or analysis database: `open_binary`, then204 use focused analysis tools directly; call `binary_overview` when metadata or205 inventory context is useful and available from the selected provider.206207For an existing IDA MCP configuration, use `open_binary` with the original208input binary and `provider_id: "ida"`; do not pass an `.idb` or `.i64` database.209The legacy attached profile binds the already-open GUI input by SHA-256 and210leaves its database open. The modern headless profile creates and closes an211owned private database without saving. Installation and registration reuse212[mrexodia/ida-pro-mcp](https://github.com/mrexodia/ida-pro-mcp); see the213[IDA provider guide](https://github.com/morluto/rea/blob/main/docs/ida-provider.md).214Proceed directly to `analyze_function`, pseudocode, or function/string searches215after opening; IDA does not supply `binary_overview`. Consult session availability216when composing broader workflows. Modern direct callers and unsupported dossier217facets remain unknown; live IDA results are not replayed from snapshots.218219With `REA_KUNA_COMMAND` configured, `provider_id: "kuna"` answers procedure220lists, lookups, pseudocode, assembly and `analyze_function` from Kuna's cached221whole-program export. Callers/callees use a separate body-free graph shared by222the session; `xrefs` returns exact-address incoming sites and filters forwarding223aliases. These queries and inventory lookups do not trigger a C export. Indirect224targets remain unknown and can make relationship coverage partial. Reference225caches expire on close; a fresh CLI process repeats the native reference walk.226Typed references, CFG, raw-memory tools and annotations remain unsupported. A cold first227answer can come from a single-function run (its limitations say so); assembly228waits for the export. For pseudocode and assembly, `raw_result.source` names the229cached `.c`/`.asm` file and byte span, which you may search directly instead of230calling per function. See the231[Kuna provider guide](https://github.com/morluto/rea/blob/main/docs/kuna-provider.md).232233If the user says only "my app" without a name, path, or target already selected234for this task, ask which app before searching for artifacts. Paths in unrelated235saved reports and nearby test fixtures do not select the user's target. Resolve236an actual human-readable app name to one clear installed artifact when possible;237ask when matches are ambiguous. Never choose an example app on the user's behalf.238239In a target-free session, use `open_binary` to bind any archive/package or240native target whose analysis tool operates on the active target. Do not call an241unadvertised tool; inspect `binary_session` with `{}` and its242`result.tool_availability` for availability reasons and remediation. Expand each243group's `names` into entries, inheriting the inventory-level client requirements244unless the group overrides them. In its closed effect and annotation vocabularies,245listed flags are true and omitted known flags are false. The grouped name union246is the complete tool inventory; use `tools/list` for canonical tool schemas.247Provider candidate facts describe possible providers, while top-level session248capabilities describe the current route and `analysis_provider_binding` names the249selected provider. Do not treat those scopes as interchangeable.250251## Work summary-first252253Start with the default result and use its inline Evidence and graph context.254For a JavaScript application or ELF layout whose size is unknown or large,255call `analyze_javascript_application` or `inspect_binary_layout` with256`"detail": "summary"`, then inspect the retained `parent_evidence_id` with257`inspect_analysis_view`.258Page module identities and select the returned `node_id` before requesting an259item; a single file path can represent several graph roles. Do not repeat an260identical analysis or rejected call without a changed input or resolved blocker.261Recheck session state when a lifecycle change makes that status useful.262Make a focused follow-up only when the263returned result leaves a specific question unanswered.264265If MCP reports `resource_constraint` with `details.resource: "transport"`, call266`inspect_analysis_view` with its reported same-session Evidence reference for a267summary, one section/module, or a stable page. Use `trace_application_feature`268once a seed is known, or call `export_evidence_bundle` to write the complete269session to a selected path. The analysis remains complete in the ledger; avoid270repeating it merely to request the same oversized response. Complete CLI JSON271output also streams without a single MCP frame.272273When the retained parent ID is unknown, use `get_evidence_bundle` with274`detail: "summary"` and exact filters for operation, target SHA-256,275analysis-profile digest or canonical procedure address. Select its returned276Evidence ID for the next view instead of requesting the complete bundle.277`retention: "complete-record"` means the whole record is stored; native278value-flow truncation and unknown metadata remain separate. For an exported279portable bundle, use `rea inspect-evidence-bundle` with JSON containing `path`,280`detail: "summary"` and the same `filters`. Reading that file still requires281validating its full contents within the local memory budget.282283A client can also truncate a successful tool result without a REA transport284error. Treat that preview as incomplete; use the retained parent ID for smaller285views or export when the full record is needed. Do not parse the preview as286canonical JSON or repeat the producer. For JavaScript, read the287[module-view and trace recipes](references/javascript-applications.md) before288drilling into a large graph; a broad bidirectional trace can expand unrelated289containment relationships even after summary analysis.290291Every conclusion must distinguish observations, inferences, and unknowns. Cite292Evidence IDs, preserve limitations and incomplete coverage, and never imply293that static analysis observed execution. Runtime requests execute the declared294target and lifecycle; do not broaden the target or action beyond those fields.295296Within the user's requested investigation, call available analysis tools297directly. REA does not require permission grants or per-call approval flags.298The agent client can independently require approval. Follow the declared request299scope and the host's actual access requirements; use the recovery guide for an300observed client-policy rejection.301302## Plan broader investigations303304For requests that span multiple features or subsystems, use a staged workflow:3053061. Turn the request into a checklist of questions and the evidence each answer307 needs. Resolve target identity and constraints from the conversation and308 workspace before asking for information again.3092. Inspect the current REA session, artifact identity, saved analysis database,310 bookmarks, and prior evidence. Reuse matching state; do not open duplicate311 sessions or repeat identical analysis.3123. Start with the smallest useful overview or inventory. Follow each question313 from its entry point through relevant data and state changes to its result.314 Batch related operations around a specific hypothesis, then expand only when315 the returned evidence leaves a concrete gap.3164. Inspect relevant packaged resources and configuration alongside code when317 they affect the question. Use format-aware inventory and parsers; do not318 infer behavior from filenames, strings, or layout alone.3195. Corroborate a conclusion with the evidence type it requires. Use runtime320 observation only when static evidence cannot answer the question and the321 required host runtime and OS access are available. For JavaScript behavior,322 run probes against the actual app through the available browser, Electron,323 or process capture workflow.3246. Decompose work into independent questions. When parallel workers are325 available and the questions do not depend on one another, assign distinct326 scopes, point workers to existing evidence, and ask them to return sources,327 conclusions, and unresolved gaps. Otherwise, work sequentially.3287. Keep a concise finding ledger linking each conclusion to Evidence IDs,329 confidence/evidence type, search boundary, and remaining unknowns. Update330 the shared index or investigation report so later passes can reuse results.331332Before finishing, revisit the original checklist. Mark each question as333answered, partially answered, or unresolved based on its evidence; keep334bounded negative searches bounded, and do not describe a broad investigation335as complete while required questions remain open.336337## Read only the relevant guide338339- Native binaries, managed assemblies, archives, and extraction:340 [references/native-and-artifacts.md](references/native-and-artifacts.md)341- ASARs, extracted JavaScript, feature tracing, and version comparison:342 [references/javascript-applications.md](references/javascript-applications.md)343- Android APK declarations, classes, methods, and static references:344 [references/android-applications.md](references/android-applications.md)345- Browser/Electron observation (passive and scenario) and static/runtime346 reconciliation:347 [references/runtime-observation.md](references/runtime-observation.md)348- Evidence paging, comparisons, residual unknowns, and verification:349 [references/evidence-workflows.md](references/evidence-workflows.md)350351## Finish the task352353Explain findings in plain language and tie them to returned evidence. When the354user asks to build something, use normal coding tools and separate observed355behavior from design choices. Close an opened native session with356`close_binary` when the investigation is complete.