---
title: 'Reverse Engineering with AI: How It Works — REA'
url: https://rea.tools/guides/reverse-engineering-with-ai/
---

[Home](https://rea.tools/) / [Guides](https://rea.tools/guides/) / Reverse
engineering with AI

# Reverse engineering with AI.

An AI agent can now do much of the slow work of reverse engineering:
reading files, following code and explaining what it finds. Here is
what it can do, how to check it and how to start.

## What changes

[Reverse engineering](https://rea.tools/guides/what-is-reverse-engineering/)
means working out how a program works when you only have the
finished app, not its source code. Traditionally that took an
expert reading low-level code by hand for hours.

With an AI agent, you start with a question in plain words, such
as “Where does this app save my notes?” The agent looks inside the
program, follows the relevant code and comes back with an
explanation and the places it found it. You can then ask a
follow-up, just as you would with a colleague.

## What the AI needs

- **An AI agent that can use tools on your computer**, such as Claude Code, Codex or Cursor.
- **The program**: an app, game or file on your
  computer, or a website open in your browser.
- **Tools to look inside it.** A chat model alone can
  only guess. REA gives your agent free tools to read app files,
  read a program's machine instructions and record what a website
  does, all on your own computer.

## What it can work out

Each of these started with one plain question:

- [How does an authenticator app make its login codes?](https://rea.tools/showcase/aegis/)An Android app, a six-digit code and a clock.
- [Why does the Chrome dinosaur game get faster?](https://rea.tools/examples/dino-lab/)A browser game and the rule behind its speed.
- [How does Notion copy text to the clipboard?](https://rea.tools/showcase/notion/)A desktop app, followed from button to system.
- [How does a 1996 game pan its sound?](https://rea.tools/showcase/dx-ball/)A Windows game, rebuilt one function at a time.
- [What does this website send when I click?](https://rea.tools/guides/browser/)One click, one recorded request, the code behind it.

## Checking its answers

An AI can sound sure and still be wrong, so treat its first answer
as a good guess. Three habits keep it honest:

- **Ask where it found the answer.** A useful answer
  points to files and lines you can open yourself.
- **Ask what is still unknown.** REA reports what it
  could not work out, and a good answer says so too.
- **Test a prediction.** Ask what the program will do
  in a specific case, then run it. The
  [first-try exercise](https://rea.tools/first-investigation/)
  ends with exactly this kind of check.

## Limits

- REA reads and observes programs. It does not change them or
  break copy protection.
- Large or deliberately scrambled programs take longer, and some
  questions stay open until you find another way to check them.
- REA runs on your computer. What your agent sends to its AI model
  is covered by that model provider's data policy.
- Respect the licence of the software you study.
  [Is reverse engineering legal?](https://rea.tools/guides/what-is-reverse-engineering/#legal)

## Start

REA is free and open source for macOS, Windows and Linux. Run this
in a terminal, or ask your agent to run it for you:

Terminal · set up REA

```
npx rea-agents@latest setup
```

- [Get started with REA](https://rea.tools/get-started/)Step-by-step setup for your agent.
- [Your first try](https://rea.tools/first-investigation/)Ask your AI where a small app saves exported notes.
