squads-cli 0.1.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/LICENSE +21 -0
- package/README.md +266 -0
- package/dist/cli.js +4706 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/package.json +79 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Agents Squads
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
# squads-cli
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/squads-cli)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
|
|
7
|
+
**Organize, run, and track autonomous AI agents.** Built for Claude Code.
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$ squads dash
|
|
11
|
+
|
|
12
|
+
┌────────────────────────────────────────────────────────────┐
|
|
13
|
+
│ SQUAD AGENTS MEMORY LAST ACTIVITY │
|
|
14
|
+
├────────────────────────────────────────────────────────────┤
|
|
15
|
+
│ intelligence 16 12 entries today │
|
|
16
|
+
│ engineering 5 8 entries today │
|
|
17
|
+
│ research 6 3 entries yesterday │
|
|
18
|
+
│ website 9 5 entries 2d ago │
|
|
19
|
+
└────────────────────────────────────────────────────────────┘
|
|
20
|
+
|
|
21
|
+
Active Goals: 3 | Memory Entries: 28 | Total Agents: 36
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Why squads-cli?
|
|
25
|
+
|
|
26
|
+
AI agents are powerful individually. But real work requires coordination.
|
|
27
|
+
|
|
28
|
+
- **Squads** — Group agents by domain (engineering, research, marketing)
|
|
29
|
+
- **Memory** — Persistent state that survives across sessions
|
|
30
|
+
- **Goals** — Track objectives and measure progress
|
|
31
|
+
- **Feedback** — Rate executions to improve over time
|
|
32
|
+
|
|
33
|
+
No complex infrastructure. Just markdown files and a CLI.
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install -g squads-cli
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Quick Start
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Initialize in your project
|
|
45
|
+
squads init
|
|
46
|
+
|
|
47
|
+
# See what you have
|
|
48
|
+
squads status
|
|
49
|
+
|
|
50
|
+
# Run a squad
|
|
51
|
+
squads run engineering
|
|
52
|
+
|
|
53
|
+
# Search memory
|
|
54
|
+
squads memory query "authentication"
|
|
55
|
+
|
|
56
|
+
# Set a goal
|
|
57
|
+
squads goal set engineering "Ship v2.0 by Friday"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Core Concepts
|
|
61
|
+
|
|
62
|
+
### Squads = Domain-Aligned Teams
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
.agents/squads/
|
|
66
|
+
├── engineering/
|
|
67
|
+
│ ├── SQUAD.md # Squad config + goals
|
|
68
|
+
│ └── ci-optimizer.md # Agent definition
|
|
69
|
+
├── research/
|
|
70
|
+
│ ├── SQUAD.md
|
|
71
|
+
│ └── market-analyst.md
|
|
72
|
+
└── intelligence/
|
|
73
|
+
└── ...
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Agents = Markdown Prompts
|
|
77
|
+
|
|
78
|
+
```markdown
|
|
79
|
+
# CI Optimizer
|
|
80
|
+
|
|
81
|
+
## Purpose
|
|
82
|
+
Reduce build times and optimize CI/CD pipelines.
|
|
83
|
+
|
|
84
|
+
## Model
|
|
85
|
+
claude-sonnet-4
|
|
86
|
+
|
|
87
|
+
## Tools
|
|
88
|
+
- Bash(gh:*, git:*)
|
|
89
|
+
- Read
|
|
90
|
+
- Edit
|
|
91
|
+
|
|
92
|
+
## Instructions
|
|
93
|
+
1. Analyze current build configuration
|
|
94
|
+
2. Identify slow steps
|
|
95
|
+
3. Implement caching strategies
|
|
96
|
+
4. Verify improvements
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Memory = Cross-Session State
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Agents accumulate knowledge
|
|
103
|
+
squads memory show engineering
|
|
104
|
+
# → "Switched to pnpm for faster installs"
|
|
105
|
+
# → "Build cache reduced CI time by 40%"
|
|
106
|
+
# → "Team prefers explicit over implicit configs"
|
|
107
|
+
|
|
108
|
+
# Search across all squads
|
|
109
|
+
squads memory query "performance"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Commands
|
|
113
|
+
|
|
114
|
+
### Status & Dashboard
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
squads status # All squads overview
|
|
118
|
+
squads status engineering # Single squad details
|
|
119
|
+
squads status -v # Verbose with agent list
|
|
120
|
+
squads dash # Full dashboard with goals
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Running Agents
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
squads run engineering # Run the whole squad
|
|
127
|
+
squads run engineering/ci-optimizer # Run specific agent
|
|
128
|
+
squads run engineering --dry-run # Preview what would run
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Memory Management
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
squads memory query "deployment" # Semantic search
|
|
135
|
+
squads memory show research # View squad memory
|
|
136
|
+
squads memory update research # Add to memory
|
|
137
|
+
squads memory list # List all entries
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Goal Tracking
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
squads goal set finance "Cut costs 20%" # Set goal
|
|
144
|
+
squads goal list # View all goals
|
|
145
|
+
squads goal progress finance 75 # Update progress
|
|
146
|
+
squads goal complete finance # Mark done
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Feedback Loop
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
squads feedback add research 4 "Good analysis" # Rate 1-5
|
|
153
|
+
squads feedback show research # View history
|
|
154
|
+
squads feedback stats # Summary
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Claude Code Integration
|
|
158
|
+
|
|
159
|
+
### Option 1: Session Hook (Recommended)
|
|
160
|
+
|
|
161
|
+
Add to `.claude/settings.json`:
|
|
162
|
+
|
|
163
|
+
```json
|
|
164
|
+
{
|
|
165
|
+
"hooks": {
|
|
166
|
+
"SessionStart": [{
|
|
167
|
+
"hooks": [{
|
|
168
|
+
"type": "command",
|
|
169
|
+
"command": "squads status",
|
|
170
|
+
"timeout": 10
|
|
171
|
+
}]
|
|
172
|
+
}]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Now every Claude Code session starts with squad context.
|
|
178
|
+
|
|
179
|
+
### Option 2: CLAUDE.md Instructions
|
|
180
|
+
|
|
181
|
+
```markdown
|
|
182
|
+
## Squads Workflow
|
|
183
|
+
|
|
184
|
+
Before starting work:
|
|
185
|
+
1. Run `squads status` to see current state
|
|
186
|
+
2. Run `squads memory query "<topic>"` to check existing knowledge
|
|
187
|
+
3. After completing work, update memory via state files
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## Project Structure
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
your-project/
|
|
194
|
+
├── .agents/
|
|
195
|
+
│ ├── squads/ # Squad definitions
|
|
196
|
+
│ │ ├── engineering/
|
|
197
|
+
│ │ │ ├── SQUAD.md # Config + goals
|
|
198
|
+
│ │ │ └── *.md # Agent definitions
|
|
199
|
+
│ │ └── research/
|
|
200
|
+
│ ├── memory/ # Persistent state
|
|
201
|
+
│ │ ├── engineering/
|
|
202
|
+
│ │ │ └── state.md
|
|
203
|
+
│ │ └── research/
|
|
204
|
+
│ └── outputs/ # Agent outputs
|
|
205
|
+
├── .claude/
|
|
206
|
+
│ └── settings.json # Hooks config
|
|
207
|
+
└── CLAUDE.md # Project instructions
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
## Command Reference
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
squads status [squad] Show squad status
|
|
214
|
+
-v, --verbose Include agent details
|
|
215
|
+
|
|
216
|
+
squads run <target> Run squad or agent
|
|
217
|
+
-v, --verbose Verbose output
|
|
218
|
+
-d, --dry-run Preview only
|
|
219
|
+
-e, --execute Execute via Claude CLI
|
|
220
|
+
|
|
221
|
+
squads list List all squads/agents
|
|
222
|
+
-s, --squads Squads only
|
|
223
|
+
-a, --agents Agents only
|
|
224
|
+
|
|
225
|
+
squads memory query <q> Search memory
|
|
226
|
+
-s, --squad <squad> Filter by squad
|
|
227
|
+
squads memory show <squad> View squad memory
|
|
228
|
+
squads memory update <squad> Add to memory
|
|
229
|
+
squads memory list List all entries
|
|
230
|
+
|
|
231
|
+
squads goal set <squad> <goal>
|
|
232
|
+
squads goal list [squad]
|
|
233
|
+
squads goal progress <squad> <pct>
|
|
234
|
+
squads goal complete <squad>
|
|
235
|
+
|
|
236
|
+
squads feedback add <squad> <rating> <text>
|
|
237
|
+
squads feedback show <squad>
|
|
238
|
+
squads feedback stats
|
|
239
|
+
|
|
240
|
+
squads dashboard Full dashboard
|
|
241
|
+
squads init Initialize project
|
|
242
|
+
squads login/logout/whoami Authentication (Pro)
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Development
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
git clone https://github.com/agents-squads/squads-cli
|
|
249
|
+
cd squads-cli
|
|
250
|
+
npm install
|
|
251
|
+
npm run build
|
|
252
|
+
npm link # Test globally
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Related
|
|
256
|
+
|
|
257
|
+
- [agents-squads](https://github.com/agents-squads/agents-squads) — Full framework with infrastructure
|
|
258
|
+
- [engram](https://github.com/agents-squads/engram) — Persistent memory for AI agents
|
|
259
|
+
|
|
260
|
+
## License
|
|
261
|
+
|
|
262
|
+
[MIT](LICENSE)
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
Built by [Agents Squads](https://agents-squads.com) — AI systems you can learn, understand, and trust.
|