Repository navigation
Description
Bug
When a squad is initialized with --sdk (creating squad.config.ts with defineAgent/defineSquad from @bradygaster/squad-sdk), the initial Scribe agent is added to the .ts file. However, when new team members are added during Phase 2 (or later via "add someone"), they are added to:
.squad/team.md✅.squad/routing.md✅.squad/casting/registry.json✅squad.config.ts❌ not updated
Expected Behavior
When a new agent is added to an SDK-initialized squad, squad.config.ts should also get a new defineAgent() call added, keeping the TypeScript config in sync with the markdown roster.
Steps to Reproduce
- Run
squad init --sdk— createssquad.config.tswith Scribe - Add team members (e.g., during Phase 2 casting)
- Observe that
.squad/team.mdhas all members butsquad.config.tsonly has Scribe (or whatever was there at init)
Root Cause
The coordinator's "Adding Team Members" flow (in squad.agent.md) updates team.md, routing.md, and registry.json but has no step for updating squad.config.ts. The .ts file is an SDK-specific artifact that the coordinator instructions don't know about.
Suggested Fix
Add a step to the "Adding Team Members" section in squad.agent.md: after updating registry.json, check if squad.config.ts exists at the repo root. If so, add a defineAgent() entry for the new member.
Alternatively, the SDK could generate the config dynamically from registry.json at runtime, making squad.config.ts a derived artifact rather than a manually-maintained one.
Context
Discovered during an SDK Squad session building a Snake game. All 5 agents (Neo, Tank, Switch, Dozer, Scribe) were added to the markdown files correctly, but squad.config.ts required manual/separate updating.
Activity
bradygaster commentedon Mar 10, 2026
Test Confirmation — Add-Member Flow (SdkSquad repo)
Tested the add-member flow end-to-end in the SdkSquad test bed. Results confirm this gap.
What we did
Added Cypher (DevOps) to the team from The Matrix universe using the standard add-member flow (the coordinator's documented "Adding Team Members" steps 1-7).
Results
.squad/agents/cypher/charter.md.squad/agents/cypher/history.md.squad/casting/registry.json.squad/team.md.squad/routing.mdsquad.config.tsdefineAgentcall, not in members array, not in agents arrayVerification
.squad/markdown files, not fromsquad.config.ts.tsfile is now out of sync: 5 agents defined vs 7 in team.mdRoot cause
The coordinator's "Adding Team Members" instructions (steps 1-7 in
squad.agent.md) have no step for updatingsquad.config.ts. The.tsfile is only created duringsquad init --sdkand never touched again.Impact
squad.config.tsdrifts fromteam.mdimmediately after the first add/removesquad.config.tsas source of truth will have a stale rosterdefineAgentcall and update the members/agents arrays)Commit:
0e0b5ffin bradygaster/SdkSquadbradygaster commentedon Mar 10, 2026
Update from SDK-First Parity Testing (2026-03-10)
Systematic testing in the SdkSquad test bed confirmed this is the root cause for multiple downstream gaps:
Direct impact:
Evidence:
squad.config.tshas 5 agents: neo, tank, switch, dozer, scribeteam.mdhas 6 members: Neo, Tank, Switch, Dozer, Scribe, Ralphrouting.mdreferences @copilot but no roster or config entry existsScope of fix needed:
squad init --sdkshould include Ralph in generated configsquad add-membershould add defineAgent to configsquad remove-membershould remove defineAgent from configFull test results: #341
feat: tasteful animations and transitions (closes github#337) (github…
github-actions commentedon Mar 13, 2026
🏗️ Squad Triage — Flight (Lead)
Issue: #337 — SDK init: Adding team members doesn't update squad.config.ts
Assigned to: FIDO (Quality Owner)
Reason: Issue relates to testing/quality work
@copilot evaluation: 🔴 Not suitable — issue involves work outside the coding agent's capability profile.
Team roster:
squad:flightsquad:proceduressquad:eecomsquad:fidosquad:paosquad:capcomsquad:controlsquad:surgeonsquad:boostersquad:gncsquad:networksquad:retrosquad:incosquad:guidosquad:telemetrysquad:voxsquad:dskysquad:simssquad:handbooksquad:ralphsquad:copilotgithub-actions commentedon Mar 13, 2026
squad:kujan. Check.squad/team.md(or.ai-team/team.md) for valid member names.github-actions commentedon Mar 13, 2026
squad:fenster. Check.squad/team.md(or.ai-team/team.md) for valid member names.github-actions commentedon Mar 13, 2026
📋 Assigned to CAPCOM (SDK Expert)
Issue: #337 — SDK init: Adding team members doesn't update squad.config.ts
CAPCOM will pick this up in the next Copilot session.
github-actions commentedon Mar 13, 2026
📋 Assigned to EECOM (Core Dev)
Issue: #337 — SDK init: Adding team members doesn't update squad.config.ts
EECOM will pick this up in the next Copilot session.
fix: SDK init trio - Ralph, @copilot routing, config sync (#337, #338, …
fix: SDK init trio — #337 config sync, #338 Ralph in init, #339 remov…
fix: SDK init trio — #337 config sync, #338 Ralph in init, #339 remov…
fix: SDK init trio - routing, Ralph, and config wiring (#337, #338, #339
bradygaster commentedon Mar 15, 2026
Fixed and merged to dev in the irritating bugs sprint.