/thrum:coordinator-dispatching-workfrom thrum
Manages agent dispatch and worktree lifecycle using thrum. Provides rules for launching agents, sending messages, and avoiding conflicts between sub-agents and thrum agents.
Ships in thrum. 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.
thrum tmux launch — not raw send-keysWhy: Manual tmux send-keys 'claude' followed by /thrum:prime skips
identity registration and produces silent CWD drift. The
thrum tmux launch <name> flow registers the agent against the worktree path
correctly and gives the daemon a real PID to track. (Source:
findings_coordinator.md — "Use thrum tmux launch — not send-keys — to start a
runtime".)
How to apply: Whenever you need to start a runtime in an existing tmux pane,
use thrum tmux launch <session_name> even if you've already typed the runtime
command yourself. If you've already started one wrong, kill the pane and
re-launch via the daemon. If the pane doesn't exist yet, use
thrum tmux start <name> (creates, launches, primes, attaches in one command).
Why: The inverse of dispatch is removal, and it has the same "two-step
ritual or things break silently" property as dispatch via tmux launch + thrum
send. See coordinator-managing-state-and-lifecycle § "Destroy an agent before
tearing down its worktree" for the canonical sequence (thrum tmux kill BEFORE
thrum worktree teardown). The dispatching skill mentions it here so you find
the cross-reference when planning a wave recycle, not just when reading the
lifecycle skill end-to-end.
Why: Sub-agents (Agent tool) and Thrum agents (thrum send) are different
coordination mechanisms. A sub-agent spawned into a worktree where a Thrum agent
already sits competes for files, identity, and tmux state — the result is
identity drift, broken nudges, and silent message loss. (Source:
findings_coordinator.md — "No sub-agents into live worktrees".)
How to apply: Run thrum team before spawning any Agent tool call. If a
worktree shows a registered agent, communicate with it via
thrum send "<message>" --to @<agent_name> instead. Sub-agents are for
research/explore, code review, and message listeners running in the main repo —
never for implementation work in another agent's worktree.
thrum send after launch — not via tmux send-keysWhy: After thrum tmux launch, all coordination flows through the inbox +
daemon nudge: thrum send enters the message in the daemon's state, the daemon
nudges the pane, the agent reads the inbox and starts work. Injecting the prompt
with thrum tmux send or tmux send-keys bypasses the inbox entirely, breaks
the nudge for future messages, and strands the agent without a recorded message.
(Source: findings_coordinator.md — "Dispatch via thrum send after tmux launch,
not via tmux send-keys".)
How to apply: Correct flow: thrum tmux launch <name> → agent auto-primes →
thrum send "work prompt" --to @agent_name → daemon nudges the pane → agent
reads inbox and begins work. Never inject the prompt as raw keystrokes.
Why: Implementer agents work better with a structured handoff than a free-form request. Inconsistent dispatch produces inconsistent reports and re-dispatch overhead.
How to apply: Every dispatch prompt should include:
model: on any sub-agents the implementer
spawns (haiku for mechanical, sonnet for judgment)Why: Agent identity is bound to the worktree, not the epic. Re-registering
@implementer_api as @implementer_billing mid-flight creates two identity
files in the same worktree, causing persistent stop-hook misfires and routing
failures. (Source: findings_coordinator.md — "Never rename an agent tied to a
worktree".)
How to apply: Run thrum team before assigning new work to confirm the
existing identity name. Send work to that name. Do not use thrum quickstart
with a new name in a worktree that already has an identity. If you absolutely
need a fresh identity, kill the existing tmux session and register a new one
with a different name — do not rename in place.
Why: Sub-agents inherit the parent model by default. A coordinator on Opus that spawns an unspecified sub-agent gets Opus-cost work for tasks that need Haiku. The same trap repeats inside an implementer's worktree: if the implementer doesn't propagate the discipline, their own sub-agents silently inherit too. Cost compounds across a session. (Source: findings_coordinator.md — "Always pass explicit model on sub-agent spawns".)
How to apply: Every dispatch prompt should include the model-selection rule
explicitly: "When you spawn your own sub-agents, pass explicit model: —
haiku for mechanical work (lint, tests, find/replace), sonnet for judgment
work (review, complex implementation), opus only when justified. Default to
sonnet over opus." Audit the dispatch prompt before sending.
Why: When the planning-skill review loop runs, its final gate reviews the implementation prompt against the plan — which IS the pre-dispatch review. Re-running a pre-dispatch prose review on a prompt that already passed the loop double-reviews the same artifact and wastes a cycle.
How to apply: At dispatch, grep the impl-prompt for the loop's verdict stamp (case-sensitive, literal):
grep -F 'THRUM-REVIEW: stage=prompt verdict=Ready:Yes' "$PROMPT_FILE" \
|| grep -F 'THRUM-REVIEW: stage=prompt verdict=OVERRIDE' "$PROMPT_FILE"
This is the prose side of the boundary; the post-DONE dual-review (which reviews
the implementer's CODE, a different artifact) always runs separately. The prompt
is never reviewed twice. (See coordinator-running-review-cycles for the
post-DONE side.)
Project-local rules under bd memories coordinator-rule- were loaded at session
start by your preamble. If a project-local rule conflicts with a universal rule
above, the project-local rule wins; surface the conflict in your reply so the
user can decide whether to graduate or remove the override.
If you accumulate a new rule mid-session (the user corrects you), capture it via
bd remember --key coordinator-rule-<slug> "<rule + Why + How to apply>".
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/adversarial-critiqueUse when an implementer is blocked mid-work by a design flaw, contradiction, or unforeseen fork with 2-3 ways to resolve it - produces a defended pick that unblocks the work and leaves an audit trail so the decision can be revisited if it later proves wrong/configure-rolesDetect environment and generate customized role-based preamble templates for your Thrum agents. Creates .thrum/role_templates/ files that auto-apply on agent registration.
/coordinator-context-monitoringUse when managing live implementer/brainstormer agents during a long coordination session, at epic merge gates, after a busy dispatch hour, or whenever you suspect an agent is approaching context limits. Prevents 97%-context silent blow-ups by running a sweep + pre-emptive restart before the agent degrades. Safe to wire into a recurring cron that INVOKES this skill — the skill applies tier-ladder judgment, only firing autonomous restarts at the >85% tier. What's forbidden is a cron/script that fires restarts unconditionally without going through this skill's tier ladder./coordinator-managing-state-and-lifecycleUse when ending a session, when updating project state, when managing beads epics, or before session close. Loads coordinator-specific discipline for owning project state and shepherding the team's lifecycle./coordinator-post-restart-sweepUse immediately after the coordinator returns from a restart, compaction, or extended absence — as the first deliberate action post-prime. Detects agents whose latest assistant message indicates they are blocked waiting for a coordinator decision the coordinator may not have seen (question surfaced in pane, not in inbox). Safe to run any time the session feels "we've been gone a while"; not just post-restart. Pairs with the coordinator-context-monitoring sweep (sibling sweep, different lens)./coordinator-running-brainstorm-cyclesUse when starting a brainstorm for a bug fix, feature, or architectural decision the coordinator can't trivially decide alone — spawns a researcher in an isolated worktree, runs the brainstorm interactively with the user, iterates dual-review cycles to ready-to-merge, optionally drives an overarching coherence pass when multiple sibling brainstorms close, then hands off to project-setup. Saves coordinator context by isolating brainstorm work in a sub-agent worktree rather than burning main-context tokens on Q-by-Q dialog.npx claudepluginhub thrum-team/thrum --plugin thrumOther plugins' skills for the same job