Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1aaead4
fix: auto-scaffold Fact Checker agent during init and cast (#1222)
tamirdresher Jun 7, 2026
010f6fc
fix(upgrade): auto-scaffold Rai + Fact Checker on squad upgrade (#1222)
tamirdresher Jun 7, 2026
d41b046
Merge pull request #1223 from tamirdresher/fix/1222-fact-checker-auto…
bradygaster Jun 7, 2026
e5c1800
fix(permissions): use 'approve-once' for Copilot CLI v1.0.54+ contrac…
bradygaster Jun 9, 2026
a081832
feat: Squad.Agents.AI - Microsoft Agent Framework adapter for the Squ…
tamirdresher Jun 9, 2026
28962e2
ci(Squad.Agents.AI): switch NuGet publish to Trusted Publishing (OIDC…
tamirdresher Jun 9, 2026
647f337
fix(Squad.Agents.AI): expose SessionConfig + default OnPermissionRequ…
tamirdresher Jun 10, 2026
cc37a2f
Squad.Agents.AI 0.2.0: bump to MAF 1.10.0-rc1 / SDK 1.0.0 GA — file-I…
tamirdresher Jun 10, 2026
39ee9c7
fix: address pre-existing Copilot review comments from PR #1212 (#1258)
bradygaster Jun 11, 2026
611a82b
fix: expose memory tools via MCP + route writes through governed pipe…
bradygaster Jun 11, 2026
eeb68f2
docs(skills): update path references from .squad/skills/ to .copilot/…
bradygaster Jun 11, 2026
c11274d
feat(init): prompt to add @copilot as a team member during squad init…
bradygaster Jun 11, 2026
5824b60
docs: align skills path + state-backend upgrade flow (#1241, #1226) (…
bradygaster Jun 11, 2026
152bbf0
Squad.Agents.AI 0.3.0: first-class subagent observability (#1265)
tamirdresher Jun 11, 2026
d3c2d84
chore(lockfile): sync package-lock with package.json after v0.10.0 bu…
tamirdresher Jun 11, 2026
f79b03a
fix(bump-build): also update package-lock workspace entries (#1267)
tamirdresher Jun 11, 2026
da17eef
fix: release pipeline version pinning (#1203, #1204) (#1250)
bradygaster Jun 11, 2026
ce15d6b
chore: include CHANGELOG.md in published npm tarball (#1257)
bradygaster Jun 11, 2026
c076ffb
Squad.Agents.AI 0.4.0: default-on subagent observability + Aspire-sty…
tamirdresher Jun 11, 2026
dfc5b94
Squad.Agents.AI 0.5.0: auto-inject --agent squad (CLI parity by defau…
tamirdresher Jun 11, 2026
edcc39d
Squad.Agents.AI 0.5.1: fix 0.5.0 regression — use --agent CLI flag (n…
tamirdresher Jun 11, 2026
217e0bd
Add squad registry add/list/remove for discovery-only peer squads (#1…
tamirdresher Jun 12, 2026
2ca906d
fix(cli): stop writing squad_state to ~/.copilot/mcp-config.json on e…
tamirdresher Jun 13, 2026
84ce747
fix(sdk): wire team.md/routing.md/casting state on \squad preset appl…
tamirdresher Jun 13, 2026
68e2774
fix(docs): tell coordinator to roster Fact Checker on first-time cast…
tamirdresher Jun 13, 2026
16c6b25
fix(sdk): plumb Fact Checker like Rai — rich charter at init + .squad…
tamirdresher Jun 13, 2026
76ba4e7
fix(skills): rename squad disambiguation skill to squad-help (superse…
tamirdresher Jun 13, 2026
918cbd4
fix(prompt): coordinator must probe for squad_state/memory tools befo…
tamirdresher Jun 13, 2026
608f858
feat(skills): make /squad a real slash command (user-invocable: true …
tamirdresher Jun 13, 2026
40f78f2
fix(skills): install bundled skills to .github/skills/ (closes #1126)…
tamirdresher Jun 13, 2026
6afd067
feat(sdk): bundle cross-squad-communication skill (#5 cross-squad pro…
tamirdresher Jun 13, 2026
b79e64a
fix(coordinator): route "spawn a squad" / "another squad" prompts thr…
tamirdresher Jun 13, 2026
89a1b96
fix(sdk,cli): bundle missing skills on init + strip fabricated tiered…
tamirdresher Jun 13, 2026
942270b
docs: add feature pages for preset, cross-squad discover/delegate, an…
tamirdresher Jun 14, 2026
f9f77c0
docs: add feature pages for remaining 8 v0.10 features (tiered-memory…
tamirdresher Jun 14, 2026
caef438
docs(state-backends): document pre-commit hook, post-upgrade flow, an…
tamirdresher Jun 14, 2026
ae6f4e7
docs: clarify that .squad/casting/* files are identity, not two-layer…
tamirdresher Jun 14, 2026
567f447
fix(state-backend): conditional .gitignore entries for two-layer/orph…
tamirdresher Jun 14, 2026
9917fa1
chore: promote v0.10.1 dev → main (38 commits including v0.10 stabili…
tamirdresher Jun 14, 2026
1e1a9d7
docs(blog): v0.10 stabilisation insider release post
tamirdresher Jun 14, 2026
286fa23
fix(docs): rephrase 'fenced code block' row in skill-security-scanner…
tamirdresher Jun 14, 2026
d4457ab
fix(blog): use American 'Stabilization' (cspell dict is en_US)
tamirdresher Jun 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(init): prompt to add @copilot as a team member during squad init (…
…#1262)

Add an interactive prompt during squad init that asks users if they
want to add @copilot (the GitHub Copilot coding agent) as an autonomous
team member. If accepted, adds the Coding Agent section to team.md and
copies copilot-instructions.md into the project.

Non-interactive mode skips silently with a hint to run
`squad copilot enable` later.

Closes #1147

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
bradygaster and Copilot authored Jun 11, 2026
commit c11274d11cf5cd767ca3221c52a291408b40ecfa
10 changes: 10 additions & 0 deletions .changeset/init-prompt-copilot-member.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@bradygaster/squad-cli": minor
---

Add @copilot team member prompt during `squad init`

During interactive `squad init`, users are now prompted to add @copilot
as an autonomous team member. Answering yes adds the Coding Agent section
to team.md and copies copilot-instructions.md into the project. Non-interactive
mode skips silently with a hint to run `squad copilot enable` later.
48 changes: 48 additions & 0 deletions packages/squad-cli/src/cli/core/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ import { liftInitMutableStateOntoOrphan } from '../commands/migrate-backend.js';
import { resolveSquadStateMcpSpec } from './mcp-spec.js';
import { describeMcpSpec } from './upgrade.js';
import { ensureSquadStateMcpInRoot, ensureSquadStateMcpInUserConfig, tombstoneStaleSquadStateInProjectMcp } from './mcp-root.js';
import {
readTeamMd,
writeTeamMd,
hasCopilot,
insertCopilotSection,
} from './team-md.js';

const storage = new FSStorageProvider();

Expand Down Expand Up @@ -423,6 +429,48 @@ export async function runInit(dest: string, options: RunInitOptions = {}): Promi
console.log(`${DIM}${file} already exists — skipping${RESET}`);
}

// ── Copilot agent prompt ───────────────────────────────────────────
// Ask if the user wants to add @copilot as an autonomous team member.
// This enables .github/copilot-instructions.md and adds Coding Agent
// to the team roster, allowing squad-labeled issues to be auto-assigned.
const teamContent = readTeamMd(squadDir);
if (!hasCopilot(teamContent)) {
if (process.stdin.isTTY) {
const { createInterface } = await import('node:readline/promises');
const rl = createInterface({ input: process.stdin, output: process.stdout });
try {
console.log();
const answer = (await rl.question(` Add ${BOLD}@copilot${RESET} as an autonomous team member? [Y/n]: `)).trim().toLowerCase();
if (answer === '' || answer === 'y' || answer === 'yes') {
const updated = insertCopilotSection(teamContent, false);
writeTeamMd(squadDir, updated);
success('Added @copilot (Coding Agent) to team roster');

// Copy copilot-instructions.md from templates
const currentFileUrl = new URL(import.meta.url);
const currentFilePath = currentFileUrl.pathname.startsWith('/') && process.platform === 'win32'
? currentFileUrl.pathname.substring(1)
: currentFileUrl.pathname;
const templatesSrc = path.resolve(path.dirname(currentFilePath), '..', '..', '..', 'templates');
const instructionsSrc = path.join(templatesSrc, 'copilot-instructions.md');
const instructionsDest = path.join(dest, '.github', 'copilot-instructions.md');

if (storage.existsSync(instructionsSrc) && !storage.existsSync(instructionsDest)) {
storage.mkdirSync(path.dirname(instructionsDest), { recursive: true });
storage.copySync(instructionsSrc, instructionsDest);
success('.github/copilot-instructions.md');
}
} else {
console.log(`${DIM} Skipped — add later with: squad copilot enable${RESET}`);
}
} finally {
rl.close();
}
} else {
console.log(`${DIM} Non-interactive mode — skipping @copilot setup. Add later with: squad copilot enable${RESET}`);
}
}

// ── Celebration ceremony ──────────────────────────────────────────
console.log();
await typewrite(`${CYAN}${BOLD}◆ SQUAD${RESET}`, 10);
Expand Down
Loading