Title: SDK init: Adding team members doesn't update squad.config.ts · Issue #337 · github/squad · GitHub
Open Graph Title: SDK init: Adding team members doesn't update squad.config.ts · Issue #337 · github/squad
X Title: SDK init: Adding team members doesn't update squad.config.ts · Issue #337 · github/squad
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 (o...
Open Graph 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 ...
X 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 ...
Opengraph URL: https://github.com/github/squad/issues/337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SDK init: Adding team members doesn't update squad.config.ts","articleBody":"## Bug\n\nWhen 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:\n\n- `.squad/team.md` ✅\n- `.squad/routing.md` ✅ \n- `.squad/casting/registry.json` ✅\n- `squad.config.ts` ❌ **not updated**\n\n## Expected Behavior\n\nWhen 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.\n\n## Steps to Reproduce\n\n1. Run `squad init --sdk` — creates `squad.config.ts` with Scribe\n2. Add team members (e.g., during Phase 2 casting)\n3. Observe that `.squad/team.md` has all members but `squad.config.ts` only has Scribe (or whatever was there at init)\n\n## Root Cause\n\nThe 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.\n\n## Suggested Fix\n\nAdd 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.\n\nAlternatively, 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.\n\n## Context\n\nDiscovered 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.","author":{"url":"https://github.com/bradygaster","@type":"Person","name":"bradygaster"},"datePublished":"2026-03-10T21:55:19Z","url":"https://github.com/github/squad/issues/337"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cd8045bf-e912-9736-30e4-5ec28d381084 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC0E:31E99C:1477F8D:1B544B0:6B012F64 |
| html-safe-nonce | 35e3db352643c68367907419ce2444924fc5e101488aa8ca9caacd641bd44a8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzBFOjMxRTk5QzoxNDc3RjhEOjFCNTQ0QjA6NkIwMTJGNjQiLCJ2aXNpdG9yX2lkIjoiMjA5OTExODQyNjgwMTkwOTYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1fbaf73ee8c7699edaa53bb12531d2d5863e4f11f8d9b86d0da68b424303c6e2 |
| hovercard-subject-tag | issue:4054423647 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96ffd32e944cdc4a4bfe9a0befe396601386c66caea7092ad6619e0144f1a7e1/github/squad/issues/337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96ffd32e944cdc4a4bfe9a0befe396601386c66caea7092ad6619e0144f1a7e1/github/squad/issues/337 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bradygaster |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width