XQE Agent Team
by @aa-rick
Orchestrate a dynamic multi-agent team where a lead agent (opus) plans and delegates tasks to specialized worker agents (sonnet) that communicate bidirection...
clawhub install xqe-agent-team๐ About This Skill
name: agent-team description: > Orchestrate a dynamic multi-agent team where a lead agent (opus) plans and delegates tasks to specialized worker agents (sonnet) that communicate bidirectionally. Use when tasks benefit from parallelism or specialization โ code review, market research, trading signal analysis, competitive analysis, or any complex task decomposable into parallel workstreams. Triggers on phrases like "agent team", "multi-agent", "spawn agents", "parallel agents", "team of agents", "่ฎฉๅคไธชagentๅไฝ", "ๅคๆบ่ฝไฝ", "agentๅข้".
Agent Team
Orchestrate a dynamic team of agents: one Orchestrator (opus) plans + delegates + synthesizes; multiple Worker agents (sonnet) execute specialized subtasks and communicate bidirectionally.
Architecture
User
โโโบ Orchestrator (opus)
โโ plans team composition dynamically
โโ spawns Worker A (sonnet) โโโ
โโ spawns Worker B (sonnet) โ bidirectional
โโ spawns Worker C (sonnet) โโโ via sessions_send
โโ aggregates โ final report to user
Workflow
Step 1 โ Orchestrator Plans the Team
Analyze the task and define 2โ4 worker roles. Each role needs:
researcher, coder, reviewer)See references/role-patterns.md for common role combinations per scenario.
Step 2 โ Spawn Workers
Spawn each worker as a persistent sub-agent session. Always set streamTo: "parent" so the user sees real-time output in their chat window:
# Pseudocode โ use sessions_spawn tool
sessions_spawn(
task="You are the [ROLE] agent. [SPECIFIC TASK].
When you need input from another agent, send a message to session [SESSION_KEY].
Report your final result clearly structured.",
runtime="subagent",
mode="session", # persistent โ can receive follow-up messages
model="sonnet", # worker uses sonnet
label="worker-[role]",
streamTo="parent" # stream output to user's chat in real time
)
Spawn all independent workers in parallel (single tool call block). Only spawn sequentially when a worker strictly depends on another's output.
Step 3 โ Bidirectional Communication
Workers can message each other via sessions_send. The orchestrator:
1. Gives each worker the session keys of peers it may need to consult
2. Monitors via subagents(action=list) โ check on-demand, not in a loop
3. Can steer any worker mid-task: subagents(action=steer, target=
Direct worker-to-worker message pattern:
Worker A finishes partial result
โ sessions_send(sessionKey=worker-B-key, message="Here's my output: ...")
Worker B incorporates it, finishes
โ sessions_send(sessionKey=orchestrator-key, message="Done: ...")
Step 3.5 โ Relay Progress to User (Orchestrator Broadcast)
After each worker completes, send a status update to the user before moving on:
"[worker-researcher] ๅฎๆ โ
โ ๆพๅฐ 12 ๆก็ธๅ
ณๆฐๆฎ๏ผไผ ็ป worker-analyst"
"[worker-analyst] ๅค็ไธญ... ็ญๅพ
worker-researcher ็ปๆ"
"[worker-reviewer] ๅฎๆ โ
โ ๅ็ฐ 3 ไธช้ฃ้ฉ็น"
This gives the user full visibility into the team's progress without needing to check logs manually.
Step 4 โ Aggregate Results
Once all workers report back, the orchestrator: 1. Synthesizes outputs into a coherent final answer 2. Resolves conflicts between workers' findings 3. Delivers structured report to the user
Model Config
| Role | Model | Rationale |
|------|-------|-----------|
| Orchestrator | Current session model (Jarvis / Friday / Jupiter) | Complex planning + synthesis |
| Workers | sonnet | Cost-efficient execution |
Orchestrator identities:
Override worker model when a subtask needs deeper reasoning: pass model="anthropic/claude-opus-4-6" to that specific spawn.
Common Scenarios
See references/role-patterns.md for ready-made role sets:
reader + security-reviewer + refactor-plannerdata-analyst + sentiment-analyst + risk-assessortechnical-analyst + fundamental-analyst + macro-watcherKey Rules
subagents(action=list) only when checking status on-demandsubagents(action=kill, target=