/rea-container:rea-containerfrom REA (sandboxed)
Rules for the sandboxed REA server of this plugin, which runs in an offline Podman container. Read before the first REA tool call and whenever you need a target path, an output or extraction directory, a saved evidence bundle, a missing tool or provider, an REA setting, or recovery of the REA server. It overrides the setup, path and runtime advice of the reverse-engineer-anything skill.
Ships in REA (sandboxed). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The rea MCP server of this plugin runs inside an offline, rootless Podman container. It sees
only two directories, and it cannot reach the host, the network or any device. Where this skill
and reverse-engineer-anything disagree, this skill is right.
Targets are under /samples. The directory the agent was started in is mounted there
read-only. Host file ./firmware/radio.bin is /samples/firmware/radio.bin. Translate every
path before you pass it to an REA tool, and translate paths in results back for the user.
A file outside the project directory does not exist for REA. Ask the user to copy it into
the project (or do so with your own file tools if they asked for the analysis), then use its
/samples/... path. A symlink that points outside the project does not resolve.
Everything REA writes goes under /out. That covers extract_firmware output
directories, export_evidence_bundle, reset_investigation save_path, extracted archive
members and any other tool that takes an output path. /samples, the root filesystem and
all other paths are read-only; /tmp is a 1 GB scratch that is lost when the session ends.
/out is one Podman volume (rea-out) shared by all projects and sessions. Write below
a directory named after the project, for example /out/<project>/extract-1. Tools that need
a new directory fail if it exists, so pick a fresh name instead of reusing one.
Files in /out are not on the host. To read extracted files with REA, pass their
/out/... path. To read them with your own tools or hand them to the user, copy them out:
podman run --rm -v rea-out:/out:ro -v "$PWD":/dst docker.io/library/busybox \
cp -r /out/<project>/. /dst/rea-out/
Ask the server instead of guessing: binary_session({}) lists every tool with its
availability and reason. Expect these to work:
inspect_binary_layout), GDB with pwndbg for recorded cores.inspect_firmware_regions), unblob (extract_firmware).inspect_yara_matches. No rules are bundled and none can be downloaded; the rule
files must be in the project, passed as /samples/... paths.inspect_* tools); they need no engine.Not available, and not repairable from inside a session:
start_build_computer needs Docker). Chromium is present but can load only
files under /samples.When a request needs one of these, say so and continue with the static evidence that is available. Do not look for a workaround on the host.
The other skill describes rea setup, rea doctor and npx -y rea-agents@... as fallbacks.
None of them apply here. They would install an unsandboxed REA on the host, which this plugin
exists to avoid. In particular, never run npx rea-agents against a target.
no MCP activity: the user set REA_IDLE_TIMEOUT and the server
stopped itself while idle. Ask the user to reconnect it (/mcp in Claude Code). Results from
before the stop are gone unless they were saved to /out; reopen the target and continue.podman info (on macOS the Podman
machine must be running: podman machine start), then
podman pull ghcr.io/ebirn/rea-container:latest (about 1.5 GB), then ask the user to
reconnect the server (/mcp in Claude Code) or restart the session.doctor output: missing agent registrations, Hopper and IDA are expected. Judge engine
health from binary_session, not from a doctor run on the host.update_analysis_settings
(for example ghidra.startup_timeout_ms for a large binary). REA_* environment variables
are launch settings of the container. You cannot set them from a session. The plugin passes
REA_GHIDRA_CHECKPOINT_DIR, REA_MCP_TOOL_FAMILIES, REA_MCP_TOOL_CATALOG_PROFILE and
REA_IDLE_TIMEOUT from
the environment that started the agent; the user sets them there and restarts the session.
If a tool you need is not advertised at all, REA_MCP_TOOL_FAMILIES may be scoping it out.podman machine set --memory 8192, user's decision).Each session has its own container. Ghidra analysis is ephemeral: a new session analyses the
binary again, and renames and comments are lost. What survives is what you save to /out:
reset_investigation with
save_path: "/out/<project>/<name>.json" (or export_evidence_bundle), and tell the user
the path. In a later session, import that bundle to get the Evidence IDs and Unknowns back.REA_GHIDRA_CHECKPOINT_DIR=/out/ghidra-checkpoints. binary_session states which mode is
active. If the user wants names and analysis to persist, point them to "Keep Ghidra
analysis between sessions" in the plugin README. Checkpoint mode refuses Ghidra seeds.Each agent session keeps its container, labelled io.github.ebirn.rea-container=mcp, until the
session exits; a container that stays belongs to a session that is still open. If the user
sets REA_IDLE_TIMEOUT, an idle server stops by itself. If the user asks about idle REA containers, list them with
podman ps --filter label=io.github.ebirn.rea-container=mcp. Removing them disconnects every
session that still uses one, this one included, so do it only on request. To avoid them,
suggest REA_IDLE_TIMEOUT or enabling the plugin only in reverse-engineering projects (README
section "Enable it only where you need it").
For the investigation workflow itself, follow the reverse-engineer-anything skill.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ebirn/rea-container --plugin rea-container2 skills in this plugin