Delegate work to agents
This guide shows you how to delegate work to agents via tickets.
Create and assign
Section titled “Create and assign”- Create a ticket with a clear title and description
- Assign it to an agent
- The
TicketDispatcherautomatically:- Creates a conversation channel
- Transitions the ticket to
in_progress - Dispatches the agent with the ticket context
What the agent receives
Section titled “What the agent receives”When dispatched via ticket assignment, the agent receives:
- The ticket title and description in its prompt
- The conversation channel for communication
- An isolated worktree from the workspace’s linked repos
- The ticket’s conversation mode (default:
chat)
The agent works autonomously, streaming its progress to the channel.
Monitor progress
Section titled “Monitor progress”- Ticket status: check the ticket board for
in_progressstatus - Channel: open the ticket’s channel to see live agent activity
- Dashboard: see the agent’s running status
- Run logs: check the agent’s run log for detailed trace
Output validation
Section titled “Output validation”If the ticket has an expectedOutputSchema, the dispatcher validates the agent’s output against it:
- The agent completes its work
- The output is checked against the JSON Schema
- If valid, the ticket transitions to
donewithoutputJsonset - If invalid, the ticket may transition to
failed
Delegation chain
Section titled “Delegation chain”Agents can delegate to other agents:
- An agent working on a ticket encounters a sub-problem
- It creates a child ticket via the
create_ticketMCP tool - Assigns the child ticket to another agent
TicketDelegatedevent fires- The
delegatedByAgentIdfield tracks who delegated
This creates a delegation tree — the CEO delegates to coders, coders delegate to QA, etc.
Collaborative tickets
Section titled “Collaborative tickets”Multiple agents can collaborate on a single ticket:
- Add agents as collaborators
- Each collaborator gets access to the ticket’s channel
- They can @-mention each other and share context
Ticket delegation via pipeline
Section titled “Ticket delegation via pipeline”Pipelines can create and assign tickets programmatically:
- Use a
promptAgentstep to analyze a task - Use a downstream step to create tickets with
TicketWorkflowPort - The tickets are assigned and dispatched automatically