# 深度透视档案：morluto/rea

> **分类**：AI 逆向与底层拆解 | **总 Star 数**：490,238 ★ | **增长动能**：+946.0★/天（快照折算） | **破局指数**：100.0/100

---

## 📌 一句话定位
**基于 MCP 协议的全栈 Agent 逆向工程助手，从应用行为一路穿透到二进制汇编与动态内存。**

## 🚀 为什么突然爆火 (Breakout Catalyst)
打破了传统逆向工程依赖极高人工经验与昂贵工具链（IDA Pro、Ghidra、Frida）的高耸壁垒。随大模型超长上下文与自主工具调用的成熟，开发者发现 REA 能让 AI 直接自主阅读二进制、提取内部私有协议并反编译复刻应用逻辑，成为独立开发者逆向分析竞品、安全团队自动化代码审计的核武器级利器。

## 🏗️ 架构与生态特性
| 维度 | 特征与配置 |
| :--- | :--- |
| **架构类型** | `MCP Server + Multi-Agent Binary Decompiler Hub` |
| **支持运行时** | Agents Standard (.agents), Claude Code, Codex |
| **内置技能 (Skills)** | rea-analysis-optimization, rea-artifact-format, rea-bug-fix, rea-changelog-update, rea-ci-tests-audit, rea-tool-design, reverse-engineer-anything |
| **行为规则 (Rules)** | AGENTS.md |
| **主要技术栈** | Python, TypeScript, TypeScript/Node.js |
| **开源协议** | MIT / 开源 |
| **项目主页** | [morluto/rea](https://github.com/morluto/rea) |

## ⚖️ 核心优势与权衡分析
### 核心优势 (Core Strengths)
- **优势 1**：单统一 MCP 协议无缝接入 Cursor / Claude Code / Antigravity / Codex
- **优势 2**：跨层级全栈透视：覆盖 UI 抓包、网络协议、中间件到 Native 二进制反编译
- **优势 3**：内置多 Agent 协同验证流水线，自动检测反调试 Hook 与对抗壳

### 潜在局限与权衡 (Trade-offs)
- **局限 1**：商业反编译插件（如 IDA Hex-Rays）依然依赖用户本地授权
- **局限 2**：超大二进制反汇编对 Token 消耗与 Context 窗口要求极高

### 横向竞品对比 (Competitive Landscape)
相比传统纯人工工具（IDA/Ghidra），REA 让普通工程师通过自然语言即可完成逆向分析；相比常规代码逆向，REA 兼具静态反编译与动态内存运行时 Hook（Frida 集成）。

## 🎛️ 推荐调优参数与规则配置 (Tuning & Rules)
### 关键参数建议
- `Context 窗口建议 >= 200K (处理长汇编与符号表)`
- `Subagent 模式：分离静态反汇编与动态内存 Hook 过程`

### 调优实战技巧
- 💡 在 AGENTS.md 中明确逆向范围与沙箱边界，防止意外执行未知恶意样本
- 💡 配合 AST 知识图谱（如 Graphify）建立反编译函数的调用拓扑

## 📖 核心代码/指令预览
```markdown
# Repository Guidelines

## Product and Authority

REA is a local-only reverse-engineering tool with shared CLI/MCP workflows. Distinguish observations, derivations, inferences, and unknowns; preserve Evidence provenance and session semantics through both adapters. Provider support and setup live in [README.md](README.md#choosing-a-deep-analysis-provider) and its linked guides.

Follow the [contribution scope](CONTRIBUTING.md#contribution-scope) and [fail-closed integration rule](CONTRIBUTING.md#fail-closed-integration), including the maintainer scope decision required before substantial implementation of a new provider or of target execution, injection, mutation, or protection recovery.

Ghidra uses ephemeral databases without modifying executable bytes or controlling a GUI; Windows Ghidra P0 has no mutation authority. IDA analysis is read-only; never save or close an attached GUI database.

`npx rea-agents setup` and `npx rea-agents@latest setup` are the primary onboarding path and must keep working. A setup, registration, or documentation change must not refuse, replace, or stop documenting them. When a registration they wrote goes stale, `npx rea-agents@latest setup` must repai
```

---
*档案归档于 GitHub Trend Seeker 实体流情报中枢*
