Skip to content

doctor

/doctor reports; /setup fixes and instruments. Use /doctor when you want diagnostics without changing files.

/rn-dev-agent:doctor

A dozen prerequisites, presented as a single table:

#CheckRequiredAuto-install possible (via /setup)
1Node.js >= 22 LTSYesNo (user must install)
2CDP bridge dependenciesYesYes
3agent-device CLIYesYes
4maestro-runnerYesYes
5iOS Simulator bootedOne platformNo
6Android Emulator runningOne platformNo
7Metro dev serverYesNo (you start it)
8CDP connection reachableYesAuto via cdp_status
9Injected __RN_AGENT helpers freshYesAuto on connect
10ffmpegOptionalNo
11Physical-device prerequisitesOptionalNo
12Vercel rules sync freshnessOptionalYes (re-sync on stale)

For every red row, /doctor prints the exact install command tailored to your environment (e.g., the right nvm/brew flag).

  • After SessionStart shows WARNING messages
  • When cdp_status fails to connect
  • When device_* tools start failing
  • Before reporting a plugin bug — paste the table into the issue
| Check | Status | Action Needed |
|------------------------|-----------------------|----------------------------------------|
| Node.js | OK (v22.15.0) | — |
| CDP bridge | OK | — |
| agent-device | MISSING | Run /rn-dev-agent:setup to install |
| maestro-runner | OK (v1.0.9) | — |
| iOS Simulator | BOOTED (iPhone 16) | — |
| Android emulator | NOT RUNNING | Boot one if you need Android coverage |
| Metro | RUNNING (port 8081) | — |
| CDP connection | CONNECTED | — |
| __RN_AGENT helpers | FRESH (v16) | — |
| ffmpeg | OK (v7.1) | — |
| Physical device | NONE CONNECTED | Skip if testing on simulator only |
  • /setup — onboarding sibling that fixes what /doctor reports
  • /check-env — quicker, narrower readiness check
  • Troubleshooting — common issues and fixes