Title: squad upgrade --self: refresh the source repo's own .ai-team/ to match current templates · Issue #68 · github/squad · GitHub
Open Graph Title: squad upgrade --self: refresh the source repo's own .ai-team/ to match current templates · Issue #68 · github/squad
X Title: squad upgrade --self: refresh the source repo's own .ai-team/ to match current templates · Issue #68 · github/squad
Description: Problem When working on Squad from source, the .ai-team/ directory was hand-created early in development and has drifted from what squad init produces for customers. There's no way to refresh the source repo's team config without manuall...
Open Graph Description: Problem When working on Squad from source, the .ai-team/ directory was hand-created early in development and has drifted from what squad init produces for customers. There's no way to refresh the s...
X Description: Problem When working on Squad from source, the .ai-team/ directory was hand-created early in development and has drifted from what squad init produces for customers. There's no way to refresh t...
Opengraph URL: https://github.com/github/squad/issues/68
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"squad upgrade --self: refresh the source repo's own .ai-team/ to match current templates","articleBody":"## Problem\n\nWhen working on Squad from source, the `.ai-team/` directory was hand-created early in development and has drifted from what `squad init` produces for customers. There's no way to refresh the source repo's team config without manually editing files.\n\nMore broadly, any long-running Squad project accumulates drift between its `.ai-team/` state and the latest templates — missing role icons, outdated charter sections, stale formatting.\n\n## Proposal: `squad upgrade --self`\n\nA new CLI flag that refreshes the current repo's `.ai-team/` files to match current templates **without losing custom content**.\n\n### What it refreshes:\n\n**team.md:**\n- Add role emoji icons to roster if missing\n- Update @copilot capabilities section to match `templates/roster.md`\n- Normalize coordinator name to \"Squad\"\n- Preserve all custom members, project context, and board config\n\n**Charters (.ai-team/agents/*/charter.md):**\n- Ensure all standard sections exist (Identity, What I Own, How I Work, Boundaries, Model, Collaboration, Voice)\n- Add missing sections from `templates/charter.md` with sensible defaults\n- **Never overwrite** existing custom content in any section\n- Report which charters were updated and what sections were added\n\n**Structural files:**\n- Ensure `ceremonies.md`, `routing.md`, `decisions.md` exist\n- Ensure `casting/`, `skills/`, `orchestration-log/`, `log/`, `decisions/inbox/` dirs exist\n- Ensure `.gitattributes` has the `merge=union` drivers\n\n### What it does NOT touch:\n- history.md files (agent memory — never modified by upgrade)\n- decisions.md content (append-only ledger)\n- Agent names (casting is permanent)\n- Any custom sections agents have added to their charters\n\n### UX:\n\n```\n$ npx github:bradygaster/squad upgrade --self\n\nRefreshing .ai-team/ to match current templates...\n\n team.md — added role icons to 9 members\n keaton/charter.md — added missing Model section\n fenster/charter.md — up to date\n ceremonies.md — up to date\n .gitattributes — added merge=union drivers\n \nSelf-upgrade complete. 2 files updated.\n```\n\n## Why this matters\n\n1. **Dogfooding** — Brady and the squad squad get the latest UX automatically\n2. **Customer value** — any long-running project benefits from template improvements\n3. **Meta-delightful** — updating Squad inside of Squad is peak Squad\n\n## Acceptance Criteria\n\n- [ ] `squad upgrade --self` flag implemented in index.js\n- [ ] Refreshes team.md formatting (icons, structure) without losing custom content\n- [ ] Adds missing charter sections without overwriting existing ones\n- [ ] Ensures structural directories and files exist\n- [ ] Reports what was changed\n- [ ] Tests covering the refresh behavior\n- [ ] Works when run from the source repo itself","author":{"url":"https://github.com/bradygaster","@type":"Person","name":"bradygaster"},"datePublished":"2026-02-15T09:18:59Z","url":"https://github.com/github/squad/issues/68"}
| 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:0e35604e-1f75-6041-b6d9-4af6b8bca114 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E216:1F37:5EA9F:80C41:6B01785C |
| html-safe-nonce | 96fa8fa19cd5dce9541d7e96a82f0a7af66597f4eb40880b3be5f43818415894 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjE2OjFGMzc6NUVBOUY6ODBDNDE6NkIwMTc4NUMiLCJ2aXNpdG9yX2lkIjoiODE4MjAxMDg5NjUxMjU0NjkwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 04959a3a31fb592fc2ef0874fda9990d91fc29f79c994d0d051098db9ce86722 |
| hovercard-subject-tag | issue:3943601309 |
| 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/68/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7608a6adea5faa73a838a9d56d31608d2b4165eecec1db825e4c060f6de03b5a/github/squad/issues/68 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7608a6adea5faa73a838a9d56d31608d2b4165eecec1db825e4c060f6de03b5a/github/squad/issues/68 |
| og:image:alt | Problem When working on Squad from source, the .ai-team/ directory was hand-created early in development and has drifted from what squad init produces for customers. There's no way to refresh the s... |
| 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