REA & AI RE Tools Guide (unofficial)What is REAInstallMCP SetupTroubleshooting & FAQREA vs Ghidra/IDAUse CasesAI RE Tools

Inspect .NET assemblies with REA (resource-limit fix)

Unofficial guide. This site is an independent community guide and is not affiliated with the REA project. For authoritative docs see the official REA website and the morluto/rea GitHub repository. Commands here are taken from the official README/docs (checked 2026-10-27); REA changes quickly, so verify against the official docs.

Short answer: if inspect-managed-members returns empty types/methods with resource-limit / metadata.representation (“Managed metadata exceeds the 67108864 byte representation budget”), you are on a build before the #1768 fix. Upgrade to rea-agents 6.5.0+ (current latest is 6.8.0, which needs Node.js 22.23.4+) and rerun. Mid-size assemblies such as Newtonsoft.Json then decode fully.

REA reads .NET PE/CLI metadata and CIL without loading or executing the assembly, and needs no native engine.

npx -y rea-agents@latest inspect-managed-artifact /absolute/path/Assembly.dll --json
npx -y rea-agents@latest inspect-managed-members /absolute/path/Assembly.dll --json
npx -y rea-agents@latest inspect-managed-members /absolute/path/Assembly.dll --type Example.Parser --json

resource-limit / metadata.representation (fixed)

On rea-agents 6.4.0 and earlier, ordinary mid-size assemblies failed with coverage like:

coverage: {"state":"unavailable","issues":[{"code":"resource-limit","scope":"metadata.representation","detail":"Managed metadata exceeds the 67108864 byte representation budget"}]}

Reported on Unity game DLLs (e.g. Valheim assembly_valheim.dll), .NET Framework WinForms EXEs, and public NuGet assemblies such as Newtonsoft.Json 13.0.3 (~705 KB). Root cause: decode paths charged a flat 256× per-byte worst-case against the 64 MiB retained representation budget, so roughly ~256 KB of IL/blobs exhausted the budget and returned zero types (#1801). Fix #1768 (merged 2026-10-11) charges retained facts instead; first npm release with the fix is 6.5.0 (2026-10-14).

Box retest (2026-10-20, rea-agents 6.7.0) on Newtonsoft.Json 13.0.3 lib/netstandard2.0 (705,296 bytes, SHA-256 8c1dd5c184b4e2e7ead06971ff3ebcb46783be972292d1deb1061744369b4d80): coverage.state: "complete", 496 types, 4,185 methods, 18,846 call edges — matching the #1768 write-up. Assemblies whose retained facts still exceed the budget can remain unavailable; that is a different case than the 6.4.0 false reject.

All seven tools

CLI form: replace underscores with hyphens and prefix rea (or call via npx -y rea-agents@latest …).

Limits

Choose by content, not extension. REA does not unpack .NET single-file hosts or decode IL2CPP metadata; NativeAOT method bodies need native analysis. Decompiled C# output is an open feature request (#2299).

Related guides

Sources: managed-code-analysis.md · cli.md · issue #1801 · PR #1768

FAQ

What does resource-limit / metadata.representation mean in REA?

On rea-agents 6.4.0 and earlier, inspect-managed-members often returned empty types/methods with that coverage issue even for ordinary mid-size .NET assemblies. Upgrade to 6.5.0 or later (latest 6.8.0 as of 2026-10-25) where #1768 fixed the budget accounting.

Can REA decompile .NET to C#?

Not currently; it returns metadata and CIL. Decompiled C# is requested in issue #2299.

Does REA support Unity IL2CPP?

No, it does not decode IL2CPP metadata. Mono-backend Unity managed DLLs can be inspected after upgrading past the 6.4.0 resource-limit bug.