/thrum:efficient-multi-agent-researchfrom thrum
Partitions codebase research tasks with >6 items across parallel sub-agents that write findings to disk, then consolidates them into a single report to avoid polluting main context.
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.
When investigating N items (N > 6), reading everything into the main agent's context pollutes it and degrades decision-making. Instead, partition the work across parallel sub-agents that write findings to disk, then consolidate into a single report.
Core principle: The coordinator decides, sub-agents investigate. Keep investigation results out of the main context until consolidated.
REQUIRED BACKGROUND: You MUST understand superpowers:dispatching-parallel-agents before using this skill. That skill covers general parallel dispatch. This skill extends it with a specific research workflow: partition, investigate to disk, consolidate, then decide.
Use when:
Don't use when:
Create output directory: mkdir -p dev-docs/<topic>/ — if re-running,
archive previous findings_*.md to a subdirectory (e.g., run-01/) before
starting so the consolidation glob only picks up current results.
Launch investigation agents — all in one message, all
run_in_background=true:
Agent(run_in_background=true,
prompt="Investigate items A-D. Write to dev-docs/<topic>/findings_1.md
using table schema: [columns]. Flag uncertainties.")
Agent(run_in_background=true,
prompt="Investigate items E-H. Write to dev-docs/<topic>/findings_2.md ...")
Specify exact table columns and consistent formatting in every prompt.
Wait for all background agents to complete.
Launch consolidation agent — always request these four elements:
Agent(prompt="Read all dev-docs/<topic>/findings_*.md.
Create consolidated_report.md with:
1. Unified table merging all agent tables
2. Cross-cutting patterns across findings
3. Summary statistics (e.g., '12/17 need fixes')
4. Prioritized recommendations")
Review only consolidated_report.md — never read individual findings
files into the main context.
| Aspect | Guidance |
|---|---|
| Group size | 4-5 items per agent |
| Agent count | Typically 3-5 |
| Agent mode | Always run_in_background=true |
| Output | dev-docs/<topic>/findings_N.md per agent |
| Consolidation | Always a dedicated agent writing consolidated_report.md |
Research dispatches almost always want sonnet (sometimes haiku for pure
mechanical gather-and-tabulate work). Opus is rarely justified for research —
the investigation prompts are narrow and the output is tabular, so frontier
reasoning buys nothing.
Every Agent dispatch must pass model explicitly; never let sub-agents
inherit the parent (often Opus) by default. See
~/.claude/CLAUDE.md § Sub-Agent Model Selection for the full tier table and
decision rule.
Skipping consolidation - Reading 4 separate findings files into main context defeats the entire purpose. Always launch a consolidation agent.
Groups too large - More than 5 items per agent gives diminishing returns. Partition further.
Using foreground agents - Blocks the main agent and loses parallelism.
Always use run_in_background=true.
Reading intermediate files - The main agent should only read the consolidated report, never individual findings files.
Not specifying output format - Agents produce inconsistent formats that are hard to consolidate. Specify table columns in every prompt.
Not specifying output file paths - Agents may write to the working directory or not at all. Always include the exact output path in every prompt.
Task: Investigate 17 call sites of resolveLocalAgentID()
Partition: 4 agents (4-5 call sites each, grouped by source file)
Table schema specified in every prompt:
| Line | Command | How ID Is Used | Behavior for 0/1/multiple | Needs Fix? |
|---|
Result: Main context stayed clean. Consolidation agent identified cross-cutting pattern: "8/17 calls use identity for message filtering." Final report provided prioritized recommendations.
| Variant | When | How |
|---|---|---|
| Quick | Items are independent, output is small | Lightweight consolidation: brief merged summary instead of full synthesis |
| Deep | Very large N (50+) | Multi-level: 8 agents > 2 meta-agents > 1 final report |
| Iterative | Need to refine criteria | Run first pass, update prompts based on patterns, re-run |
adversarial-critique — decision-shaped sister pattern. Use this skill when
investigating what's there across N>6 items; use adversarial-critique when
deciding which option wins among 2-3 design forks.What SKILL.md sets; muted values are Claude Code's defaults
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