Evidence-First Interfaces: Pairing REA with Vercel UI SDK
How a 229-tool reverse-engineering MCP server and a behavior-level UI SDK eliminate DOM scraping, expose typed evidence graphs, and cut agent token cost by 76%.
Case I: DX-Ball Sound-Panning Reconstruction
In the DX-Ball showcase[3]Showcase scopeCheckpoint 7 Oct 2026: 63 compiled x86 bytes matched across 3,205 oracle comparisons against the original DX-Ball 1.07 routine.rea.tools/showcase/dx-ball, REA traces the x86 DirectSound pan routine at 0x406409 through five evidence-backed steps: loading the ball’s horizontal coordinate, multiplying by 1.5625, subtracting 500.0, scaling, and truncating via __ftol. Step through the assembly and probe the live oracle below.
DX-Ball Sound-Panning: x86 Assembly to Verified C
10x406409: MOV EAX, dword ptr [EBP + 0x8]20x40640c: MOV dword ptr [EBP - 0xc], EAX30x40640f: FILD dword ptr [EBP - 0xc]40x406415: FMUL double ptr [0x00420068]50x40641e: FSUB double ptr [0x00420070]60x406427: FMUL double ptr [0x004210a0]70x406430: CALL 0x0041678c ; __ftol80x40643e: RET
1DxBallInt dxball_screen_pan(DxBallInt x) {2double pan = (double)x;3pan = pan * 1.5625;4pan = pan - 500.0;5pan = pan * dxball_pan_scale;6return (DxBallInt)pan;7}
@ui-sdk/core primitive (EvidenceStepper) with roving focus and agent actions goTo, next, and previous, paired with @ui-sdk/react/slider. Use Left/Right arrow keys on the step bar.Why Headless + Agent-Ready Matters
Vercel UI SDK separates interaction state, roving focus, and ARIA semantics from visual styling[4]Benchmark caveatReported 3-run medians measure the settings-screen agent bridge benchmark. Efficiency gains come from structured snapshot()/act() calls, not raw browser DOM scraping.github.com/vercel-labs/ui. Because every control registers with createAgent(), an agent can inspect and drive the exact same figures a human reader uses, cutting token consumption and tool calls compared to raw browser automation.
Browser-Only vs. UI SDK Agent Bridge (3-Run Medians)
@ui-sdk/react/segmented-control and @ui-sdk/react/switch and are directly inspectable and actionable via the Agent Console.Case II: Notion Desktop 7.6.1 Clipboard IPC Bridge
Static JavaScript analysis in REA does not require a native disassembler. Inspecting Notion Desktop’s app.asar[5]Provenance splitREA 4.1.0 located preload API and ipcMain ranges statically in app.asar; separate cached web-asset probes are explicitly marked as non-desktop captures.rea.tools/showcase/notion maps the full trust boundary from renderer preload wrappers to the sender-checked ipcMain.handle clipboard sink.
Notion Desktop 7.6.1 Clipboard Write IPC Chain
The web editor calls window.__electronApi.clipboard.write(data) without touching Electron internals directly.
1const clipboardApi = {2write: invokerInMain("notion:clipboard:write"),3};4// Exposed through contextBridge as window.__electronApi.clipboard
1api_key: "__electronApi"2api_status: "dynamic"3source: preload.js:1:22764–22828
@ui-sdk/react/tabs to walk through each Electron boundary from renderer preload to the sender-checked ipcMain.handle sink.Target Capability Matrix & Investigation Trace
REA routes each artifact to a specialized static reader, bring-your-own disassembler, or live runtime bridge[6]Engine boundaryJS/Electron, .NET, and archive inspections run without native engines; deep native decompilation requires a local Ghidra, Hopper, or Rizin backend.github.com/morluto/rea. Filter the target matrix by engine requirement and inspect the investigation waterfall below[7]Illustrative traceThe 940 ms waterfall below illustrates a typical 7-call DX-Ball session structure for interactive exploration; real timings vary by host and engine warm-up.sid.ai & architectlabs.com.
REA Target Surface & Investigation Span Waterfall
| Target family | Primary REA tools | Prerequisite | Returns |
|---|---|---|---|
| Native binaries (ELF / Mach-O / PE / DOS) | open_binary → analyze_function | Hopper, Ghidra, IDA Pro, or Kuna | Pseudocode, assembly, callers, callees, strings, CFG, xrefs |
| Go & Rust cargo-auditable binaries | inspect_go_binary / inspect_rust_binary | None (built-in static parser) | Compiler version, module graph, crate versions, build settings |
| CUDA/HIP code objects & GGUF / safetensors | inspect_gpu_code_objects / inspect_model_artifact | None (header & fatbin parser) | Kernel parameters, PTX text, tensor declarations, header digests |
| Electron ASAR & bundled JavaScript | analyze_javascript_application | Node.js 22/24/26 (no native engine) | Module graph, IPC boundaries, preload APIs, route tables, fuses |
| Live web apps & WebMCP pages | capture_browser_scenario → export_environment_bundle | Loopback CDP Chrome-family browser | DOM capture, scripts, WebMCP schemas, AgentEnv RL bundles |
| HAR, Fiddler SAZ, mitmproxy, qlog | inspect_web_network_capture | Saved capture file (no live fetch) | Requests, protobuf/gRPC payloads, source locations, stream stats |
| Android APKs, signatures & Flutter | inspect_android_package / inspect_apk_signature | Static for signatures/Flutter; JADX + JDK for Java | Manifest, JADX decompilation, v1–v3.1 cert lineage, Dart hashes |
| .NET PE/CLI & Unity IL2CPP metadata | inspect_managed_artifact / inspect_il2cpp_metadata | None (static metadata decoder) | CIL hashes, P/Invoke maps, global-metadata.dat types & methods |
| Firmware, PCAPs & sigrok logic traces | inspect_firmware_regions / inspect_pcap_capture | Binwalk/Unblob, TShark 4.x, or sigrok-cli on Linux | Firmware regions, DNS/TLS summaries, decoded bus annotations |
| SQLite + WAL, CPython .pyc & Erlang BEAM | inspect_sqlite_database / inspect_python_pyc | None (built-in static reader) | Schema/rows, marshal code objects, BEAM atoms & export tables |
@ui-sdk/react/input, @ui-sdk/react/segmented-control, and @ui-sdk/react/waterfall (accessible treegrid timeline).Notes & References
- Vercel Labs (2026). “Introducing UI SDK: A library of behaviors to build your components. Made for agents.” github.com/vercel-labs/ui
- REA Project (2026). “Reverse Engineer Anything: One MCP for reverse engineering across binaries, applications, and runtime behavior (v6.8.0, 229 tools).” github.com/morluto/rea
- REA Showcase (2026). “Rebuilding DX-Ball 1.07 from its executable: sound panning reconstruction & 3,205 oracle checks.” rea.tools/showcase/dx-ball
- REA Showcase (2026). “How Notion Desktop 7.6.1 copies text and HTML across its Electron preload/IPC bridge.” rea.tools/showcase/notion
- Editorial craft references: SID-2 Technical Report (three-column reading grid, inline figure toggles, margin sidenotes) and Architect Labs Frostbite (editorial left rail, serif display headlines, cobalt telemetry). sid.ai & architectlabs.com