REA for OpenCode — prepared 2026-10-15
REA 6.5.0 is installed inside the existing Unraid OpenCode container's persistent home. No additional container, host Docker socket, SSH identity or published port. OpenCode/Deck/LLM were not restarted or explicitly reloaded. REA's official OpenCode setup registers an MCP and installs its investigation skill; client-side activation after restart/new session is not claimed by this preparation.
Installed paths and dependencies
- Existing Node 24.18.1:
/usr/bin/node. - Private npm 11.16.0:
/root/.local/share/rea/npm; bootstrapped from the public npm registry tarball with its published SHA-512 integrity checked before unpacking. - REA:
/root/.local/share/rea/runtime/node_modules/rea-agents/scripts/rea.mjs. - Official installer:
node .../scripts/rea.mjs setup --client opencode --yes --format json. - Registration:
/root/.config/opencode/opencode.jsonc,mcp.rea, local stdio, command["/root/.local/share/rea/runtime/node_modules/rea-agents/scripts/rea.mjs", "mcp"]. - Skill:
/root/.agents/skills/reverse-engineer-anything. - No optional Frida dependency installed; Hopper/IDA are not installed.
- Ghidra and its private Java/build dependencies: see
GHIDRA.md.
The existing Alpine BusyBox ps does not support REA's process-ownership query.
Fetched procps-ng 4.0.6-r0 and dependencies with apk fetch --recursive, unpacked
under /root/.local/share/rea/sysroot, without changing system packages. Archives
are in the adjacent apk directory; exact checksums are recorded here.
Only mcp.rea.environment prepends this private sysroot's bin/usr/bin to PATH
and its usr/lib/lib to LD_LIBRARY_PATH. Existing inherited paths follow them.
The same environment is saved privately as private-env.json for the smoke test.
Other MCP settings and all model settings were compared internally using SHA-256
before and after setup; unchanged. No config values or secrets were emitted.
Verified
Separate temporary stdio MCP connection initialized REA 6.5.0 and listed 207
tools. A real analyze_javascript_application call succeeded on a generated
two-file CommonJS fixture with summary output; fixture and temporary server were
removed afterward. No user app, private input, GPU inference, or host program was
used. Run node verify.mjs inside OpenCode to repeat this synthetic check.
This establishes static JavaScript analysis, not all 207 tools. A subsequent
Ghidra DOS-MZ decompilation test also passed; see GHIDRA.md and verify-dos.mjs.
Restore and update
The existing OpenCode /root mount retains runtime, npm, skill, configuration,
and private procps binaries across container recreation. Protect that entire home
through the Unraid appdata backup; it is not automatically covered by Athena
Deck's separate host backup. REA setup's configuration backup may contain existing
credentials: keep it private, never put it in Git.
For reconstruction, use Node 24.11+ or another REA-supported Node version; install
private npm 11.16.0 from its registry tarball with integrity verification. Copy
the public package.json/package-lock.json from this directory into a runtime
directory, then run npm ci --prefix RUNTIME --omit=optional --no-audit --no-fund.
Run the pinned REA script's setup for OpenCode; preserve existing config and then
restore the REA-only environment overrides above. Reacquire the listed signed
Alpine packages matching apk-sha256.txt and extract into the private sysroot.
If the Alpine base changes, revalidate its ABI and REA smoke test before use.
Do not restart a busy coding agent merely to activate a connector.
For a future native Debian deployment, Node plus the locked npm tree remain
required; install the distribution's procps rather than using Alpine's musl
sysroot and remove the private musl library override. Configure the actual service
user's home and executable path, then repeat the smoke test. A fresh-host native
restore and browser-runtime inspection have not been tested here.
See GHIDRA.md for the separately verified executable provider and its limits.
Official references: https://rea.tools/get-started/ and https://github.com/morluto/rea/blob/main/docs/client-configuration.md.