Summary
Remove all Agent Teams support (adversarial debate, peer consensus, -teams.md command variants) and the pipeline:orch meta-orchestrator. Agent Teams is a cleanly isolated feature with zero cross-contamination into base commands — removal is safe per ADR-001 (clean break philosophy).
Motivation
- Agent Teams adds complexity (team lifecycle management, debate rounds, cleanup protocols) for marginal benefit over parallel independent agents
- The
pipeline:orch meta-orchestrator (implement→review→resolve chain) can be removed alongside or independently
- Base commands provide identical outcomes without the teams overhead
Scope
| Category |
Files to Delete |
Files to Edit |
| Command variants (-teams.md) |
6 |
0 |
| Agent-teams skill |
3 (shared/) + 6 plugin copies (gitignored, auto-cleaned by build) |
0 |
| Pipeline skill |
1 (shared/) + 1 plugin copy (gitignored) |
0 |
| TypeScript source |
0 |
5 (init.ts, installer.ts, post-install.ts, manifest.ts, list.ts) |
| Plugin registries |
0 |
7 (plugins.ts + 6 plugin.json) |
| Templates |
0 |
1 (settings.json) |
| Tests |
0 |
9 files |
| Documentation |
0 |
6 (CLAUDE.md, READMEs, reference docs) |
| Total |
~10 files deleted |
~28 files edited |
Detailed Removal Plan
Step 1: Delete files
Command variants (6 files):
plugins/devflow-code-review/commands/code-review-teams.md
plugins/devflow-implement/commands/implement-teams.md
plugins/devflow-plan/commands/plan-teams.md
plugins/devflow-resolve/commands/resolve-teams.md
plugins/devflow-debug/commands/debug-teams.md
plugins/devflow-explore/commands/explore-teams.md
Skills (directories):
shared/skills/agent-teams/ (SKILL.md + references/cleanup.md + references/team-patterns.md)
shared/skills/pipeline-orch/ (or wherever pipeline:orch source lives)
Step 2: TypeScript source edits
src/cli/commands/init.ts:
- Remove
teams?: boolean from InitOptions interface (line 128)
- Remove
--teams / --no-teams CLI options (lines 145-146)
- Remove
let teamsEnabled = false and all uses (lines 373, 402, 443, 462-483)
- Remove
teamsEnabled from installViaFileCopy() call (line 894)
- Remove
teamsEnabled from installSettings() call (line 964)
- Remove
teams: teamsEnabled from manifest features (line 1173)
- Remove
applyTeamsConfig/stripTeamsConfig re-exports (line 36)
- Remove
-teams.md from legacy cleanup loop suffix (line 925)
src/cli/utils/installer.ts:
- Remove
teamsEnabled: boolean from FileCopyOptions (line 110)
- Remove variant selection logic:
teamsVariants set, baseCommands filter, conditional source file selection (lines 173-191) — simplify to just copy all .md files directly
src/cli/utils/post-install.ts:
- Delete
applyTeamsConfig() function (lines 35-43)
- Delete
stripTeamsConfig() function (lines 49-59)
- Remove
teamsEnabled parameter from installSettings() signature (line 304)
- Remove teams conditional logic in
installSettings() (lines 329-331, 358-363)
src/cli/utils/manifest.ts:
- Remove
teams: boolean from ManifestData['features'] type (line 13)
- Remove
typeof features.teams !== 'boolean' validation (line 41)
- Remove
teams: features.teams as boolean normalization (line 60)
src/cli/commands/list.ts:
- Remove
features.teams ? 'teams' : null from formatFeatures() (line 16)
Step 3: Plugin registries
src/cli/plugins.ts:
- Remove
'agent-teams' from skills arrays in 6 plugins (lines 57, 64, 71, 78, 85, 92)
- Remove
'pipeline-orch' from ambient plugin skills (if listed)
- Keep
'agent-teams' in LEGACY_SKILL_NAMES (ensures old installs get cleaned up)
- Clean up debug plugin description mentioning "agent teams" (line 82)
6 plugin.json files:
plugins/devflow-code-review/.claude-plugin/plugin.json — remove "agent-teams" from skills array
plugins/devflow-implement/.claude-plugin/plugin.json — same
plugins/devflow-plan/.claude-plugin/plugin.json — same
plugins/devflow-explore/.claude-plugin/plugin.json — same
plugins/devflow-debug/.claude-plugin/plugin.json — same
plugins/devflow-resolve/.claude-plugin/plugin.json — same
Step 4: Template
src/templates/settings.json:
- Remove
"teammateMode": "auto" (line 41)
- Remove
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" from env (lines 42-44)
- Remove empty
"env": {} if that was the only entry
Step 5: Router skill
shared/skills/router/SKILL.md:
- Remove
devflow:pipeline:orch from ORCHESTRATED table
- Remove
devflow:agent-teams from available skills list (if present)
- Remove PIPELINE row from intent table
Step 6: Tests
Deletable test blocks (entire describe blocks):
tests/init-logic.test.ts lines 134-241 — applyTeamsConfig + stripTeamsConfig suites
tests/resolve/decisions-citation.test.ts lines 139-154 — resolve-teams.md parity tests + lines 224-227
tests/decisions/command-adoption.test.ts lines 85-96 — debug-teams.md suite
Surgical edits:
tests/init-logic.test.ts lines 454, 474, 812, 850 — remove teamsEnabled: false from installViaFileCopy calls
tests/manifest.test.ts ~10 locations — remove teams: boolean from all fixture objects
tests/list-logic.test.ts lines 12-72 — remove teams from all feature objects and assertions
tests/flags.test.ts lines 150, 154 — replace CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS with different example env var
tests/plugins.test.ts line 26 — remove expect(skills).toContain('agent-teams') assertion
tests/skill-namespace.test.ts line 151 — remove teamsEnabled: false parameter
tests/skill-references.test.ts line 827 — remove 'agent-teams' from canonical skills list; lines 988-1002 remove teams install paths test
tests/uninstall-logic.test.ts lines 7, 11-12 — remove agent-teams assertions
tests/decisions/command-adoption.test.ts lines 11, 13, 16, 18 — remove teams entries from surfaces array
Step 7: Documentation
CLAUDE.md — Remove "Teams Variant" column from plugin table; remove -teams.md references; update "Two-Mode Init" section; remove "every -teams.md must have matching base" rule; remove pipeline:orch from orchestration skills list
docs/cli-reference.md — Remove --teams / --no-teams from flag table
docs/reference/skills-architecture.md — Remove agent-teams row from skill catalog
plugins/devflow-debug/README.md — Remove "agent teams" from description
plugins/devflow-explore/README.md — Remove teams variant sections
plugins/devflow-implement/README.md — Remove agent-teams from skill list
Step 8: Build & verify
npm run build
npm test
node dist/cli.js init # verify clean install without teams
What teams variants uniquely provided (context for future consideration)
- Adversarial debate: Reviewers/debuggers challenged each other's findings with file:line evidence
- Cross-validation: Resolvers detected conflicts between independent fix batches
- Confidence scoring: HIGH/MEDIUM/LOW based on peer consensus survival
- Collaborative validation: Explorers confirmed/corrected each other's discoveries
- None of this logic exists in base commands — it was purely additive
Risk Assessment
| Risk |
Level |
Notes |
| Breaking base commands |
None |
Zero shared logic between base and teams variants |
| Manifest backward compat |
None |
ADR-001: clean break, no shims |
| Existing user installs |
Low |
devflow init re-installs cleanly; stale -teams.md in ~/.claude/commands/ cleaned by legacy removal loop |
| Pipeline intent |
Low |
Router stops listing it; ambient falls through gracefully |
Checklist
Summary
Remove all Agent Teams support (adversarial debate, peer consensus,
-teams.mdcommand variants) and thepipeline:orchmeta-orchestrator. Agent Teams is a cleanly isolated feature with zero cross-contamination into base commands — removal is safe per ADR-001 (clean break philosophy).Motivation
pipeline:orchmeta-orchestrator (implement→review→resolve chain) can be removed alongside or independentlyScope
init.ts,installer.ts,post-install.ts,manifest.ts,list.ts)plugins.ts+ 6plugin.json)settings.json)CLAUDE.md, READMEs, reference docs)Detailed Removal Plan
Step 1: Delete files
Command variants (6 files):
plugins/devflow-code-review/commands/code-review-teams.mdplugins/devflow-implement/commands/implement-teams.mdplugins/devflow-plan/commands/plan-teams.mdplugins/devflow-resolve/commands/resolve-teams.mdplugins/devflow-debug/commands/debug-teams.mdplugins/devflow-explore/commands/explore-teams.mdSkills (directories):
shared/skills/agent-teams/(SKILL.md + references/cleanup.md + references/team-patterns.md)shared/skills/pipeline-orch/(or wherever pipeline:orch source lives)Step 2: TypeScript source edits
src/cli/commands/init.ts:teams?: booleanfromInitOptionsinterface (line 128)--teams/--no-teamsCLI options (lines 145-146)let teamsEnabled = falseand all uses (lines 373, 402, 443, 462-483)teamsEnabledfrominstallViaFileCopy()call (line 894)teamsEnabledfrominstallSettings()call (line 964)teams: teamsEnabledfrom manifest features (line 1173)applyTeamsConfig/stripTeamsConfigre-exports (line 36)-teams.mdfrom legacy cleanup loop suffix (line 925)src/cli/utils/installer.ts:teamsEnabled: booleanfromFileCopyOptions(line 110)teamsVariantsset,baseCommandsfilter, conditional source file selection (lines 173-191) — simplify to just copy all.mdfiles directlysrc/cli/utils/post-install.ts:applyTeamsConfig()function (lines 35-43)stripTeamsConfig()function (lines 49-59)teamsEnabledparameter frominstallSettings()signature (line 304)installSettings()(lines 329-331, 358-363)src/cli/utils/manifest.ts:teams: booleanfromManifestData['features']type (line 13)typeof features.teams !== 'boolean'validation (line 41)teams: features.teams as booleannormalization (line 60)src/cli/commands/list.ts:features.teams ? 'teams' : nullfromformatFeatures()(line 16)Step 3: Plugin registries
src/cli/plugins.ts:'agent-teams'from skills arrays in 6 plugins (lines 57, 64, 71, 78, 85, 92)'pipeline-orch'from ambient plugin skills (if listed)'agent-teams'inLEGACY_SKILL_NAMES(ensures old installs get cleaned up)6
plugin.jsonfiles:plugins/devflow-code-review/.claude-plugin/plugin.json— remove"agent-teams"from skills arrayplugins/devflow-implement/.claude-plugin/plugin.json— sameplugins/devflow-plan/.claude-plugin/plugin.json— sameplugins/devflow-explore/.claude-plugin/plugin.json— sameplugins/devflow-debug/.claude-plugin/plugin.json— sameplugins/devflow-resolve/.claude-plugin/plugin.json— sameStep 4: Template
src/templates/settings.json:"teammateMode": "auto"(line 41)"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"from env (lines 42-44)"env": {}if that was the only entryStep 5: Router skill
shared/skills/router/SKILL.md:devflow:pipeline:orchfrom ORCHESTRATED tabledevflow:agent-teamsfrom available skills list (if present)Step 6: Tests
Deletable test blocks (entire describe blocks):
tests/init-logic.test.tslines 134-241 —applyTeamsConfig+stripTeamsConfigsuitestests/resolve/decisions-citation.test.tslines 139-154 — resolve-teams.md parity tests + lines 224-227tests/decisions/command-adoption.test.tslines 85-96 — debug-teams.md suiteSurgical edits:
tests/init-logic.test.tslines 454, 474, 812, 850 — removeteamsEnabled: falsefrominstallViaFileCopycallstests/manifest.test.ts~10 locations — removeteams: booleanfrom all fixture objectstests/list-logic.test.tslines 12-72 — removeteamsfrom all feature objects and assertionstests/flags.test.tslines 150, 154 — replaceCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMSwith different example env vartests/plugins.test.tsline 26 — removeexpect(skills).toContain('agent-teams')assertiontests/skill-namespace.test.tsline 151 — removeteamsEnabled: falseparametertests/skill-references.test.tsline 827 — remove'agent-teams'from canonical skills list; lines 988-1002 remove teams install paths testtests/uninstall-logic.test.tslines 7, 11-12 — remove agent-teams assertionstests/decisions/command-adoption.test.tslines 11, 13, 16, 18 — remove teams entries from surfaces arrayStep 7: Documentation
CLAUDE.md— Remove "Teams Variant" column from plugin table; remove-teams.mdreferences; update "Two-Mode Init" section; remove "every-teams.mdmust have matching base" rule; remove pipeline:orch from orchestration skills listdocs/cli-reference.md— Remove--teams/--no-teamsfrom flag tabledocs/reference/skills-architecture.md— Removeagent-teamsrow from skill catalogplugins/devflow-debug/README.md— Remove "agent teams" from descriptionplugins/devflow-explore/README.md— Remove teams variant sectionsplugins/devflow-implement/README.md— Removeagent-teamsfrom skill listStep 8: Build & verify
What teams variants uniquely provided (context for future consideration)
Risk Assessment
devflow initre-installs cleanly; stale-teams.mdin~/.claude/commands/cleaned by legacy removal loopChecklist
-teams.mdcommand filesshared/skills/agent-teams/directoryshared/skills/pipeline-orch/directory (confirm exact name)teamsEnabledflow from init.ts, installer.ts, post-install.tsteamsfrom manifest.ts type + list.ts displayagent-teamsfrom 6 plugin.json + plugins.tsnpm run build+npm testpassdevflow initworks cleanly