AgentCLIMaintenance
city agent doctor
Diagnose and repair stale Agent daemon state
city agent doctor
Usage
city agent doctor [path]
city agent doctor [path] --fixWhat problem it solves
When the daemon process is gone but pid or meta state files remain, status shows stale.
doctor is specifically for that class of problem.
It is not a universal repair command for every runtime issue.
Without --fix
Diagnostic only:
city agent doctorWith --fix
Repair stale state:
city agent doctor --fixThen, if you want to restore execution:
city agent startUse doctor first when:
statusexplicitly saysstale- the machine restarted unexpectedly
- the daemon looks like it existed before but cannot be reached now
Continue with: