---
title: "無料のMCPが212のレガシーファイルを読み取り、エージェントがコードに触れる前に仕様を作成する"
url: "https://reamcp.dev/ja/cases/a-free-mcp-reads-212-legacy-files-and-writes-the-spec-before-831c92"
source: "https://x.com/i/status/2111530936441446417"
source_type: "x"
author: "Primee32"
author_handle: "Primee32"
stars: 0
category: "アプリ機能の再現"
categories: ["app-recreation"]
tags: ["code-rewrite", "legacy-modernization", "mcp", "reverse-engineering", "spec-generation", "verification"]
added: "2026-10-19T02:06:48.267Z"
updated: "2026-10-17T18:53:00.000Z"
locale: "ja"
content_locale: "ja"
---

# 無料のMCPが212のレガシーファイルを読み取り、エージェントがコードに触れる前に仕様を作成する

Xの投稿では、REA（morluto/rea）がレガシー請求システムをspec.mdにリバースエンジニアリングし（14のエンドポイント、37のルール、9のエッジケース）、12のSonnetエージェントが仕様スライスからモジュールを構築し、REA VERIFYが新しいシステムをレガシーシステムに対して再生する（148/148の動作が一致）ワークフローについて説明しています。投稿はMITライセンスのGitHubプロジェクトへのリンクと、npx rea-agents setupインストールコマンド、およびツール結果をモデルプロバイダーに送信することに関する警告を提供しています。

## Description

無料のMCPが212のレガシーファイルを読み取り、エージェントがコードに触れる前に仕様を作成する

ほとんどのリライトは同じ場所で失敗します。古いシステム全体を1つのモデルに投入すると、モデルは溺れてしまいます

この設定は作業を分割します：

OPUS 5.5 > 計画を書き、その後実行の残りの間はアイドル状態になります
REA > legacy/billingを一度リバースエンジニアリングし、14のエンドポイント、37のルール、9のエッジケースを含むspec.mdに変換します
SONNET 5.5 x12 > それぞれ1つのモジュールを、仕様の約1.5kトークンスライスから構築します。どれも古いコードを開きません
REA VERIFY > 新しいシステムをレガシーシステムに対して再生し、148の動作のうち148が一致します

画面上では、スウォームは7分05秒で$0.88で完了します。opus $0.22、REA $0.32、12のsonnet $0.34。Opus 5.5だけでは23%と$1.20で、まだ実行中です

ビデオではその比較を説明用としているので、数値はデモとして受け取ってください

REAはAnthropicから来たものではありません。GitHub上のmorluto/reaで、MITライセンスで無料です。モデルにのみ支払います。1行でインストール：npx rea-agents setup

クライアントコードを指定する前に：
> REAはローカルで分析しますが、エージェントはまだツール結果をモデルプロバイダーに送信します
> プライベートアプリからの逆コンパイルされたコードは、データポリシーの下でAnthropicまたはOpenAIに渡ります

今日は無料です。誰かが$500のコースとして販売する前に保存してください

## Original README

A FREE MCP READS 212 LEGACY FILES AND WRITES THE SPEC BEFORE ANY AGENT TOUCHES THE CODE

most rewrites go wrong in the same place. you dump the whole old system into one model and it drowns

this setup splits the work:

OPUS 5.5 > writes the plan, then sits idle for the rest of the run
REA > reverse-engineers legacy/billing once and turns it into spec.md with 14 endpoints, 37 rules, 9 edge cases
SONNET 5.5 x12 > one module each, built from a ~1.5k token slice of the spec. none of them opens the old code
REA VERIFY > replays the new system against the legacy one, 148 of 148 behaviours match

on screen the swarm finishes in 7m 05s for $0.88. opus $0.22, REA $0.32, twelve sonnets $0.34. Opus 5.5 alone sits at 23% and $1.20, still running

the video marks that comparison as illustrative, so take the numbers as a demo

REA doesn't come from Anthropic. it's morluto/rea on github, MIT licensed and free, you only pay for the model. one line installs it: npx rea-agents setup

before you point it at client code:
> REA analyzes locally, but your agent still sends tool results to the model provider
> decompiled code from a private app ends up with Anthropic or OpenAI, under their data policy

it's free today. save it before someone sells it as a $500 course
