Skip to content

Run agent diagnostics

This guide shows you how to run diagnostics on an agent’s environment.

Agent doctor is a diagnostic tool that checks whether an agent’s execution environment is healthy. It verifies the sandbox, CLI tools, database, network, and disk.

  1. Navigate to Agents
  2. Click the context menu (···) on an agent
  3. Select Run diagnostics
  4. Wait for the report to generate

You can also run doctor via the MCP doctor tool.

The doctor report (DoctorReport) contains multiple DiagnosticResult entries:

CheckWhat it verifies
Sandbox backendThe native sandbox (Seatbelt/bubblewrap) is available and functional
DatabaseSQLite is accessible, foreign keys are on, integrity is OK
CLI toolsThe agent’s adapter CLI is installed and in PATH
Adapter versionThe CLI reports a compatible version
Disk spaceSufficient disk space for worktrees and logs
NetworkThe agent can reach required external APIs (GitHub, Linear)

Each check has a status:

  • Pass — everything is fine
  • Warning — non-critical issue (e.g. low disk space)
  • Error — critical issue that will prevent the agent from running

Some diagnostic results have canAutoRepair: true. For these:

  1. The doctor shows a Repair button
  2. Click it to apply the fix automatically
  3. Re-run diagnostics to verify

Common auto-repairable issues:

  • Missing directory structures
  • Stale cache entries
  • Stuck run logs

Symptom: “CLI not found in PATH”

Fix: Install the CLI (e.g. npm install -g @anthropic-ai/claude-code) or register the adapter path manually in Settings → Adapters.

Symptom: “Native sandbox backend not detected”

Fix: On macOS, ensure System Integrity Protection is enabled. On Linux, install bubblewrap (sudo apt install bubblewrap on Debian/Ubuntu).

Symptom: “Database integrity check failed”

Fix: This is rare. Try restarting Control Center. If the error persists, the database may be corrupted — check the logs for details.

Symptom: “Cannot reach api.github.com”

Fix: Check your network connection and proxy settings. If behind a corporate proxy, configure the proxy in the app’s network settings.