diff --git a/website/README.md b/website/README.md index bcd3ce5bc..fb7fabbd0 100644 --- a/website/README.md +++ b/website/README.md @@ -123,7 +123,7 @@ describe its recorded investigation; update them only when repeating that work. - `public/showcase/ctf/index.html`: DownUnderCTF's masked-squares flag checker, extracted equations and real process captures. - `public/get-started/index.html`: agent setup, first CLI result and provider guides. - `public/faq/index.html`: concise answers about setup, updates, analysis and troubleshooting. -- `public/guides/`: a guide hub and native, JavaScript/Electron and browser examples. +- `public/guides/`: a guide hub, a step-by-step setup with recorded setup screens for first-time users, and native, JavaScript/Electron and browser examples. - `public/examples/`: downloadable Electron source and an interactive Notes browser app. - `public/assets/`: shared styles, interactions, favicon and explanatory figures. diff --git a/website/public/assets/styles.css b/website/public/assets/styles.css index fe8539d0c..e0f57b412 100644 --- a/website/public/assets/styles.css +++ b/website/public/assets/styles.css @@ -1454,6 +1454,121 @@ pre code { .example-files li + li { margin: 0; } +.step-label { + margin: 0 0 0.4rem; + color: var(--accent); + font-size: 0.8rem; + font-weight: 600; + letter-spacing: 0.06em; + text-transform: uppercase; +} +.choice-list, +.numbered-steps { + margin-block: 0 1.4rem; +} +.choice-list li + li, +.numbered-steps li + li { + margin-top: 0.55rem; +} +.numbered-steps ul { + margin-top: 0.45rem; +} +kbd { + display: inline-block; + padding: 0 0.4em; + border: 1px solid #c9d2db; + border-bottom-width: 2px; + border-radius: 4px; + background: var(--soft); + font-family: inherit; + font-size: 0.85em; + line-height: 1.5; + white-space: nowrap; +} +.word-list { + display: grid; + grid-template-columns: max-content minmax(0, 1fr); + gap: 0.6rem 1.2rem; + margin: 0; +} +.word-list dt { + font-weight: 600; +} +.word-list dd { + margin: 0; + color: var(--muted); +} +.screen-figure { + margin: 1.5rem 0 1.8rem; +} +.screen { + overflow: hidden; + border: 1px solid #303d4a; + border-radius: 8px; + background: #202933; + color: #f1f4f8; +} +.screen-bar { + display: flex; + align-items: center; + gap: 0.7rem; + padding: 0.55rem 1rem; + border-bottom: 1px solid #384551; + color: #bdc8d4; + font-size: 0.8rem; +} +.screen-body { + padding: 1.1rem 1.2rem; + font-size: 0.8rem; + line-height: 1.6; +} +.screen mark { + padding: 0.05em 0.25em; + border-radius: 3px; + background: #3f6593; + color: #ffffff; +} +.chat-screen { + border-color: var(--line); + background: #fafbfc; + color: var(--ink); +} +.chat-screen .screen-bar { + border-color: var(--line); + color: var(--muted); +} +.chat-screen .terminal-dots i { + background: #b8c2cc; +} +.chat-screen mark { + background: #dce8f6; + color: var(--ink); +} +.chat-body { + display: grid; + gap: 0.9rem; + padding: 1.2rem; + font-size: 0.9rem; +} +.chat-message { + max-width: 85%; + margin: 0; + padding: 0.75rem 1rem; + border-radius: 10px; +} +.chat-you { + justify-self: end; + background: #e8eef5; +} +.chat-ai { + border: 1px solid var(--line); + background: var(--page); +} +.screen-figure figcaption { + margin-top: 0.7rem; + color: var(--muted); + font-size: 0.8rem; +} .example-app { max-width: 720px; padding-block: 3.5rem; @@ -2289,6 +2404,16 @@ pre code { } @media (max-width: 640px) { + .word-list { + grid-template-columns: minmax(0, 1fr); + gap: 0.2rem; + } + .word-list dd + dt { + margin-top: 0.6rem; + } + .chat-message { + max-width: 100%; + } .home-definition { grid-template-columns: 1fr; gap: 0.8rem; diff --git a/website/public/get-started/index.html b/website/public/get-started/index.html index 31b7ac275..0a3df0e94 100644 --- a/website/public/get-started/index.html +++ b/website/public/get-started/index.html @@ -142,7 +142,9 @@ terminal.

- You'll need Node.js 22 (22.19+), 24 (24.11+) or 26+, and npm. + You'll need Node.js 22 (22.19+), 24 (24.11+) or 26+, and npm. New to + the terminal or AI apps? + Follow the step-by-step setup.

diff --git a/website/public/guides/index.html b/website/public/guides/index.html index f4b4dbd18..2d57e000a 100644 --- a/website/public/guides/index.html +++ b/website/public/guides/index.html @@ -143,6 +143,28 @@

+
+

Start here

+
+

Set up REA, step by step

+

+ Only used AI in a web browser? Install an AI app and Node.js, run + one command and ask your first question. Each step shows what you + should see. +

+
+ AI app + Node.js + REA setup + First question +
+ Step-by-step setup +

+ Already use a coding agent? Follow the + short setup. +

+
+

Native binaries

@@ -199,14 +221,6 @@ Browser observation guide
-
-

First investigation

-
-

Set up REA

-

Connect your coding agent or use REA from the terminal.

- Get started with REA -
-
diff --git a/website/public/guides/setup/index.html b/website/public/guides/setup/index.html new file mode 100644 index 000000000..8cebebc8c --- /dev/null +++ b/website/public/guides/setup/index.html @@ -0,0 +1,779 @@ + + + + + + Set Up REA Step by Step — REA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +

Set up REA,
one step at a time.

+

+ Only used AI in a web browser? Start here. Each step says what to + click, what to type and what you should see. +

+

+ About 15 minutes · Mac, Windows or Linux · No coding needed +

+
+
+ +
+
+

How the pieces fit

+

+ The AI chat in your web browser can't open programs or files on + your computer. A desktop AI app can, once a tool such as REA is + connected to it. REA is the part that looks inside a program and + reports what it finds. +

+
+

Who does what

+
    +
  1. + YouAsk a question in plain words“What happens when I click Export in this app?” +
  2. +
  3. + Your AI appDecides what to look atClaude, ChatGPT's Codex or another agent on your + computer. +
  4. +
  5. + REAReads the program's codeReturns the code and where it was found, so the AI can + explain it. +
  6. +
+
+ You need two things on your computer: an AI app and REA. The + steps below install both and connect them. +
+
+
+ Words you'll see on this page +
+
Terminal
+
+ A window where you type instructions instead of clicking. + Every computer has one. +
+
Command
+
+ One line of text you paste into the terminal and run by + pressing Enter. +
+
Path
+
+ The address of a file or folder, such as + /Users/sam/Downloads/notes-example. Step 8 shows + how to copy one. +
+
MCP
+
+ The standard way AI apps connect to tools like REA. Setup + configures it for you; you never edit it by hand. +
+
+
+
+ +
+

Step 1

+

Get an AI app for your computer

+

Pick the one that matches the AI you already use:

+
    +
  • + You use Claude in the browser. Install + Claude Desktop and sign + in with the same account. +
  • +
  • + You use ChatGPT. Install + Codex, + OpenAI's coding agent, and sign in with your ChatGPT account. +
  • +
  • + You already use a coding agent such as Claude + Code, Cursor or Gemini CLI. Keep it and go to step 2. +
  • +
+

+ Open the app once to finish signing in, then leave it. This guide + shows Claude Desktop; the other apps follow the same steps. +

+
+ +
+

Step 2

+

Install Node.js

+

+ REA runs on Node.js, a free program that many developer tools use. + REA doesn't install it for you, so do this once: +

+
    +
  1. + Open the + Node.js download page. +
  2. +
  3. + Choose the LTS version (“long-term support”) + and the installer for your computer: a + .pkg file on a Mac or an .msi file on + Windows. +
  4. +
  5. + Open the downloaded file and click Continue or + Next until it finishes. Keep the default + options. +
  6. +
+

+ On Linux, use the instructions for your distribution on the same + page. REA works with Node.js 22 (22.19 or newer), 24 (24.11 or + newer) and 26 or newer. +

+
+ +
+

Step 3

+

Open the terminal

+
    +
  • + Mac: press ⌘ Command + + Space, type Terminal and press + Return. +
  • +
  • + Windows: press the Windows key, type + cmd and press Enter to open + Command Prompt. Use Command Prompt rather than + PowerShell for these steps. +
  • +
  • + Linux: press Ctrl + Alt + + T, or open Terminal from your apps. +
  • +
+

+ Check that Node.js is installed. Type this line, then press + Enter: +

+
+ node -v + +
+
+
+
+ Terminal +
+
$ node -v
+v24.11.1
+
+
+ Example result. A number starting with v22, + v24 or v26 means you're ready. The + $ stands for the text your terminal shows before + the cursor; it differs on every computer. +
+
+

+ If the terminal says command not found or + is not recognized, close the terminal, open a new one + and try again. A terminal opened before the installation can't see + Node.js yet. +

+
+ +
+

Step 4

+

Run REA setup

+

+ Click Copy, paste the command into the terminal + and press Enter: +

+
+ npx rea-agents@latest setup + +
+

+ To paste: ⌘ Command + V on a Mac, + Ctrl + V in Windows Command Prompt, or + Ctrl + Shift + V in most Linux + terminals. +

+

+ The first time, npm asks before downloading REA. Type + y and press Enter. +

+
+
+
+ Terminal +
+
$ npx rea-agents@latest setup
+Need to install the following packages:
+rea-agents@6.3.0
+Ok to proceed? (y) y
+
+
+ The version number will be newer when REA releases an update. + This only downloads REA; nothing on your computer changes until + step 6. +
+
+
+ +
+

Step 5

+

Choose your AI app

+

Setup shows a list of AI apps. Use the keyboard:

+
    +
  1. + Press ↓ to move to your app, for example + Claude Desktop. +
  2. +
  3. + Press Space to tick it. The empty box + ◻ turns into a filled box ◼. +
  4. +
  5. Press Enter to continue.
  6. +
+
+
+
+ Terminal +
+
┌  REA setup
+│  Understand local apps and binaries from your terminal or agent.
+│
+◆  No agents detected. Choose any supported agent below.
+│
+│  Keys: ↑/↓ navigate · Space toggle · Enter confirm · Ctrl-C cancel
+│
+◆  Which agents should use REA?
+│  ◻ Claude Code
+│  ◼ Claude Desktop (Not detected · configuration is still available)
+│  ◻ Codex
+│  ◻ Cursor
+│  ◻ Gemini CLI
+│  …
+│  ↑/↓ to navigate • Space: select • Enter: confirm
+└
+
+
+ Recorded from REA 6.3.0 with Claude Desktop ticked; the full + list is longer. “Not detected” is fine: setup can still connect + an app it didn't find. +
+
+

+ On a Mac or Linux, setup may also ask + “Install Hopper for deep binary analysis?” Press + Enter to keep No. You only need Hopper + for compiled programs, and you can add it later from the + native analysis setup. +

+
+ +
+

Step 6

+

Approve the changes

+

+ Before it changes anything, setup lists exactly what it will do. +

+
+
+
+ Terminal +
+
◆  Ready to review
+│
+│  CREATE  Claude Desktop
+│          ~/Library/Application Support/Claude/claude_desktop_config.json
+│          Add the REA MCP registration for Claude Desktop;
+│          preserve unrelated configuration.
+│
+│  INSTALL  REA reverse-engineering skill
+│          ~/.agents/skills/reverse-engineer-anything
+│          Install or update the bundled REA reverse-engineering
+│          skill and on-demand references.
+│
+◆  Apply these 2 changes?
+│  ● Yes, apply / ○ No, cancel
+└
+
+
+ Shortened from a REA 6.3.0 recording on a Mac: some detail lines + are left out, long lines are wrapped and your home folder is + shown as ~. +
+
+
    +
  • + CREATE adds REA to your AI app's settings file. + Your other settings stay as they are; if the file already + exists, setup keeps a backup. +
  • +
  • + INSTALL adds a short instruction set that + teaches coding agents how to use REA. +
  • +
+

+ Yes, apply is already selected. Press + Enter. To stop instead, press Ctrl + + C; nothing is changed. +

+
+ +
+

Step 7

+

Restart your AI app

+

When setup finishes, it tells you what to restart:

+
+
+
+ Terminal +
+
◆  What you can do now
+│  Agent access: Claude Desktop
+│  Guided reverse-engineering workflows: installed
+│  CLI: npx rea-agents capabilities
+│  Try in Claude Desktop: "Explain how a feature works in
+│  /path/to/app and show the evidence."
+│
+└  Restart Claude Desktop to load REA.
+
+
Recorded from REA 6.3.0 on a Mac.
+
+

+ Quit the app completely, then open it again. Closing its window + isn't enough: +

+
    +
  • + Mac: click the app, then press + ⌘ Command + Q. +
  • +
  • + Windows: choose Quit or + Exit from the app's menu, or right-click its + icon next to the clock and choose Quit. +
  • +
  • + A terminal agent such as Claude Code or Codex: + exit it and start it again. +
  • +
+

You can close the terminal now.

+
+ +
+

Step 8

+

Ask your first question

+

+ Try REA on a small example app with an + Export notes button. You don't need to run it; + REA reads its code. +

+
    +
  1. + Download the example ZIP + and unzip it: double-click it on a Mac, or right-click it on + Windows and choose Extract All. +
  2. +
  3. + Copy the prompt below and paste it into your AI app. Don't send + it yet. +
  4. +
  5. + Copy the path of the notes-example folder: +
      +
    • + Mac: right-click the folder, hold + ⌥ Option and choose + Copy “notes-example” as Pathname. +
    • +
    • + Windows: right-click the folder and choose + Copy as path. On Windows 10, hold + Shift while you right-click. +
    • +
    +
  6. +
  7. + Paste the path at the end of your message and send it. If your + app asks whether it may use a REA tool, allow it. +
  8. +
+
+
+ Your AI app + +
+

+ Use REA to look at the small app in the folder below. What + happens when I click Export notes, and where is notes.csv + saved? Show the files and lines. Folder: +

+
+
+
+
+ Your AI app +
+
+

+ Use REA to look at the small app in the folder below. What + happens when I click Export notes, and where is notes.csv + saved? Show the files and lines. Folder: + /Users/sam/Downloads/notes-example +

+

+ The button calls notes.exportCsv(), which sends + a notes:export message to the main process. + There, main.js (lines 8–12) formats the notes + as CSV and writes notes.csv to your Downloads + folder… +

+
+
+
+ Illustration with an example path. Your path and the AI's + wording will differ; look for the + notes:export message, main.js and the + Downloads folder. +
+
+

+ You're set up. To understand that answer and + check one detail yourself, continue with + your first investigation. To try your own programs, pick a guide: +

+ +
+ +
+

If something goes wrong

+
+ + “command not found: npx” or “'npx' is not recognized” + +

+ The terminal can't find Node.js. Close every terminal window, + open a new one and run node -v. If it still fails, + install Node.js again from step 2. +

+
+
+ “running scripts is disabled on this system” +

+ You're in Windows PowerShell, which blocks npx on + many computers. Open Command Prompt instead (step 3) and paste the command there. +

+
+
+ Setup says my Node.js version isn't supported +

+ Install the current LTS version from + step 2, open a new terminal and run setup + again. +

+
+
+ My AI app doesn't use REA +

+ Quit the app completely and open it again (step 7). If it still doesn't, check the connection from the terminal. + For Claude Desktop: +

+
+ npx rea-agents@latest doctor --client claude_desktop + +
+

+ The first line should say healthy: true. Lines + about Hopper, Ghidra and IDA only matter for compiled programs. + For another app, replace claude_desktop with + codex, claude_code, + cursor or gemini_cli. +

+
+
+ I chose the wrong app, or want to add another +

+ Run the setup command from step 4 again. Apps + you already connected are ticked; tick the one you want and + press Enter. +

+
+

+ Still stuck? Read the FAQ, ask in the + REA community or + report a problem. Include what you typed and what the terminal printed. +

+
+
+
+
+ + + +

+ + Top + + + +