Title: [Architecture] Move .squad/ state out of working tree (git-notes or orphan branch) · Issue #792 · github/squad · GitHub
Open Graph Title: [Architecture] Move .squad/ state out of working tree (git-notes or orphan branch) · Issue #792 · github/squad
X Title: [Architecture] Move .squad/ state out of working tree (git-notes or orphan branch) · Issue #792 · github/squad
Description: Move .squad/ Out of the Working Tree Problem .squad/ lives in the working tree → destroyed on branch switch Some users don't want squad state in version control at all State pollutes PRs and diffs Proposed solutions (from Tamir's blog Pa...
Open Graph Description: Move .squad/ Out of the Working Tree Problem .squad/ lives in the working tree → destroyed on branch switch Some users don't want squad state in version control at all State pollutes PRs and diffs ...
X Description: Move .squad/ Out of the Working Tree Problem .squad/ lives in the working tree → destroyed on branch switch Some users don't want squad state in version control at all State pollutes PRs and di...
Opengraph URL: https://github.com/github/squad/issues/792
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Architecture] Move .squad/ state out of working tree (git-notes or orphan branch)","articleBody":"## Move .squad/ Out of the Working Tree\n\n### Problem\n- `.squad/` lives in the working tree → destroyed on branch switch\n- Some users don't want squad state in version control at all\n- State pollutes PRs and diffs\n\n### Proposed solutions (from Tamir's blog Part 7b)\n\n**Option A: Git Notes (`refs/notes/squad`)**\n- Squad state stored in git notes ref, not working tree\n- Survives branch switches (ref-based, not file-based)\n- Invisible in `git status`, `git diff`, PRs\n- Accessed via `git notes --ref=squad show HEAD`\n\n**Option B: Orphan Branch (`squad-state`)**\n- Dedicated branch with no common ancestor\n- State files live there, never merged into main\n- Read via `git show squad-state:.squad/team.md`\n\n**Option C: External directory (`~/.squad/projects/{repo-hash}/`)**\n- State outside repo entirely\n- No git integration needed\n- Fallback for repos where user has no write access\n\n### Blog reference\nhttps://tamirdresher.github.io — Part 7b of the Scaling AI series","author":{"url":"https://github.com/tamirdresher","@type":"Person","name":"tamirdresher"},"datePublished":"2026-04-03T18:32:03Z","url":"https://github.com/github/squad/issues/792"}
| 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:89cafdaf-2d37-5509-7d5b-a5f8ff0bc57e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2EE:1AE20C:22E90C7:2C29592:6B017806 |
| html-safe-nonce | a07564b56c7b312c5af22409b13456ce6c48237b163c3f9672c0c7adaec7082f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkVFOjFBRTIwQzoyMkU5MEM3OjJDMjk1OTI6NkIwMTc4MDYiLCJ2aXNpdG9yX2lkIjoiNjk3ODU4MDU3MjIwOTc3MjU1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c9d16e429fb1b8fac2b9e704568ad24d3b19edac7c5940e91133766418a6269b |
| hovercard-subject-tag | issue:4201715988 |
| 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/792/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2754491d4299474acfa15385604a6e3e64203247d3316e10dc40fd1b3262b397/github/squad/issues/792 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2754491d4299474acfa15385604a6e3e64203247d3316e10dc40fd1b3262b397/github/squad/issues/792 |
| og:image:alt | Move .squad/ Out of the Working Tree Problem .squad/ lives in the working tree → destroyed on branch switch Some users don't want squad state in version control at all State pollutes PRs and diffs ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tamirdresher |
| 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