| name | aw-delegate |
| description | Delegate a task to another agent in the AgentWeave session. Usage — /aw-delegate <agent> "<task description>" |
Delegate a task to another agent in the AgentWeave collaboration session.
Project: Agentweave
Principal: claude
Available agents: claude, kimi, minimax
Parse $ARGUMENTS as: <agent-name> "<task description>" (agent name first, then the task).
Steps:
- Validate that the agent name from $ARGUMENTS is one of the available agents: claude, kimi, minimax
- Run:
agentweave quick --to <agent> "<description>"
- This creates a task AND sends a delegation message in one command.
- Note the task ID printed in the output.
- Check the transport type by running:
agentweave transport status
- If transport is local (no Hub or git configured): run
agentweave relay --agent <agent> and present the relay prompt to the user so they can copy it into the target agent's session.
- If transport is http or git: the message was delivered automatically — confirm this to the user and skip the relay step.
- Report: task ID created, agent assigned, and next action required (relay or automatic delivery).
If $ARGUMENTS is empty or malformed, ask the user: "Which agent should receive the task, and what should they do?"