AgentCLI
Agent CLI Overview
Understand the city agent command set by workflow rather than by flat command list
Agent CLI Overview
city agent is the command surface for the single-project Agent runtime.
If you think of the Agent as "the execution unit for one project," the city agent command group is its operator console.
What you can do with it
- initialize an Agent project
- start or stop background agent daemons
- inspect registered agents
- chat with agents from the terminal
- clean broken session history
- diagnose and repair stale daemon state
The easiest way to understand the commands
Lifecycle
createstartstoprestartstatuslist
These answer:
- is the project initialized?
- is it running?
- how do I start, stop, or restart it safely?
Interaction
chathistory clean- interactive
city agentmanager
These answer:
- how do I talk to the agent?
- how do I reset a bad session?
- how do I manage agents interactively without memorizing every flag?
Maintenance
doctor- daemon state inspection
- registry inspection
These answer:
- why does the runtime state look wrong?
- why does it say it ran before but now it is unreachable?
- why do
listandstatusappear to disagree?
Recommended first reading order
createstartchatstatusstop / restartdoctor
Continue with: