@swarmify/agents-cli 1.3.13 → 1.5.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.
- package/CHANGELOG.md +59 -0
- package/README.md +158 -117
- package/dist/index.js +452 -111
- package/dist/index.js.map +1 -1
- package/dist/lib/commands.d.ts +4 -0
- package/dist/lib/commands.d.ts.map +1 -1
- package/dist/lib/commands.js +9 -0
- package/dist/lib/commands.js.map +1 -1
- package/dist/lib/hooks.d.ts +4 -0
- package/dist/lib/hooks.d.ts.map +1 -1
- package/dist/lib/hooks.js +19 -0
- package/dist/lib/hooks.js.map +1 -1
- package/dist/lib/skills.d.ts +4 -0
- package/dist/lib/skills.d.ts.map +1 -1
- package/dist/lib/skills.js +7 -0
- package/dist/lib/skills.js.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
**Pull command redesign**
|
|
6
|
+
|
|
7
|
+
- Agent-specific sync: `agents pull claude` syncs only Claude resources
|
|
8
|
+
- Agent aliases: `cc`, `cx`, `gx`, `cr`, `oc` for quick filtering
|
|
9
|
+
- Overview display: Shows NEW vs EXISTING resources before installation
|
|
10
|
+
- Per-resource prompts: Choose overwrite/skip/cancel for each conflict
|
|
11
|
+
- `-y` flag: Auto-confirm and skip conflicts
|
|
12
|
+
- `-f` flag: Auto-confirm and overwrite conflicts
|
|
13
|
+
- Graceful cancellation: Ctrl+C shows "Cancelled" cleanly
|
|
14
|
+
|
|
15
|
+
## 1.4.0
|
|
16
|
+
|
|
17
|
+
- Conflict detection for pull command
|
|
18
|
+
- Bulk conflict handling (overwrite all / skip all / cancel)
|
|
19
|
+
|
|
20
|
+
## 1.3.13
|
|
21
|
+
|
|
22
|
+
- Enabled skills support for Cursor and OpenCode
|
|
23
|
+
- Fixed Cursor MCP config path (now uses mcp.json)
|
|
24
|
+
|
|
25
|
+
## 1.3.12
|
|
26
|
+
|
|
27
|
+
- Fixed MCP detection for Codex (TOML config format)
|
|
28
|
+
- Fixed MCP detection for OpenCode (JSONC config format)
|
|
29
|
+
- Added smol-toml dependency for TOML parsing
|
|
30
|
+
|
|
31
|
+
## 1.3.11
|
|
32
|
+
|
|
33
|
+
- Status command shows resource names instead of counts
|
|
34
|
+
- Better formatting for installed commands, skills, and MCPs
|
|
35
|
+
|
|
36
|
+
## 1.3.0
|
|
37
|
+
|
|
38
|
+
- Added Agent Skills support (SKILL.md + rules/)
|
|
39
|
+
- Skills validation with metadata requirements
|
|
40
|
+
- Central skills directory at ~/.agents/skills/
|
|
41
|
+
|
|
42
|
+
## 1.2.0
|
|
43
|
+
|
|
44
|
+
- Added hooks support for Claude and Gemini
|
|
45
|
+
- Hook discovery from shared/ and agent-specific directories
|
|
46
|
+
- Project-scope hooks support
|
|
47
|
+
|
|
48
|
+
## 1.1.0
|
|
49
|
+
|
|
50
|
+
- Added MCP server registration
|
|
51
|
+
- Support for stdio and http transports
|
|
52
|
+
- Per-agent MCP configuration
|
|
53
|
+
|
|
54
|
+
## 1.0.0
|
|
55
|
+
|
|
56
|
+
- Initial release
|
|
57
|
+
- Pull/push commands for syncing agent configurations
|
|
58
|
+
- Slash command management
|
|
59
|
+
- Multi-agent support (Claude, Codex, Gemini, Cursor, OpenCode)
|
package/README.md
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
# @swarmify/agents-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Your virtual environment manager for AI coding agents.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install -g @swarmify/agents-cli
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
## The
|
|
9
|
+
## The Problem
|
|
10
10
|
|
|
11
|
-
You
|
|
11
|
+
You spend hours configuring Claude Code: MCP servers, slash commands, hooks, skills. Then you switch to Codex or Gemini and start from scratch. Or you get a new machine and lose everything.
|
|
12
|
+
|
|
13
|
+
## The Solution
|
|
14
|
+
|
|
15
|
+
One command to configure all your agents.
|
|
12
16
|
|
|
13
17
|
```bash
|
|
14
|
-
#
|
|
15
|
-
agents pull
|
|
18
|
+
# New machine? One command.
|
|
19
|
+
agents pull
|
|
16
20
|
|
|
17
|
-
# See what
|
|
18
|
-
agents status
|
|
21
|
+
# See what's installed
|
|
22
|
+
agents status
|
|
19
23
|
```
|
|
20
24
|
|
|
21
25
|
```
|
|
@@ -40,145 +44,188 @@ Installed MCP Servers
|
|
|
40
44
|
User: Swarm@latest, GoDaddy
|
|
41
45
|
```
|
|
42
46
|
|
|
43
|
-
|
|
47
|
+
Your `.agents` repo becomes the source of truth for all your AI coding tools.
|
|
44
48
|
|
|
45
|
-
|
|
46
|
-
|----------|----------|-----------|
|
|
47
|
-
| Slash commands | `~/.claude/commands/` | Claude, Codex, Gemini |
|
|
48
|
-
| MCP servers | `~/.claude/settings.json` | Claude, Codex, Gemini |
|
|
49
|
-
| Hooks | `~/.claude/hooks.json` | Claude, Gemini |
|
|
50
|
-
| Agent Skills | `~/.claude/skills/` | Claude, Codex, Gemini |
|
|
51
|
-
| CLI versions | npm/brew | All agents |
|
|
49
|
+
## What Gets Synced
|
|
52
50
|
|
|
53
|
-
|
|
51
|
+
| Resource | Description | Agents |
|
|
52
|
+
|----------|-------------|--------|
|
|
53
|
+
| Slash commands | `/debug`, `/plan`, custom prompts | Claude, Codex, Gemini, Cursor, OpenCode |
|
|
54
|
+
| MCP servers | Tools your agents can use | Claude, Codex, Gemini |
|
|
55
|
+
| Hooks | Pre/post execution scripts | Claude, Gemini |
|
|
56
|
+
| Skills | Reusable agent capabilities | Claude, Codex, Gemini |
|
|
57
|
+
| CLI versions | Which version of each agent | All |
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
## Quick Start
|
|
56
60
|
|
|
57
61
|
```bash
|
|
58
|
-
#
|
|
59
|
-
|
|
62
|
+
# 1. Install
|
|
63
|
+
npm install -g @swarmify/agents-cli
|
|
60
64
|
|
|
61
|
-
#
|
|
62
|
-
agents
|
|
65
|
+
# 2. Pull (auto-configures from default repo on first run)
|
|
66
|
+
agents pull
|
|
63
67
|
|
|
64
|
-
#
|
|
65
|
-
agents
|
|
68
|
+
# 3. Check what's installed
|
|
69
|
+
agents status
|
|
66
70
|
```
|
|
67
71
|
|
|
68
|
-
|
|
72
|
+
Pull a specific agent only:
|
|
69
73
|
|
|
70
74
|
```bash
|
|
71
|
-
#
|
|
72
|
-
agents
|
|
75
|
+
agents pull claude # Only configure Claude Code
|
|
76
|
+
agents pull codex # Only configure Codex
|
|
77
|
+
```
|
|
73
78
|
|
|
74
|
-
|
|
75
|
-
agents mcp add swarm -- npx @swarmify/agents-mcp
|
|
76
|
-
agents mcp add memory -- npx -y @anthropic-ai/mcp-memory
|
|
79
|
+
## Using Your Own Config
|
|
77
80
|
|
|
78
|
-
|
|
79
|
-
agents mcp add api https://api.example.com/mcp --transport http -H "Authorization:Bearer token"
|
|
81
|
+
By default, `agents pull` uses the [system repo](https://github.com/muqsitnawaz/.agents). To use your own:
|
|
80
82
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
```bash
|
|
84
|
+
# Fork the system repo, then:
|
|
85
|
+
agents repo add gh:username/.agents
|
|
84
86
|
|
|
85
|
-
|
|
87
|
+
# Now pull uses your repo
|
|
88
|
+
agents pull
|
|
89
|
+
```
|
|
86
90
|
|
|
87
|
-
|
|
88
|
-
# List hooks
|
|
89
|
-
agents hooks list
|
|
91
|
+
## .agents Repo Structure
|
|
90
92
|
|
|
91
|
-
|
|
92
|
-
agents
|
|
93
|
+
```
|
|
94
|
+
.agents/
|
|
95
|
+
agents.yaml # CLI versions, MCP servers, defaults
|
|
96
|
+
shared/commands/ # Slash commands for all agents
|
|
97
|
+
claude/commands/ # Claude-specific commands
|
|
98
|
+
claude/hooks/ # Claude hooks
|
|
99
|
+
codex/prompts/ # Codex-specific prompts
|
|
100
|
+
gemini/commands/ # Gemini commands (auto-converted to TOML)
|
|
101
|
+
skills/ # Agent Skills (SKILL.md + rules/)
|
|
102
|
+
```
|
|
93
103
|
|
|
94
|
-
|
|
95
|
-
|
|
104
|
+
Example `agents.yaml`:
|
|
105
|
+
|
|
106
|
+
```yaml
|
|
107
|
+
clis:
|
|
108
|
+
claude:
|
|
109
|
+
package: "@anthropic-ai/claude-code"
|
|
110
|
+
version: "latest"
|
|
111
|
+
codex:
|
|
112
|
+
package: "@openai/codex"
|
|
113
|
+
version: "latest"
|
|
114
|
+
|
|
115
|
+
mcp:
|
|
116
|
+
filesystem:
|
|
117
|
+
command: "npx -y @anthropic-ai/mcp-filesystem"
|
|
118
|
+
transport: stdio
|
|
119
|
+
scope: user
|
|
120
|
+
agents: [claude, codex, gemini]
|
|
121
|
+
|
|
122
|
+
memory:
|
|
123
|
+
command: "npx -y @anthropic-ai/mcp-memory"
|
|
124
|
+
transport: stdio
|
|
125
|
+
scope: user
|
|
126
|
+
agents: [claude, codex, gemini]
|
|
127
|
+
|
|
128
|
+
defaults:
|
|
129
|
+
method: symlink
|
|
130
|
+
scope: user
|
|
131
|
+
agents: [claude, codex, gemini]
|
|
96
132
|
```
|
|
97
133
|
|
|
98
|
-
|
|
134
|
+
## Commands
|
|
99
135
|
|
|
100
|
-
|
|
136
|
+
### Status
|
|
101
137
|
|
|
102
138
|
```bash
|
|
103
|
-
#
|
|
104
|
-
agents
|
|
105
|
-
|
|
106
|
-
# Install from repo
|
|
107
|
-
agents skills add gh:user/my-skills
|
|
108
|
-
|
|
109
|
-
# Show details
|
|
110
|
-
agents skills info my-skill
|
|
139
|
+
agents status # Full overview
|
|
140
|
+
agents status --agent claude
|
|
111
141
|
```
|
|
112
142
|
|
|
113
|
-
###
|
|
114
|
-
|
|
115
|
-
Search public registries for MCP servers and skills:
|
|
143
|
+
### Pull & Push
|
|
116
144
|
|
|
117
145
|
```bash
|
|
118
|
-
#
|
|
119
|
-
agents
|
|
120
|
-
agents
|
|
146
|
+
agents pull # Sync all agents from your repo
|
|
147
|
+
agents pull claude # Sync only Claude resources
|
|
148
|
+
agents pull cc # Same (aliases: cc, codex/cx, gemini/gx)
|
|
149
|
+
agents pull --dry-run # Preview what would change
|
|
150
|
+
agents pull -y # Auto-confirm, skip conflicts
|
|
151
|
+
agents pull -f # Auto-confirm, overwrite conflicts
|
|
152
|
+
agents push # Push local changes back
|
|
153
|
+
```
|
|
121
154
|
|
|
122
|
-
|
|
123
|
-
agents search github --type mcp
|
|
155
|
+
The pull command shows an overview of NEW vs EXISTING resources before installation. For conflicts, you're prompted per-resource to overwrite, skip, or cancel.
|
|
124
156
|
|
|
125
|
-
|
|
126
|
-
agents add mcp:io.github.bytedance/mcp-server-filesystem
|
|
157
|
+
### Slash Commands
|
|
127
158
|
|
|
128
|
-
|
|
129
|
-
agents
|
|
130
|
-
agents add gh:user/my-
|
|
159
|
+
```bash
|
|
160
|
+
agents commands list
|
|
161
|
+
agents commands add gh:user/my-commands
|
|
162
|
+
agents commands remove my-command
|
|
163
|
+
agents commands push my-command # Promote project -> user scope
|
|
131
164
|
```
|
|
132
165
|
|
|
133
|
-
###
|
|
166
|
+
### MCP Servers
|
|
134
167
|
|
|
135
168
|
```bash
|
|
136
|
-
# List
|
|
137
|
-
agents
|
|
138
|
-
|
|
139
|
-
# Add custom registry
|
|
140
|
-
agents registry add mcp myregistry https://api.example.com/v1
|
|
169
|
+
# List across all agents
|
|
170
|
+
agents mcp list
|
|
141
171
|
|
|
142
|
-
#
|
|
143
|
-
agents
|
|
172
|
+
# Add (use -- before the command)
|
|
173
|
+
agents mcp add memory -- npx -y @anthropic-ai/mcp-memory
|
|
174
|
+
agents mcp add api https://api.example.com --transport http
|
|
144
175
|
|
|
145
|
-
#
|
|
146
|
-
agents
|
|
147
|
-
agents
|
|
176
|
+
# Search registries
|
|
177
|
+
agents search filesystem
|
|
178
|
+
agents add mcp:@anthropic-ai/mcp-filesystem
|
|
148
179
|
|
|
149
180
|
# Remove
|
|
150
|
-
agents
|
|
181
|
+
agents mcp remove memory
|
|
151
182
|
```
|
|
152
183
|
|
|
153
|
-
|
|
154
|
-
- `official` (MCP): https://registry.modelcontextprotocol.io
|
|
155
|
-
|
|
156
|
-
### Sync
|
|
184
|
+
### Skills
|
|
157
185
|
|
|
158
186
|
```bash
|
|
159
|
-
|
|
160
|
-
agents
|
|
187
|
+
agents skills list
|
|
188
|
+
agents skills add gh:user/my-skills
|
|
189
|
+
agents skills info my-skill
|
|
190
|
+
```
|
|
161
191
|
|
|
162
|
-
|
|
163
|
-
agents push
|
|
192
|
+
### Hooks
|
|
164
193
|
|
|
165
|
-
|
|
166
|
-
agents
|
|
194
|
+
```bash
|
|
195
|
+
agents hooks list
|
|
196
|
+
agents hooks add gh:user/my-hooks
|
|
197
|
+
agents hooks remove my-hook
|
|
167
198
|
```
|
|
168
199
|
|
|
169
200
|
### CLI Management
|
|
170
201
|
|
|
171
202
|
```bash
|
|
172
|
-
# Show installed versions
|
|
173
|
-
agents cli
|
|
203
|
+
agents cli list # Show installed versions
|
|
204
|
+
agents cli add claude # Install agent CLI
|
|
205
|
+
agents cli remove codex # Uninstall agent CLI
|
|
206
|
+
agents cli upgrade # Upgrade all to latest
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Scopes
|
|
174
210
|
|
|
175
|
-
|
|
176
|
-
|
|
211
|
+
Resources can exist at two levels:
|
|
212
|
+
|
|
213
|
+
| Scope | Location | Use |
|
|
214
|
+
|-------|----------|-----|
|
|
215
|
+
| User | `~/.{agent}/` | Available everywhere |
|
|
216
|
+
| Project | `./.{agent}/` | This repo only, committed |
|
|
217
|
+
|
|
218
|
+
Promote project-scoped items to user scope:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
agents commands push my-command
|
|
222
|
+
agents mcp push my-server
|
|
223
|
+
agents skills push my-skill
|
|
177
224
|
```
|
|
178
225
|
|
|
179
226
|
## Filtering
|
|
180
227
|
|
|
181
|
-
All commands support
|
|
228
|
+
All list commands support filters:
|
|
182
229
|
|
|
183
230
|
```bash
|
|
184
231
|
agents commands list --agent claude
|
|
@@ -186,44 +233,38 @@ agents mcp list --scope project
|
|
|
186
233
|
agents skills list --agent codex --scope user
|
|
187
234
|
```
|
|
188
235
|
|
|
189
|
-
##
|
|
236
|
+
## Registries
|
|
190
237
|
|
|
191
|
-
|
|
192
|
-
|-------|----------|----------|
|
|
193
|
-
| User | `~/.{agent}/` | Available everywhere |
|
|
194
|
-
| Project | `./.{agent}/` | This repo only |
|
|
195
|
-
|
|
196
|
-
Promote project-scoped items to user scope:
|
|
238
|
+
Search and install from public registries:
|
|
197
239
|
|
|
198
240
|
```bash
|
|
199
|
-
|
|
200
|
-
agents
|
|
241
|
+
# Search
|
|
242
|
+
agents search github --type mcp
|
|
243
|
+
|
|
244
|
+
# Install from registry
|
|
245
|
+
agents add mcp:@anthropic-ai/mcp-filesystem
|
|
246
|
+
|
|
247
|
+
# Manage registries
|
|
248
|
+
agents registry list
|
|
249
|
+
agents registry add mcp myregistry https://api.example.com
|
|
250
|
+
agents registry config mcp myregistry --api-key KEY
|
|
201
251
|
```
|
|
202
252
|
|
|
203
253
|
## Supported Agents
|
|
204
254
|
|
|
205
|
-
| Agent |
|
|
206
|
-
|
|
255
|
+
| Agent | Commands | MCP | Hooks | Skills |
|
|
256
|
+
|-------|----------|-----|-------|--------|
|
|
207
257
|
| Claude Code | Yes | Yes | Yes | Yes |
|
|
208
258
|
| Codex | Yes | Yes | - | Yes |
|
|
209
|
-
| Gemini CLI | Yes
|
|
210
|
-
| Cursor | Yes | Yes | - |
|
|
211
|
-
| OpenCode | Yes | Yes | - |
|
|
212
|
-
|
|
213
|
-
## Your .agents Repo
|
|
259
|
+
| Gemini CLI | Yes | Yes | Yes | Yes |
|
|
260
|
+
| Cursor | Yes | Yes | - | - |
|
|
261
|
+
| OpenCode | Yes | Yes | - | - |
|
|
214
262
|
|
|
215
|
-
|
|
216
|
-
.agents/
|
|
217
|
-
agents.yaml # CLIs, MCP servers, defaults
|
|
218
|
-
shared/commands/ # Prompts for all agents
|
|
219
|
-
claude/commands/ # Claude-specific prompts
|
|
220
|
-
claude/hooks/ # Claude hooks
|
|
221
|
-
skills/ # Agent Skills
|
|
222
|
-
```
|
|
263
|
+
Format conversion is automatic. Write commands in markdown, they're converted to TOML for Gemini.
|
|
223
264
|
|
|
224
265
|
## Related
|
|
225
266
|
|
|
226
|
-
- [@swarmify/agents-mcp](https://www.npmjs.com/package/@swarmify/agents-mcp) -
|
|
267
|
+
- [@swarmify/agents-mcp](https://www.npmjs.com/package/@swarmify/agents-mcp) - MCP server for multi-agent orchestration
|
|
227
268
|
|
|
228
269
|
## License
|
|
229
270
|
|