$ open guides/rea-reverse-engineering-with-ai
FreeREAMCPClaude CodeCodex
REA: how to let AI take apart any program (from zero, prompts included)
In the video, AI found the rule in the code of Chrome's dinosaur game that makes it speed up. Here you repeat it yourself: one install command, one question to your assistant, and by step two you have your own game with a speed slider.

What you'll get
7 sections6 steps3 prompts
What you need to start
1 command
installs REA and connects it to your assistant
backs up your settings and asks before changing anything
17
AI assistants supported at setup
including Claude Code, Codex, Cursor and Gemini CLI
6 โ 13
the dinosaur's speed-up rule, taken from the game's code
this is what REA found in the video
01In plain words
Your assistant can write code, but it can't look inside someone else's program
Reverse engineering means figuring out how a program works from the program itself, without its source code. It used to take a specialist and a handful of heavy tools. REA connects those tools to your AI assistant, so you can ask your question in plain words. Think of an X-ray for a mechanic: it shows what's inside, and the mechanic explains what they see.
You ask
You ask your assistant about one feature: "why does the dinosaur speed up", "what does the % key do", "where does the export get saved". No code, no jargon.
REA looks inside
Through MCP, the plug-in socket for an assistant's tools, REA reads the code of a game, website or app and returns code snippets, pointers to places in the files, and what is still unknown.
Your assistant explains and builds
From those findings the assistant explains the rule in human language and can build a small version of its own for you to play with. The analysis runs on your computer.

02The story from the video
You can see the game speeding up, but not why. So you ask
Here is the dinosaur breakdown step by step. Each step grows out of the question the previous one left open.
Question
The dinosaur keeps running faster
You can see it with your own eyes, but the rule is hidden in the game's code. So you ask your assistant to dig in with REA.
Analysis
REA reads the code of the running game
The game is open in the browser, but the assistant can't see its code. So REA connects to the page and returns its whole script.
Rule
Three settings turn up in the code
Speed starts at 6, grows by 0.001 with every step without a collision, and stops growing at 13. But for now these are just lines of code.
Your version
The assistant builds a mini game
So the next step is the same formula in a small game where you move the speed with a slider. Now you can see the rule and test it.

03Try it yourself
Three steps: install, ask about the dinosaur, ask about your own app
You need an AI assistant in the terminal or an editor (Claude Code, Codex, Cursor) and Node.js 22.19 or newer: check with node -v. Paste the prompts into your assistant's chat.
01Step 1. Install REA through your assistant
The assistant runs npx rea-agents@latest setup itself and shows you the plan. You approve it, then restart the assistant.
Install REA and connect it to this assistant with the command npx rea-agents@latest setup. Show me the installation plan for approval first. After the restart, check that REA is connected and list the REA tools you can use.Result: a list of REA tools. If the assistant doesn't see them, fully restart it and run the check again.
02Step 2. Take apart the dinosaur, like in the video
You need Chrome. The assistant opens it with a separate profile and debugging port 9222 so REA can read the page's code.
Open Chrome with a separate profile and remote debugging port 9222 on https://wayou.github.io/t-rex-runner/. Then use REA to connect to that page at http://127.0.0.1:9222 and figure out why the dinosaur runs faster over time. Show me the speed rule and the lines of code where it's defined. Then build a small version of the game with a slider that changes the speed.Replace: the page address with your own browser game or website. Result: the rule "start at 6, plus 0.001 per step, cap at 13" and your own mini game.
03Step 3. Ask about a button in another program
Same move, any feature. An example from the REA site: the Windows Calculator and its % key.
Use REA to analyze [program]. Why does [what you see, e.g. "200 + 10% gives 220"]? Find the code responsible, explain the rule in plain words and show what the conclusion is based on. Separately, list what is still unknown.Replace: the program and the question with your own. Result: a rule with evidence. In the REA example, after + the % key takes 10% of the first number: 20, so 200 + 20 = 220.
04Ethics
Understanding how it works is fine. Taking what isn't yours is not
REA's authors state plainly what it's for: learning, research, interoperability, preserving old software, and analyzing what you own or are authorized to examine.
01Games
Fine
Understand why a game speeds up and write your own mini game on the same principle.
Not fine
Making cheats, bypassing anti-cheat, tampering with online services.
02Programs
Fine
Figure out how a button or an export works and build a similar feature with your own code.
Not fine
Copying someone else's program, its protected code and assets, bypassing license checks.
03Websites
Fine
See which request goes out when you click on your own page or a training page.
Not fine
Bypassing logins, bot protection and access to systems you're not authorized to test.
04The result
Fine
Use the findings to learn and to write your own.
Not fine
Assuming that source-like code gives you rights to the original. It doesn't.

05Checklist
How to tell the assistant didn't make the answer up
A good answer includes
- A place in the code: the file, line or address the rule comes from
- The actual settings and numbers from the code, not a vague retelling
- A check: the assistant ran the rule and compared it with the original
- A list of what is still unknown
Ask again if
- There's a rule but no pointer to the code
- The assistant is sure of everything at once and names no gaps
- The answer covers the whole program when you asked about one button
06Plan for tonight
Your first breakdown in one evening
What to do, in order. The prompts for each step are above.
Check Node.js
Run
node -vin the terminal. You need 22.19 or newer; if not, install a fresh one from nodejs.org.Node.jsInstall REA
Step 1 prompt. Approve the plan, restart the assistant, make sure it sees the REA tools.
MCPTake apart the dinosaur
Step 2 prompt. Compare the rule it finds with the video and play with your own version.
ChromeAsk your own question
Pick one feature in a game or program you use and ask with the step 3 prompt.
Check the answer
Go through the checklist above: place in the code, numbers, check, unknowns.
Change one thing
Ask the assistant to change the rule in your version: a different speed, jump height, another formula.
07
What REA doesn't do
- 01
It doesn't give you a program's source code. For apps it returns source-like code and machine instructions, and your assistant writes its own version of a feature from those findings.
- 02
It doesn't recreate someone else's app on its own. REA hands over findings, your assistant writes its own version, and that works best on a single feature.
- 03
AI-assisted analysis can be incomplete or wrong. The authors say so themselves, so check important conclusions against the code.
- 04
Deep analysis of desktop programs needs a separate tool: Hopper, Ghidra or IDA. Websites and JavaScript apps don't need one.
- 05
The analysis itself runs on your computer, but the findings go to your assistant, and so to the company whose model runs it.
Some coverage described REA as "free Photoshop" and "GTA on an iPhone". The project itself promises nothing of the kind.
Sources
Go deeper
Mastering Claude Code: From Zero to Power User
REA is one of the tools that plug into Claude Code through MCP. In the course we cover how to work with an assistant in the terminal: tasks, tools, permissions and checking the result.
$44.90 ยท one payment, lifetime access

More guides on this topic
All guidesRead next
- Three Ways to Work With AIChat, browser and terminal: where the assistant REA connects to actually lives.
- 5 Claude Skills That Work for YouREA installs a skill with its investigation routine. Here's what a skill is.
- The Claude Code ecosystem: what to take and what to skipWhich other tools and MCP servers are worth giving your assistant.
Animation ยท Claude Code10 free repos that keep AI animation from looking like AIAll 10 links in one list right below. Then, for each one: what it is, when to pick it and a ready prompt for Claude Code. Stars and licences checked through the GitHub API on 30 November 2026.Nov 30, 2026
Sellbird ยท HarveyHarvey (now Sellbird): an AI agent that finds clients on its ownAn open-source agent finds companies that need your product, finds the person who decides, checks the address, writes the email and handles the replies. It runs on your computer and your Claude or ChatGPT plan. Nothing goes out without your OK.Nov 30, 2026
Blender ยท MAGI-2Blender โ AI video: a film shot where the camera goes exactly where you put itA video model usually films whatever it likes. Here you place the camera: Claude builds a grey draft of the scene in Blender, ChatGPT makes a character sheet with your face, MAGI-2 turns the draft into film. A laptop and a few photos.Nov 28, 2026
Comments