CommandsAgent
studio agent doctor
Diagnose and optionally fix stale agent state files
studio agent doctor
Diagnose agent state files for a target agent and optionally clean stale pid/meta files.
This page remains as a command entry point. For the fuller explanation, see CLI / doctor and Agent Shows stale.
Usage
studio agent doctor [path] [--fix]Key option
--fix [enabled]: clean stale state files automatically
Behavior
pathdefaults to current directory.- Target agent must be registered in console registry
- Without
--fix, it only reports issues and does not modify files
Related commands
Example Output (Based on Current Implementation)
The examples below are aligned with current command implementations in cli/studio/src (including default output mode and field structure). Placeholder values are used for environment-specific fields.
$ studio agent doctor .
studio v1.0.0
⚠️ Stale daemon state detected
project: <projectRoot>
stalePid: <pid>
reason: <reasons>
log: <daemonLogPath>
Run `studio agent doctor <path> --fix` to clean stale pid/meta.$ studio agent doctor . --fix
studio v1.0.0
✅ Cleaned stale daemon pid/meta files