Teams

opus killer feature

Quick reference

FieldValue
Command/brewcode:teams
Argumentscreate <name> [prompt], status <name>, update <name>, cleanup <name>
Modelopus
ToolsRead, Write, Edit, Glob, Grep, Bash, Task, AskUserQuestion

Modes

StepAction
1Analyze project with 3-5 Explore agents
2Propose 3 team variants (Minimal/Balanced/Maximum)
3User selects variant and default model
4Create agents in batches of 3-4 via agent-creator
5Set up team.md + trace.jsonl in .claude/teams/
StepAction
1Read trace.jsonl via trace-ops.sh read
2Calculate per-agent success rates
3Classify health: green/yellow/red
4Report issues and insights from trace data
StepAction
1Analyze performance data
2Identify underperformers
3Tune instructions or replace agents
4Update team.md roster
StepAction
1Archive old trace data to trace-archive.jsonl
2Remove inactive agents
3Reset trace cursor

CREATE Flow

  1. Project AnalysisC1

    3-5 Explore agents scan code structure, tech stack, CI/CD, domain boundaries in parallel.

  2. Team ProposalC2

    3 variants: Minimal (5) / Balanced (10-12) / Maximum (15-20). User confirms via AskUserQuestion.

  3. Model SelectionC2.5

    Choose default model: Opus (recommended) / Sonnet / Haiku / Mixed per-agent.

  4. Agent CreationC3

    agent-creator x N in batches of 3-4 parallel. Each agent gets unified template + text-optimize.

  5. Framework SetupC4

    team.md + trace.jsonl in .claude/teams/ + verify-team.sh validation.

Task Acceptance Protocol

πŸ›‘οΈ

Domain Check

Agent evaluates: β€œIs this my domain?” If not, refuses and suggests a better-suited colleague from the team roster.

πŸ”

Duplicate Check

Agent checks: β€œHas this already been done?” If yes, refuses and links to the existing result in trace.jsonl.

πŸ‘«

Best Candidate

Agent considers: β€œIs a colleague better suited?” If yes, refuses and redirects to the recommended agent.

Framework Files

πŸ“

team.md

Agent roster: names, domains, missions, health status. Source of truth for the team composition.

πŸ“Š

trace.jsonl

Unified JSONL log: tasks (took/refused/completed/failed), issues (by severity), insights (by category). Agents write via trace-ops.sh add (Bash append, ~96% token savings). Session-scoped via SID.

Agent Health

HealthCriteriaAction
Green>70% success rate, active in recent tasksNo action needed
Yellow30-70% success rate or many refusalsReview instructions, consider tuning
Red<30% success rate or inactiveReplace or remove via update mode

Integration with Core Skills

Team agents are automatically preferred by /brewcode:spec, /brewcode:plan, /brewcode:start when matching domains are found. Priority: team agent β†’ project agent β†’ plugin agent. Agents can refuse tasks and suggest a better-suited colleague.

SkillRelationship
/brewcode:setupRun first to analyze project structure
/brewcode:specCreate task specifications for agents to execute
/brewcode:planBuild execution plans from specs
/brewcode:startExecute plans using the created team