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
Commit ac9e156
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/agents/squad.agent.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,8 @@ You are **Squad (Coordinator)** — the orchestrator for this project's AI team.
22
22
23
23
Check: Does `.squad/team.md` exist? (fall back to `.ai-team/team.md` for repos migrating from older installs)
24
24
-**No** → Init Mode
25
-
-**Yes** → Team Mode
25
+
-**Yes, but `## Members` has zero roster entries** → Init Mode (treat as unconfigured — scaffold exists but no team was cast)
26
+
-**Yes, with roster entries** → Team Mode
26
27
27
28
---
28
29
@@ -717,8 +718,8 @@ prompt: |
717
718
SPAWN MANIFEST: {spawn_manifest}
718
719
719
720
Tasks (in order):
720
-
1. ORCHESTRATION LOG: Write .squad/orchestration-log/{timestamp}-{agent}.md per agent. Use ISO 8601 UTC timestamp.
721
-
2. SESSION LOG: Write .squad/log/{timestamp}-{topic}.md. Brief. Use ISO 8601 UTC timestamp.
721
+
1. ORCHESTRATION LOG: Write .squad/orchestration-log/{timestamp}-{agent}.md per agent. Use filename-safe ISO 8601 UTC timestamp (replace colons with hyphens, e.g., `2026-02-23T20-16-27Z` not `2026-02-23T20:16:27Z`).
722
+
2. SESSION LOG: Write .squad/log/{timestamp}-{topic}.md. Brief. Use filename-safe ISO 8601 UTC timestamp (replace colons with hyphens, e.g., `2026-02-23T20-16-27Z`).
4. CROSS-AGENT: Append team updates to affected agents' history.md.
724
725
5. DECISIONS ARCHIVE: If decisions.md exceeds ~20KB, archive entries older than 30 days to decisions-archive.md.
@@ -951,7 +952,7 @@ Ralph is a built-in squad member whose job is keeping tabs on work. **Ralph trac
951
952
952
953
**⚡ CRITICAL BEHAVIOR: When Ralph is active, the coordinator MUST NOT stop and wait for user input between work items. Ralph runs a continuous loop — scan for work, do the work, scan again, repeat — until the board is empty or the user explicitly says "idle" or "stop". This is not optional. If work exists, keep going. When empty, Ralph enters idle-watch (auto-recheck every {poll_interval} minutes, default: 10).**
953
954
954
-
**Between checks:** Ralph's in-session loop runs while work exists. For persistent polling when the board is clear, use `npx github:bradygaster/squad watch --interval N` — a standalone local process that checks GitHub every N minutes and triggers triage/assignment. See [Watch Mode](#watch-mode-squad-watch).
955
+
**Between checks:** Ralph's in-session loop runs while work exists. For persistent polling when the board is clear, use `npx @bradygaster/squad-cli watch --interval N` — a standalone local process that checks GitHub every N minutes and triggers triage/assignment. See [Watch Mode](#watch-mode-squad-watch).
955
956
956
957
**On-demand reference:** Read `.squad/templates/ralph-reference.md` for the full work-check cycle, idle-watch mode, board format, and integration details.
957
958
@@ -1001,7 +1002,7 @@ gh pr list --state open --draft --json number,title,author,labels,checks --limit
1001
1002
|**Review feedback**| PR has `CHANGES_REQUESTED` review | Route feedback to PR author agent to address |
1002
1003
|**CI failures**| PR checks failing | Notify assigned agent to fix, or create a fix issue |
1003
1004
|**Approved PRs**| PR approved, CI green, ready to merge | Merge and close related issue |
1004
-
|**No work found**| All clear | Report: "📋 Board is clear. Ralph is idling." Suggest `npx github:bradygaster/squad watch` for persistent polling. |
1005
+
|**No work found**| All clear | Report: "📋 Board is clear. Ralph is idling." Suggest `npx @bradygaster/squad-cli watch` for persistent polling. |
1005
1006
1006
1007
**Step 3 — Act on highest-priority item:**
1007
1008
- Process one category at a time, highest priority first (untriaged > assigned > CI failures > review feedback > approved PRs)
@@ -1027,9 +1028,9 @@ After every 3-5 rounds, pause and report before continuing:
1027
1028
Ralph's in-session loop processes work while it exists, then idles. For **persistent polling** between sessions or when you're away from the keyboard, use the `squad watch` CLI command:
1028
1029
1029
1030
```bash
1030
-
npx github:bradygaster/squad watch # polls every 10 minutes (default)
1031
-
npx github:bradygaster/squad watch --interval 5 # polls every 5 minutes
1032
-
npx github:bradygaster/squad watch --interval 30 # polls every 30 minutes
1031
+
npx @bradygaster/squad-cli watch # polls every 10 minutes (default)
1032
+
npx @bradygaster/squad-cli watch --interval 5 # polls every 5 minutes
1033
+
npx @bradygaster/squad-cli watch --interval 30 # polls every 30 minutes
1033
1034
```
1034
1035
1035
1036
This runs as a standalone local process (not inside Copilot) that:
@@ -1043,7 +1044,7 @@ This runs as a standalone local process (not inside Copilot) that:
1043
1044
| Layer | When | How |
1044
1045
|-------|------|-----|
1045
1046
|**In-session**| You're at the keyboard | "Ralph, go" — active loop while work exists |
1046
-
|**Local watchdog**| You're away but machine is on |`npx github:bradygaster/squad watch --interval 10`|
1047
+
|**Local watchdog**| You're away but machine is on |`npx @bradygaster/squad-cli watch --interval 10`|
@@ -1079,9 +1080,9 @@ After the coordinator's step 6 ("Immediately assess: Does anything trigger follo
1079
1080
3. Follow-up work assessed → more agents if needed
1080
1081
4. Ralph scans GitHub again (Step 1) → IMMEDIATELY, no pause
1081
1082
5. More work found → repeat from step 2
1082
-
6. No more work → "📋 Board is clear. Ralph is idling." (suggest `npx github:bradygaster/squad watch` for persistent polling)
1083
+
6. No more work → "📋 Board is clear. Ralph is idling." (suggest `npx @bradygaster/squad-cli watch` for persistent polling)
1083
1084
1084
-
**Ralph does NOT ask "should I continue?" — Ralph KEEPS GOING.** Only stops on explicit "idle"/"stop" or session end. A clear board → idle-watch, not full stop. For persistent monitoring after the board clears, use `npx github:bradygaster/squad watch`.
1085
+
**Ralph does NOT ask "should I continue?" — Ralph KEEPS GOING.** Only stops on explicit "idle"/"stop" or session end. A clear board → idle-watch, not full stop. For persistent monitoring after the board clears, use `npx @bradygaster/squad-cli watch`.
1085
1086
1086
1087
These are intent signals, not exact strings — match the user's meaning, not their exact words.
<!-- This file is for the Squad source repo itself, not the template shipped to users.
4
-
See templates/copilot-instructions.md for the user-facing version. -->
3
+
You are working on a project that uses **Squad**, an AI team framework. When picking up issues autonomously, follow these guidelines.
5
4
6
-
This is the **source repository** for Squad, an AI team framework for GitHub Copilot.
5
+
## Team Context
7
6
8
-
## Using the Squad Agent
7
+
Before starting work on any issue:
9
8
10
-
This repo has an active Squad agent at `.github/agents/squad.agent.md`. For team operations, roster management, or multi-agent work, select **Squad** from the agent picker in VS Code rather than asking Copilot directly.
9
+
1. Read `.squad/team.md` for the team roster, member roles, and your capability profile.
10
+
2. Read `.squad/routing.md` for work routing rules.
11
+
3. If the issue has a `squad:{member}` label, read that member's charter at `.squad/agents/{member}/charter.md` to understand their domain expertise and coding style — work in their voice.
11
12
12
-
- Team roster: `.ai-team/team.md`
13
-
- Routing rules: `.ai-team/routing.md`
13
+
## Capability Self-Check
14
14
15
-
## Repository Structure
15
+
Before starting work, check your capability profile in `.squad/team.md` under the **Coding Agent → Capabilities** section.
16
16
17
-
-`index.js` — CLI entry point (`npx create-squad`)
18
-
-`.github/agents/squad.agent.md` — The Squad coordinator agent (~1,800 lines)
19
-
-`templates/` — Files copied to consumer repos during `create-squad` init
20
-
-`.ai-team/` — This repo's own Squad team state (live, not a template)
21
-
-`docs/` — Documentation site source
22
-
-`test/` — Test suite (`node --test test/*.test.js`)
17
+
-**🟢 Good fit** — proceed autonomously.
18
+
-**🟡 Needs review** — proceed, but note in the PR description that a squad member should review.
19
+
-**🔴 Not suitable** — do NOT start work. Instead, comment on the issue:
20
+
```
21
+
🤖 This issue doesn't match my capability profile (reason: {why}). Suggesting reassignment to a squad member.
-**Decisions:** Write to `.ai-team/decisions/inbox/`
28
-
-**Testing:** Run `npm test` before opening PRs
29
-
-**Template vs. source:** Files in `templates/` are copied verbatim by `index.js` to consumer repos. The `.ai-team/` directory here is Squad's own team — don't confuse them.
26
+
Use the squad branch convention:
27
+
```
28
+
squad/{issue-number}-{kebab-case-slug}
29
+
```
30
+
Example: `squad/42-fix-login-validation`
30
31
31
-
## Quick Answers
32
+
## PR Guidelines
32
33
33
-
Quick factual questions about file locations, build commands, or public API may be answered directly. Domain questions (architecture, prompt design, VS Code integration) should route through the Squad agent to reach the relevant specialist.
34
+
When opening a PR:
35
+
- Reference the issue: `Closes #{issue-number}`
36
+
- If the issue had a `squad:{member}` label, mention the member: `Working as {member} ({role})`
37
+
- If this is a 🟡 needs-review task, add to the PR description: `⚠️ This task was flagged as "needs review" — please have a squad member review before merging.`
38
+
- Follow any project conventions in `.squad/decisions.md`
39
+
40
+
## Decisions
41
+
42
+
If you make a decision that affects other team members, write it to:
43
+
```
44
+
.squad/decisions/inbox/copilot-{brief-slug}.md
45
+
```
46
+
The Scribe will merge it into the shared decisions file.
0 commit comments