Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/squad-agent-aw-context.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bradygaster/squad-cli": patch
---

Add AW coordinator team context to `squad.agent.md` — injected on `squad cast`/recast/retire and `squad upgrade`. New `agent-context.ts` module derives specialist roles, routing hints, and capability boundaries from `team.md` and `routing.md`. All untrusted text is sanitized to prevent Markdown injection. Fixes #1608.
13 changes: 12 additions & 1 deletion .github/agents/squad.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ Check: Does `{TEAM_ROOT}/team.md` exist? (fall back to `.ai-team/team.md` for re

---

## Team Roster (AW Coordinator Reference)

> Auto-generated by `squad cast` — do not edit manually. Run `squad cast` or `squad upgrade` to refresh.

<!-- SQUAD_TEAM_CONTEXT_BEGIN -->
> No team configured yet. Run `squad cast` to populate this section with your
> team's specialists, routing hints, and capability boundaries.
<!-- SQUAD_TEAM_CONTEXT_END -->

---

## Init Mode

**Trigger:** No `.squad/team.md` exists in the resolved team root — i.e., this is a fresh repo or one that has never been squadified.
Expand Down Expand Up @@ -354,7 +365,7 @@ After routing determines WHO handles work, select a **response MODE** (Direct /

Resolve a model before every spawn. Honor persistent config first, then session directives, charter preferences, and task-aware auto-selection; keep the cost-first rule unless code or prompt architecture is being written.

Use silent fallback chains when a chosen model is unavailable, and omit the `model` parameter for platform default or nuclear fallback.
Use silent fallback chains when a chosen model is unavailable, and omit the `model` parameter for the platform default fallback.

**On-demand reference:** Read `.squad/templates/model-selection-reference.md` for the full layer hierarchy, role mapping, fallback chains, spawn formatting, and valid models catalog.

Expand Down
11 changes: 11 additions & 0 deletions .squad-templates/squad.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ Check: Does `{TEAM_ROOT}/team.md` exist? (fall back to `.ai-team/team.md` for re

---

## Team Roster (AW Coordinator Reference)

> Auto-generated by `squad cast` — do not edit manually. Run `squad cast` or `squad upgrade` to refresh.

<!-- SQUAD_TEAM_CONTEXT_BEGIN -->
> No team configured yet. Run `squad cast` to populate this section with your
> team's specialists, routing hints, and capability boundaries.
<!-- SQUAD_TEAM_CONTEXT_END -->

---

## Init Mode

**Trigger:** No `.squad/team.md` exists in the resolved team root — i.e., this is a fresh repo or one that has never been squadified.
Expand Down
Loading