Install
openclaw skills install subagent-task-queueConcurrent task queue management for sub-agent orchestration. Provides a /queue command for real-time visibility into active, queued, and completed sub-agent tasks. Use when: (1) user sends /queue or /quene to check task status, (2) spawning a sub-agent task that should be tracked, (3) managing concurrent workload across multiple sub-agents, (4) user asks about task capacity or current workload. Supports configurable concurrency limits, automatic FIFO scheduling, typed task categorization, and portable deployment across different machines. NOT for: task board/kanban management (use mc-task), simple single-step tasks handled in main session, or project-level tracking.
openclaw skills install subagent-task-queueManage concurrent sub-agent tasks with real-time visibility. Main session stays responsive; heavy work runs in parallel sub-agents tracked by a queue.
Initialize the queue state file on first use:
cat > /tmp/task-queue.json << 'EOF'
{
"maxConcurrent": 8,
"maxSameType": 3,
"active": [],
"queued": [],
"completed": [],
"stats": { "totalSpawned": 0, "totalCompleted": 0, "totalFailed": 0 },
"updatedAt": null
}
EOF
Adjust maxConcurrent by machine:
| Command | Action |
|---|---|
/queue or /quene | Show current queue status |
/queue clear | Clear completed task history |
/queue kill <Q-ID> | Terminate a specific task |
Q-001, Q-002, ...research | dev | report | search | translate | analysis | otheractive.length < maxConcurrent AND same-type count < maxSameType → spawn, add to activequeued, notify user of position/tmp/task-queue.jsonactive to completed (keep last 20)queued if any, spawn itcompleted with "result": "failed" and reason📋 任务队列 (活跃 X/8 | 排队 Y)
🔄 运行中:
Q-001 [research] 海外媒体分析 (3m ago)
Q-002 [dev] 修复登录bug (1m ago)
⏳ 排队中:
Q-003 [report] 周报生成
✅ 最近完成:
Q-000 [search] KOL筛选 → 成功 (5m)
If empty: report "全空,随时可以塞活"
See references/schema.md for the complete JSON structure
of /tmp/task-queue.json.
Decide whether to queue (spawn sub-agent) or handle directly in main session:
Queue it (any one triggers):
Handle directly (all true):
When uncertain, prefer queuing — better to over-spawn than block the main session.
To deploy on another machine (e.g., Mac with a different OpenClaw agent):
/tmp/task-queue.json with the init template abovemaxConcurrent for the machine's resources/queue trigger to the agent's routing config (AGENTS.md or equivalent)