/thrum:coordinator-post-restart-sweepfrom thrum
Sweeps agent transcripts for waiting-on-coordinator messages after restarts or extended absences, flagging agents blocked on decisions the coordinator may have missed.
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.
The canonical trigger: post-prime, as your first deliberate coordinator action. Restarts and compactions wipe in-flight context; an agent who surfaced a question 20 minutes before your restart will still be standing at-pane with their question visible — but the question lives in the agent's JSONL transcript, not in your inbox. The sweep reads each agent's latest assistant message body, pattern-matches against a library of empirically- observed waiting-on-coord phrasings (mined from the project's conversation archive per thrum-e1n0), and flags hits.
Other reasonable triggers:
bash scripts/waiting-on-coord-agent-sweep.sh --out /tmp/waiting-on-coord.txt
cat /tmp/waiting-on-coord.txt
The script enumerates alive Claude agents (Codex/Cursor/OpenCode runtimes are
skipped at v1 — pa34 epic backlog), extracts each agent's latest assistant
message body from the JSONL transcript at
~/.claude/projects/<encoded-worktree>/<session>.jsonl, and pattern-matches
against the regex library. Exit code is 0 if zero flagged, 1 if any flagged
— safe to chain into cron / hooks.
Edge case: only the last 200 JSONL entries are scanned. An agent whose latest assistant message is older than the last 200 entries (e.g., a very active tool-call burst since the last assistant turn) is silently skipped. Rare in practice; raise the tail window in the script if it bites.
Output per flagged agent: agent identity + tmux session + worktree + idle time + matched pattern labels + the last ~15 lines of the assistant message body as an excerpt.
For each ===== @<agent_id> · ... ===== block in the report:
bd remember or dev-docs/?| Situation | Action |
|---|---|
| You know the answer / direction | Respond directly via thrum send "..." --to @<agent> |
| Needs Leon's judgment (escalation) | Add to PENDING LEON section; surface in next user turn (see feedback_surface_pending_leon_questions) |
| Needs investigation before you can answer | Ack via thrum send "investigating — back in <N>min" --to @<agent> so they know they're seen |
| False positive — agent isn't actually blocked | No action. Optionally bd remember the false-positive pattern for future tuning |
| Agent's question is stale (already resolved) | Reply briefly with the resolution + pointer to where it was decided |
The decision tree is judgment work, not script automation. The sweep does not auto-respond, auto-nudge, or auto-escalate — coord IS the recipient of the report, and the right next action is context-dependent (per thrum-e1n0 scope-clarification with @impl_v0105: report-only, no auto-action).
After responding to all flagged agents:
bash scripts/waiting-on-coord-agent-sweep.sh
Convergence check: ideally zero flagged. If the same agent is still flagged, either:
scripts/waiting-on-coord-agent-sweep.sh (file a P3 bd if the false positive
is structural)scripts/waiting-on-coord-agent-sweep.sh (Claude-only at
v1; non-Claude runtimes via thrum-pa34 epoch adapters when available)tests/scripts/fixtures/waiting-on-coord/ — 6 positive and
3 negative real-conversation excerpts, validated by
tests/scripts/waiting_on_coord_patterns_test.sh.scripts/error-and-context-agent-sweep.sh — same
enumeration substrate, different lens (ctx % + api_errors instead of
waiting-on-coord). Future refactor opportunity: extract a shared
identity-enumeration + JSONL-resolution helper when a third sweep variant
lands.feedback_surface_pending_leon_questions — escalations to Leon go in a
top-level PENDING LEON section and re-surface every turn until answeredfeedback_byte_equality_pane_detection — when in doubt about an agent's
state, prefer JSONL substrate over pane diffsreference_claude_jsonl_state_source — the JSONL transcript is the
authoritative state source for Claude agentsThe pattern library is v1, mined from a finite slice of project history. Expect false positives + false negatives in the early weeks. When you see either:
tests/scripts/fixtures/waiting-on-coord/, add a regex rule to the pattern
library in scripts/waiting-on-coord-agent-sweep.sh, and run the test
harness.Refinements land as small feat(scripts) commits. Track structural improvements
(beyond regex) in a future bd ticket.
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.npx claudepluginhub thrum-team/thrum --plugin thrumOther plugins' skills for the same job