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.
Files changed (129) hide show
  1. package/dist/{autonomy-PSVZVX7A.js → autonomy-GARI6J2J.js} +4 -4
  2. package/dist/chunk-NP5BDPE6.js +240 -0
  3. package/dist/chunk-NP5BDPE6.js.map +1 -0
  4. package/dist/chunk-O632SBON.js +62 -0
  5. package/dist/chunk-O632SBON.js.map +1 -0
  6. package/dist/{chunk-QHNUMM4V.js → chunk-QRNR4GIT.js} +3 -2
  7. package/dist/chunk-QRNR4GIT.js.map +1 -0
  8. package/dist/chunk-XTHZT53Y.js +364 -0
  9. package/dist/chunk-XTHZT53Y.js.map +1 -0
  10. package/dist/cli.js +1026 -88
  11. package/dist/cli.js.map +1 -1
  12. package/dist/{context-GWPF4SEY.js → context-PYTO2UQG.js} +7 -7
  13. package/dist/{context-feed-AJGVAR6H.js → context-feed-TLVZZ24S.js} +15 -15
  14. package/dist/{cost-XBCDJ7XC.js → cost-OALPURUQ.js} +7 -7
  15. package/dist/{dashboard-LGT2B2BL.js → dashboard-HQIEHTZC.js} +14 -14
  16. package/dist/{doctor-XPUIIBHJ.js → doctor-TWHMR23W.js} +4 -4
  17. package/dist/{exec-OUXM7JBF.js → exec-DYLI4TXY.js} +2 -2
  18. package/dist/{feedback-KNAOG5QK.js → feedback-5AEACUX6.js} +8 -8
  19. package/dist/{goal-BVHV5573.js → goal-XUNV3CKV.js} +8 -8
  20. package/dist/{health-4UXN44PF.js → health-ZF3HSA4W.js} +4 -4
  21. package/dist/{history-ILH3SWHB.js → history-WP6R5BNG.js} +5 -5
  22. package/dist/history-WP6R5BNG.js.map +1 -0
  23. package/dist/{init-XQZ7BOGT.js → init-BQSCG57S.js} +115 -6
  24. package/dist/init-BQSCG57S.js.map +1 -0
  25. package/dist/{kpi-RQIU7WGK.js → kpi-VBGDO4GI.js} +6 -6
  26. package/dist/{learn-OIFUVZAS.js → learn-C4B2PQ5J.js} +8 -8
  27. package/dist/{login-DXZANWZY.js → login-F6ITE7PR.js} +7 -7
  28. package/dist/{memory-T3ACCS7E.js → memory-33HYD6AN.js} +11 -11
  29. package/dist/observability-CL23L7LD.js +20 -0
  30. package/dist/observability-CL23L7LD.js.map +1 -0
  31. package/dist/org-cycle-Q74OT4I4.js +130 -0
  32. package/dist/org-cycle-Q74OT4I4.js.map +1 -0
  33. package/dist/{progress-DAUZMT3N.js → progress-P2EIZBKP.js} +5 -5
  34. package/dist/{providers-3P5D2XL5.js → providers-LE744DM6.js} +2 -2
  35. package/dist/repo-enforcement-JJQMKDAU.js +75 -0
  36. package/dist/repo-enforcement-JJQMKDAU.js.map +1 -0
  37. package/dist/{results-UECWGLTB.js → results-6TH33HPN.js} +6 -6
  38. package/dist/{run-I6KAXU6U.js → run-DOY5SGF3.js} +3713 -3688
  39. package/dist/run-DOY5SGF3.js.map +1 -0
  40. package/dist/run-context-GB6GUCKZ.js +26 -0
  41. package/dist/run-context-GB6GUCKZ.js.map +1 -0
  42. package/dist/{status-AQNLDZVN.js → status-PFFB2NV6.js} +16 -16
  43. package/dist/{sync-ZI3MHA4G.js → sync-FR6LQJ4C.js} +12 -12
  44. package/dist/templates/seed/config/SYSTEM.md +6 -0
  45. package/dist/templates/seed/idp/catalog/service.yaml.template +25 -0
  46. package/dist/templates/seed/memory/_squad/goals.md +23 -0
  47. package/dist/templates/seed/memory/_squad/priorities.md +25 -0
  48. package/dist/templates/seed/memory/company/company.md +31 -0
  49. package/dist/templates/seed/skills/squads-cli/SKILL.md +302 -57
  50. package/dist/templates/seed/skills/squads-cli/references/commands.md +181 -0
  51. package/dist/templates/seed/squads/company/company-critic.md +12 -4
  52. package/dist/templates/seed/squads/company/company-eval.md +12 -4
  53. package/dist/templates/seed/squads/company/event-dispatcher.md +14 -4
  54. package/dist/templates/seed/squads/company/goal-tracker.md +12 -4
  55. package/dist/templates/seed/squads/company/manager.md +17 -11
  56. package/dist/templates/seed/squads/engineering/code-reviewer.md +14 -2
  57. package/dist/templates/seed/squads/engineering/issue-solver.md +10 -2
  58. package/dist/templates/seed/squads/engineering/test-writer.md +15 -5
  59. package/dist/templates/seed/squads/intelligence/intel-critic.md +19 -2
  60. package/dist/templates/seed/squads/intelligence/intel-eval.md +18 -1
  61. package/dist/templates/seed/squads/intelligence/intel-lead.md +12 -4
  62. package/dist/templates/seed/squads/marketing/content-drafter.md +14 -4
  63. package/dist/templates/seed/squads/marketing/growth-analyst.md +14 -2
  64. package/dist/templates/seed/squads/marketing/social-poster.md +15 -3
  65. package/dist/templates/seed/squads/operations/finance-tracker.md +11 -3
  66. package/dist/templates/seed/squads/operations/goal-tracker.md +14 -2
  67. package/dist/templates/seed/squads/operations/ops-lead.md +14 -4
  68. package/dist/templates/seed/squads/product/lead.md +11 -3
  69. package/dist/templates/seed/squads/product/scanner.md +12 -4
  70. package/dist/templates/seed/squads/product/worker.md +12 -4
  71. package/dist/templates/seed/squads/research/analyst.md +12 -4
  72. package/dist/templates/seed/squads/research/lead.md +11 -5
  73. package/dist/templates/seed/squads/research/synthesizer.md +12 -4
  74. package/dist/tier-detect-YX2HPNNR.js +15 -0
  75. package/dist/tier-detect-YX2HPNNR.js.map +1 -0
  76. package/package.json +1 -1
  77. package/templates/seed/config/SYSTEM.md +6 -0
  78. package/templates/seed/idp/catalog/service.yaml.template +25 -0
  79. package/templates/seed/memory/_squad/goals.md +23 -0
  80. package/templates/seed/memory/_squad/priorities.md +25 -0
  81. package/templates/seed/memory/company/company.md +31 -0
  82. package/templates/seed/skills/squads-cli/SKILL.md +302 -57
  83. package/templates/seed/skills/squads-cli/references/commands.md +181 -0
  84. package/templates/seed/squads/company/company-critic.md +12 -4
  85. package/templates/seed/squads/company/company-eval.md +12 -4
  86. package/templates/seed/squads/company/event-dispatcher.md +14 -4
  87. package/templates/seed/squads/company/goal-tracker.md +12 -4
  88. package/templates/seed/squads/company/manager.md +17 -11
  89. package/templates/seed/squads/engineering/code-reviewer.md +14 -2
  90. package/templates/seed/squads/engineering/issue-solver.md +10 -2
  91. package/templates/seed/squads/engineering/test-writer.md +15 -5
  92. package/templates/seed/squads/intelligence/intel-critic.md +19 -2
  93. package/templates/seed/squads/intelligence/intel-eval.md +18 -1
  94. package/templates/seed/squads/intelligence/intel-lead.md +12 -4
  95. package/templates/seed/squads/marketing/content-drafter.md +14 -4
  96. package/templates/seed/squads/marketing/growth-analyst.md +14 -2
  97. package/templates/seed/squads/marketing/social-poster.md +15 -3
  98. package/templates/seed/squads/operations/finance-tracker.md +11 -3
  99. package/templates/seed/squads/operations/goal-tracker.md +14 -2
  100. package/templates/seed/squads/operations/ops-lead.md +14 -4
  101. package/templates/seed/squads/product/lead.md +11 -3
  102. package/templates/seed/squads/product/scanner.md +12 -4
  103. package/templates/seed/squads/product/worker.md +12 -4
  104. package/templates/seed/squads/research/analyst.md +12 -4
  105. package/templates/seed/squads/research/lead.md +11 -5
  106. package/templates/seed/squads/research/synthesizer.md +12 -4
  107. package/dist/chunk-QHNUMM4V.js.map +0 -1
  108. package/dist/history-ILH3SWHB.js.map +0 -1
  109. package/dist/init-XQZ7BOGT.js.map +0 -1
  110. package/dist/run-I6KAXU6U.js.map +0 -1
  111. /package/dist/{autonomy-PSVZVX7A.js.map → autonomy-GARI6J2J.js.map} +0 -0
  112. /package/dist/{context-GWPF4SEY.js.map → context-PYTO2UQG.js.map} +0 -0
  113. /package/dist/{context-feed-AJGVAR6H.js.map → context-feed-TLVZZ24S.js.map} +0 -0
  114. /package/dist/{cost-XBCDJ7XC.js.map → cost-OALPURUQ.js.map} +0 -0
  115. /package/dist/{dashboard-LGT2B2BL.js.map → dashboard-HQIEHTZC.js.map} +0 -0
  116. /package/dist/{doctor-XPUIIBHJ.js.map → doctor-TWHMR23W.js.map} +0 -0
  117. /package/dist/{exec-OUXM7JBF.js.map → exec-DYLI4TXY.js.map} +0 -0
  118. /package/dist/{feedback-KNAOG5QK.js.map → feedback-5AEACUX6.js.map} +0 -0
  119. /package/dist/{goal-BVHV5573.js.map → goal-XUNV3CKV.js.map} +0 -0
  120. /package/dist/{health-4UXN44PF.js.map → health-ZF3HSA4W.js.map} +0 -0
  121. /package/dist/{kpi-RQIU7WGK.js.map → kpi-VBGDO4GI.js.map} +0 -0
  122. /package/dist/{learn-OIFUVZAS.js.map → learn-C4B2PQ5J.js.map} +0 -0
  123. /package/dist/{login-DXZANWZY.js.map → login-F6ITE7PR.js.map} +0 -0
  124. /package/dist/{memory-T3ACCS7E.js.map → memory-33HYD6AN.js.map} +0 -0
  125. /package/dist/{progress-DAUZMT3N.js.map → progress-P2EIZBKP.js.map} +0 -0
  126. /package/dist/{providers-3P5D2XL5.js.map → providers-LE744DM6.js.map} +0 -0
  127. /package/dist/{results-UECWGLTB.js.map → results-6TH33HPN.js.map} +0 -0
  128. /package/dist/{status-AQNLDZVN.js.map → status-PFFB2NV6.js.map} +0 -0
  129. /package/dist/{sync-ZI3MHA4G.js.map → sync-FR6LQJ4C.js.map} +0 -0
@@ -0,0 +1,31 @@
1
+ ---
2
+ type: "company-context"
3
+ updated: "{{CURRENT_DATE}}"
4
+ owner: "manager"
5
+ ---
6
+
7
+ # Company Context
8
+
9
+ ## Mission
10
+
11
+ {{BUSINESS_DESCRIPTION}}
12
+
13
+ ## What We Build
14
+
15
+ (Add product or service details here)
16
+
17
+ ## Who Uses It
18
+
19
+ (Add target customer details here)
20
+
21
+ ## Product
22
+
23
+ | Offering | Role |
24
+ |----------|------|
25
+ | (Add your products/services) | |
26
+
27
+ ## Alignment
28
+
29
+ - Results over promises — ship working things
30
+ - Simple over clever — prefer straightforward solutions
31
+ - Customer zero — use your own product
@@ -1,84 +1,329 @@
1
- # squads-cli — Operations Manual
1
+ ---
2
+ name: squads-cli
3
+ description: Squads CLI reference for autonomous agents — run squads, manage memory, check status, set goals, and operate the AI workforce. TRIGGER when using squads commands, dispatching agents, reading/writing memory, checking squad status, or operating the autonomous loop.
4
+ context: fork
5
+ ---
2
6
 
3
- You have access to the `squads` CLI for managing your AI workforce.
7
+ # Squads CLI
4
8
 
5
- ## Execute (Daily Operations)
9
+ The `squads` CLI is the operating system for your AI workforce. Agents are the primary users — they call these commands during execution to understand context, persist learnings, and coordinate with other squads.
10
+
11
+ ## Core Concepts
12
+
13
+ | Concept | Description |
14
+ |---------|-------------|
15
+ | **Squad** | A team of agents in `.agents/squads/{name}/` — defined by `SQUAD.md` |
16
+ | **Agent** | A markdown file (`{agent}.md`) inside a squad directory |
17
+ | **Memory** | Persistent state in `.agents/memory/{squad}/{agent}/` — survives across runs |
18
+ | **Target** | `squad/agent` notation (e.g., `engineering/issue-solver`) |
19
+ | **Context cascade** | Layered context injection: SYSTEM → SQUAD → priorities → directives → state |
20
+
21
+ ## File Structure
22
+
23
+ ```
24
+ .agents/
25
+ ├── config/SYSTEM.md # Immutable rules (all agents)
26
+ ├── squads/{squad}/
27
+ │ ├── SQUAD.md # Squad identity, goals, KPIs
28
+ │ └── {agent}.md # Agent definition
29
+ └── memory/
30
+ ├── {squad}/
31
+ │ ├── priorities.md # Current operational focus
32
+ │ ├── feedback.md # Last cycle evaluation
33
+ │ ├── active-work.md # Open PRs/issues
34
+ │ └── {agent}/
35
+ │ ├── state.md # Agent's persistent state
36
+ │ └── learnings.md # Accumulated insights
37
+ ├── company/directives.md # Strategic overlay
38
+ └── daily-briefing.md # Cross-squad context
39
+ ```
40
+
41
+ ---
42
+
43
+ ## Running Agents
44
+
45
+ ### Single Agent
46
+
47
+ ```bash
48
+ # Run specific agent (two equivalent notations)
49
+ squads run engineering/issue-solver
50
+ squads run engineering -a issue-solver
51
+
52
+ # With founder directive (replaces lead briefing)
53
+ squads run engineering/issue-solver --task "Fix CI pipeline for PR #593"
54
+
55
+ # Dry run — preview without executing
56
+ squads run engineering --dry-run
57
+
58
+ # Background execution
59
+ squads run engineering/scanner -b # Detached
60
+ squads run engineering/scanner -w # Detached but tail logs
61
+
62
+ # Use different LLM provider
63
+ squads run research/analyst --provider=google
64
+ squads run research/analyst --provider=google --model=gemini-2.5-flash
65
+ ```
66
+
67
+ ### Squad Conversation
68
+
69
+ Run an entire squad as a coordinated team. Lead briefs → workers execute → lead reviews → iterate until convergence.
70
+
71
+ ```bash
72
+ squads run research # Sequential conversation
73
+ squads run research --parallel # All agents in parallel (tmux)
74
+ squads run research --lead # Single orchestrator with Task tool
75
+ squads run research --max-turns 10 # Limit conversation turns
76
+ squads run research --cost-ceiling 15 # Budget cap in USD
77
+ ```
78
+
79
+ ### Autopilot (Autonomous Dispatch)
80
+
81
+ No target = autopilot mode. CLI scores squads by priority, dispatches automatically.
82
+
83
+ ```bash
84
+ squads run # Start autopilot
85
+ squads run --once # Single cycle then exit
86
+ squads run --once --dry-run # Preview what would dispatch
87
+ squads run -i 15 --budget 50 # 15-min cycles, $50/day cap
88
+ squads run --phased # Respect depends_on ordering
89
+ squads run --max-parallel 3 # Up to 3 squads simultaneously
90
+ ```
91
+
92
+ ### Execution Options
93
+
94
+ | Flag | Purpose |
95
+ |------|---------|
96
+ | `--verbose` | Detailed output with context sections logged |
97
+ | `--timeout <min>` | Execution timeout (default: 30 min) |
98
+ | `--effort <level>` | `high`, `medium`, `low` (default: from SQUAD.md or high) |
99
+ | `--skills <ids>` | Load additional skills |
100
+ | `--cloud` | Dispatch to cloud worker (requires `squads login`) |
101
+ | `--no-verify` | Skip post-execution verification |
102
+ | `--no-eval` | Skip post-run COO evaluation |
103
+ | `--json` | Machine-readable output |
104
+
105
+ ---
106
+
107
+ ## Memory Operations
108
+
109
+ Memory is how agents persist knowledge across runs. Files-first — everything is markdown on disk.
110
+
111
+ ### Read Memory
112
+
113
+ ```bash
114
+ # View all memory for a squad
115
+ squads memory read engineering
116
+
117
+ # Search across ALL squad memory
118
+ squads memory query "CI pipeline failures"
119
+ squads memory query "agent performance"
120
+ ```
121
+
122
+ ### Write Memory
123
+
124
+ ```bash
125
+ # Write insight to squad memory
126
+ squads memory write research "MCP adoption rate at 15% — up from 8% last month"
127
+
128
+ # Write to specific agent
129
+ squads memory write engineering --agent issue-solver "PR #593 blocked by flaky test"
130
+ ```
131
+
132
+ ### Capture Learnings
133
+
134
+ ```bash
135
+ # Quick learning capture
136
+ squads learn "Google blocks headless Chrome OAuth — use cookie injection" \
137
+ --squad engineering --category pattern --tags "auth,chrome,e2e"
138
+
139
+ # View learnings
140
+ squads learnings
141
+ squads learnings --squad engineering
142
+ ```
143
+
144
+ ### Sync Memory
145
+
146
+ ```bash
147
+ squads sync # Pull remote changes
148
+ squads sync --push # Pull + push local changes
149
+ squads sync --postgres # Also sync to Postgres
150
+ ```
151
+
152
+ ---
153
+
154
+ ## Status & Monitoring
155
+
156
+ ### Squad Status
6
157
 
7
158
  ```bash
8
- squads run <squad>/<agent> # Execute a specific agent
9
- squads run <squad> --lead # Orchestrate full squad
10
- squads run <squad> --parallel # Run all agents in parallel
11
- squads list # Discover squads and agents
12
- squads exec list # Recent execution history
13
- squads exec stats # Execution statistics
14
- squads orchestrate <squad> # Multi-agent coordination
15
- squads env prompt <squad> -a <agent> # Get agent prompt
159
+ squads status # All squads overview
160
+ squads status engineering # Specific squad details
161
+ squads status -v # Verbose with agent details
162
+ squads status --json # Machine-readable
16
163
  ```
17
164
 
18
- ## Understand (Situational Awareness)
165
+ ### Dashboards
19
166
 
20
167
  ```bash
21
- squads dash --json # Full dashboard (use --json for parsing)
22
- squads status [squad] # Quick status snapshot
23
- squads context --json # Business context feed
24
- squads cost # Cost tracking
25
- squads budget <squad> # Budget check
26
- squads history # Execution history
168
+ squads dash # Overview dashboard
169
+ squads dash engineering # Squad-specific dashboard
170
+ squads dash --ceo # Executive summary
171
+ squads dash --full # Include GitHub PR/issue stats (~30s)
172
+ squads dash --list # List available dashboards
27
173
  ```
28
174
 
29
- ## Track (Objectives + Metrics)
175
+ ### Execution History
30
176
 
31
177
  ```bash
32
- squads goal set <squad> "<goal>" # Set a business objective
33
- squads goal list [squad] # List goals
34
- squads goal complete <squad> <n> # Mark goal done
35
- squads kpi list # List all KPIs
36
- squads kpi show <squad> # Squad KPIs
37
- squads kpi trend <squad> <kpi> # Show trend
38
- squads feedback add <squad> <1-5> "<feedback>" # Rate output
39
- squads autonomy # Self-assessment
178
+ squads exec list # Recent executions
179
+ squads exec list --squad eng # Filter by squad
180
+ squads exec show <id> # Execution details
181
+ squads exec stats # Aggregate statistics
40
182
  ```
41
183
 
42
- ## Learn (Memory + Knowledge)
184
+ ### Cost Tracking
43
185
 
44
186
  ```bash
45
- squads memory read <squad> # Load squad memory
46
- squads memory write <squad> "<insight>" # Persist learning
47
- squads memory search "<query>" # Search all memory
48
- squads memory list # List all entries
49
- squads learn "<insight>" # Capture learning
50
- squads learnings show <squad> # View learnings
51
- squads sync --push # Sync memory to git
187
+ squads cost # Today + this week
188
+ squads cost --squad research # Squad-specific costs
189
+ squads cost --json # Machine-readable
52
190
  ```
53
191
 
54
- ## Schedule (Automation)
192
+ ### Health & Readiness
55
193
 
56
194
  ```bash
57
- squads trigger list # View triggers
58
- squads trigger fire <squad> # Manual trigger
59
- squads autonomous start # Start scheduler
60
- squads approval list # Check pending approvals
195
+ squads doctor # Check tools, auth, project readiness
196
+ squads doctor -v # Verbose with install hints
197
+ squads eval engineering/scanner # Agent readiness score
61
198
  ```
62
199
 
63
- ## Decision Framework
200
+ ---
64
201
 
65
- - **Read before act**: Always `squads context --json` or `squads memory read` first
66
- - **Track everything**: Use `goal progress`, `kpi record`, `feedback add`
67
- - **Persist learnings**: `squads memory write` after discoveries
68
- - **Use JSON**: Add `--json` when parsing output programmatically
69
- - **Escalate wisely**: High cost or unclear scope → ask the human
202
+ ## Goals & Priorities
70
203
 
71
- ## JSON Output
204
+ Goals are aspirational (in SQUAD.md). Priorities are operational (in priorities.md).
72
205
 
73
- All key commands support `--json` for structured output:
74
- ```json
75
- {
76
- "ok": true,
77
- "command": "status",
78
- "data": { ... },
79
- "error": null,
80
- "meta": { "duration_ms": 1230, "connected": true }
81
- }
206
+ ### Set Goals
207
+
208
+ ```bash
209
+ squads goal set engineering "Zero CI failures on main branch"
210
+ squads goal list # All squads
211
+ squads goal list engineering # Specific squad
212
+ squads goal complete engineering 1 # Mark done
213
+ squads goal progress engineering 1 "75%"
214
+ ```
215
+
216
+ ### Business Context
217
+
218
+ ```bash
219
+ squads context # Full business context
220
+ squads context --squad engineering # Squad-focused context
221
+ squads context --topic "pricing" # Topic-focused search
222
+ squads context --json # Agent-consumable format
223
+ ```
224
+
225
+ ---
226
+
227
+ ## Environment & Configuration
228
+
229
+ ### Execution Environment
230
+
231
+ ```bash
232
+ squads env show engineering # View MCP servers, skills, model, budget
233
+ squads env show engineering --json # Machine-readable
234
+ squads env prompt engineering # Ready-to-use prompt for Claude Code
82
235
  ```
83
236
 
84
- When piped (non-TTY), commands auto-output JSON.
237
+ ### Provider Management
238
+
239
+ ```bash
240
+ squads providers # List available LLM CLI providers
241
+ ```
242
+
243
+ ### Sessions
244
+
245
+ ```bash
246
+ squads sessions # Active Claude Code sessions
247
+ squads session start # Start new session
248
+ squads session end # End current session
249
+ ```
250
+
251
+ ---
252
+
253
+ ## Autonomous Scheduling
254
+
255
+ The daemon runs agents on configured schedules without human intervention.
256
+
257
+ ```bash
258
+ squads auto start # Start scheduling daemon
259
+ squads auto stop # Stop daemon
260
+ squads auto status # Show daemon status + next runs
261
+ squads auto pause "quota exhausted" # Pause with reason
262
+ squads auto resume # Resume after pause
263
+ ```
264
+
265
+ ---
266
+
267
+ ## Common Patterns
268
+
269
+ ### Agent Self-Context (during execution)
270
+
271
+ Agents call these to understand their environment:
272
+
273
+ ```bash
274
+ # What am I working with?
275
+ squads env show ${SQUAD_NAME} --json
276
+
277
+ # What do I know?
278
+ squads memory read ${SQUAD_NAME}
279
+
280
+ # What's happening across the org?
281
+ squads status --json
282
+
283
+ # What's the business context?
284
+ squads context --squad ${SQUAD_NAME} --json
285
+ ```
286
+
287
+ ### Post-Execution Memory Update
288
+
289
+ ```bash
290
+ # Persist what you learned
291
+ squads memory write ${SQUAD_NAME} "Key finding from this run"
292
+ squads learn "Pattern discovered: X causes Y" --squad ${SQUAD_NAME} --category pattern
293
+
294
+ # Sync to remote
295
+ squads sync --push
296
+ ```
297
+
298
+ ### Dispatch Another Agent
299
+
300
+ ```bash
301
+ # From within an agent, trigger another
302
+ squads run engineering/issue-solver --task "Fix the bug I found in #461" -b
303
+ ```
304
+
305
+ ### Check Before Creating
306
+
307
+ Before creating issues/PRs, check what exists:
308
+
309
+ ```bash
310
+ squads status engineering -v # See active work
311
+ squads memory read engineering # See known issues
312
+ squads context --squad engineering --json # Full context
313
+ ```
314
+
315
+ ## Full Command Reference
316
+
317
+ See `references/commands.md` for complete command listing with all flags.
318
+
319
+ ## Troubleshooting
320
+
321
+ | Problem | Fix |
322
+ |---------|-----|
323
+ | `squads: command not found` | `npm install -g squads-cli` |
324
+ | No squads found | Run `squads init` to create `.agents/` |
325
+ | Agent not found | Check path: `.agents/squads/{squad}/{agent}.md` |
326
+ | Memory not persisting | Check `.agents/memory/` exists, run `squads sync` |
327
+ | Wrong provider | Set `--provider` flag or `provider:` in SQUAD.md frontmatter |
328
+ | API quota exhausted | `squads auto pause "quota"`, switch provider, or wait |
329
+ | Context too large | Use `--effort low` or reduce context layers |
@@ -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: critic
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
- ## Instructions
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 Format (REQUIRED)
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
- ## Rules
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
- Evaluate squad outputs against business goals. Your job is to answer: "Did the squads produce value, or noise?"
19
+ ## Role
14
20
 
15
- ## Instructions
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 Format (REQUIRED)
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
- ## Rules
51
+ ## Constraints
44
52
 
45
53
  - Score against BUSINESS_BRIEF.md goals, not general quality
46
54
  - "Relevance" = does this advance the business focus?