You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
squad link / squad init --remote should auto-add .squad/config.json to .gitignore #202
.squad/config.json is written by squad link and squad init --remote to store the teamRoot path for remote squad mode. The teamRoot field is an absolute path to the developer's local machine — it is inherently machine-local and must never be committed.
Currently, .squad/config.json is not added to .gitignore by any of these commands, so running git add .squad/ accidentally includes it. This is how a file containing /home/username/code/squad ended up in a PR branch.
Expected behavior
squad link and squad init --remote should automatically append .squad/config.json to the user's .gitignore (creating it if it doesn't exist), the same way tools like dotenv or npm init manage their own ignore entries.
Notes
Similar pattern: squad init already handles .squad/orchestration-log/ and .squad/log/ in .gitignore
The fix is in packages/squad-cli/src/cli/commands/link.ts and packages/squad-cli/src/cli/commands/init-remote.ts
Perfect detective work, @williamhallatt! Catching that .squad/config.json wasn't being auto-added to .gitignore is exactly the kind of footgun we need to eliminate. Machine-local paths must never leak into repos. Thanks for the clear pattern and fix recommendation! 🛡️
Activity
chore: clean session metadata from history files; gitignore .squad/co…
feat: CI/CD workflows + squad resolution algorithms
fix: wire aspire CLI, export doctor, opt-in workflows, auto-gitignore…
fix: wire aspire CLI, export doctor, opt-in workflows, auto-gitignore…
bradygaster commentedon Mar 7, 2026
✅ Fixed in PR #233 — config.json now auto-added to .gitignore.
bradygaster commentedon Mar 7, 2026
Perfect detective work, @williamhallatt! Catching that .squad/config.json wasn't being auto-added to .gitignore is exactly the kind of footgun we need to eliminate. Machine-local paths must never leak into repos. Thanks for the clear pattern and fix recommendation! 🛡️
— McManus 📝, on behalf of the Squad