REA MCP
☰
KO
● — 명 접속 중 · 조회 — 회
후원사례 제출
Reddit 게시물 · 작성자 pzarevich

DeepSeek V4.1 Flash는 REA를 사용해 1984년 DOS 게임을 리버스 엔지니어링하고 0.68달러로 Chrome용으로 재구축했다

한 개발자가 REA를 Ghidra와 함께 MCP 서버로 사용하여 1984년 Sopwith DOS 바이너리를 디컴파일하고 스프라이트, 지형, 게임 테이블을 추출해 HTML/Canvas 게임으로 재구축한 방법을 저장소 링크와 함께 설명한다.

번역 완료

이 사례에 대하여

Reddit 게시물은 구체적인 REA 워크플로를 자세히 설명한다. DeepSeek V4.1 Flash는 Ghidra를 실행하는 MCP 서버인 REA를 사용해 43KB DOS 게임 바이너리를 디컴파일하고, 게임 루프, 물리, 점수 계산, 데이터 테이블을 복원한 뒤 플레이 가능한 HTML/Canvas 포트로 재구축했다. 작성자는 오픈소스 에이전트 하네스와 REA 링크를 포함하고, EXE에서 직접 에셋을 추출하는 방법을 설명하며, 포트를 DOSBox에서 실행되는 원본과 비교한다.

설정

설치 방법은 원본 출처를 확인하세요.

원문 / README

Disclosure: I work on AgenC Core, the open-source agent harness used here: https://github.com/tetsuo-ai/agenc-core

I gave DeepSeek V4.1 Flash (effort max) one prompt and the original Sopwith executable from 1984: a 43 KB DOS binary, with no source code. It had REA connected as an MCP server (https://github.com/morluto/rea), which runs Ghidra under the hood. Then it worked on its own for an hour, in a sandbox with no internet.

What it did:

  • Decompiled the whole binary with REA and worked out the game loop, controls, flight physics, scoring, computer planes and world layout.
  • Wrote a Python extractor that pulls everything straight out of the EXE: the sprites (the plane at every angle, buildings, oxen, birds), the 3,000-point terrain profile and the game tables.
  • Rebuilt it as a plain HTML/Canvas game at the original 320x200 CGA resolution, with PC-speaker style sound.
  • Ran the original in DOSBox, captured reference frames, and compared them side by side with its port in headless Chrome. The only thing not inside the EXE was the BIOS font, so it recovered that from the DOSBox screenshots.

The numbers:

  • 1 hour, one prompt, no follow-ups
  • 374 model calls, 624 tool calls (7 of them REA)
  • 145M input tokens (99.7% cache hits), plus 308K output
  • $0.68 total at DeepSeek’s off-peak rate ($1.37 at peak)

The flying in the video is a small script pressing the game’s real keys, so you can see takeoff, the bombing runs and the autopilot landing in one take.

The full prompt is in the comments. The author released Sopwith’s source under the GPL, but the agent never saw it: it worked only from the binary.

비슷한 프로젝트