How github/squad works
Squad is a human-directed multi-agent development product, exposed through a CLI and SDK. The main workflow is to initialize a project and configure a host, then submit work through the host’s coordinator for agent execution, with team state persisted and progress observable in the dashboard or interactive shell. The graph also preserves documented host integrations and the .NET adapter. Relationships are limited to README statements and source-index/import evidence; unsampled areas are not treated as inspected.
Main entry points: client.ts Client setup · App.tsx Interactive shell · storage-provider.ts Storage contract · cli-entry.ts Squad CLI
Components 20
CLI and setup
- Squad CLI
packages/squad-cli/src/cli-entry.ts - Client setup
packages/squad-cli/src/cli/commands/client.ts - Client configuration
packages/squad-cli/src/cli/core/clients.ts - MCP wiring
packages/squad-cli/src/cli/core/mcp-spec.ts - Interactive shell
packages/squad-cli/src/cli/shell/components/App.tsx - Shell commands
packages/squad-cli/src/cli/shell/commands.ts - Shell sessions
packages/squad-cli/src/cli/shell/sessions.ts - Team dashboard
packages/squad-cli/src/cli/dashboard/sources.ts
Agent execution
- Shell routing
packages/squad-cli/src/cli/shell/router.ts - Agent coordination
packages/squad-sdk/src/coordinator/coordinator.ts - Copilot client
packages/squad-sdk/src/adapter/client.ts - Agent roles
packages/squad-sdk/src/roles/catalog-engineering.ts
Team state
- Storage contract
packages/squad-sdk/src/storage/storage-provider.ts - Filesystem store
packages/squad-sdk/src/storage/fs-storage-provider.ts - SQLite store
packages/squad-sdk/src/storage/sqlite-storage-provider.ts - Project team files
Host integrations
- .NET agent adapter
src/Squad.Agents.AI/SquadAgent.cs - AI host
- GitHub Copilot
Other components
- Human operator
Connections 17
- Human operator → Squad CLI: runs commands
README.md - Squad CLI → Client setup: configures hosts
- Client setup → Client configuration: uses client settings
packages/squad-cli/src/cli/commands/client.ts - Client configuration → MCP wiring: projects MCP wiring
packages/squad-cli/src/cli/core/clients.ts - Human operator → Interactive shell: submits work
README.md - Interactive shell → Shell commands: executes commands
packages/squad-cli/src/cli/shell/components/App.tsx - Shell commands → Shell sessions: tracks sessions
packages/squad-cli/src/cli/shell/commands.ts - Shell routing → Agent coordination: routes to
packages/squad-cli/src/cli/shell/router.ts - Interactive shell → Shell routing: dispatches requests
packages/squad-cli/src/cli/shell/components/App.tsx - Agent coordination → Copilot client: dispatches agent work
- Copilot client → GitHub Copilot: uses SDK
packages/squad-sdk/src/adapter/client.ts - Human operator → Team dashboard: opens dashboard
README.md - Team dashboard → Project team files: reads session files
README.md - Client setup → Project team files: initializes team files
README.md - AI host → .NET agent adapter: resolves agent
- Storage contract → Filesystem store: implemented by
packages/squad-sdk/src/storage/fs-storage-provider.ts - Storage contract → SQLite store: implemented by
packages/squad-sdk/src/storage/sqlite-storage-provider.ts