REA Erlang BEAM notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

REA’s inspect-erlang-beam path answers whether one selected local file is a FOR1/BEAM IFF container and which chunk/table facts it carries — without running OTP. Prefer erlang-beam.md.

Minimal path

rea inspect-erlang-beam /absolute/path/to/app.beam --json

MCP:

{
  "name": "inspect_erlang_beam",
  "arguments": { "path": "/artifacts/app.beam" }
}

What you get (orientation)

  • Artifact path, SHA-256, byte length
  • chunks inventory (name, range, payload SHA-256)
  • atoms / module, exports, imports, lambdas when tables exist
  • code header facts (instruction-set, opcode maximum, label/function counts, stream range)

Inspect only .beam modules you are authorized to examine. Do not use this path to recover secrets from software you may not reverse.

RepoRead is unofficial. Prefer erlang-beam.md.

FAQ

Does this run the bytecode?

No. Upstream states the reader inspects the FOR1/BEAM container without executing bytecode and without requiring an Erlang installation or BEAM emulator.

CLI vs MCP paths?

CLI resolves relative paths against the caller working directory. MCP requires an absolute filesystem path and preserves that exact selection.

Which tables are decoded?

Docs describe chunk inventory plus atoms (including OTP 28+ compact table), exports, imports, lambdas and Code-header fields. Missing optional tables are null, not empty-everywhere.

Size limits?

Selected file defaults to 64 MiB (512 MiB maximum), with bounded chunk/atom/row budgets documented upstream.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources