Overview#
Sub-chats let one assistant delegate a task to another assistant — or even to itself — and receive the response directly in the originating conversation. The delegated work runs in its own context, in parallel if needed, and the response is automatically delivered when it's done.
This is how you build multi-agent workflows in Toolbelt: one orchestrating assistant, many specialized workers, all coordinated through sub-chats.
If you're new to assistant-to-assistant communication, start with Assistant-to-Assistant Communication for an overview of when to use sub-chats versus conversational delegation or the Collaboration mode toggle.
Why sub-chats?#
Some tasks are too large or too specialized for a single assistant to handle well in one go. Sub-chats let you:
- Parallelize work — kick off multiple tasks simultaneously and wait for all of them
- Specialize — delegate to an assistant that's configured specifically for the task (e.g., a code reviewer, a data analyst)
- Keep the main conversation clean — heavy lifting happens in a sub-chat; only the result comes back
How it works#
- Your assistant calls
create_sub_chatwith a target assistant ID and the task content - The target assistant receives the task and processes it in its own chat context
- When the target finishes, its response is automatically posted back to your originating conversation
- Your assistant can create multiple sub-chats and wait for all of them before proceeding
Sub-chats use Toolbelt's delegation infrastructure under the hood. The response is delivered automatically — you don't need to poll for it.
Creating a sub-chat#
Use the create_sub_chat toolbelt action:
| Parameter | Required | Description |
|---|---|---|
targetAssistantId |
✅ | The ID of the assistant to delegate to |
content |
✅ | The task or message to send |
priority |
Optional | Task priority: "low", "normal" (default), "high", or "urgent" |
provider |
Optional | AI provider: "openai", "gemini", "anthropic", "anthropic-vertex", or "toolbelt". Use "gemini" for Google AI (never "google"); use "toolbelt" for Crescent. |
model |
Optional | Specific model version. See Model selection below. |
Returns:
{
"correlationId": "abc-123",
"status": "created",
"targetAssistantId": "...",
"message": "Sub-chat created successfully"
}
Save the correlationId — you'll use it to match responses when multiple sub-chats are in flight.
Model selection#
Use the model parameter to tune the sub-chat for the task at hand. As a rule of thumb:
| Use case | Recommended model |
|---|---|
| Formatting, extraction, classification | gemini-3.8-flash, claude-sonnet-5-5, gpt-6.1-terra, or Crescent (provider: "toolbelt", e.g. crescent-medium) |
| Research, drafting, multi-step reasoning | claude-opus-5-5, gemini-4-argon, or gemini-3.8-flash |
If you omit model, Toolbelt uses the default model configured for the target assistant. See Model selection for the full catalog.
Waiting for responses#
After creating one or more sub-chats, use the sleep toolbelt action to wait for completion:
create_sub_chat → sleep (15–60s, wakeOnAnyComplete: true) → handle response
When sleep returns with wokeReason: "sub_chat_complete", the response is in subChats[].lastMessage. Use it directly — no need to call get_pending_sub_chats.
If sleep times out before all sub-chats complete, call get_pending_sub_chats to check status.
Running sub-chats in parallel#
You can call create_sub_chat multiple times before calling sleep. All sub-chats run concurrently. Your main conversation is blocked until all of them complete.
create_sub_chat (task A) ─┐
create_sub_chat (task B) ─┼─→ sleep → all responses arrive → continue
create_sub_chat (task C) ─┘
Use wakeOnAnyComplete: true if you want to process results as they arrive rather than waiting for all of them.
Delegating to the same assistant#
You can set targetAssistantId to your own assistant ID (or workspace ID). This is useful for parallelizing work within a single assistant — each sub-chat gets its own isolated context and tool access.
The Advisor pattern: Second opinions from frontier models#
Running an assistant entirely on a frontier reasoning model (like claude-opus-5-5 or gemini-4-carbon) gives you top-tier judgment, but burns credits on every single turn, routine data fetch, and simple tool call.
The Advisor pattern gives you near-frontier judgment while keeping your everyday credit burn low:
- Run everyday work on a fast, cost-effective model (such as
claude-sonnet-5-5,gemini-3.8-flash, orcrescent-medium). - Consult a frontier model only at high-stakes checkpoints (before committing to a complex plan, when stuck on a tough error, or before declaring a critical task finished).
- The assistant spawns a sub-chat to get that second opinion, incorporates the feedback, and keeps working.
You get top-model guidance where it counts, paying frontier token rates for only one or two turns instead of twenty.
Method 1: Set it in the assistant's instructions (Automated)#
To have your assistant automatically seek a second opinion on tough jobs, paste a rule like this into its System Prompt (under Configure → Instructions):
Advisor Rule: You handle day-to-day execution and tool operations. When handling complex, multi-step, or high-stakes tasks:
- Plan review: Before executing any multi-step plan, draft your proposed steps and spawn a sub-chat to a frontier model (such as
claude-opus-5-5orgemini-4-carbon). Ask it to critique your plan for blind spots, security issues, and edge cases.- Unsticking: If a tool fails twice or you hit an unexpected roadblock, consult the advisor model via sub-chat for an alternative strategy.
- Final sanity check: Before marking a critical task complete, ask the advisor model to review your final output against the user's original requirements.
Review the advisor's response, adjust your approach, and continue in the main conversation.
Method 2: Ask for it ad-hoc in chat (Conversational)#
You don't have to change your assistant's permanent settings to use this. You can prompt for an advisor review on the fly during any conversation:
"Draft a migration plan for this database, but before running anything, spin up a sub-chat with Claude Opus to get a second opinion on the steps."
Or when debugging:
"Take our current error logs and ask Gemini 4 Carbon in a sub-chat what we might be missing."
Because the assistant has native access to sub-chats, it packages the conversation context, queries the stronger model, and reports back the advice directly in your thread.
When to use this pattern#
| Moment | What the advisor does |
|---|---|
| Forming a plan | Spots overlooked dependencies, potential race conditions, or destructive side effects before any tool runs. |
| Breaking loops | Offers a fresh perspective when the primary model is stuck repeating a failing tool pattern. |
| Pre-delivery review | Catches subtle omissions or tone mismatches before handoff to human stakeholders. |
Calling from an external MCP client#
When you connect a Toolbelt assistant to an external MCP client — such as Claude Desktop, Cursor, or Windsurf — that assistant's full instruction context comes along for the ride. Any tool calls the assistant makes, including create_sub_chat, work exactly the same as they do inside Toolbelt.
This means you can use a Toolbelt assistant as an orchestrator from inside your IDE or AI client of choice. The assistant spawns specialized sub-chats, waits for results, and surfaces a consolidated answer — all driven by a single prompt from you.
When building orchestration flows from an external client, give each sub-chat a focused, single-purpose task. Smaller scope means faster completion and cleaner results to aggregate.
Example use case#
An orchestrating assistant needs to document four new features simultaneously:
- Calls
create_sub_chatfour times, each with a different documentation task - Calls
sleepwithwakeOnAnyComplete: falseandtimeoutSeconds: 60 - When all four sub-chats complete, receives four draft documents
- Reviews and assembles the final output
This is faster than running the four tasks sequentially and keeps each sub-chat's context focused on a single feature.
When a sub-chat times out#
Long-running sub-chats can legitimately take several minutes, especially for multi-step agentic or coding tasks. A timeout from sleep does not mean the sub-chat has failed — it means it hasn't finished yet. Treat it accordingly.
Timeout is not an error#
When sleep returns with wokeReason: "timeout", the sub-chat is still running. Call get_pending_sub_chats to check its current status, then sleep again. Keep waiting until the patience budget for the task type is spent.
Patience budget by task type#
Scale how long you wait to the complexity of the work:
| Task type | Suggested poll rounds |
|---|---|
| Formatting, extraction, classification | 2–3 rounds |
| Coding, research, drafting | 5–8 rounds |
| Heavy multi-step agentic workflows | More, as long as status keeps advancing |
A "poll round" is one sleep call (typically 30–60 seconds) followed by a get_pending_sub_chats check.
Liveness before verdict#
Only declare a sub-chat stuck after the patience budget is exhausted and the status has stopped advancing between polls. Never terminate a sub-chat that is still making progress, even if it is slow.
What to do when a sub-chat is genuinely stuck#
If a sub-chat's status has not advanced across multiple poll rounds and the patience budget is spent:
- Tell the user what is hung and for how long.
- Offer options: keep waiting, retry (optionally on a faster model such as
gemini-3.8-flash), or proceed with partial results from sub-chats that have already completed.
Never discard the results of sub-chats that finished successfully just because one laggard is stuck. Collect completed work as it arrives and apply the patience treatment only to the sub-chat that hasn't responded.
Parallel insulation#
When multiple sub-chats are in flight, completed ones are independent of slow ones. Process finished sub-chats as they land. Only the laggard gets the patience treatment — the rest of the work moves forward normally.
Limitations#
- Sub-chat responses are delivered to the originating chat only — they don't appear as new top-level conversations
- Sub-chats cannot create further sub-chats that route back to themselves (no circular delegation)
- The target assistant must be accessible to your organization (same organization)
