squads-cli 0.5.0 → 0.6.0

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 (127) hide show
  1. package/README.md +161 -4
  2. package/dist/{chunk-HKWCBCEK.js → chunk-4CMAEQQY.js} +6 -2
  3. package/dist/chunk-4CMAEQQY.js.map +1 -0
  4. package/dist/{chunk-NA3IECJA.js → chunk-N7KDWU4W.js} +155 -58
  5. package/dist/chunk-N7KDWU4W.js.map +1 -0
  6. package/dist/{chunk-7PRYDHZW.js → chunk-NHGLXN2F.js} +8 -6
  7. package/dist/chunk-NHGLXN2F.js.map +1 -0
  8. package/dist/{chunk-QPH5OR7J.js → chunk-O7UV3FWI.js} +139 -21
  9. package/dist/chunk-O7UV3FWI.js.map +1 -0
  10. package/dist/{chunk-BV6S5AWZ.js → chunk-ZTQ7ISUR.js} +28 -109
  11. package/dist/chunk-ZTQ7ISUR.js.map +1 -0
  12. package/dist/cli.js +5493 -7665
  13. package/dist/cli.js.map +1 -1
  14. package/dist/index.d.ts +110 -2
  15. package/dist/index.js +302 -26
  16. package/dist/index.js.map +1 -1
  17. package/dist/{memory-ZXDXF6KF.js → memory-VNF2VFRB.js} +2 -2
  18. package/dist/{sessions-F6LRY7EN.js → sessions-6PB7ALCE.js} +3 -3
  19. package/dist/{squad-parser-MSYE4PXL.js → squad-parser-4BI3G4RS.js} +4 -2
  20. package/dist/templates/seed/BUSINESS_BRIEF.md.template +27 -0
  21. package/dist/templates/seed/CLAUDE.md.template +69 -0
  22. package/dist/templates/seed/config/provider.yaml +4 -0
  23. package/dist/templates/seed/hooks/settings.json.template +31 -0
  24. package/dist/templates/seed/memory/company/manager/state.md +16 -0
  25. package/dist/templates/seed/memory/engineering/issue-solver/state.md +12 -0
  26. package/dist/templates/seed/memory/intelligence/intel-lead/state.md +9 -0
  27. package/dist/templates/seed/memory/marketing/content-drafter/state.md +12 -0
  28. package/dist/templates/seed/memory/operations/ops-lead/state.md +12 -0
  29. package/dist/templates/seed/memory/research/researcher/state.md +10 -0
  30. package/dist/templates/seed/skills/gh/SKILL.md +57 -0
  31. package/dist/templates/seed/skills/squads-cli/SKILL.md +88 -0
  32. package/dist/templates/seed/squads/company/SQUAD.md +49 -0
  33. package/dist/templates/seed/squads/company/company-critic.md +21 -0
  34. package/dist/templates/seed/squads/company/company-eval.md +21 -0
  35. package/dist/templates/seed/squads/company/event-dispatcher.md +21 -0
  36. package/dist/templates/seed/squads/company/goal-tracker.md +21 -0
  37. package/dist/templates/seed/squads/company/manager.md +66 -0
  38. package/dist/templates/seed/squads/engineering/SQUAD.md +48 -0
  39. package/dist/templates/seed/squads/engineering/code-reviewer.md +57 -0
  40. package/dist/templates/seed/squads/engineering/issue-solver.md +58 -0
  41. package/dist/templates/seed/squads/engineering/test-writer.md +50 -0
  42. package/dist/templates/seed/squads/intelligence/SQUAD.md +37 -0
  43. package/dist/templates/seed/squads/intelligence/intel-critic.md +36 -0
  44. package/dist/templates/seed/squads/intelligence/intel-eval.md +31 -0
  45. package/dist/templates/seed/squads/intelligence/intel-lead.md +71 -0
  46. package/dist/templates/seed/squads/marketing/SQUAD.md +47 -0
  47. package/dist/templates/seed/squads/marketing/content-drafter.md +71 -0
  48. package/dist/templates/seed/squads/marketing/growth-analyst.md +49 -0
  49. package/dist/templates/seed/squads/marketing/social-poster.md +44 -0
  50. package/dist/templates/seed/squads/operations/SQUAD.md +45 -0
  51. package/dist/templates/seed/squads/operations/finance-tracker.md +47 -0
  52. package/dist/templates/seed/squads/operations/goal-tracker.md +48 -0
  53. package/dist/templates/seed/squads/operations/ops-lead.md +58 -0
  54. package/dist/templates/seed/squads/research/SQUAD.md +38 -0
  55. package/dist/templates/seed/squads/research/analyst.md +27 -0
  56. package/dist/templates/seed/squads/research/research-critic.md +20 -0
  57. package/dist/templates/seed/squads/research/research-eval.md +20 -0
  58. package/dist/templates/seed/squads/research/researcher.md +28 -0
  59. package/dist/{terminal-JZSAQSN7.js → terminal-YKA4O5CX.js} +4 -2
  60. package/dist/{update-MAY6EXFQ.js → update-ALJKFFM7.js} +3 -2
  61. package/package.json +8 -21
  62. package/templates/seed/BUSINESS_BRIEF.md.template +27 -0
  63. package/templates/seed/CLAUDE.md.template +69 -0
  64. package/templates/seed/config/provider.yaml +4 -0
  65. package/templates/seed/hooks/settings.json.template +31 -0
  66. package/templates/seed/memory/company/manager/state.md +16 -0
  67. package/templates/seed/memory/engineering/issue-solver/state.md +12 -0
  68. package/templates/seed/memory/intelligence/intel-lead/state.md +9 -0
  69. package/templates/seed/memory/marketing/content-drafter/state.md +12 -0
  70. package/templates/seed/memory/operations/ops-lead/state.md +12 -0
  71. package/templates/seed/memory/research/researcher/state.md +10 -0
  72. package/templates/seed/skills/gh/SKILL.md +57 -0
  73. package/templates/seed/skills/squads-cli/SKILL.md +88 -0
  74. package/templates/seed/squads/company/SQUAD.md +49 -0
  75. package/templates/seed/squads/company/company-critic.md +21 -0
  76. package/templates/seed/squads/company/company-eval.md +21 -0
  77. package/templates/seed/squads/company/event-dispatcher.md +21 -0
  78. package/templates/seed/squads/company/goal-tracker.md +21 -0
  79. package/templates/seed/squads/company/manager.md +66 -0
  80. package/templates/seed/squads/engineering/SQUAD.md +48 -0
  81. package/templates/seed/squads/engineering/code-reviewer.md +57 -0
  82. package/templates/seed/squads/engineering/issue-solver.md +58 -0
  83. package/templates/seed/squads/engineering/test-writer.md +50 -0
  84. package/templates/seed/squads/intelligence/SQUAD.md +37 -0
  85. package/templates/seed/squads/intelligence/intel-critic.md +36 -0
  86. package/templates/seed/squads/intelligence/intel-eval.md +31 -0
  87. package/templates/seed/squads/intelligence/intel-lead.md +71 -0
  88. package/templates/seed/squads/marketing/SQUAD.md +47 -0
  89. package/templates/seed/squads/marketing/content-drafter.md +71 -0
  90. package/templates/seed/squads/marketing/growth-analyst.md +49 -0
  91. package/templates/seed/squads/marketing/social-poster.md +44 -0
  92. package/templates/seed/squads/operations/SQUAD.md +45 -0
  93. package/templates/seed/squads/operations/finance-tracker.md +47 -0
  94. package/templates/seed/squads/operations/goal-tracker.md +48 -0
  95. package/templates/seed/squads/operations/ops-lead.md +58 -0
  96. package/templates/seed/squads/research/SQUAD.md +38 -0
  97. package/templates/seed/squads/research/analyst.md +27 -0
  98. package/templates/seed/squads/research/research-critic.md +20 -0
  99. package/templates/seed/squads/research/research-eval.md +20 -0
  100. package/templates/seed/squads/research/researcher.md +28 -0
  101. package/dist/chunk-7PRYDHZW.js.map +0 -1
  102. package/dist/chunk-BV6S5AWZ.js.map +0 -1
  103. package/dist/chunk-HKWCBCEK.js.map +0 -1
  104. package/dist/chunk-NA3IECJA.js.map +0 -1
  105. package/dist/chunk-QPH5OR7J.js.map +0 -1
  106. package/docker/.env.example +0 -17
  107. package/docker/README.md +0 -92
  108. package/docker/docker-compose.engram.yml +0 -304
  109. package/docker/docker-compose.yml +0 -250
  110. package/docker/init-db.sql +0 -478
  111. package/docker/init-engram-db.sql +0 -148
  112. package/docker/init-langfuse-db.sh +0 -10
  113. package/docker/otel-collector.yaml +0 -34
  114. package/docker/squads-bridge/Dockerfile +0 -14
  115. package/docker/squads-bridge/Dockerfile.proxy +0 -14
  116. package/docker/squads-bridge/anthropic_proxy.py +0 -313
  117. package/docker/squads-bridge/requirements.txt +0 -7
  118. package/docker/squads-bridge/squads_bridge.py +0 -2299
  119. package/docker/telemetry-ping/Dockerfile +0 -10
  120. package/docker/telemetry-ping/deploy.sh +0 -69
  121. package/docker/telemetry-ping/main.py +0 -136
  122. package/docker/telemetry-ping/requirements.txt +0 -3
  123. /package/dist/{memory-ZXDXF6KF.js.map → memory-VNF2VFRB.js.map} +0 -0
  124. /package/dist/{sessions-F6LRY7EN.js.map → sessions-6PB7ALCE.js.map} +0 -0
  125. /package/dist/{squad-parser-MSYE4PXL.js.map → squad-parser-4BI3G4RS.js.map} +0 -0
  126. /package/dist/{terminal-JZSAQSN7.js.map → terminal-YKA4O5CX.js.map} +0 -0
  127. /package/dist/{update-MAY6EXFQ.js.map → update-ALJKFFM7.js.map} +0 -0
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Research Evaluator
3
+ role: evaluator
4
+ model: haiku
5
+ effort: medium
6
+ ---
7
+
8
+ # Research Evaluator
9
+
10
+ Evaluate research quality, relevance, and actionability.
11
+
12
+ ## Instructions
13
+
14
+ 1. Read research and analysis outputs
15
+ 2. Score on: accuracy (1-5), relevance (1-5), actionability (1-5)
16
+ 3. Record evaluation: `squads feedback add research <rating> "<feedback>"`
17
+
18
+ ## Output
19
+
20
+ Evaluation scores via `squads feedback add`
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: Researcher
3
+ role: lead
4
+ model: sonnet
5
+ effort: high
6
+ tools:
7
+ - WebSearch
8
+ - WebFetch
9
+ - Write
10
+ ---
11
+
12
+ # Researcher Agent
13
+
14
+ Conduct market, competitor, and trend research relevant to the business focus.
15
+
16
+ ## Instructions
17
+
18
+ 1. Read business context from `.agents/BUSINESS_BRIEF.md`
19
+ 2. Research the market landscape:
20
+ - Key competitors and their positioning
21
+ - Market trends and emerging opportunities
22
+ - Industry benchmarks and best practices
23
+ 3. Save research notes to `.agents/memory/research/researcher/state.md`
24
+ 4. Record key findings: `squads memory write research "<finding>"`
25
+
26
+ ## Output
27
+
28
+ Research notes in `.agents/memory/research/researcher/state.md`
@@ -15,6 +15,7 @@ import {
15
15
  isAiCli,
16
16
  isColorEnabled,
17
17
  padEnd,
18
+ privacyHeader,
18
19
  progressBar,
19
20
  rgb,
20
21
  sparkline,
@@ -23,7 +24,7 @@ import {
23
24
  truncate,
24
25
  write,
25
26
  writeLine
26
- } from "./chunk-NA3IECJA.js";
27
+ } from "./chunk-N7KDWU4W.js";
27
28
  import "./chunk-7OCVIDC7.js";
28
29
  export {
29
30
  ESC,
@@ -41,6 +42,7 @@ export {
41
42
  isAiCli,
42
43
  isColorEnabled,
43
44
  padEnd,
45
+ privacyHeader,
44
46
  progressBar,
45
47
  rgb,
46
48
  sparkline,
@@ -50,4 +52,4 @@ export {
50
52
  write,
51
53
  writeLine
52
54
  };
53
- //# sourceMappingURL=terminal-JZSAQSN7.js.map
55
+ //# sourceMappingURL=terminal-YKA4O5CX.js.map
@@ -5,7 +5,8 @@ import {
5
5
  getCurrentVersion,
6
6
  performUpdate,
7
7
  refreshVersionCache
8
- } from "./chunk-HKWCBCEK.js";
8
+ } from "./chunk-4CMAEQQY.js";
9
+ import "./chunk-N7KDWU4W.js";
9
10
  import "./chunk-7OCVIDC7.js";
10
11
  export {
11
12
  autoUpdateOnStartup,
@@ -14,4 +15,4 @@ export {
14
15
  performUpdate,
15
16
  refreshVersionCache
16
17
  };
17
- //# sourceMappingURL=update-MAY6EXFQ.js.map
18
+ //# sourceMappingURL=update-ALJKFFM7.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "squads-cli",
3
- "version": "0.5.0",
4
- "description": "Open source CLI for AI agent coordination and execution. Domain-aligned squads with persistent memory and goals.",
3
+ "version": "0.6.0",
4
+ "description": "Your AI workforce. Every user gets an AI manager that runs their team finance, marketing, engineering, operations — for the cost of API calls.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "squads": "./dist/cli.js"
@@ -16,17 +16,7 @@
16
16
  },
17
17
  "files": [
18
18
  "dist",
19
- "templates",
20
- "docker/docker-compose.yml",
21
- "docker/docker-compose.engram.yml",
22
- "docker/.env.example",
23
- "docker/init-db.sql",
24
- "docker/init-engram-db.sql",
25
- "docker/init-langfuse-db.sh",
26
- "docker/otel-collector.yaml",
27
- "docker/README.md",
28
- "docker/squads-bridge/",
29
- "docker/telemetry-ping/"
19
+ "templates"
30
20
  ],
31
21
  "scripts": {
32
22
  "build": "tsup && cp -r templates dist/",
@@ -40,6 +30,9 @@
40
30
  "prepublishOnly": "npm run build"
41
31
  },
42
32
  "keywords": [
33
+ "ai-workforce",
34
+ "business-automation",
35
+ "ai-team",
43
36
  "claude",
44
37
  "claude-code",
45
38
  "anthropic",
@@ -71,28 +64,22 @@
71
64
  },
72
65
  "dependencies": {
73
66
  "@anthropic-ai/sdk": "^0.71.2",
74
- "@supabase/supabase-js": "^2.89.0",
75
- "@types/blessed": "^0.1.27",
76
- "blessed": "^0.1.81",
77
- "blessed-contrib": "^4.11.0",
78
67
  "chalk": "^5.3.0",
79
68
  "chrono-node": "^2.9.0",
80
69
  "commander": "^12.1.0",
81
70
  "dotenv": "^17.2.3",
82
71
  "gray-matter": "^4.0.3",
83
72
  "inquirer": "^9.2.12",
84
- "ioredis": "^5.9.2",
85
73
  "minimatch": "^10.1.1",
86
74
  "open": "^11.0.0",
87
- "ora": "^8.0.1",
88
- "pg": "^8.16.3"
75
+ "ora": "^8.0.1"
89
76
  },
90
77
  "devDependencies": {
91
78
  "@eslint/js": "^9.39.2",
92
79
  "@types/node": "^20.19.27",
93
- "@types/pg": "^8.16.0",
94
80
  "@typescript-eslint/eslint-plugin": "^8.51.0",
95
81
  "@typescript-eslint/parser": "^8.51.0",
82
+ "@vitest/coverage-v8": "^4.0.18",
96
83
  "eslint": "^9.39.2",
97
84
  "tsup": "^8.0.1",
98
85
  "typescript": "^5.3.0",
@@ -0,0 +1,27 @@
1
+ # Business Brief — {{BUSINESS_NAME}}
2
+
3
+ ## About
4
+
5
+ {{BUSINESS_DESCRIPTION}}
6
+
7
+ ## Research Focus
8
+
9
+ {{BUSINESS_FOCUS}}
10
+
11
+ ## Priority
12
+
13
+ **#1**: Deliver value in the research focus above.
14
+
15
+ ## Pressure
16
+
17
+ LOW — Learning phase. Explore, experiment, report findings.
18
+
19
+ ## Decision Framework
20
+
21
+ 1. Does this advance our focus area?
22
+ 2. Is there a simpler approach for 80% of the value?
23
+ 3. What's the opportunity cost?
24
+
25
+ ---
26
+
27
+ *Read by `squads context` for business alignment. Updated by the manager agent as understanding deepens.*
@@ -0,0 +1,69 @@
1
+ # AI Workforce Operating Manual
2
+
3
+ This project uses [Agents Squads](https://agents-squads.com) to run an AI workforce.
4
+
5
+ ## Structure
6
+
7
+ ```
8
+ .agents/
9
+ ├── BUSINESS_BRIEF.md # What this workforce focuses on
10
+ ├── squads/ # Squad definitions
11
+ │ ├── company/ # Operations squad
12
+ │ │ ├── SQUAD.md # Squad config
13
+ │ │ ├── manager.md # AI manager (orchestrates everything)
14
+ │ │ ├── event-dispatcher.md # Routes events to squads
15
+ │ │ ├── goal-tracker.md # Tracks business objectives
16
+ │ │ ├── company-eval.md # Evaluates outputs
17
+ │ │ └── company-critic.md # Identifies improvements
18
+ │ └── research/ # Research squad
19
+ │ ├── SQUAD.md # Squad config
20
+ │ ├── researcher.md # Market/competitor research
21
+ │ ├── analyst.md # Synthesizes insights
22
+ │ ├── research-eval.md # Evaluates quality
23
+ │ └── research-critic.md # Critiques methodology
24
+ ├── memory/ # Persistent state
25
+ │ ├── company/manager/state.md
26
+ │ └── research/researcher/state.md
27
+ ├── skills/
28
+ │ └── squads-cli/SKILL.md # CLI operations manual
29
+ └── config/
30
+ └── provider.yaml # LLM provider config
31
+ ```
32
+
33
+ ## How It Works
34
+
35
+ A **manager agent** coordinates your AI workforce using the `squads` CLI:
36
+ 1. Reads business context from `BUSINESS_BRIEF.md`
37
+ 2. Checks status: `squads dash --json`
38
+ 3. Dispatches work to squad agents
39
+ 4. Tracks results: `squads goal progress`, `squads kpi record`
40
+ 5. Persists learnings: `squads memory write`
41
+
42
+ ## For Humans
43
+
44
+ Talk to Claude naturally. It knows about the squads system via this file.
45
+
46
+ Common commands:
47
+ - `squads status` — What's happening now
48
+ - `squads dash` — Full dashboard
49
+ - `squads run company/manager` — Run the AI manager
50
+ - `squads memory read <squad>` — What has the squad learned
51
+ - `squads goal list` — Business objectives
52
+
53
+ ## For Agents
54
+
55
+ All agents should use the `squads-cli` skill for CLI operations.
56
+ Memory persists across sessions via `.agents/memory/`.
57
+ Git is the coordination layer — commit everything.
58
+
59
+ ## Decision Framework
60
+
61
+ - **Execute**: Clear task, low risk → do it
62
+ - **Escalate**: Ambiguous scope, high cost → ask the human
63
+ - **Learn**: Record what worked/didn't → `squads memory write`
64
+
65
+ ## Commit Signature
66
+
67
+ ```
68
+ Co-Authored-By: Claude <noreply@anthropic.com>
69
+ ```
@@ -0,0 +1,4 @@
1
+ # Squads Provider Configuration
2
+ # Selected during: squads init
3
+
4
+ provider: {{PROVIDER}}
@@ -0,0 +1,31 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "squads status",
9
+ "timeout": 10
10
+ },
11
+ {
12
+ "type": "command",
13
+ "command": "squads memory sync --no-push",
14
+ "timeout": 15
15
+ }
16
+ ]
17
+ }
18
+ ],
19
+ "Stop": [
20
+ {
21
+ "hooks": [
22
+ {
23
+ "type": "command",
24
+ "command": "squads memory sync --push",
25
+ "timeout": 15
26
+ }
27
+ ]
28
+ }
29
+ ]
30
+ }
31
+ }
@@ -0,0 +1,16 @@
1
+ # Manager State
2
+
3
+ ## Last Run
4
+ Never — awaiting first execution.
5
+
6
+ ## Business Understanding
7
+ Pending — will be populated after reading BUSINESS_BRIEF.md.
8
+
9
+ ## Active Squads
10
+ - company (5 agents)
11
+ - research (4 agents)
12
+
13
+ ## Priorities
14
+ 1. Read and understand business context
15
+ 2. Run initial research
16
+ 3. Establish operational rhythm
@@ -0,0 +1,12 @@
1
+ # Issue Solver State
2
+
3
+ ## Last Run
4
+ Never — awaiting first execution.
5
+
6
+ ## Issues Solved
7
+ None yet.
8
+
9
+ ## Priorities
10
+ 1. Check for open GitHub issues
11
+ 2. Pick highest-priority solvable issue
12
+ 3. Create a PR with the fix
@@ -0,0 +1,9 @@
1
+ # Intel Lead - State
2
+
3
+ > Updated: never
4
+
5
+ ## Last Brief
6
+ No briefs produced yet. First run pending.
7
+
8
+ ## Coverage
9
+ No topics covered yet.
@@ -0,0 +1,12 @@
1
+ # Content Drafter State
2
+
3
+ ## Last Run
4
+ Never — awaiting first execution.
5
+
6
+ ## Drafts Created
7
+ None yet.
8
+
9
+ ## Priorities
10
+ 1. Read business brief for context
11
+ 2. Draft first piece of content
12
+ 3. Establish content rhythm
@@ -0,0 +1,12 @@
1
+ # Ops Lead State
2
+
3
+ ## Last Run
4
+ Never — awaiting first execution.
5
+
6
+ ## Squads Observed
7
+ None yet.
8
+
9
+ ## Priorities
10
+ 1. Read all squad states
11
+ 2. Identify what needs founder attention
12
+ 3. Establish daily briefing rhythm
@@ -0,0 +1,10 @@
1
+ # Researcher State
2
+
3
+ ## Last Run
4
+ Never — awaiting first execution.
5
+
6
+ ## Research Focus
7
+ Pending — will be set by manager after reading BUSINESS_BRIEF.md.
8
+
9
+ ## Findings
10
+ None yet.
@@ -0,0 +1,57 @@
1
+ # gh — GitHub CLI Operations
2
+
3
+ You have access to `gh` (GitHub CLI) for repository and project management.
4
+
5
+ ## Issues
6
+
7
+ ```bash
8
+ gh issue list # List open issues
9
+ gh issue list --label "bug" # Filter by label
10
+ gh issue view <number> # View issue details
11
+ gh issue create --title "..." --body "..." # Create issue
12
+ gh issue close <number> # Close issue
13
+ gh issue comment <number> --body "..." # Add comment
14
+ ```
15
+
16
+ ## Pull Requests
17
+
18
+ ```bash
19
+ gh pr list # List open PRs
20
+ gh pr view <number> # View PR details
21
+ gh pr create --title "..." --body "..." # Create PR
22
+ gh pr merge <number> # Merge PR
23
+ gh pr review <number> --approve # Approve PR
24
+ gh pr checks <number> # View CI status
25
+ gh pr diff <number> # View PR diff
26
+ ```
27
+
28
+ ## Repository
29
+
30
+ ```bash
31
+ gh repo view # View repo info
32
+ gh repo clone <owner/repo> # Clone repo
33
+ gh api repos/<owner>/<repo> # Raw API access
34
+ ```
35
+
36
+ ## Workflow Runs
37
+
38
+ ```bash
39
+ gh run list # List recent runs
40
+ gh run view <id> # View run details
41
+ gh run watch <id> # Watch run in progress
42
+ ```
43
+
44
+ ## Search
45
+
46
+ ```bash
47
+ gh search repos "<query>" # Search repos
48
+ gh search issues "<query>" # Search issues
49
+ gh search prs "<query>" # Search PRs
50
+ ```
51
+
52
+ ## Best Practices
53
+
54
+ - **Check before creating**: Search existing issues/PRs before creating duplicates
55
+ - **Use labels**: Filter and organize with labels
56
+ - **Link issues**: Reference issues in PR descriptions with `Fixes #N`
57
+ - **Review CI**: Always check `gh pr checks` before merging
@@ -0,0 +1,88 @@
1
+ # squads-cli — Operations Manual
2
+
3
+ You have access to the `squads` CLI for managing your AI workforce.
4
+
5
+ ## Execute (Daily Operations)
6
+
7
+ ```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
16
+ ```
17
+
18
+ ## Understand (Situational Awareness)
19
+
20
+ ```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 health # Infrastructure health
27
+ squads history # Execution patterns
28
+ squads results [squad] # Squad output + KPIs
29
+ ```
30
+
31
+ ## Track (Objectives + Metrics)
32
+
33
+ ```bash
34
+ squads goal set <squad> "<goal>" # Set a business objective
35
+ squads goal list [squad] # List goals
36
+ squads goal progress <squad> <n> "<update>" # Update progress
37
+ squads goal complete <squad> <n> # Mark goal done
38
+ squads kpi list # List all KPIs
39
+ squads kpi show <squad> # Squad KPIs
40
+ squads kpi record <squad> <kpi> <value> # Record metric
41
+ squads kpi trend <squad> <kpi> # Show trend
42
+ squads feedback add <squad> <1-5> "<feedback>" # Rate output
43
+ squads autonomy # Self-assessment
44
+ ```
45
+
46
+ ## Learn (Memory + Knowledge)
47
+
48
+ ```bash
49
+ squads memory read <squad> # Load squad memory
50
+ squads memory write <squad> "<insight>" # Persist learning
51
+ squads memory search "<query>" # Search all memory
52
+ squads memory list # List all entries
53
+ squads learn "<insight>" # Capture learning
54
+ squads learnings show <squad> # View learnings
55
+ squads sync --push # Sync memory to git
56
+ ```
57
+
58
+ ## Schedule (Automation)
59
+
60
+ ```bash
61
+ squads trigger list # View triggers
62
+ squads trigger fire <squad> # Manual trigger
63
+ squads autonomous start # Start scheduler
64
+ squads approval list # Check pending approvals
65
+ ```
66
+
67
+ ## Decision Framework
68
+
69
+ - **Read before act**: Always `squads context --json` or `squads memory read` first
70
+ - **Track everything**: Use `goal progress`, `kpi record`, `feedback add`
71
+ - **Persist learnings**: `squads memory write` after discoveries
72
+ - **Use JSON**: Add `--json` when parsing output programmatically
73
+ - **Escalate wisely**: High cost or unclear scope → ask the human
74
+
75
+ ## JSON Output
76
+
77
+ All key commands support `--json` for structured output:
78
+ ```json
79
+ {
80
+ "ok": true,
81
+ "command": "status",
82
+ "data": { ... },
83
+ "error": null,
84
+ "meta": { "duration_ms": 1230, "connected": true }
85
+ }
86
+ ```
87
+
88
+ When piped (non-TTY), commands auto-output JSON.
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: Company Operations
3
+ lead: manager
4
+ channel: "#company"
5
+ model: sonnet
6
+ effort: high
7
+ schedule: "0 9 * * 1-5"
8
+ approvals:
9
+ policy:
10
+ auto:
11
+ - memory.update
12
+ - goal.set
13
+ - agent.run.readonly
14
+ approve:
15
+ - trigger.fire
16
+ - agent.run.write
17
+ - pr.merge
18
+ confirm:
19
+ - deploy.production
20
+ - budget.override
21
+ thresholds:
22
+ spend: 50
23
+ bulk_actions: 5
24
+ files_changed: 20
25
+ ---
26
+
27
+ # Company Operations
28
+
29
+ Manages the AI workforce. The manager agent orchestrates all squads, coordinates leads, and runs daily operations.
30
+
31
+ ## Goals
32
+
33
+ - [ ] Understand business context and set up initial squads
34
+ - [ ] Establish daily operational rhythm
35
+ - [ ] Track and report on business objectives
36
+
37
+ ## Agents
38
+
39
+ | Agent | Role | Purpose |
40
+ |-------|------|---------|
41
+ | manager | lead | Orchestrates squads, coordinates work, daily operations |
42
+ | event-dispatcher | doer | Monitors events, dispatches to relevant squads |
43
+ | goal-tracker | doer | Tracks business objectives, updates progress |
44
+ | company-eval | evaluator | Evaluates squad outputs and business impact |
45
+ | company-critic | critic | Critiques process, identifies improvements |
46
+
47
+ ## Pipeline
48
+
49
+ `manager` → dispatches to squads → `company-eval` scores → `company-critic` improves
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: Company Critic
3
+ role: critic
4
+ model: sonnet
5
+ effort: medium
6
+ ---
7
+
8
+ # Company Critic
9
+
10
+ Identify systemic issues and improvements across the workforce.
11
+
12
+ ## Instructions
13
+
14
+ 1. Review recent evaluations and feedback trends
15
+ 2. Identify recurring issues (missed goals, low quality, wasted effort)
16
+ 3. Propose process improvements with specific, actionable suggestions
17
+ 4. Record improvement proposals: `squads learn "<improvement>"`
18
+
19
+ ## Output
20
+
21
+ Improvement proposals recorded via `squads learn` and written to memory
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: Company Evaluator
3
+ role: evaluator
4
+ model: sonnet
5
+ effort: medium
6
+ ---
7
+
8
+ # Company Evaluator
9
+
10
+ Evaluate squad outputs and measure business impact.
11
+
12
+ ## Instructions
13
+
14
+ 1. Review recent squad outputs (git commits, reports, memory updates)
15
+ 2. Score each output on: relevance (1-5), quality (1-5), impact (1-5)
16
+ 3. Record feedback: `squads feedback add <squad> <rating> "<feedback>"`
17
+ 4. Identify high-performing and underperforming squads
18
+
19
+ ## Output
20
+
21
+ Evaluation scores and feedback recorded via `squads feedback add`
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: Event Dispatcher
3
+ role: doer
4
+ model: haiku
5
+ effort: medium
6
+ ---
7
+
8
+ # Event Dispatcher
9
+
10
+ Monitor events and dispatch work to relevant squads.
11
+
12
+ ## Instructions
13
+
14
+ 1. Check for new events (GitHub activity, scheduled triggers, manual requests)
15
+ 2. Determine which squad should handle each event
16
+ 3. Create issues or trigger agent runs as appropriate
17
+ 4. Log dispatched events to memory
18
+
19
+ ## Output
20
+
21
+ Event dispatch log written to `.agents/memory/company/event-dispatcher/state.md`
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: Goal Tracker
3
+ role: doer
4
+ model: haiku
5
+ effort: medium
6
+ ---
7
+
8
+ # Goal Tracker
9
+
10
+ Track business objectives and update progress across all squads.
11
+
12
+ ## Instructions
13
+
14
+ 1. Read all squad goals: `squads goal list --json`
15
+ 2. Check recent activity and execution results
16
+ 3. Update goal progress where measurable changes occurred
17
+ 4. Identify stalled goals and flag for manager attention
18
+
19
+ ## Output
20
+
21
+ Goal status report and progress updates via `squads goal progress`