REA + Kuna setup (unofficial)
REA can drive Kuna (Apache-2.0 static decompiler) when you point it at a kuna executable you already obtained. REA does not fetch Kuna. Prefer upstream kuna-provider.md when wording changes.
Minimal path
export REA_KUNA_COMMAND=/absolute/path/to/kuna
npx -y rea-agents@latest doctor --provider kuna --json
# select explicitly when analyzing:
# rea analyze /absolute/path/to/binary --provider kuna --json
# or REA_ANALYSIS_PROVIDER=kuna / MCP open_binary.provider_id "kuna"
With Kuna and another provider both configured for the same target, auto reports ambiguous instead of choosing one.
Timeouts and cache (orientation)
Upstream documents cache directories under ~/Library/Caches/rea/kuna (macOS) or $XDG_CACHE_HOME/rea/kuna (Linux), a default 4 GiB cache cap, a 30 minute project-export deadline (REA_KUNA_PROJECT_TIMEOUT_MS) and a 120 s single-function deadline (REA_KUNA_TIMEOUT_MS). Raising deadlines requires a restart. Prefer the doc table over this paraphrase for exact defaults.
Legal note
A green doctor check does not authorize analyzing arbitrary software. Only targets you own or may examine. Kuna is static (reads the image; does not execute it) — still obey sample-handling policy.
RepoRead is unofficial. Prefer kuna-provider.md.
FAQ
Does REA install Kuna for me?
No. Upstream states REA does not download, install, update or bundle Kuna. You supply an absolute path via REA_KUNA_COMMAND.
Which Kuna version is verified?
Docs say the provider was verified with Kuna 1.833; other releases are accepted and reported as unverified in doctor / analysis profiles.
Which platforms / formats?
Windows is not supported yet. Supported targets include ELF and thin Mach-O for x86-64, AArch64 and ARM; PE and universal Mach-O are rejected with a typed reason.
Important env vars?
REA_KUNA_COMMAND (required), plus optional REA_KUNA_CACHE_DIR, REA_KUNA_CACHE_MAX_BYTES, REA_KUNA_PROJECT_TIMEOUT_MS, REA_KUNA_TIMEOUT_MS and REA_KUNA_JOBS — see upstream tables.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).