/task-management:pool [once|ensure|start|stop|status|resume|wait] [--dry-run]from task-management
The pickup loop that dispatches ready-for-agent tasks, on by default, as one detached pool per repository — tm pool once|ensure|start|stop|status|resume|wait, the tm-pool monitor, dispatch.enabled / poolWip / pollSeconds / maxFailures / idleExitMinutes. Use when the user says "start the worker pool", "stop the pool", "pick up ready-for-agent work", "run the dispatch loop", "the pool is paused", "is the pool running", "wait for the pool", "wait until TM-123 is done", "/pool", or many ready cards should drain without one-shot dispatch.
Ships in task-management. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
[[dispatch]] on a timer, running by default. Each tick collects finished
workers first, then dispatches open, unblocked, unclaimed ready-for-agent tasks
that still pass the readiness check, up to dispatch.poolWip (default 3),
preferring disjoint touches.
The pool is on by default — usually there is nothing to start. Reach for this skill to check on it, stop it, or clear its brake. For a single card, [[dispatch]].
.bytedesk/task-management/bin/tm pool status # running? paused? how many ready?
.bytedesk/task-management/bin/tm pool once --dry-run # what would it pick
.bytedesk/task-management/bin/tm pool once
.bytedesk/task-management/bin/tm pool resume # clear the brake
.bytedesk/task-management/bin/tm pool ensure # start one if none is live, then exit
.bytedesk/task-management/bin/tm pool start
.bytedesk/task-management/bin/tm pool stop
.bytedesk/task-management/bin/tm config dispatch.enabled false # turn it off for this repo
.bytedesk/task-management/bin/tm pool wait --until done TM-123 --timeout 1800 # block, never sleep-poll
Waiting. Never wrap tm pool status in a sleep loop; the harness blocks it. tm pool wait --until idle|running|stopped|dispatched <id>|done <id> [--timeout <s>] (default idle, 300 s)
polls internally and prints one JSON result: exit 0 when the condition holds, 2 on timeout (the
result names the last state seen), 1 on a bad argument. idle means no dispatched worker and
nothing ready to pick up.
No MCP or HTTP verb. The plugin monitor tm-pool runs tm pool ensure at
session start, and so do the user-prompt hook, a tm config dispatch.* write and
the dashboard settings save — one detached pool per repository, outliving the
session that asked, so extra sessions cost nothing. Config is re-read every poll,
so dispatch.enabled false stops a running pool within one poll;
TM_ENFORCE=off also no-ops a tick. The pool's state lines go to pool.log in
the store.
A label is not a go-ahead by itself. Every candidate is re-checked against
agentReadiness, so a task missing its body, criteria or epic — or vetoed by a
person with ready-for-human — is skipped with the reason named.
If it is paused, status says why: dispatch.maxFailures provider or backend failures in a row
(default 3), or one quota/rate-limit failure. Only a dispatched task reaching
done resets the count, and only tm pool resume clears the pause.
Task-local holds, dependency mentions and implementation failures do not pause other work.
With dispatch.governed: true, the lead must first admit a task; the pool preserves that
owner when dispatching it. A missing admission is a visible hold on that task.
It exits when idle — no dispatched worker and nothing to pick up for
dispatch.idleExitMinutes (default 60; 0 never). That is not a fault: the next
ensure starts a fresh one, so a repo nobody is working in costs no process.
Config: dispatch.enabled (true), dispatch.poolWip (3),
dispatch.pollSeconds (30), dispatch.maxFailures (3),
dispatch.maxRuntimeMinutes (120), dispatch.idleExitMinutes (60),
dispatch.backendCaps (e.g. {"tmux":2}), dispatch.backends,
dispatch.expediteWip (2). Probe hosts with [[caps]] first.
Expedite lane: a highest task, or a high one labelled expedite, dispatches
on the next tick outside poolWip, up to expediteWip at once. It skips touches
batching but never a path a running task holds.
[[collect]] is what the tick already calls for finished workers; you can still
tm collect <id> by hand. [[agent]] reap parks stragglers. [[events]]
--follow --json is the bus.
Full table: docs/agent-first.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bytedeskai/bytedesk-marketplace --plugin task-management27 skills in this plugin
/adrWrite an architecture decision record into .bytedesk/task-management/adrs/, or finish one of the stubs the AskUserQuestion hook drafted automatically. Use when a real decision gets made — a tradeoff, a rejected alternative, a constraint the team must not relitigate — or when the user says "record this decision", "write an ADR", "/adr"./agentDispatched-worker registry — list with derived liveness, heartbeat a name, reap the dead (parks their claimed tasks). Use when the user says "who is running", "reap dead workers", "agent heartbeat", "/agent", or a dispatched claim looks abandoned./boardShow the task board for this repo — epics, in-progress, blocked, next unblocked, and stale work — from .bytedesk/task-management/. Use when the user asks "what's on the board", "where are we", "what's next", "/board", or when resuming work and you need the real state rather than session memory.Other plugins' skills for the same job