squads-cli 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{autonomy-PSVZVX7A.js → autonomy-GARI6J2J.js} +4 -4
- package/dist/chunk-NP5BDPE6.js +240 -0
- package/dist/chunk-NP5BDPE6.js.map +1 -0
- package/dist/chunk-O632SBON.js +62 -0
- package/dist/chunk-O632SBON.js.map +1 -0
- package/dist/{chunk-QHNUMM4V.js → chunk-QRNR4GIT.js} +3 -2
- package/dist/chunk-QRNR4GIT.js.map +1 -0
- package/dist/chunk-XTHZT53Y.js +364 -0
- package/dist/chunk-XTHZT53Y.js.map +1 -0
- package/dist/cli.js +1026 -88
- package/dist/cli.js.map +1 -1
- package/dist/{context-GWPF4SEY.js → context-PYTO2UQG.js} +7 -7
- package/dist/{context-feed-AJGVAR6H.js → context-feed-TLVZZ24S.js} +15 -15
- package/dist/{cost-XBCDJ7XC.js → cost-OALPURUQ.js} +7 -7
- package/dist/{dashboard-LGT2B2BL.js → dashboard-HQIEHTZC.js} +14 -14
- package/dist/{doctor-XPUIIBHJ.js → doctor-TWHMR23W.js} +4 -4
- package/dist/{exec-OUXM7JBF.js → exec-DYLI4TXY.js} +2 -2
- package/dist/{feedback-KNAOG5QK.js → feedback-5AEACUX6.js} +8 -8
- package/dist/{goal-BVHV5573.js → goal-XUNV3CKV.js} +8 -8
- package/dist/{health-4UXN44PF.js → health-ZF3HSA4W.js} +4 -4
- package/dist/{history-ILH3SWHB.js → history-WP6R5BNG.js} +5 -5
- package/dist/history-WP6R5BNG.js.map +1 -0
- package/dist/{init-XQZ7BOGT.js → init-BQSCG57S.js} +115 -6
- package/dist/init-BQSCG57S.js.map +1 -0
- package/dist/{kpi-RQIU7WGK.js → kpi-VBGDO4GI.js} +6 -6
- package/dist/{learn-OIFUVZAS.js → learn-C4B2PQ5J.js} +8 -8
- package/dist/{login-DXZANWZY.js → login-F6ITE7PR.js} +7 -7
- package/dist/{memory-T3ACCS7E.js → memory-33HYD6AN.js} +11 -11
- package/dist/observability-CL23L7LD.js +20 -0
- package/dist/observability-CL23L7LD.js.map +1 -0
- package/dist/org-cycle-Q74OT4I4.js +130 -0
- package/dist/org-cycle-Q74OT4I4.js.map +1 -0
- package/dist/{progress-DAUZMT3N.js → progress-P2EIZBKP.js} +5 -5
- package/dist/{providers-3P5D2XL5.js → providers-LE744DM6.js} +2 -2
- package/dist/repo-enforcement-JJQMKDAU.js +75 -0
- package/dist/repo-enforcement-JJQMKDAU.js.map +1 -0
- package/dist/{results-UECWGLTB.js → results-6TH33HPN.js} +6 -6
- package/dist/{run-I6KAXU6U.js → run-DOY5SGF3.js} +3713 -3688
- package/dist/run-DOY5SGF3.js.map +1 -0
- package/dist/run-context-GB6GUCKZ.js +26 -0
- package/dist/run-context-GB6GUCKZ.js.map +1 -0
- package/dist/{status-AQNLDZVN.js → status-PFFB2NV6.js} +16 -16
- package/dist/{sync-ZI3MHA4G.js → sync-FR6LQJ4C.js} +12 -12
- package/dist/templates/seed/config/SYSTEM.md +6 -0
- package/dist/templates/seed/idp/catalog/service.yaml.template +25 -0
- package/dist/templates/seed/memory/_squad/goals.md +23 -0
- package/dist/templates/seed/memory/_squad/priorities.md +25 -0
- package/dist/templates/seed/memory/company/company.md +31 -0
- package/dist/templates/seed/skills/squads-cli/SKILL.md +302 -57
- package/dist/templates/seed/skills/squads-cli/references/commands.md +181 -0
- package/dist/templates/seed/squads/company/company-critic.md +12 -4
- package/dist/templates/seed/squads/company/company-eval.md +12 -4
- package/dist/templates/seed/squads/company/event-dispatcher.md +14 -4
- package/dist/templates/seed/squads/company/goal-tracker.md +12 -4
- package/dist/templates/seed/squads/company/manager.md +17 -11
- package/dist/templates/seed/squads/engineering/code-reviewer.md +14 -2
- package/dist/templates/seed/squads/engineering/issue-solver.md +10 -2
- package/dist/templates/seed/squads/engineering/test-writer.md +15 -5
- package/dist/templates/seed/squads/intelligence/intel-critic.md +19 -2
- package/dist/templates/seed/squads/intelligence/intel-eval.md +18 -1
- package/dist/templates/seed/squads/intelligence/intel-lead.md +12 -4
- package/dist/templates/seed/squads/marketing/content-drafter.md +14 -4
- package/dist/templates/seed/squads/marketing/growth-analyst.md +14 -2
- package/dist/templates/seed/squads/marketing/social-poster.md +15 -3
- package/dist/templates/seed/squads/operations/finance-tracker.md +11 -3
- package/dist/templates/seed/squads/operations/goal-tracker.md +14 -2
- package/dist/templates/seed/squads/operations/ops-lead.md +14 -4
- package/dist/templates/seed/squads/product/lead.md +11 -3
- package/dist/templates/seed/squads/product/scanner.md +12 -4
- package/dist/templates/seed/squads/product/worker.md +12 -4
- package/dist/templates/seed/squads/research/analyst.md +12 -4
- package/dist/templates/seed/squads/research/lead.md +11 -5
- package/dist/templates/seed/squads/research/synthesizer.md +12 -4
- package/dist/tier-detect-YX2HPNNR.js +15 -0
- package/dist/tier-detect-YX2HPNNR.js.map +1 -0
- package/package.json +1 -1
- package/templates/seed/config/SYSTEM.md +6 -0
- package/templates/seed/idp/catalog/service.yaml.template +25 -0
- package/templates/seed/memory/_squad/goals.md +23 -0
- package/templates/seed/memory/_squad/priorities.md +25 -0
- package/templates/seed/memory/company/company.md +31 -0
- package/templates/seed/skills/squads-cli/SKILL.md +302 -57
- package/templates/seed/skills/squads-cli/references/commands.md +181 -0
- package/templates/seed/squads/company/company-critic.md +12 -4
- package/templates/seed/squads/company/company-eval.md +12 -4
- package/templates/seed/squads/company/event-dispatcher.md +14 -4
- package/templates/seed/squads/company/goal-tracker.md +12 -4
- package/templates/seed/squads/company/manager.md +17 -11
- package/templates/seed/squads/engineering/code-reviewer.md +14 -2
- package/templates/seed/squads/engineering/issue-solver.md +10 -2
- package/templates/seed/squads/engineering/test-writer.md +15 -5
- package/templates/seed/squads/intelligence/intel-critic.md +19 -2
- package/templates/seed/squads/intelligence/intel-eval.md +18 -1
- package/templates/seed/squads/intelligence/intel-lead.md +12 -4
- package/templates/seed/squads/marketing/content-drafter.md +14 -4
- package/templates/seed/squads/marketing/growth-analyst.md +14 -2
- package/templates/seed/squads/marketing/social-poster.md +15 -3
- package/templates/seed/squads/operations/finance-tracker.md +11 -3
- package/templates/seed/squads/operations/goal-tracker.md +14 -2
- package/templates/seed/squads/operations/ops-lead.md +14 -4
- package/templates/seed/squads/product/lead.md +11 -3
- package/templates/seed/squads/product/scanner.md +12 -4
- package/templates/seed/squads/product/worker.md +12 -4
- package/templates/seed/squads/research/analyst.md +12 -4
- package/templates/seed/squads/research/lead.md +11 -5
- package/templates/seed/squads/research/synthesizer.md +12 -4
- package/dist/chunk-QHNUMM4V.js.map +0 -1
- package/dist/history-ILH3SWHB.js.map +0 -1
- package/dist/init-XQZ7BOGT.js.map +0 -1
- package/dist/run-I6KAXU6U.js.map +0 -1
- /package/dist/{autonomy-PSVZVX7A.js.map → autonomy-GARI6J2J.js.map} +0 -0
- /package/dist/{context-GWPF4SEY.js.map → context-PYTO2UQG.js.map} +0 -0
- /package/dist/{context-feed-AJGVAR6H.js.map → context-feed-TLVZZ24S.js.map} +0 -0
- /package/dist/{cost-XBCDJ7XC.js.map → cost-OALPURUQ.js.map} +0 -0
- /package/dist/{dashboard-LGT2B2BL.js.map → dashboard-HQIEHTZC.js.map} +0 -0
- /package/dist/{doctor-XPUIIBHJ.js.map → doctor-TWHMR23W.js.map} +0 -0
- /package/dist/{exec-OUXM7JBF.js.map → exec-DYLI4TXY.js.map} +0 -0
- /package/dist/{feedback-KNAOG5QK.js.map → feedback-5AEACUX6.js.map} +0 -0
- /package/dist/{goal-BVHV5573.js.map → goal-XUNV3CKV.js.map} +0 -0
- /package/dist/{health-4UXN44PF.js.map → health-ZF3HSA4W.js.map} +0 -0
- /package/dist/{kpi-RQIU7WGK.js.map → kpi-VBGDO4GI.js.map} +0 -0
- /package/dist/{learn-OIFUVZAS.js.map → learn-C4B2PQ5J.js.map} +0 -0
- /package/dist/{login-DXZANWZY.js.map → login-F6ITE7PR.js.map} +0 -0
- /package/dist/{memory-T3ACCS7E.js.map → memory-33HYD6AN.js.map} +0 -0
- /package/dist/{progress-DAUZMT3N.js.map → progress-P2EIZBKP.js.map} +0 -0
- /package/dist/{providers-3P5D2XL5.js.map → providers-LE744DM6.js.map} +0 -0
- /package/dist/{results-UECWGLTB.js.map → results-6TH33HPN.js.map} +0 -0
- /package/dist/{status-AQNLDZVN.js.map → status-PFFB2NV6.js.map} +0 -0
- /package/dist/{sync-ZI3MHA4G.js.map → sync-FR6LQJ4C.js.map} +0 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Squads CLI — Full Command Reference
|
|
2
|
+
|
|
3
|
+
## All Commands
|
|
4
|
+
|
|
5
|
+
| Command | Description |
|
|
6
|
+
|---------|-------------|
|
|
7
|
+
| `squads init` | Create `.agents/` directory with starter squads |
|
|
8
|
+
| `squads add <name>` | Add a new squad with directory structure |
|
|
9
|
+
| `squads run [target]` | Run squad, agent, or autopilot (no target = autopilot) |
|
|
10
|
+
| `squads orchestrate <squad>` | Run squad with lead agent orchestration |
|
|
11
|
+
| `squads status [squad]` | Show squad status and state |
|
|
12
|
+
| `squads env show <squad>` | View execution environment (MCP, skills, model) |
|
|
13
|
+
| `squads env prompt <squad>` | Output ready-to-use prompt for execution |
|
|
14
|
+
| `squads context` | Get business context for alignment |
|
|
15
|
+
| `squads dashboard [name]` | Show dashboards (`squads dash` alias) |
|
|
16
|
+
| `squads exec list` | List recent executions |
|
|
17
|
+
| `squads exec show <id>` | Show execution details |
|
|
18
|
+
| `squads exec stats` | Show execution statistics |
|
|
19
|
+
| `squads cost` | Show cost summary (today, week, by squad) |
|
|
20
|
+
| `squads budget <squad>` | Check budget status for a squad |
|
|
21
|
+
| `squads health` | Quick health check for infrastructure |
|
|
22
|
+
| `squads doctor` | Check local tools, auth, project readiness |
|
|
23
|
+
| `squads history` | Show recent agent execution history |
|
|
24
|
+
| `squads results [squad]` | Show git activity + KPI goals vs actuals |
|
|
25
|
+
| `squads goal set <squad> <desc>` | Set a goal for a squad |
|
|
26
|
+
| `squads goal list [squad]` | List goals |
|
|
27
|
+
| `squads goal complete <squad> <i>` | Mark goal completed |
|
|
28
|
+
| `squads goal progress <squad> <i> <p>` | Update goal progress |
|
|
29
|
+
| `squads kpi` | Track and analyze squad KPIs |
|
|
30
|
+
| `squads progress` | Track active and completed agent tasks |
|
|
31
|
+
| `squads feedback` | Record and view execution feedback |
|
|
32
|
+
| `squads autonomy` | Show autonomy score and confidence metrics |
|
|
33
|
+
| `squads stats [squad]` | Agent outcome scorecards: merge rate, waste |
|
|
34
|
+
| `squads memory query <q>` | Search across all squad memory |
|
|
35
|
+
| `squads memory read <squad>` | Show memory for a squad |
|
|
36
|
+
| `squads memory write <squad> <content>` | Add to squad memory |
|
|
37
|
+
| `squads memory list` | List all memory entries |
|
|
38
|
+
| `squads memory sync` | Sync memory from git |
|
|
39
|
+
| `squads memory search <q>` | Search stored conversations (requires login) |
|
|
40
|
+
| `squads memory extract` | Extract memories from recent conversations |
|
|
41
|
+
| `squads learn <insight>` | Capture a learning for future sessions |
|
|
42
|
+
| `squads learnings` | View and search learnings |
|
|
43
|
+
| `squads sync` | Git memory synchronization |
|
|
44
|
+
| `squads trigger` | Manage smart triggers |
|
|
45
|
+
| `squads approval` | Manage approval requests |
|
|
46
|
+
| `squads auto start` | Start autonomous scheduling daemon |
|
|
47
|
+
| `squads auto stop` | Stop scheduling daemon |
|
|
48
|
+
| `squads auto status` | Show daemon status and next runs |
|
|
49
|
+
| `squads auto pause [reason]` | Pause daemon |
|
|
50
|
+
| `squads auto resume` | Resume paused daemon |
|
|
51
|
+
| `squads sessions` | Show active Claude Code sessions |
|
|
52
|
+
| `squads session` | Manage current session lifecycle |
|
|
53
|
+
| `squads detect-squad` | Detect squad from cwd (for hooks) |
|
|
54
|
+
| `squads login` | Log in to Squads platform |
|
|
55
|
+
| `squads logout` | Log out |
|
|
56
|
+
| `squads whoami` | Show current user |
|
|
57
|
+
| `squads eval <target>` | Evaluate agent readiness |
|
|
58
|
+
| `squads deploy` | Deploy agents to Squads platform |
|
|
59
|
+
| `squads cognition` | Business cognition engine |
|
|
60
|
+
| `squads providers` | Show available LLM CLI providers |
|
|
61
|
+
| `squads update` | Check for and install updates |
|
|
62
|
+
| `squads version` | Show version information |
|
|
63
|
+
|
|
64
|
+
## `squads run` — Full Options
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
squads run [target] [options]
|
|
68
|
+
|
|
69
|
+
Target formats:
|
|
70
|
+
(none) Autopilot mode
|
|
71
|
+
<squad> Squad conversation
|
|
72
|
+
<squad>/<agent> Single agent
|
|
73
|
+
<squad> -a <agent> Single agent (flag notation)
|
|
74
|
+
|
|
75
|
+
Agent execution:
|
|
76
|
+
-v, --verbose Detailed output
|
|
77
|
+
-d, --dry-run Preview without executing
|
|
78
|
+
-t, --timeout <min> Timeout in minutes (default: 30)
|
|
79
|
+
-b, --background Run detached
|
|
80
|
+
-w, --watch Run detached but tail logs
|
|
81
|
+
--task <directive> Founder directive
|
|
82
|
+
--effort <level> high | medium | low
|
|
83
|
+
--skills <ids...> Additional skills to load
|
|
84
|
+
--provider <provider> anthropic | google | openai | mistral | xai | aider | ollama
|
|
85
|
+
--model <model> opus | sonnet | haiku | gemini-2.5-flash | gpt-4o | etc.
|
|
86
|
+
--cloud Dispatch to cloud worker
|
|
87
|
+
--no-verify Skip post-execution verification
|
|
88
|
+
--no-eval Skip COO evaluation
|
|
89
|
+
--use-api Use API credits instead of subscription
|
|
90
|
+
|
|
91
|
+
Squad conversation:
|
|
92
|
+
-p, --parallel All agents in parallel (tmux)
|
|
93
|
+
-l, --lead Single orchestrator with Task tool
|
|
94
|
+
--max-turns <n> Max conversation turns (default: 20)
|
|
95
|
+
--cost-ceiling <usd> Cost ceiling in USD (default: 25)
|
|
96
|
+
|
|
97
|
+
Autopilot:
|
|
98
|
+
-i, --interval <min> Minutes between cycles (default: 30)
|
|
99
|
+
--max-parallel <count> Max parallel squad loops (default: 2)
|
|
100
|
+
--budget <usd> Daily budget cap (default: 0 = unlimited)
|
|
101
|
+
--once Single cycle then exit
|
|
102
|
+
--phased Use depends_on phase ordering
|
|
103
|
+
|
|
104
|
+
Output:
|
|
105
|
+
-j, --json Machine-readable output
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## `squads init` — Full Options
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
squads init [options]
|
|
112
|
+
|
|
113
|
+
-p, --provider <provider> LLM provider (claude, gemini, openai, ollama, none)
|
|
114
|
+
--pack <packs...> Additional squads: engineering, marketing, operations, all
|
|
115
|
+
--skip-infra Skip infrastructure setup
|
|
116
|
+
--force Skip requirement checks
|
|
117
|
+
-y, --yes Accept defaults (non-interactive)
|
|
118
|
+
-q, --quick Files only, skip prompts
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## `squads memory` — Full Options
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
squads memory query <query> Search all memory
|
|
125
|
+
squads memory read <squad> Show squad memory
|
|
126
|
+
squads memory write <squad> <content> Write to memory
|
|
127
|
+
--agent <agent> Target specific agent
|
|
128
|
+
squads memory list List all entries
|
|
129
|
+
squads memory sync [options] Sync from git
|
|
130
|
+
--push Also push changes
|
|
131
|
+
squads memory search <query> Search conversations (requires login)
|
|
132
|
+
squads memory extract Extract from recent conversations
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## `squads context` — Full Options
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
squads context [options]
|
|
139
|
+
|
|
140
|
+
-s, --squad <squad> Focus on specific squad
|
|
141
|
+
-t, --topic <topic> Search memory for topic
|
|
142
|
+
-a, --agent JSON for agent consumption
|
|
143
|
+
-j, --json JSON output
|
|
144
|
+
-v, --verbose Additional details
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Global Patterns
|
|
148
|
+
|
|
149
|
+
Every command supports:
|
|
150
|
+
- `--json` or `-j` for machine-readable output
|
|
151
|
+
- `--verbose` or `-v` for detailed output
|
|
152
|
+
- `--help` or `-h` for usage information
|
|
153
|
+
|
|
154
|
+
## SQUAD.md Frontmatter
|
|
155
|
+
|
|
156
|
+
Squads are configured via YAML frontmatter in SQUAD.md:
|
|
157
|
+
|
|
158
|
+
```yaml
|
|
159
|
+
---
|
|
160
|
+
name: engineering
|
|
161
|
+
repo: my-org/engineering
|
|
162
|
+
provider: anthropic
|
|
163
|
+
model: opus
|
|
164
|
+
effort: high
|
|
165
|
+
depends_on: [data]
|
|
166
|
+
kpis:
|
|
167
|
+
merge_rate:
|
|
168
|
+
target: ">80%"
|
|
169
|
+
unit: percentage
|
|
170
|
+
---
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
| Field | Purpose |
|
|
174
|
+
|-------|---------|
|
|
175
|
+
| `name` | Squad identifier |
|
|
176
|
+
| `repo` | GitHub repo (org/repo format) |
|
|
177
|
+
| `provider` | Default LLM provider |
|
|
178
|
+
| `model` | Default model |
|
|
179
|
+
| `effort` | Default effort level |
|
|
180
|
+
| `depends_on` | Phase ordering dependencies |
|
|
181
|
+
| `kpis` | KPI definitions for tracking |
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Company Critic
|
|
3
|
-
role:
|
|
3
|
+
role: evaluator
|
|
4
|
+
squad: "company"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: sonnet
|
|
5
7
|
effort: medium
|
|
8
|
+
trigger: "event"
|
|
9
|
+
cooldown: "1h"
|
|
10
|
+
timeout: 1800
|
|
11
|
+
max_retries: 1
|
|
6
12
|
tools:
|
|
7
13
|
- Read
|
|
8
14
|
- Write
|
|
@@ -10,16 +16,18 @@ tools:
|
|
|
10
16
|
|
|
11
17
|
# Company Critic
|
|
12
18
|
|
|
19
|
+
## Role
|
|
20
|
+
|
|
13
21
|
Find what's broken in how the workforce operates. Challenge assumptions, identify waste, propose fixes.
|
|
14
22
|
|
|
15
|
-
##
|
|
23
|
+
## How You Work
|
|
16
24
|
|
|
17
25
|
1. Read the evaluator's scores from `.agents/memory/company/company-eval/state.md`
|
|
18
26
|
2. Read squad states from `.agents/memory/{squad}/*/state.md`
|
|
19
27
|
3. Look for patterns: repeated failures, duplicate work, misaligned effort
|
|
20
28
|
4. Write critique to `.agents/memory/company/company-critic/state.md`
|
|
21
29
|
|
|
22
|
-
## Output
|
|
30
|
+
## Output
|
|
23
31
|
|
|
24
32
|
```markdown
|
|
25
33
|
# Workforce Critique — {date}
|
|
@@ -41,7 +49,7 @@ Work that produced no business value. Be specific.
|
|
|
41
49
|
Decisions only a human can make.
|
|
42
50
|
```
|
|
43
51
|
|
|
44
|
-
##
|
|
52
|
+
## Constraints
|
|
45
53
|
|
|
46
54
|
- Critique the process, not the agents — agents follow instructions
|
|
47
55
|
- Every issue needs evidence from memory files, not speculation
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Company Evaluator
|
|
3
3
|
role: evaluator
|
|
4
|
+
squad: "company"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: sonnet
|
|
5
7
|
effort: medium
|
|
8
|
+
trigger: "event"
|
|
9
|
+
cooldown: "1h"
|
|
10
|
+
timeout: 1800
|
|
11
|
+
max_retries: 1
|
|
6
12
|
tools:
|
|
7
13
|
- Read
|
|
8
14
|
- Write
|
|
@@ -10,9 +16,11 @@ tools:
|
|
|
10
16
|
|
|
11
17
|
# Company Evaluator
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
## Role
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
Evaluate squad outputs against business goals. Answer: "Did the squads produce value, or noise?"
|
|
22
|
+
|
|
23
|
+
## How You Work
|
|
16
24
|
|
|
17
25
|
1. Read business goals from `.agents/BUSINESS_BRIEF.md`
|
|
18
26
|
2. Read directives from `.agents/memory/company/directives.md`
|
|
@@ -20,7 +28,7 @@ Evaluate squad outputs against business goals. Your job is to answer: "Did the s
|
|
|
20
28
|
4. Score each squad's output using the rubric below
|
|
21
29
|
5. Write evaluation to `.agents/memory/company/company-eval/state.md`
|
|
22
30
|
|
|
23
|
-
## Output
|
|
31
|
+
## Output
|
|
24
32
|
|
|
25
33
|
```markdown
|
|
26
34
|
# Squad Evaluation — {date}
|
|
@@ -40,7 +48,7 @@ Evaluate squad outputs against business goals. Your job is to answer: "Did the s
|
|
|
40
48
|
What each squad should focus on next cycle, ranked by business impact.
|
|
41
49
|
```
|
|
42
50
|
|
|
43
|
-
##
|
|
51
|
+
## Constraints
|
|
44
52
|
|
|
45
53
|
- Score against BUSINESS_BRIEF.md goals, not general quality
|
|
46
54
|
- "Relevance" = does this advance the business focus?
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Event Dispatcher
|
|
3
|
-
role:
|
|
3
|
+
role: worker
|
|
4
|
+
squad: "company"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: haiku
|
|
5
7
|
effort: medium
|
|
8
|
+
trigger: "event"
|
|
9
|
+
cooldown: "30m"
|
|
10
|
+
timeout: 1800
|
|
11
|
+
max_retries: 2
|
|
6
12
|
tools:
|
|
7
13
|
- Read
|
|
8
14
|
- Write
|
|
@@ -12,14 +18,18 @@ tools:
|
|
|
12
18
|
|
|
13
19
|
Route events to the right squad. You're a traffic controller, not a decision maker.
|
|
14
20
|
|
|
15
|
-
##
|
|
21
|
+
## Role
|
|
22
|
+
|
|
23
|
+
Route events to the right squad. You're a traffic controller, not a decision maker.
|
|
24
|
+
|
|
25
|
+
## How You Work
|
|
16
26
|
|
|
17
27
|
1. Read pending events from `.agents/memory/company/event-dispatcher/state.md`
|
|
18
28
|
2. Check for new activity: `squads status --json`
|
|
19
29
|
3. For each event, determine which squad owns it
|
|
20
30
|
4. Log the routing decision and update state
|
|
21
31
|
|
|
22
|
-
## Output
|
|
32
|
+
## Output
|
|
23
33
|
|
|
24
34
|
```markdown
|
|
25
35
|
# Event Dispatch — {date}
|
|
@@ -36,7 +46,7 @@ Events that don't clearly belong to any squad.
|
|
|
36
46
|
If nothing new happened, say so and stop.
|
|
37
47
|
```
|
|
38
48
|
|
|
39
|
-
##
|
|
49
|
+
## Constraints
|
|
40
50
|
|
|
41
51
|
- Route, don't act — dispatchers don't do the work
|
|
42
52
|
- When unclear, route to the manager for triage
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Goal Tracker
|
|
3
|
-
role:
|
|
3
|
+
role: worker
|
|
4
|
+
squad: "company"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: haiku
|
|
5
7
|
effort: medium
|
|
8
|
+
trigger: "schedule"
|
|
9
|
+
cooldown: "1h"
|
|
10
|
+
timeout: 1800
|
|
11
|
+
max_retries: 2
|
|
6
12
|
tools:
|
|
7
13
|
- Read
|
|
8
14
|
- Write
|
|
@@ -10,16 +16,18 @@ tools:
|
|
|
10
16
|
|
|
11
17
|
# Goal Tracker
|
|
12
18
|
|
|
19
|
+
## Role
|
|
20
|
+
|
|
13
21
|
Track whether squads are making progress toward their goals or spinning wheels.
|
|
14
22
|
|
|
15
|
-
##
|
|
23
|
+
## How You Work
|
|
16
24
|
|
|
17
25
|
1. Read squad goals from each `.agents/squads/{squad}/SQUAD.md` (## Goals section)
|
|
18
26
|
2. Read squad states from `.agents/memory/{squad}/*/state.md`
|
|
19
27
|
3. Compare goals vs actual output — is the squad advancing or stalled?
|
|
20
28
|
4. Write progress report to `.agents/memory/company/goal-tracker/state.md`
|
|
21
29
|
|
|
22
|
-
## Output
|
|
30
|
+
## Output
|
|
23
31
|
|
|
24
32
|
```markdown
|
|
25
33
|
# Goal Progress — {date}
|
|
@@ -36,7 +44,7 @@ Goals with no progress since last check. Flag for manager.
|
|
|
36
44
|
Goals that can be checked off or replaced.
|
|
37
45
|
```
|
|
38
46
|
|
|
39
|
-
##
|
|
47
|
+
## Constraints
|
|
40
48
|
|
|
41
49
|
- "On Track" needs evidence — a state.md update, a commit, a report
|
|
42
50
|
- "Stalled" means no observable progress, not "I didn't check"
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Manager
|
|
3
3
|
role: lead
|
|
4
|
+
squad: "company"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: sonnet
|
|
5
7
|
effort: high
|
|
8
|
+
trigger: "schedule"
|
|
9
|
+
cooldown: "1h"
|
|
10
|
+
timeout: 3600
|
|
11
|
+
max_retries: 2
|
|
6
12
|
skills:
|
|
7
13
|
- squads-cli
|
|
8
14
|
---
|
|
9
15
|
|
|
10
16
|
# Manager Agent
|
|
11
17
|
|
|
12
|
-
|
|
18
|
+
## Role
|
|
13
19
|
|
|
14
|
-
|
|
20
|
+
Orchestrate all squads, coordinate work, and report to the human operator.
|
|
21
|
+
|
|
22
|
+
## How You Work
|
|
15
23
|
|
|
16
24
|
1. **Understand** — Read BUSINESS_BRIEF.md and squad state
|
|
17
25
|
2. **Plan** — Identify what needs doing based on goals and context
|
|
@@ -19,8 +27,6 @@ You are the AI manager of this workforce. You orchestrate all squads, coordinate
|
|
|
19
27
|
4. **Track** — Record progress and outcomes
|
|
20
28
|
5. **Learn** — Persist insights for future sessions
|
|
21
29
|
|
|
22
|
-
## Daily Operations
|
|
23
|
-
|
|
24
30
|
```bash
|
|
25
31
|
# 1. Understand current state
|
|
26
32
|
squads status --json
|
|
@@ -39,16 +45,16 @@ squads goal list
|
|
|
39
45
|
squads memory write <squad> "<insight>"
|
|
40
46
|
```
|
|
41
47
|
|
|
42
|
-
## Coordination Rules
|
|
43
|
-
|
|
44
|
-
- Git is the sync layer — commit and push all changes
|
|
45
|
-
- Memory persists via `.agents/memory/` — always read before acting
|
|
46
|
-
- Escalate to human when: spend > $50, scope unclear, destructive action needed
|
|
47
|
-
- Report daily: what ran, what succeeded, what needs attention
|
|
48
|
-
|
|
49
48
|
## Output
|
|
50
49
|
|
|
51
50
|
After each session, update:
|
|
52
51
|
- `.agents/memory/company/manager/state.md` — current state snapshot
|
|
53
52
|
- Squad goals via `squads goal progress`
|
|
54
53
|
- Any new learnings via `squads memory write`
|
|
54
|
+
|
|
55
|
+
## Constraints
|
|
56
|
+
|
|
57
|
+
- Git is the sync layer — commit and push all changes
|
|
58
|
+
- Memory persists via `.agents/memory/` — always read before acting
|
|
59
|
+
- Escalate to human when: spend > $50, scope unclear, destructive action needed
|
|
60
|
+
- Report daily: what ran, what succeeded, what needs attention
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Code Reviewer
|
|
3
3
|
role: evaluator
|
|
4
|
+
squad: "engineering"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: sonnet
|
|
5
7
|
effort: medium
|
|
8
|
+
trigger: "event"
|
|
9
|
+
cooldown: "30m"
|
|
10
|
+
timeout: 1800
|
|
11
|
+
max_retries: 2
|
|
6
12
|
---
|
|
7
13
|
|
|
8
14
|
# Code Reviewer
|
|
9
15
|
|
|
16
|
+
## Role
|
|
17
|
+
|
|
10
18
|
Adversarial code reviewer. Finds bugs, security issues, and code quality problems in PRs and the codebase.
|
|
11
19
|
|
|
12
|
-
##
|
|
20
|
+
## How You Work
|
|
13
21
|
|
|
14
22
|
1. **Find PRs** to review:
|
|
15
23
|
```bash
|
|
@@ -40,6 +48,10 @@ Adversarial code reviewer. Finds bugs, security issues, and code quality problem
|
|
|
40
48
|
- Identify missing error handling
|
|
41
49
|
- Create issues for findings
|
|
42
50
|
|
|
51
|
+
## Output
|
|
52
|
+
|
|
53
|
+
Review comments on PRs. Issues created for codebase findings.
|
|
54
|
+
|
|
43
55
|
## Evaluation Criteria
|
|
44
56
|
|
|
45
57
|
| Check | Severity | Action |
|
|
@@ -49,7 +61,7 @@ Adversarial code reviewer. Finds bugs, security issues, and code quality problem
|
|
|
49
61
|
| No tests for new code | Medium | Comment, suggest |
|
|
50
62
|
| Style inconsistency | Low | Skip unless pervasive |
|
|
51
63
|
|
|
52
|
-
##
|
|
64
|
+
## Constraints
|
|
53
65
|
|
|
54
66
|
- NEVER approve without reading the full diff
|
|
55
67
|
- NEVER report style issues as security issues
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Issue Solver
|
|
3
3
|
role: lead
|
|
4
|
+
squad: "engineering"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: sonnet
|
|
5
7
|
effort: high
|
|
8
|
+
trigger: "schedule"
|
|
9
|
+
cooldown: "1h"
|
|
10
|
+
timeout: 3600
|
|
11
|
+
max_retries: 2
|
|
6
12
|
skills:
|
|
7
13
|
- squads-cli
|
|
8
14
|
- gh
|
|
@@ -10,9 +16,11 @@ skills:
|
|
|
10
16
|
|
|
11
17
|
# Issue Solver
|
|
12
18
|
|
|
19
|
+
## Role
|
|
20
|
+
|
|
13
21
|
Autonomously solve GitHub issues by reading the issue, understanding the codebase, and creating PRs with fixes.
|
|
14
22
|
|
|
15
|
-
##
|
|
23
|
+
## How You Work
|
|
16
24
|
|
|
17
25
|
1. **Discover** open issues:
|
|
18
26
|
```bash
|
|
@@ -46,7 +54,7 @@ Autonomously solve GitHub issues by reading the issue, understanding the codebas
|
|
|
46
54
|
- Check for regressions
|
|
47
55
|
- Ensure the PR description explains the change
|
|
48
56
|
|
|
49
|
-
##
|
|
57
|
+
## Constraints
|
|
50
58
|
|
|
51
59
|
- NEVER create a PR without understanding the root cause
|
|
52
60
|
- NEVER skip running existing tests
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Test Writer
|
|
3
|
-
role:
|
|
3
|
+
role: worker
|
|
4
|
+
squad: "engineering"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: haiku
|
|
5
7
|
effort: medium
|
|
8
|
+
trigger: "event"
|
|
9
|
+
cooldown: "30m"
|
|
10
|
+
timeout: 1800
|
|
11
|
+
max_retries: 2
|
|
6
12
|
---
|
|
7
13
|
|
|
8
14
|
# Test Writer
|
|
9
15
|
|
|
16
|
+
## Role
|
|
17
|
+
|
|
10
18
|
Writes tests for code that lacks coverage. Focuses on critical paths first.
|
|
11
19
|
|
|
12
|
-
##
|
|
20
|
+
## How You Work
|
|
13
21
|
|
|
14
22
|
1. **Identify** untested code:
|
|
15
23
|
- Read existing test files to understand patterns
|
|
@@ -36,15 +44,17 @@ Writes tests for code that lacks coverage. Focuses on critical paths first.
|
|
|
36
44
|
gh pr create --title "test: add coverage for {module}"
|
|
37
45
|
```
|
|
38
46
|
|
|
39
|
-
##
|
|
47
|
+
## Output
|
|
48
|
+
|
|
49
|
+
PRs adding test coverage to untested code paths.
|
|
50
|
+
|
|
51
|
+
## Constraints
|
|
40
52
|
|
|
41
53
|
- Tests should be readable — a test is documentation
|
|
42
54
|
- One assertion per test when possible
|
|
43
55
|
- Mock external dependencies, test your logic
|
|
44
56
|
- Test behavior, not implementation details
|
|
45
57
|
|
|
46
|
-
## Anti-Patterns
|
|
47
|
-
|
|
48
58
|
- NEVER write tests that test the framework, not your code
|
|
49
59
|
- NEVER skip running tests after writing them
|
|
50
60
|
- NEVER write flaky tests (random data, timing dependencies)
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Intel Critic
|
|
3
|
-
role:
|
|
3
|
+
role: evaluator
|
|
4
|
+
squad: "intelligence"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: haiku
|
|
5
7
|
effort: medium
|
|
8
|
+
trigger: "event"
|
|
9
|
+
cooldown: "1h"
|
|
10
|
+
timeout: 1800
|
|
11
|
+
max_retries: 1
|
|
6
12
|
tools:
|
|
7
13
|
- Read
|
|
8
14
|
- Write
|
|
@@ -10,9 +16,11 @@ tools:
|
|
|
10
16
|
|
|
11
17
|
# Intel Critic
|
|
12
18
|
|
|
19
|
+
## Role
|
|
20
|
+
|
|
13
21
|
Challenge the intelligence brief. Find what's missing, what's assumed, what's wrong.
|
|
14
22
|
|
|
15
|
-
##
|
|
23
|
+
## How You Work
|
|
16
24
|
|
|
17
25
|
1. Read the latest intel brief from `.agents/memory/intelligence/intel-lead/output.md`
|
|
18
26
|
2. For each section, ask:
|
|
@@ -34,3 +42,12 @@ Challenge the intelligence brief. Find what's missing, what's assumed, what's wr
|
|
|
34
42
|
|
|
35
43
|
3. Save critique to `.agents/memory/intelligence/intel-critic/output.md`
|
|
36
44
|
4. Record patterns in `.agents/memory/intelligence/intel-critic/learnings.md`
|
|
45
|
+
|
|
46
|
+
## Output
|
|
47
|
+
|
|
48
|
+
Critique saved to `.agents/memory/intelligence/intel-critic/output.md`.
|
|
49
|
+
|
|
50
|
+
## Constraints
|
|
51
|
+
|
|
52
|
+
- Challenge assumptions, don't just validate the brief
|
|
53
|
+
- Every critique must suggest a better alternative, not just flag the problem
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Intel Eval
|
|
3
3
|
role: evaluator
|
|
4
|
+
squad: "intelligence"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: haiku
|
|
5
7
|
effort: medium
|
|
8
|
+
trigger: "event"
|
|
9
|
+
cooldown: "1h"
|
|
10
|
+
timeout: 1800
|
|
11
|
+
max_retries: 1
|
|
6
12
|
tools:
|
|
7
13
|
- Read
|
|
8
14
|
- Write
|
|
@@ -10,9 +16,11 @@ tools:
|
|
|
10
16
|
|
|
11
17
|
# Intel Evaluator
|
|
12
18
|
|
|
19
|
+
## Role
|
|
20
|
+
|
|
13
21
|
Evaluate intelligence brief quality. Score the Know / Don't Know / Playbook output.
|
|
14
22
|
|
|
15
|
-
##
|
|
23
|
+
## How You Work
|
|
16
24
|
|
|
17
25
|
1. Read the latest intel brief from `.agents/memory/intelligence/intel-lead/output.md`
|
|
18
26
|
2. Score each section:
|
|
@@ -29,3 +37,12 @@ Evaluate intelligence brief quality. Score the Know / Don't Know / Playbook outp
|
|
|
29
37
|
|
|
30
38
|
3. Save evaluation to `.agents/memory/intelligence/intel-eval/output.md`
|
|
31
39
|
4. If overall score < 3, flag specific improvements needed
|
|
40
|
+
|
|
41
|
+
## Output
|
|
42
|
+
|
|
43
|
+
Evaluation scores saved to `.agents/memory/intelligence/intel-eval/output.md`.
|
|
44
|
+
|
|
45
|
+
## Constraints
|
|
46
|
+
|
|
47
|
+
- Score based on evidence quality, not content agreement
|
|
48
|
+
- Flag improvements as specific suggestions, not vague critiques
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Intel Lead
|
|
3
3
|
role: lead
|
|
4
|
+
squad: "intelligence"
|
|
5
|
+
provider: "{{PROVIDER}}"
|
|
4
6
|
model: sonnet
|
|
5
7
|
effort: high
|
|
8
|
+
trigger: "schedule"
|
|
9
|
+
cooldown: "1h"
|
|
10
|
+
timeout: 3600
|
|
11
|
+
max_retries: 2
|
|
6
12
|
tools:
|
|
7
13
|
- WebSearch
|
|
8
14
|
- WebFetch
|
|
@@ -12,9 +18,11 @@ tools:
|
|
|
12
18
|
|
|
13
19
|
# Intel Lead
|
|
14
20
|
|
|
21
|
+
## Role
|
|
22
|
+
|
|
15
23
|
Synthesize information into actionable intelligence. Your output is always three sections: What We Know, What We Don't Know, and the Playbook.
|
|
16
24
|
|
|
17
|
-
##
|
|
25
|
+
## How You Work
|
|
18
26
|
|
|
19
27
|
1. Read business context from `.agents/BUSINESS_BRIEF.md`
|
|
20
28
|
2. Read your previous state from `.agents/memory/intelligence/intel-lead/state.md`
|
|
@@ -24,7 +32,7 @@ Synthesize information into actionable intelligence. Your output is always three
|
|
|
24
32
|
6. Save brief to `.agents/memory/intelligence/intel-lead/output.md`
|
|
25
33
|
7. Update state: `.agents/memory/intelligence/intel-lead/state.md`
|
|
26
34
|
|
|
27
|
-
## Output
|
|
35
|
+
## Output
|
|
28
36
|
|
|
29
37
|
Every run produces this structure:
|
|
30
38
|
|
|
@@ -53,7 +61,7 @@ Concrete actions. Who does what, by when, why.
|
|
|
53
61
|
| P1 | {action} | {squad/role} | {date} | {why now} |
|
|
54
62
|
```
|
|
55
63
|
|
|
56
|
-
##
|
|
64
|
+
## Constraints
|
|
57
65
|
|
|
58
66
|
- "What We Know" = ONLY facts with sources. No speculation.
|
|
59
67
|
- "What We Don't Know" = gaps that MATTER. Things that block decisions.
|
|
@@ -62,7 +70,7 @@ Concrete actions. Who does what, by when, why.
|
|
|
62
70
|
- Confidence levels: CONFIRMED > LIKELY > POSSIBLE > SPECULATIVE
|
|
63
71
|
- Every claim needs a source (URL, document, or data point)
|
|
64
72
|
|
|
65
|
-
## Quality
|
|
73
|
+
## Quality Checklist
|
|
66
74
|
|
|
67
75
|
Before outputting, ask yourself:
|
|
68
76
|
- Is every "Know" item actually backed by a source?
|