@swarmify/agents-cli 1.0.0 → 1.1.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/README.md +117 -100
- package/dist/index.js +1152 -102
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-skills.d.ts +31 -0
- package/dist/lib/agent-skills.d.ts.map +1 -0
- package/dist/lib/agent-skills.js +338 -0
- package/dist/lib/agent-skills.js.map +1 -0
- package/dist/lib/agents.d.ts +20 -0
- package/dist/lib/agents.d.ts.map +1 -1
- package/dist/lib/agents.js +118 -6
- package/dist/lib/agents.js.map +1 -1
- package/dist/lib/commands.d.ts +47 -0
- package/dist/lib/commands.d.ts.map +1 -0
- package/dist/lib/commands.js +280 -0
- package/dist/lib/commands.js.map +1 -0
- package/dist/lib/git.d.ts +17 -0
- package/dist/lib/git.d.ts.map +1 -1
- package/dist/lib/git.js +98 -11
- package/dist/lib/git.js.map +1 -1
- package/dist/lib/hooks.d.ts +21 -0
- package/dist/lib/hooks.d.ts.map +1 -0
- package/dist/lib/hooks.js +234 -0
- package/dist/lib/hooks.js.map +1 -0
- package/dist/lib/registry.d.ts +28 -0
- package/dist/lib/registry.d.ts.map +1 -0
- package/dist/lib/registry.js +195 -0
- package/dist/lib/registry.js.map +1 -0
- package/dist/lib/skills.d.ts +35 -10
- package/dist/lib/skills.d.ts.map +1 -1
- package/dist/lib/skills.js +353 -101
- package/dist/lib/skills.js.map +1 -1
- package/dist/lib/state.d.ts +21 -5
- package/dist/lib/state.d.ts.map +1 -1
- package/dist/lib/state.js +131 -20
- package/dist/lib/state.js.map +1 -1
- package/dist/lib/types.d.ts +140 -6
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js +18 -1
- package/dist/lib/types.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,145 +1,162 @@
|
|
|
1
1
|
# @swarmify/agents-cli
|
|
2
2
|
|
|
3
|
-
Dotfiles
|
|
4
|
-
|
|
5
|
-
Part of the [Swarmify](https://github.com/muqsitnawaz/swarmify) multi-agent toolkit.
|
|
6
|
-
|
|
7
|
-
## Install
|
|
3
|
+
Dotfiles for AI coding agents. Sync prompts, MCP servers, hooks, and skills across Claude, Codex, Gemini, Cursor, and more.
|
|
8
4
|
|
|
9
5
|
```bash
|
|
10
6
|
npm install -g @swarmify/agents-cli
|
|
11
7
|
```
|
|
12
8
|
|
|
13
|
-
##
|
|
9
|
+
## The Idea
|
|
10
|
+
|
|
11
|
+
You configure Claude Code manually. Then you switch to Codex or Gemini and start from scratch. This CLI syncs your setup across all agents:
|
|
14
12
|
|
|
15
13
|
```bash
|
|
16
|
-
# See what
|
|
14
|
+
# See what you have installed
|
|
17
15
|
agents status
|
|
18
16
|
|
|
19
|
-
#
|
|
17
|
+
# Pull your config on a new machine
|
|
20
18
|
agents pull gh:username/.agents
|
|
21
|
-
|
|
22
|
-
# Or use a local directory
|
|
23
|
-
agents pull ~/dotfiles/.agents
|
|
24
19
|
```
|
|
25
20
|
|
|
21
|
+
## What Gets Synced
|
|
22
|
+
|
|
23
|
+
| Resource | Location | Synced To |
|
|
24
|
+
|----------|----------|-----------|
|
|
25
|
+
| Slash commands | `~/.claude/commands/` | Claude, Codex, Gemini |
|
|
26
|
+
| MCP servers | `~/.claude/settings.json` | Claude, Codex, Gemini |
|
|
27
|
+
| Hooks | `~/.claude/hooks.json` | Claude, Gemini |
|
|
28
|
+
| Agent Skills | `~/.claude/skills/` | Claude, Codex, Gemini |
|
|
29
|
+
| CLI versions | npm/brew | All agents |
|
|
30
|
+
|
|
26
31
|
## Commands
|
|
27
32
|
|
|
28
|
-
###
|
|
33
|
+
### Prompts (Slash Commands)
|
|
29
34
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
| `agents pull <source>` | Pull and install from repo |
|
|
34
|
-
| `agents push` | Export local config to repo |
|
|
35
|
-
| `agents sync <source>` | Alias for pull |
|
|
35
|
+
```bash
|
|
36
|
+
# List what's installed
|
|
37
|
+
agents commands list
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
# Install from a git repo
|
|
40
|
+
agents commands add gh:user/my-prompts
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
| `agents skills list --agent claude` | Filter by agent |
|
|
43
|
-
| `agents skills add gh:user/skills` | Install from git repo |
|
|
44
|
-
| `agents skills remove <name>` | Uninstall skill |
|
|
42
|
+
# Remove
|
|
43
|
+
agents commands remove my-command
|
|
44
|
+
```
|
|
45
45
|
|
|
46
46
|
### MCP Servers
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
| `agents mcp add <name> <command>` | Add to manifest |
|
|
52
|
-
| `agents mcp remove <name>` | Unregister from agents |
|
|
53
|
-
| `agents mcp register` | Register all from manifest |
|
|
48
|
+
```bash
|
|
49
|
+
# List servers across all agents
|
|
50
|
+
agents mcp list
|
|
54
51
|
|
|
55
|
-
|
|
52
|
+
# Add a server (use -- before the command)
|
|
53
|
+
agents mcp add swarm -- npx @swarmify/agents-mcp
|
|
54
|
+
agents mcp add memory -- npx -y @anthropic-ai/mcp-memory
|
|
56
55
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
| `agents cli add <agent>` | Add to manifest |
|
|
61
|
-
| `agents cli remove <agent>` | Remove from manifest |
|
|
62
|
-
| `agents cli upgrade` | Upgrade all to manifest versions |
|
|
63
|
-
| `agents cli upgrade --latest` | Upgrade to latest |
|
|
56
|
+
# Remove from all agents
|
|
57
|
+
agents mcp remove swarm
|
|
58
|
+
```
|
|
64
59
|
|
|
65
|
-
|
|
60
|
+
### Hooks
|
|
66
61
|
|
|
67
|
-
|
|
62
|
+
```bash
|
|
63
|
+
# List hooks
|
|
64
|
+
agents hooks list
|
|
65
|
+
|
|
66
|
+
# Install from repo
|
|
67
|
+
agents hooks add gh:user/my-hooks
|
|
68
68
|
|
|
69
|
+
# Remove
|
|
70
|
+
agents hooks remove my-hook
|
|
69
71
|
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
|
|
73
|
+
### Skills
|
|
74
|
+
|
|
75
|
+
Agent Skills are reusable capabilities (SKILL.md + rules/) that agents can invoke.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# List installed skills
|
|
79
|
+
agents skills list
|
|
80
|
+
|
|
81
|
+
# Install from repo
|
|
82
|
+
agents skills add gh:user/my-skills
|
|
83
|
+
|
|
84
|
+
# Show details
|
|
85
|
+
agents skills info my-skill
|
|
81
86
|
```
|
|
82
87
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
mcp:
|
|
95
|
-
swarm:
|
|
96
|
-
command: "npx @swarmify/agents-mcp"
|
|
97
|
-
transport: stdio
|
|
98
|
-
scope: user
|
|
99
|
-
agents: [claude, codex]
|
|
100
|
-
|
|
101
|
-
defaults:
|
|
102
|
-
method: symlink
|
|
103
|
-
scope: global
|
|
104
|
-
agents: [claude, codex, gemini]
|
|
88
|
+
### Sync
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Pull config from your .agents repo
|
|
92
|
+
agents pull gh:username/.agents
|
|
93
|
+
|
|
94
|
+
# Push local changes back
|
|
95
|
+
agents push
|
|
96
|
+
|
|
97
|
+
# Full status
|
|
98
|
+
agents status
|
|
105
99
|
```
|
|
106
100
|
|
|
107
|
-
|
|
101
|
+
### CLI Management
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Show installed versions
|
|
105
|
+
agents cli list
|
|
106
|
+
|
|
107
|
+
# Upgrade all to latest
|
|
108
|
+
agents cli upgrade --latest
|
|
109
|
+
```
|
|
108
110
|
|
|
109
|
-
|
|
110
|
-
|-------|-----|------------------|
|
|
111
|
-
| Claude | `claude` | `~/.claude/` |
|
|
112
|
-
| Codex | `codex` | `~/.codex/` |
|
|
113
|
-
| Gemini | `gemini` | `~/.gemini/` |
|
|
114
|
-
| Cursor | `cursor-agent` | `~/.cursor-agent/` |
|
|
115
|
-
| OpenCode | `opencode` | `~/.opencode/` |
|
|
116
|
-
| Trae | `trae-cli` | `~/.trae/` |
|
|
111
|
+
## Filtering
|
|
117
112
|
|
|
118
|
-
|
|
113
|
+
All commands support `--agent` and `--scope` filters:
|
|
119
114
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
```bash
|
|
116
|
+
agents commands list --agent claude
|
|
117
|
+
agents mcp list --scope project
|
|
118
|
+
agents skills list --agent codex --scope user
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Scopes
|
|
126
122
|
|
|
127
|
-
|
|
123
|
+
| Scope | Location | Use Case |
|
|
124
|
+
|-------|----------|----------|
|
|
125
|
+
| User | `~/.{agent}/` | Available everywhere |
|
|
126
|
+
| Project | `./.{agent}/` | This repo only |
|
|
128
127
|
|
|
129
|
-
|
|
128
|
+
Promote project-scoped items to user scope:
|
|
130
129
|
|
|
130
|
+
```bash
|
|
131
|
+
agents commands push my-command
|
|
132
|
+
agents mcp push my-server
|
|
131
133
|
```
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
|
|
135
|
+
## Supported Agents
|
|
136
|
+
|
|
137
|
+
| Agent | Prompts | MCP | Hooks | Skills |
|
|
138
|
+
|-------|---------|-----|-------|--------|
|
|
139
|
+
| Claude Code | Yes | Yes | Yes | Yes |
|
|
140
|
+
| Codex | Yes | Yes | - | Yes |
|
|
141
|
+
| Gemini CLI | Yes (TOML) | Yes | Yes | Yes |
|
|
142
|
+
| Cursor | Yes | - | - | - |
|
|
143
|
+
| OpenCode | Yes | - | - | - |
|
|
144
|
+
| Trae | Yes | - | - | - |
|
|
145
|
+
|
|
146
|
+
## Your .agents Repo
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
.agents/
|
|
150
|
+
agents.yaml # CLIs, MCP servers, defaults
|
|
151
|
+
shared/commands/ # Prompts for all agents
|
|
152
|
+
claude/commands/ # Claude-specific prompts
|
|
153
|
+
claude/hooks/ # Claude hooks
|
|
154
|
+
skills/ # Agent Skills
|
|
136
155
|
```
|
|
137
156
|
|
|
138
|
-
## Related
|
|
157
|
+
## Related
|
|
139
158
|
|
|
140
|
-
|
|
141
|
-
|---------|-------------|
|
|
142
|
-
| [@swarmify/agents-mcp](https://www.npmjs.com/package/@swarmify/agents-mcp) | MCP server for multi-agent orchestration. Spawn Claude, Codex, Gemini agents in parallel. |
|
|
159
|
+
- [@swarmify/agents-mcp](https://www.npmjs.com/package/@swarmify/agents-mcp) - Multi-agent orchestration MCP server
|
|
143
160
|
|
|
144
161
|
## License
|
|
145
162
|
|