Decompilers & Static AnalysisCLI Flag: --provider r2

REA vs Radare2 & Cutter• AI Reverse Engineering Guide

Free and open-source Unix-like reverse engineering framework and Cutter GUI.

AI Overview Direct AnswerREA vs Radare2 & Cutter Integration & AI Workflow

In AI-assisted reverse engineering with REA (rea-agents), Radare2 & Cutter is bridged via --provider r2 to allow Claude Code, Cursor, and Windsurf to extract symbol graphs, trace control flow, and decompile binaries headlessly via Model Context Protocol.

Synergy & ComparisonAutonomous AI Acceleration

How REA Enhances Radare2 & Cutter with Autonomous AI Agents

Manual Radare2 & Cutter Workflow

Traditional reverse engineering in Radare2 & Cutter requires manual CFG graph navigation, manual symbol naming, and isolated local scripts without LLM code intelligence.

REA + Radare2 & Cutter Agentic Pipeline

AI coding agents (Claude Code, Cursor) invoke Radare2 & Cutter headlessly via REA's Model Context Protocol (MCP), generating clean-room specifications and reconstructive code in seconds.

Open SourceOpen Source (LGPLv3)
100% Free
Official Download & Website ↗

Multi-Platform Installation Recipes

macOS (Homebrew)
brew install radare2
Linux (APT)
sudo apt install radare2 -y
Windows (Winget)
winget install radareorg.radare2
Connect to AI Agents Once Installed
Verify REA detects this tool and enables Claude / Cursor MCP bridges:
rea doctor --provider r2

Supported Platforms & Targets

Host Operating Systems:
macOSLinuxWindowsBSD
Target Architectures:
x86ARMMIPSAVRWebAssemblySPARC

Tool Overview & Role

Radare2 (r2) is a complete, scriptable command-line reverse engineering framework with Cutter as its official GUI. It offers fast hex editing, code disassembly, binary diffing (radiff2), and integrated Ghidra decompilation plugins (r2ghidra).

REA Bridge Mechanism

Interacts via r2pipe JSON-RPC bindings over stdio. REA leverages r2's lightweight footprint for instant section carving, flag space queries, and string table extraction without loading full GUI decompiler suites.

Key Capabilities

Extremely lightweight Unix CLI scriptability (r2pipe)
Automated binary diffing via radiff2
Integrated r2ghidra decompiler plugin
Multi-format executable and firmware carving

CLI Usage Examples

Execute direct terminal analysis with --provider r2:

rea radare2 example
r2 -q -c 'aaa; afl' ./binary
rea analyze ./binary --provider r2