/thrum:coordinator-running-brainstorm-cyclesfrom thrum
Orchestrates isolated brainstorm cycles for architectural decisions, bug fixes, or features. Spawns a researcher in a worktree, runs interactive brainstorming with dual-review cycles, then hands off to project-setup.
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.
A coordinator-orchestrated brainstorm is the right shape when:
Don't use when:
adversarial-critique skill for in-flight design forks instead.This skill owns the entire researcher-side design pipeline with review gates at every stage:
project-setup + dual-review
the impl prompt → 8. Hand off to coord for implementer dispatch.Three explicit review gates at stages 3, 6, and 7 — same dual-axis pattern
each time (verify-against-source + a prose-quality reviewer, sonnet sub-agents
in parallel — see "Review-loop mechanics" below). Skipping any review gate is a
documented anti-pattern. The brainstorm review catches design issues; the plan
review catches contract-drift and quality issues writing-plans' internal
reviewer misses; the prompt review catches plan→prompt translation errors before
the implementer executes against them.
Every prose gate uses the SAME machinery. Define it once here; each phase below names only its stage-specific source.
| Axis | Reviewer | Notes |
|---|---|---|
| Conformance | verify-against-source (thrum-owned skill) | Does the artifact honor its INPUT(s)? Replaces verify-against-plan at prose gates — verify-against-plan BAILS without a code diff + a File-Structure table, so it cannot run on a brainstorm/plan/prompt. verify-against-source accepts a prose artifact + source doc with neither. |
| Quality | general-purpose sonnet + prose-quality rubric (PRIMARY) ∥ superpowers:requesting-code-review (SUPPLEMENTARY) | The general-purpose prose-quality pass (internal consistency, gaps, contradiction, ambiguity, scope creep) is AUTHORITATIVE. requesting-code-review is diff/code-native, so run it as a supplementary fresh-eyes pass pointed at the artifact's commit range (HEAD~1..HEAD) — gated on the skill being resolvable; skip gracefully if absent. |
Both are general-purpose, model: "sonnet", run_in_background: true. Wait
for BOTH before consolidating. Verify each BLOCKING against source before
forwarding.
<!-- THRUM-GATE: stage=<brainstorm|plan|prompt> next=<dual-review|writing-plans|project-setup|dispatch> -->requesting-code-review pass a real HEAD~1..HEAD range.stage=, verdict=, cycle=, date=;
case-sensitive — exactly Ready:Yes / OVERRIDE; never grep -i) so a
literal grep -F matches:
<!-- THRUM-REVIEW: stage=<S> verdict=<Ready:Yes|OVERRIDE> cycle=<N> date=<YYYY-MM-DD> [by=<agent> reason="..."] -->Before invoking writing-plans (Phase 6) and before project-setup (Phase 7),
grep -F the prior artifact for THRUM-REVIEW: stage=<S> verdict=Ready:Yes (or
verdict=OVERRIDE); absent → STOP and run the review first. This is a STRONG
BEHAVIORAL guardrail, NOT a mechanical gate — an agent can ignore it. The only
structurally-enforceable gate is project-setup Phase 0 (it hard-bails).
Ready:Yes = ZERO BLOCKING findings remain. IMPORTANT/MINOR may be
acknowledged-and-deferred without another cycle via a footer line:
<!-- THRUM-DEFER: stage=<S> cycle=<N> item="IMPORTANT #2" reason="<why + tracking ref>" -->
(any THRUM-DEFER still present at project-setup is surfaced in its Phase 0 /
override audit).verdict=OVERRIDE … reason="…") or redirects.The wrapper drives superpowers:brainstorming / writing-plans. Two distinct
pre-flight behaviors:
requesting-code-review not resolvable → SKIP the supplementary quality pass
gracefully (the loop still runs on the general-purpose primary).brainstorming / writing-plans not present → BAIL with an install
instruction (/plugin install superpowers@<marketplace>).verify-against-source carries no superpowers dependency and always works.
brainstorming auto-chains to writing-plans, and writing-plans defaults
pull toward subagent-driven execution — both bypass thrum's project-setup. At
each invocation, inject (keyed on the concept, so it survives upstream
rewording):
Regardless of any execution-handoff, "recommended" sub-skill, or save-location default these skills emit, the ONLY downstream path in thrum is the next thrum stage. After the artifact is written, STOP — do not auto-chain. Save to the thrum path, not the superpowers default. For
writing-plans: remove/replace the plan-header line matching the stable substringREQUIRED SUB-SKILL: Use superpowers:subagent-driven-developmentand ignore the Execution-Handoff offer — the plan feedsproject-setup.
| Topic shape | Base branch |
|---|---|
| Bug fix, hardening, infra cleanup belonging to current release line | thrum-dev |
| Work belonging to a multi-epic version program (e.g. v0.11 personal-agent substrate) | The version's long-lived branch (e.g. thrum-agents) |
| Work tied to an existing feature epic with its own long-lived branch | That branch |
When in doubt, ask the user. Don't branch from upstream/* (per the global
git-safety rule).
<topic>-brainstorm — kebab-case, descriptive of the
topic, ends with -brainstorm so it's instantly recognizable in
git worktree list. Examples: inbox-race-brainstorm, agents-brainstorm,
email-brainstorm.feature/<topic>-brainstorm (or fix/<topic>-brainstorm if
the topic is a bug fix).researcher_<topic_underscore> — matches the
<role>_<module> convention. Examples: researcher_inbox_race,
researcher_scheduler.<topic_underscore> — short, lowercase, underscored.# 1. Branch + worktree
git worktree add -b feature/<topic>-brainstorm \
/Users/<you>/.thrum/worktrees/thrum/<topic>-brainstorm \
<base-branch>
# 2. Register the agent and create the tmux session in one call
thrum tmux create <topic>-brainstorm \
--cwd /Users/<you>/.thrum/worktrees/thrum/<topic>-brainstorm \
--role researcher \
--name researcher_<topic_underscore> \
--module <topic_underscore> \
--intent "Brainstorm: <one-line topic description>" \
--runtime claude
# 3. Launch the runtime in the session
thrum tmux launch <topic>-brainstorm
The runtime auto-primes via the SessionStart hook. Do NOT manually inject
/thrum:prime via send-keys (per coordinator-dispatching-work discipline).
The briefing message is a structured handoff. Always send it via thrum send,
not tmux send-keys (per coordinator-dispatching-work).
Always include this verbatim block at the top of the briefing. It encodes a hard-won lesson: researchers who pre-emptively draft brainstorm docs without the user produce confident-but-wrong commitments that cost a full review cycle to undo. The "interactive scribe" framing keeps the user in the loop and the researcher in capture-mode rather than design-mode.
═══ INTERACTIVE-WITH-LEON SCRIBE PROTOCOL ═══
Stand by at-pane. Do NOT autonomously draft a brainstorm doc. <user> will
join your pane when they're ready and drive the brainstorm Q-by-Q. Your job
is to surface the questions, present options + reasoning per question,
capture decisions verbatim, and keep the brainstorm doc under user control.
The 'researcher-rule-interactive-brainstorm-scribe' rule applies — no
premature autonomous drafting.
(Replace <user> with the actual user's name. The bd memory key
researcher-rule-interactive-brainstorm-scribe propagates the rule across
researcher restarts.)
Every briefing should include these sections (use ═══ headers for visual
distinction in the inbox display):
dev-docs/brainstorms/<YYYY-MM-DD>-<topic>-brainstorm.md. Include the
"Decision Summary table at the bottom is canonical" framing. Explicitly say
NOT to pre-write the design spec until review feedback has landed.superpowers:brainstorming's terminal state is
"invoke writing-plans". Tell the researcher explicitly: when brainstorming
reaches that terminal state, STOP at the design doc — do NOT auto-chain to
writing-plans. The brainstorm goes through the Phase 3 review gate first,
then Phase 6 runs writing-plans deliberately (with its own countermand).
See "Review-loop mechanics → Countermand the superpowers chain."Send the whole thing as one thrum send call. The recipient's runtime will
display it as a single inbox message; structure beats brevity here.
Some users have a global ~/.claude/CLAUDE.md rule that reads "always run thrum
commands from the main repo directory." That rule is correct for the
main-repo-resident coordinator agent — but it inverts for worktree-resident
researchers. A researcher running thrum from the main repo path resolves
identity to the coordinator's name (e.g. @coordinator_main) and sends every
message under the coordinator's identity, polluting audit trails.
The correct rule is: agents run thrum commands from their OWN home directory. Coordinator from main repo. Researcher from their worktree. Never run thrum from a worktree that isn't yours (that's the underlying intent the buggy global rule was reaching for).
Always include an explicit instruction in the Identity-Reminder section of the briefing, e.g.:
⚠ Run thrum commands from THIS worktree
(/Users/<you>/.thrum/worktrees/thrum/<topic>-brainstorm), not from the
main repo or any other worktree. The global CLAUDE.md "main repo only"
rule is correct for coordinators but inverts for worktree-resident
agents — your identity file lives in this worktree, and running thrum
from anywhere else will impersonate whoever owns that path.
Project-local capture: run bd memories coordinator-rule-thrum-from-own-home to
see the canonical version of this rule. If your project doesn't have it, the
researcher's first restart may re-inherit the buggy global rule.
When the researcher reports the brainstorm is ready for review, run the two-reviewer dual review per "Review-loop mechanics" above.
verify-against-source — artifact = the brainstorm doc;
source(s) = parent decisions, the feature request, the ticket, and any
sibling brainstorms.requesting-code-review
SUPPLEMENTARY (internal consistency, technical soundness, anti-patterns,
gaps).Both general-purpose, model: "sonnet", run_in_background: true. Have the
researcher append the gate footer and commit (in their own worktree) BEFORE you
spawn the dual-review sub-agents — the brainstorm lives in the researcher's
branch, and the supplementary requesting-code-review pass needs a real
HEAD~1..HEAD diff. Wait for BOTH before consolidating; verify each BLOCKING
against source before forwarding. Apply the footer → commit → stamp protocol and
the loop semantics (Ready:Yes = 0 BLOCKING, per-stage 3-cap, override) from
"Review-loop mechanics". On terminate, the researcher stamps the brainstorm:
<!-- THRUM-REVIEW: stage=brainstorm verdict=Ready:Yes cycle=<N> date=<YYYY-MM-DD> -->.
Send ONE numbered list to the researcher per thrum send, ordered:
Include "no-action positive tick-offs" at the bottom — this gives the researcher confidence about what's already correct and prevents over-editing.
When the researcher reports their fixes are done:
When the verification passes, send the researcher an explicit "APPROVED — ready to merge" with stand-down instructions.
If the topic is part of a larger program with multiple parallel brainstorms, once all sibling brainstorms reach ready-to-merge, fire an opus-tier coherence + implementability pass over the corpus before specs are written.
Two parallel passes (background, opus model — escalate from sonnet because this is genuinely cross-cutting reasoning over a large corpus):
| Pass | Focus |
|---|---|
| Coherence / Contradiction | Direct contradictions between brainstorms, hidden cross-doc assumptions, vocabulary drift, reserved-field collisions, lifecycle composition, end-to-end event flows, cumulative parent-honor |
| Implementability / Execution | Realistic ship-cost, critical-path bottlenecks, capability assumptions that may not hold, test surface, operator-experience journeys, sub-epics needing split, sequencing risk |
Both passes read the full brainstorm corpus + parent decisions + roadmap + any existing companion specs. Their job is NOT to re-derive single-brainstorm findings — it's to surface integration-layer issues that no single review could see.
Findings from this pass go back to the relevant researchers (or to a follow-up brainstorm if the issue spans multiple). Do not skip this pass when ≥ 3 brainstorms close in the same program — the integration layer is where the most expensive footguns hide.
Once the brainstorm is LOCKED (and any companion design spec is LOCKED), the
researcher runs superpowers:writing-plans to convert brainstorm + spec into
the implementation plan doc. (First, the soft pre-flight grep: grep -F the
brainstorm for its THRUM-REVIEW: stage=brainstorm verdict=Ready:Yes (or
OVERRIDE) stamp — absent → STOP and finish the brainstorm review.) Inject
the outcome-based countermand (see Review-loop mechanics) at the
writing-plans invocation: stop when the plan is written, save to the thrum
path, and strip the subagent-driven-development plan-header line — the plan
feeds project-setup, not superpowers execution.
The plan doc gets the SAME dual-review treatment as the brainstorm. This
review step is mandatory — writing-plans has an internal reviewer, but real-
world experience shows that's not sufficient. Independent review catches
contract-drift and quality issues the internal reviewer misses.
The researcher (not coord) dispatches the dual-review in their own worktree:
writing-plans skill (countermand applied).verify-against-source — artifact = the plan;
source(s) = the brainstorm + the design spec. Verifies the plan honors
every LOCKED decision; flags missing scope, silent deviation, over-scoping.requesting-code-review SUPPLEMENTARY — per-task acceptance-criteria
precision, anti-pattern enumeration, risk-register completeness, sequencing
logic.<!-- THRUM-REVIEW: stage=plan verdict=Ready:Yes cycle=<N> date=<YYYY-MM-DD> -->.If the researcher skips this step, send them back. Before Phase 7, the soft
pre-flight grep (Review-loop mechanics) confirms the plan carries the
stage=plan verdict=Ready:Yes (or OVERRIDE) stamp. Don't let them proceed to
project-setup until the plan has passed dual-review.
Plan LOCKED → researcher runs thrum:project-setup to produce the bundled
output: bd tickets + implementer prompt + cross-references.
The implementer-prompt doc gets the SAME dual-review treatment as the plan. The prompt is the artifact the implementer executes against turn-by-turn; errors propagate. The plan dual-review caught contract-drift in the plan; the prompt review catches translation errors (plan → prompt) plus prompt-specific quality (instructions clarity, anti-pattern enumeration, dispatch-readiness).
The researcher (not coord) dispatches the post-setup dual-review:
project-setup skill (bd tickets + prompt land together).
Note: project-setup Phase 0 hard-bails unless the plan carries its
stage=plan verdict=Ready:Yes/OVERRIDE stamp — Phase 6 must have stamped
it.verify-against-source — artifact = the impl prompt;
source(s) = the LOCKED plan + the bead task descriptions (dump
bd show to a temp file so the sub-agent can read the per-task ACs).
Verifies the prompt faithfully translates per-task content + ACs + risk
callouts; flags missing scope, divergent wording, dropped anti-patterns.requesting-code-review SUPPLEMENTARY — clarity, scope language,
dispatch-readiness, sub-agent model guidance, DONE-shape spec.project-setup
appends the prompt-stage stamps (it OWNS them — see that skill's Step 5):
first <!-- THRUM-GATE: stage=prompt next=dispatch --> immediately after the
prompt is generated, then
<!-- THRUM-REVIEW: stage=prompt verdict=Ready:Yes cycle=<N> date=<YYYY-MM-DD> -->
after this review terminates.Reaffirmation (countermand at the prompt stage): project-setup is the only
downstream path — do not adopt subagent-driven-development execution even if a
superpowers skill suggests it.
If the researcher signals "project-setup complete" WITHOUT mentioning the post-setup reviews, ASK explicitly: "did the post-setup dual-review run on the impl prompt?" Send them back if not. The artifact the implementer executes must be reviewed.
With plan LOCKED + reviewed AND project-setup complete + reviewed:
❌ Pre-emptive autonomous spec. Researcher writes the design spec without
review feedback on the brainstorm. Costs a full review cycle to undo and reduces
the brainstorm to a write-only artifact. The
researcher-rule-interactive-brainstorm-scribe bd memory rule blocks this;
include the verbatim protocol block in every briefing.
❌ Half-batched findings. Sending review findings before BOTH dual reviews complete. Researcher fixes batch 1 and never sees batch 2.
❌ Skipping the post-plan dual-review. Treating writing-plans skill's
internal reviewer as sufficient and proceeding directly to project-setup
without an independent review of the plan doc. Documented gap as of S76
(2026-05-20); see bd memories feedback-post-project-setup-review. The plan and
the impl prompt MUST get the same dual-axis review treatment the brainstorm gets
— Phase 6 + Phase 7 explicit.
❌ Skipping the post-project-setup dual-review on the impl prompt. The
prompt is the artifact the implementer executes against turn-by-turn. Errors in
it propagate into every task. project-setup runs the bundle (bd + prompt)
mechanically; the prompt content is the implementer's spec. Treat it as such and
review it before dispatch.
❌ Misread BLOCKINGs forwarded as gospel. Reviewers (sub-agents) sometimes misread cited code or stretch citations. Spot-verify any BLOCKING that names a specific file/line/symbol before forwarding.
❌ thrum message read --all mid-brainstorm. Classic timing bomb: read
message A → message B arrives during the read → --all silently marks B read →
B is never seen. Use thrum message read <id> [<id>...] with specific IDs
instead, especially when juggling multiple researchers.
❌ Sub-agents into the researcher's worktree.
feedback_no_subagents_to_worktrees applies. If you need code research in the
brainstorm worktree, ask the researcher to do it; if you need broad codebase
exploration, spawn an Explore sub-agent in the main repo path, not the
worktree path.
❌ Skipping the coherence pass. When ≥ 3 sibling brainstorms close in the same program, integration-layer issues that no single review can see are virtually guaranteed. Fire the opus pass; it's worth the cost.
❌ Renaming brainstorm researchers between topics. Identity is bound to the worktree. If a topic is done, kill the tmux session and tear down the worktree; don't rebind the agent name to a different topic in place.
If you need a concrete reference for the briefing structure, dual-review cycles, and overarching coherence pass, look at the v0.11 personal-agent substrate program (started 2026-05-13):
dev-docs/brainstorms/2026-05-13-thrum-agents-{a,b,c,d}-b1-brainstorm.mddev-docs/thrum-agents/brainstorming-roadmap.md + bd thrum-6qmf@researcher_scheduler, @researcher_agents,
@researcher_skills, @researcher_email) ran the pattern end-to-end.Project-local rules under bd memories coordinator-rule- were loaded at session
start by your preamble. If a project-local rule conflicts with this skill, 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 about brainstorm orchestration, capture it via:
bd remember --key coordinator-rule-brainstorm-<slug> "<rule + Why + How to apply>"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
brainstorm, coordination, design-review, worktree, sub-agent, research
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-dispatching-workUse when starting an epic, dispatching to an implementer, creating a worktree for an agent, or spawning a sub-agent. Loads coordinator-specific discipline for kicking off implementation work./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).npx claudepluginhub thrum-team/thrum --plugin thrumOther plugins' skills for the same job