Skip to content

Release REA as one CLI with MCP mode - #2

Merged
morluto merged 14 commits into
masterfrom
morl/binaryimprovement
Jul 12, 2026
Merged

morluto merged 14 commits into
masterfrom
morl/binaryimprovement

Conversation

@morluto

@morluto morluto commented Jul 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • expose one rea executable for CLI and MCP workflows
  • package the project as @morluto/rea with setup, doctor, and floating MCP registration
  • share Hopper session composition across CLI and MCP adapters
  • prelaunch Hopper in the background, serialize target switches, and make loader/CPU selection deterministic
  • add isolated tarball and real-Hopper release verification

Hopper UI limitation

Hopper’s documented launcher unconditionally activates the GUI before opening an executable. REA prelaunches Hopper hidden and avoids loader-choice dialogs, but Hopper may still briefly take focus in the current macOS login session. Guaranteed isolation requires a separate macOS user session/VM or upstream Hopper support for a non-activating Python launch mode.

Verification

  • npm run check
  • npm run verify:package
  • HOPPER_TARGET_PATH=/bin/ls HOPPER_SECOND_TARGET_PATH=/usr/bin/true npm run verify:hopper
  • npm publish --dry-run --json

Real Hopper verification completed with 42 tools, two-target switching, bounded decompilation, no bundled Hopper MCP process, no stderr, and clean shutdown.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@morluto
morluto merged commit 44daad5 into master Jul 12, 2026
@morluto
morluto deleted the morl/binaryimprovement branch July 28, 2026 17:39
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
morluto added a commit that referenced this pull request Oct 11, 2026
* feat(ghidra): recover signed AArch64 relative jump tables

Generalise the AArch64 relative-table matcher to signed byte/halfword entries, UXTW indexes, byte or LSL #2 offsets, B.CS/B.HS bounds and a CBZ route for zero entries. Cross-check it against Ghidra's own load table when one exists, and add a fixture modelled on the RenderScript blend kernel.

Refs #487

* fix(ghidra): preserve typed labels for normalized switch selectors

---------

Co-authored-by: morluto <[email protected]>
WizzoUK2 referenced this pull request in Wicked-Sick-Ltd/rea Oct 12, 2026
…RF (#1)

* fix(security): harden npm registry and CDP fixture fetches against SSRF

CodeQL Critical js/request-forgery (#1, #2):
- verify-package-update.mjs: proxy with pathname-only URL against
  registry.npmjs.org (reject path traversal / origin escape).
- page-cdp-proxy.mjs: allow-list /json/version and /json/list before fetch.

* fix(security): build npm proxy URL from constant origin with allowlisted host and encoded segments

---------

Co-authored-by: WizzoUK2 <[email protected]>
@morluto morluto added enhancement New feature or request area: mcp MCP server, transport, and tool registration labels Oct 14, 2026
kaoru0822-kitauji added a commit that referenced this pull request Oct 15, 2026
`inspect-macho` stored each `otool -l` row in a flat record, so a key
printed more than once kept only its last value. A two-string
LC_LINKER_OPTION lost `-framework` and kept `#2 Foundation`, and a
multi-tool LC_BUILD_VERSION kept only its last tool, while the
collection still claimed exhaustive coverage.

Linker-option strings are now keyed by otool's own `string #n` label
with the exact option text and must match the declared count. Any other
repeated key is labeled `key #n` in print order. Dylib encoding checks
read the parsed rows, so repeated `options` rows are still rejected.

Fixes #4008

Co-authored-by: Claude Opus 5.5 <[email protected]>
Jackzigen added a commit to Jackzigen/rea that referenced this pull request Oct 26, 2026
…rface

- stage config writes beside the file and rename into place so an
  interrupted write cannot leave partial JSON (greptile morluto#4, codex morluto#11)
- convert unreadable config files into configuration errors on the CLI
  seam instead of escaping raw filesystem errors (greptile morluto#5, codex morluto#15)
- keep injected runtimes without a config root isolated from the host
  account's rea.json (codex morluto#18)
- surface the config file error on stderr when doctor falls back to the
  raw environment (greptile morluto#3, codex morluto#16)
- route the config command through logCliCommand and return documents so
  --json stays parseable and failures exit non-zero (greptile morluto#2,
  codex morluto#10)
- reject empty --set values, unknown --set/--unset/--get names, and --get
  combined with mutations (greptile #1/morluto#7, codex morluto#9/morluto#12/morluto#13/morluto#17)
- cover the new behavior in the boundary tests and stop leaking one
  temporary home per run (greptile morluto#8)
DrAbdulmalek pushed a commit to DrAbdulmalek/rea that referenced this pull request Oct 26, 2026
…view-and-optimize

ci: upgrade to skill-review-and-optimize with /apply-optimize
leockl added a commit to leockl/rea that referenced this pull request Nov 14, 2026
…coder

Address greptile's second-round findings on the antidote pass.

JSON (morluto#1, morluto#7): bound each path segment and the whole fact-name path, and JSON-pointer-escape object keys, so an inflated 8 MiB key cannot be repeated across fact names (a ~1 GiB blowup) and `{"a/b":1,"a":{"b":2}}` no longer collapses two members to one ambiguous name. A shortened name carries a sha256 of the exact key for reference.

ASAR header decoder (morluto#4): extract decodeAsarHeaderText in AsarHeader.ts and use it from both readAsarHeader and the canonicalize adapter, so the adapter no longer reinterprets header bytes with a lossy decoder; invalid UTF-8 is rejected identically.

ASAR listing budget (morluto#2): when readAsarListing exceeds its expanded-listing budget, return an explicit truncated inventory carrying the reader's own guidance, instead of letting the provider recommend the unrelated max_file_bytes limit.

ASAR unknown sizes (morluto#3): carry each entry's reader-supplied limitations into the result and keep an unknown declared size distinct from a genuine zero-byte member.

Carried-forward findings morluto#5 (JSON pre-allocation), morluto#6 (reachability-first), and morluto#8 (manifest not crowded out) were already resolved by the prior commit's redesign; this adds no further change for them.

Verified under Node 24.22.1: typecheck, check:fast (typecheck + lint), 33 canonicalize source/adapter tests, the AsarHeader reader tests, and the MCP and CLI boundary tests.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
morluto added a commit that referenced this pull request Nov 21, 2026
* feat(config): persist provider settings in a user config file

Providers currently rediscover install paths from scratch in every
process, so a path set once (for example GHIDRA_INSTALL_DIR) silently
reverts on the next run. Introduce ~/.config/rea/rea.json as the
user-owned persistence layer and merge it into the environment
snapshot before configuration parsing, keeping env > config file >
auto-detect precedence on both the CLI and MCP entry points.

Add a rea config command (list/get/set/unset) as the write surface,
reporting the effective value and where it came from.

* fix(config): address review findings on persistence safety and CLI surface

- stage config writes beside the file and rename into place so an
  interrupted write cannot leave partial JSON (greptile #4, codex #11)
- convert unreadable config files into configuration errors on the CLI
  seam instead of escaping raw filesystem errors (greptile #5, codex #15)
- keep injected runtimes without a config root isolated from the host
  account's rea.json (codex #18)
- surface the config file error on stderr when doctor falls back to the
  raw environment (greptile #3, codex #16)
- route the config command through logCliCommand and return documents so
  --json stays parseable and failures exit non-zero (greptile #2,
  codex #10)
- reject empty --set values, unknown --set/--unset/--get names, and --get
  combined with mutations (greptile #1/#7, codex #9/#12/#13/#17)
- cover the new behavior in the boundary tests and stop leaking one
  temporary home per run (greptile #8)

* fix(config): validate and back up persisted provider settings

* fix(config): keep saved provider defaults out of client registrations

* fix(config): preserve provider discovery and budgets for saved settings

* fix(config): check only settings needed by the IDA deadline lookup

* fix(config): share effective provider settings and verify config file reads

* fix(doctor): share selected settings with Hopper and ILSpy probes

* fix(config): resolve the destination of first-time saves

* fix(doctor): preserve unresolved provider location inputs

* fix(doctor): honor inherited IDA deadline overrides

* fix(config): show empty environment overrides

* fix(setup): preserve client-selected saved configuration roots

---------

Co-authored-by: Jackzigen <[email protected]>
Co-authored-by: morluto <[email protected]>
@morluto morluto added the area: cli CLI adapter and one-shot commands label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands area: mcp MCP server, transport, and tool registration enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant