← All resources

From the videos

Reverse engineer any app for free

Set up REA with OpenCode and a cheap model, then let your agent take apps apart and rebuild the features you like.

What you need

  • A Mac, Windows or Linux computer with Node.js installed
  • OpenCode, a free open-source coding agent
  • An API key for a model provider (DeepSeek V4 Flash is fast and cheap)

REA stands for Reverse Engineer Anything. It's an open-source tool that plugs into your coding agent and lets it take an app apart, work out exactly how each feature works, and show you the evidence. Then it can build you a working version of that feature to test, so you can learn how the best apps are built and make something of your own.

If your usual coding agent won't run it, this is the free route: OpenCode + REA + a cheap model.

The links

  • REA (Reverse Engineer Anything)

    The repo. Free and open source (MIT). Only download it from here or the official npm package.

    GitHub
  • OpenCode

    Free, open-source coding agent that works with almost any AI model.

    Visit

Quick start

  1. Install OpenCode.
  2. Add REA with one command and pick OpenCode when it asks.
  3. In OpenCode, choose DeepSeek V4 Flash as your model.
  4. Point it at an app and paste the prompt below.
Your first teardown

Use REA to analyse [app name or path]. Map its main features, work out how each one works, and show me the evidence for every claim.

Full setup guide5 steps · about 15 minutesShow

1. Install Node.js

REA runs on Node.js. If you don't have it, download the LTS version from nodejs.org and install it. Check it worked:

Terminal

node --version

2. Install OpenCode

On Mac or Linux:

Terminal

curl -fsSL https://opencode.ai/install | bash

On Windows, or if you prefer npm:

Terminal

npm install -g opencode-ai

3. Add REA

Open a terminal in a folder you trust, outside the app you plan to analyse (your home folder is fine), and run:

Terminal

npx rea-agents setup

  1. When it asks which agent you use, pick OpenCode.
  2. It shows you a plan of what it will change. Read it and approve.
  3. Restart OpenCode so it loads REA.

4. Pick the model

  1. Start OpenCode by typing opencode in your terminal.
  2. Type /connect, choose DeepSeek (or OpenCode Zen) and paste your API key.
  3. Type /models and choose DeepSeek V4 Flash. It's fast and costs very little per session. Check current pricing in OpenCode before a big job.

5. Check REA is working

Ask OpenCode the question below. If it lists REA's tools, you're ready.

Check REA is loaded

What REA tools do you have available? List them in one line each.

Optional: native apps

REA can read JavaScript, Electron, .NET and Android apps, plus live websites, out of the box. To go deeper into native binaries it needs a disassembler. Ghidra is free; Hopper and IDA are paid alternatives.

Prompts to try6 copy-and-paste promptsShow
1. Map an app

Use REA to analyse [app name or path]. Map its main features, work out how each one works, and show me the evidence for every claim.

2. One feature, deep dive

Use REA to work out exactly how the [feature] in [app] works. Walk me through it step by step, with the evidence for each step.

3. Build a working version

Based on what you found, build me a small working version of [feature] that I can run and test. Write it from scratch in your own code, and explain the key ideas as you go.

4. Website behaviour

Use REA to watch how [website] behaves when I [action, e.g. sign up or search]. Show me the requests it makes and what each one does.

5. Compare two apps

Use REA to compare how [app A] and [app B] handle [feature, e.g. onboarding]. What does each do well, and what would you combine into one better version?

6. Make it your own

Turn everything we've learned into a build plan for my own app with this twist: [your idea]. Keep it original, with no copied code or assets.

More from the videos

Saw it in a short? Find it here.