Skip to content
Merged
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
24 changes: 12 additions & 12 deletions docs/src/content/docs/features/model-selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,41 @@ Model selection uses a layered system. First match wins:

| Task Output | Model | Tier |
|-------------|-------|------|
| Writing code (implementation, refactoring, tests, bug fixes) | `claude-sonnet-4.5` | Standard |
| Writing prompts or agent designs | `claude-sonnet-4.5` | Standard |
| Writing code (implementation, refactoring, tests, bug fixes) | `claude-sonnet-4.6` | Standard |
| Writing prompts or agent designs | `claude-sonnet-4.6` | Standard |
| Non-code work (docs, planning, triage, changelogs) | `claude-haiku-4.5` | Fast |
| Visual/design work requiring image analysis | `claude-opus-4.5` | Premium |
| Visual/design work requiring image analysis | `claude-opus-4.6` | Premium |

4. **Default** β€” If nothing matched, `claude-haiku-4.5`. Cost wins when in doubt.

## Role-to-Model Mapping

| Role | Default Model | Why |
|------|--------------|-----|
| Core Dev / Backend / Frontend | `claude-sonnet-4.5` | Writes code β€” quality first |
| Tester / QA | `claude-sonnet-4.5` | Writes test code |
| Core Dev / Backend / Frontend | `claude-sonnet-4.6` | Writes code β€” quality first |
| Tester / QA | `claude-sonnet-4.6` | Writes test code |
| Lead / Architect | auto (per-task) | Mixed: code review vs. planning |
| Prompt Engineer | auto (per-task) | Prompt design is like code |
| DevRel / Writer | `claude-haiku-4.5` | Docs β€” not code |
| Scribe / Logger | `claude-haiku-4.5` | Mechanical file ops |
| Git / Release | `claude-haiku-4.5` | Changelogs, tags, version bumps |
| Designer / Visual | `claude-opus-4.5` | Vision capability required |
| Designer / Visual | `claude-opus-4.6` | Vision capability required |

## 16-Model Catalog
## 18-Model Catalog

Squad supports 16 models across three tiers:
Squad supports 18 models across three tiers:

- **Premium:** claude-opus-4.6, claude-opus-4.6-fast, claude-opus-4.5
- **Standard:** claude-sonnet-4.5, gpt-5.2-codex, claude-sonnet-4, gpt-5.2, gpt-5.1-codex, gpt-5.1, gpt-5, gemini-3-pro-preview
- **Fast/Cheap:** claude-haiku-4.5, gpt-5.1-codex-mini, gpt-4.1, gpt-5-mini, gpt-5.1-codex-mini
- **Standard:** claude-sonnet-4.6, gpt-5.4, gpt-5.3-codex, gpt-5.2-codex, claude-sonnet-4, gpt-5.2, gpt-5.1-codex, gpt-5.1, gpt-5, gemini-3-pro-preview
- **Fast/Cheap:** claude-haiku-4.5, gpt-5.1-codex-mini, gpt-4.1, gpt-5-mini

## Fallback Chains

If a model is unavailable (plan restriction, rate limit, deprecation), Squad silently retries with the next in chain:

```
Premium: claude-opus-4.6 β†’ claude-opus-4.6-fast β†’ claude-opus-4.5 β†’ claude-sonnet-4.5
Standard: claude-sonnet-4.5 β†’ gpt-5.2-codex β†’ claude-sonnet-4 β†’ gpt-5.2
Premium: claude-opus-4.6 β†’ claude-opus-4.6-fast β†’ claude-opus-4.5 β†’ claude-sonnet-4.6
Standard: claude-sonnet-4.6 β†’ gpt-5.3-codex β†’ gpt-5.4 β†’ claude-sonnet-4 β†’ gpt-5.2
Fast: claude-haiku-4.5 β†’ gpt-5.1-codex-mini β†’ gpt-4.1 β†’ gpt-5-mini
```

Expand Down
4 changes: 4 additions & 0 deletions docs/src/content/docs/features/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Each skill is a directory containing a `SKILL.md` file. Skills are **team-wide k

Bundled when you initialize Squad. Prefixed with `squad-` (e.g., `squad-conventions`). These encode baseline patterns for working with Squad.

### Session Recovery

The `session-recovery` skill teaches agents to find and resume interrupted Copilot CLI sessions. When a session is interrupted (terminal crash, network drop, machine restart), in-progress work may be left incomplete. This skill uses `session_store` SQL queries to detect abandoned sessions, inspect checkpoint progress, and resume work. See [`.squad/skills/session-recovery/SKILL.md`](https://github.com/bradygaster/squad/blob/dev/.squad/skills/session-recovery/SKILL.md) for query patterns and examples.

### Earned skills

Written by agents from real work on your project. When an agent discovers a reusable pattern β€” a deployment strategy, a testing technique, an API integration approach β€” it writes a skill file.
Expand Down
4 changes: 4 additions & 0 deletions docs/src/content/docs/features/team-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Squad analyzes your project and proposes a team roster with 3-7 members tailored

When you first run Squad in a repository, it doesn't impose a team β€” it proposes one. The init flow analyzes your project, suggests roles and members, waits for your confirmation, then creates the `.squad/` directory structure and installs the crew.

### Character Casting

By default, Squad uses the **CastingEngine** to assign agent names from fictional universes (The Usual Suspects, Ocean's Eleven, etc.). The LLM proposes roles and team composition; the engine allocates curated character names, personalities, and backstories from the selected universe. Use `squad init --roles` to opt into the base role catalog (Lead, Backend, Frontend, Tester) instead of universe casting.

## How Init Works

1. **Discovery** β€” Squad scans your repository: language distribution, file structure, test frameworks, dependencies, existing workflows.
Expand Down
14 changes: 14 additions & 0 deletions docs/src/content/docs/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ This creates your personal squad directory β€” a personal team root that any pro
| macOS | `~/Library/Application Support/squad/` |
| Windows | `%APPDATA%\squad\` |

### SDK mode

Generate a typed `squad.config.ts` with `useRole()` calls instead of markdown-only setup:

```bash
squad init --sdk
```

Combine with `--roles` to include the base role catalog (Lead, Backend, Frontend, Tester, etc.) in the generated config. Without `--roles`, init uses fictional universe casting by default.

```bash
squad init --sdk --roles
```

---

## First-Time Setup
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/docs/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ squad init
| `squad` | Enter interactive shell (no args) | No |
| `squad init` | Initialize Squad in the current repo (idempotent β€” safe to run multiple times) | No |
| `squad init --global` | Create a personal squad in your platform-specific directory | No |
| `squad init --sdk` | Generate typed `squad.config.ts` with `useRole()` calls | No |
| `squad init --roles` | Include base role catalog (Lead, Backend, etc.) instead of universe casting | No |
| `squad init --mode remote <path>` | Initialize linked to a remote team root (dual-root mode) | No |
| `squad start [--tunnel] [--port N] [--command cmd]` | Start Copilot with remote phone access via PTY and WebSocket | No |
| `squad status` | Show which squad is active and why | Yes |
Expand Down
11 changes: 11 additions & 0 deletions docs/src/content/docs/scenarios/aspire-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,17 @@ You'll see gauges, counters, and histograms:
- `squad.response.ttft` β€” time to first token (ms)
- `squad.response.duration` β€” total response duration (ms)

### Rework Rate Metrics (5th DORA)

PR rework rate instruments, exported alongside the core metrics above:

| Instrument | Type | Unit | Description |
|-----------|------|------|-------------|
| `squad.rework.rate` | Gauge | % | Current rework rate percentage |
| `squad.rework.cycles` | Histogram | β€” | Review cycles per PR |
| `squad.rework.rejection_rate` | Gauge | % | Percentage of PRs with changes requested |
| `squad.rework.time_ms` | Histogram | ms | Time spent in rework |

### **Resources**

Aspire groups all telemetry by service. You'll see:
Expand Down
7 changes: 7 additions & 0 deletions docs/src/content/docs/whatsnew.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Full release history for Squad β€” from beta through the v1 TypeScript replatfor

- **Version alignment** β€” CLI (0.8.1) and SDK (0.8.0) snapped to 0.8.2 across all packages
- **Published to npm** β€” `@bradygaster/squad-sdk@0.8.2` and `@bradygaster/squad-cli@0.8.2`
- **Init flow improvements** β€” Ralph now included in the initial agent set during `squad init`; routing templates no longer reference `@copilot` by default (#337, #338, #339)
- **`--sdk` switch** β€” `squad init --sdk` generates typed `squad.config.ts` with `useRole()` calls (#424)
- **`--roles` opt-in** β€” `squad init --roles` uses the base role catalog instead of fictional universe casting (#412)
- **CastingEngine** β€” CLI init now uses `CastingEngine` to map recognized universes to curated character names and backstories (#417)
- **Session Recovery skill** β€” New skill for finding and resuming interrupted sessions via `session_store` queries (#442)
- **Model defaults updated** β€” Standard code β†’ Sonnet 4.6, premium visual β†’ Opus 4.6, code specialist β†’ GPT-5.3-codex, GPT-5.4 added to catalog (#429)
- **Rework rate OTEL metrics** β€” Four new instruments (`squad.rework.rate`, `squad.rework.cycles`, `squad.rework.rejection_rate`, `squad.rework.time_ms`) for the 5th DORA metric (#415)
- **Remote squad mode** (ported from @spboyer's [PR #131](https://github.com/bradygaster/squad/pull/131)):
- `resolveSquadPaths()` dual-root resolver for project-local vs team identity directories (#311)
- [`squad doctor` command](reference/cli.md) β€” 9-check setup validation with emoji output (#312)
Expand Down
Loading