Skip to content

Add dynamic binary sessions and guided onboarding - #1

Merged
morluto merged 4 commits into
masterfrom
morl/binaryimprovement
Jul 11, 2026
Merged

morluto merged 4 commits into
masterfrom
morl/binaryimprovement

Conversation

@morluto

@morluto morluto commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • add target-free MCP startup with explicit open_binary, close_binary, and binary_session lifecycle tools
  • detect binary formats and loader arguments, preserve the original 39-tool contract, and add guided CLI setup/doctor workflows
  • harden Hopper bridge request correlation, session switching, concurrent shutdown, call-graph traversal, and bridge address handling
  • centralize Homebrew discovery and keep partial-server instructions consistent with the exposed tool surface

Verification

  • npm run check
  • python3 -m py_compile bridge/hopper_bridge.py
  • 82 tests across 16 files

Real Hopper verification was not performed because HOPPER_TARGET_PATH was not set.

@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 fcf4e30 into master Jul 11, 2026
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
Add dynamic binary sessions and guided onboarding
@zpf9649-glitch

zpf9649-glitch commented Oct 11, 2026 •

Copy link
Copy Markdown

This comment was posted accidentally by a tool call and is unrelated to this issue. Please disregard.

@morluto morluto added enhancement New feature or request area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
morluto pushed a commit that referenced this pull request Oct 16, 2026
* feat(ghidra): support raw big-endian m68k analysis

Admit `m68k` for headerless raw-binary targets. Admission requires a
2-byte aligned entry and a mapping within 0x0..0xffffffff, and Ghidra
imports with BinaryLoader using 68000:BE:32:default, the default compiler
specification, and the `ram` default address space.

`6502` and `m68k` now share one RAW_ONLY_ARCHITECTURES owner, so detected
targets, Evidence subjects, snapshots, and lifecycle output contracts
exclude both instead of repeating a 6502 literal.

Ghidra's default 68000 language decodes the 68040 superset; separate
68020/68030/CPU32/ColdFire variants, Amiga/Atari containers, and reset
vector discovery remain unsupported. Windows Ghidra P0 still admits raw
6502 only.

Verified with Ghidra 12.1.4 on macOS against an 8-byte self-built fixture
(nop; nop; moveq #1,d0; rts at 0x1000): load image verified in `ram`,
entry decompiles to `return 1`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* test(ghidra): verify raw m68k analysis with real Ghidra

Add npm run verify:ghidra:m68k. The verifier loads a source-owned 22-byte
68000 fixture (annotated hex, no assembler) at 0x1000 and checks, through
the compiled CLI and stdio MCP server: the 68000:BE:32:default BinaryLoader
import, load-image parity, exact mapped bytes, both functions, the bsr.b
call reference, decompilation by address and file offset, rejection of a
misaligned entry and of a mapping past 0xffffffff without replacing the
active session, unchanged source bytes, and runtime cleanup.

Run with Ghidra 12.1.4 and JDK 21 on macOS arm64. Linux has not been
exercised; Windows Ghidra P0 does not admit m68k.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2567304739 added a commit to 2567304739/rea that referenced this pull request Oct 19, 2026
@morluto morluto mentioned this pull request Nov 3, 2026
4 of 22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants