/mstack:m-teamfrom mstack
Creates an evolving multi-agent team that redesigns roles each round to push open-ended optimization goals (speed, score, pass rate) past plateaus. Takes over from m-goal for large-budget exploration.
Ships in mstack. 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.
Read when SKILL.md points to them.
m-team attacks objectives with no single "done": push a metric (speed, score, pass rate) as far as the budget allows. Work runs in rounds; after each round a supervisor studies the measured outcome, diagnoses why progress stalled, and redesigns the team — roles, coordination shape, knowledge placement — before launching the next round. Dispatch mechanics stay in m-dispatch; the goal file and closeout stay in m-goal.
Use when:
m-goal or the user.Do NOT use when:
m-dispatch round instead.m-dispatch.m-plan + m-dispatch under m-goal.First line you say: Using m-team: run a measured round, compare to solo, redesign or stop.
A team is kept only while it beats solo by more than the noise band you wrote before scoring.
Closed loopholes: widening the band after the result, reading a gain from one run, scoring with a judge who wrote a candidate or shares a family with one, and "the team felt better" all count as no gain. Breaking the letter of this rule is breaking its spirit.
.mstack/team/<slug>/. If m-goal handed the objective over, note its goal-file path — the closeout remains m-goal's job. Copy references/team-config-template.md to v1.md and fill it in.LEARNINGS.md (append-only empirical observations, each with its evidence), SYNTHESIS.md (actionable conclusions — every new role reads it before starting), history.md (the supervisor's per-round reflection and design decision), rulings.md (Ruling: decision | reason | cost if wrong, one line per call the steps do not decide). Each new round inherits all prior failed attempts and successful strategies.references/role-catalog.md is a starting menu, not a fixed roster. Each role gets: its duty, what it may change, what it must not touch, and the evidence it must deliver. Pick one coordination shape (solo / pipeline / parallel branches), fix which file or branch each role writes to, and set the round budget and the gates every candidate must pass. In the same file, before anyone is scored, write the noise band: the spread of this metric on unchanged code from earlier measurements, or, if you have none, the smallest delta the measuring command can resolve, marked weak. Do not set the band from this round's team-minus-solo gap.m-dispatch. One workspace per role; no two roles edit the same file. Every role prompt names its file/branch outputs and requires reading SYNTHESIS.md first. Pick each role's route and brief wrapper by m-dispatch's references/model-routing.md. When the shape is pipeline or parallel, also dispatch one solo agent whose cap equals the round budget (the team's shared cap, not one role's slice). The solo agent is not a role: it runs as a subagent with its own worktree as cwd, never in the lead's cwd, and writes only there. A round whose shape is already solo does not spawn a twin. Execution backends are m-dispatch's; add Orca only when orca is on the PATH. In DSH, references/dsh-team.md maps the round onto native team tools.LEARNINGS.md. The judge comes from a family that no candidate used, including the solo run (m-dispatch, references/model-routing.md, "Judge family"); a second Claude tier does not count. In plain Claude Code that family is reached through mola run --kind review or DSH with a different-family route (model-routing.md, "In plain Claude Code"). It is someone who did not author a candidate: the Auditor if this round has one and the family differs, otherwise a fresh agent on another family. The judge sees only labels (A, B, …), artifacts, and gate output — not role names, model names, authors, role prompts, or v<N>.md. The solo run uses a label of the same form; keep the label-to-author map out of the packet. After scores return, write the map into history.md and into the round-close section of v<N>.md. Then unblind. Gain is how far the team's best beats solo in the metric's success direction (higher-is-better: team − solo; lower-is-better: solo − team).references/supervisor-checklist.md: the solo comparison first, then metrics vs gates, then the failure patterns; classify the stall as knowledge gap / exhausted search / discipline problem; append the reflection and the new design to history.md; write v<N+1>.md only if the team still beats solo by more than the noise band.m-goal for the closeout.| Claim | Evidence required | Evidence that is NOT enough |
|---|---|---|
| Team beat solo | metric from the same command and budget, gain larger than the band written earlier | a single run; a band set after seeing it |
| Scores are fair | label-only packet, judge family absent from all candidates, map written after scoring | judge is another Claude tier; judge saw role names |
| A role delivered | the artifact on disk, diffed against its claim | the role's message that it agreed or finished |
| You will be tempted to think… | Reality |
|---|---|
| "The team is ahead, one more round will widen it." | A team can add little over one agent at equal budget; stop when the gain is inside the band (research/papers.md §G). |
| "My model tier differs from the author's, so the judge is independent." | Tiers of one vendor are one family (research/round3/pstack-craft.md §3.1); a panel must span families. |
| "The Auditor saw the role names, but it was fair." | Blind labels only (research/pstack.md #12). Unblind after scores are written. |
| "The solo baseline can run in my own cwd while the team works." | Teammates share the lead's cwd; a baseline there is contaminated, so the gain means nothing (reviews/2026-11-07-round3.md #6). Use subagent with its own worktree cwd. |
| "Each teammate has its own directory." | Teammates share the lead's cwd, with no lock; write_scopes is only advisory (dsh-team.md §1). |
| "m-team can write the closeout; it knows the result." | Two skills once claimed the same closeout (reviews/2026-11-04-acceptance.md #2). m-goal owns it. |
Red flags — stop and fix: a role's message is quoted as evidence; the band is blank or newer than the scores; the label map is in the judge's packet; the judge and a candidate share a family; a "stalled" run has no v<N>.md round-close block.
.mstack/team/<slug>/v<N>.md — one per round: roles, coordination shape, knowledge placement, budget, noise band, gates. The solo map is not in the copy you send to the scorer..mstack/team/<slug>/LEARNINGS.md, SYNTHESIS.md, history.md, rulings.md — persistent knowledge, updated every round. history.md records solo metric, team-best metric, the band, and the label map after scoring.m-goal, which writes the closeout.v<N>.md → stop teaming and hand back to m-goal. Do not open another multi-role round to hunt for a gap. A weak band still stops the team.m-goal; do not launch a third identical round.mola run / DSH route available) → declare same-family in the report, score with that mark, make no gain claim; one more round at most.m-implementer, read-only roles are m-explorer, the scorer is m-reviewer (Claude Code subagent_type: "mstack:m-implementer" and so on), on a route whose family differs from the candidates.mola run or DSH with a different-family route; the Agent tool alone only reaches Claude. Trigger the supervisor with ScheduleWakeup / CronCreate or at each round's end; roles run as Agent subagents via m-dispatch.dsh/mstack-team/), roles are spawn_teammate, the board is team_task_*, rounds are create_goal with max_goal_rounds, wake-ups are schedule_create; details in references/dsh-team.md. Without it, roles go through subagent / workflow per m-dispatch. Teammates share the lead's cwd, so code roles need worktrees the lead made first.codex exec starts each round; all state lives in .mstack/team/<slug>/ so any harness can resume.orca is on the PATH): start each role with orca orchestration worker-start --spec "<role spec>" --worktree current --agent codex|claude (own checkout: --worktree new-top-level --repo id:<repoId> --name <short-name>), then end your turn — Orca wakes you, never poll. Steer a role with orca orchestration send --to dispatch:<id> --subject … --body …; worker_done settles a role, while an escalation carrying stopReason means the role quit without delivering.What SKILL.md sets; muted values are Claude Code's defaults
Open-ended optimization or exploration with a large budget, where a solo agent or a fixed setup plateaus; takes such goals over from m-goal and hands the closeout back to it.
Three short reads, in order
agent-team, optimization, multi-agent, plateau-escape, role-redesign
npx claudepluginhub mola-maker/mstack --plugin mstack17 skills in this plugin
/m-cuaDrive a real desktop app, Android device or browser to prove L3/L4 acceptance. Use for 点一下/操作界面/真机验收/computer use./m-debugRoot-cause a bug or failing test: reproduce, competing hypotheses, regression test. Use for debug一下/为什么报错/这个测试挂了./m-deslop删掉 AI 味和冗余——多余注释、死代码、无谓抽象、套话堆砌,先保护行为再减。Use when the user says "deslop / 去AI味 / 删冗余 / 这段太啰嗦 / 精简一下", or a diff feels bloated./m-dispatchFan independent subtasks out to Claude subagents, DSH headless, Codex or Orca; isolate, merge, verify. Use for 分派/并行/开N个agents./m-goalLong-running goal loop: goal file, checkpoints, stop rules, mandatory closeout. Use for run-until-done work, 别停/一直做到完成./m-guardGuardrails: destructive-command checks, folder freeze, plugin vetting, loop brake, known traps. Use for 小心点/冻结目录/这插件安全吗/死循环了.Other plugins' skills for the same job