| name | agent-ops |
| description | Create, monitor, message, and debug agents via the CLI. Use when creating agents, checking agent status, sending messages to running agents, attaching to tmux sessions, streaming agent output, or managing tool policies and approvals. |
Agent Operations
Operational skill for managing agents through the agentd CLI.
Creating Agents
agent orchestrator create-agent \
--name my-agent \
--working-dir /path/to/project \
--model claude-sonnet-4-6
agent orchestrator create-agent \
--name my-agent \
--working-dir . \
--model claude-sonnet-4-6 \
--system-prompt "You are a code review agent."
agent orchestrator create-agent \
--name my-agent \
--working-dir . \
--model opus \
--prompt "Review the latest PR"
agent orchestrator create-agent \
--name my-agent \
--working-dir . \
--worktree \
--model sonnet
agent orchestrator create-agent --name test --working-dir . --model sonnet --json
Model aliases: sonnet → claude-sonnet-4-6, opus → claude-opus-4-6, haiku → claude-haiku-4-5-20251001
Checking Agent Status
agent orchestrator list-agents
agent orchestrator list-agents --status running
agent orchestrator list-agents --status pending
agent orchestrator list-agents --status stopped
agent orchestrator list-agents --status failed
agent orchestrator get-agent <agent-id>
agent orchestrator list-agents --json
Interacting with Running Agents
agent orchestrator send-message <agent-id> "Please review this file"
agent orchestrator attach <agent-id>
agent orchestrator stream <agent-id>
agent orchestrator stream --all
Tool Policy Management
agent orchestrator get-policy <agent-id>
agent orchestrator set-policy <agent-id> '{"type": "AllowAll"}'
agent orchestrator set-policy <agent-id> '{"type": "DenyAll"}'
agent orchestrator set-policy <agent-id> '{"type": "AllowList", "tools": ["Read", "Grep", "Glob"]}'
agent orchestrator set-policy <agent-id> '{"type": "DenyList", "tools": ["Bash", "Write"]}'
agent orchestrator set-policy <agent-id> '{"type": "RequireApproval"}'
Approval Management
When an agent has RequireApproval policy:
agent orchestrator list-approvals
agent orchestrator list-approvals --agent-id <agent-id>
agent orchestrator approve <approval-id>
agent orchestrator deny <approval-id>
Approvals timeout after 5 minutes by default.
Changing Model at Runtime
agent orchestrator model <agent-id> sonnet
agent orchestrator model <agent-id> opus
agent orchestrator model <agent-id> claude-sonnet-4-6
Deleting Agents
agent orchestrator delete-agent <agent-id>
agent orchestrator list-agents --status stopped --json | jq -r '.[].id' | xargs -I{} agent orchestrator delete-agent {}
Troubleshooting
Agent stuck in Pending
- Check orchestrator logs for errors
- Verify tmux is installed:
tmux -V
- Check if tmux sessions are being created:
tmux list-sessions
Agent not responding to messages
- Verify agent is Running:
agent orchestrator get-agent <id>
- Check WebSocket connection: stream the agent output
- Attach to tmux session to see the agent's terminal directly
Agent failed
- Get agent details:
agent orchestrator get-agent <id>
- Check tmux session:
tmux list-sessions
- Check orchestrator logs for error details
- Capture tmux pane output:
tmux capture-pane -t <session-name> -p