Skip to content

check-env

Check that the React Native development environment is ready for testing. Reports status for each subsystem and suggests fixes for any issues found.

/rn-dev-agent:check-env
SubsystemWhat it checksSource
MetroRunning? Which port?cdp_status
CDPConnected to Hermes? Which device/page?cdp_status
AppPlatform, RN version, Hermes enabled, screen dimensionscdp_status
CapabilitiesNetwork domain available? Fiber tree accessible?cdp_status
ErrorsActive error count, RedBox showing, debugger paused?cdp_status
agent-deviceCLI installed? Devices available?device_list
StatusSuggested fix
Metro not foundnpx expo start or npx react-native start
No Hermes targetOpen the app on the simulator
CDP code 1006Close React Native DevTools, Flipper, or Chrome DevTools
hasRedBox: trueRun /rn-dev-agent:debug-screen
isPaused: trueRemove debugger; statements or use cdp_reload
fiberTree: falseOnly works in __DEV__ builds with Hermes
agent-device not foundnpm install -g agent-device
No devicesBoot a simulator: xcrun simctl boot "iPhone 16"
  • Before starting a feature development session
  • When other commands report connection issues
  • After restarting Metro or the simulator