@swarmify/agents-cli 1.0.0 → 1.2.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 CHANGED
@@ -1,145 +1,165 @@
1
1
  # @swarmify/agents-cli
2
2
 
3
- Dotfiles manager for AI coding agents. Sync skills, MCP servers, and CLI versions across machines.
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
- ## Quick Start
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's installed
14
+ # See what you have installed
17
15
  agents status
18
16
 
19
- # Sync from your .agents repo
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
- ### Status & Sync
33
+ ### Prompts (Slash Commands)
29
34
 
30
- | Command | Description |
31
- |---------|-------------|
32
- | `agents status` | Show CLIs, skills, sync source |
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
- ### Skills
39
+ # Install from a git repo
40
+ agents commands add gh:user/my-prompts
38
41
 
39
- | Command | Description |
40
- |---------|-------------|
41
- | `agents skills list` | List installed skills |
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
- | Command | Description |
49
- |---------|-------------|
50
- | `agents mcp list` | Show registration status |
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
- ### CLI Management
52
+ # Add stdio 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
- | Command | Description |
58
- |---------|-------------|
59
- | `agents cli list` | Show versions and paths |
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
+ # Add HTTP server with headers
57
+ agents mcp add api https://api.example.com/mcp --transport http -H "Authorization:Bearer token"
64
58
 
65
- ## Repo Structure
59
+ # Remove from all agents
60
+ agents mcp remove swarm
61
+ ```
66
62
 
67
- Your `.agents` repo should look like:
63
+ ### Hooks
68
64
 
65
+ ```bash
66
+ # List hooks
67
+ agents hooks list
68
+
69
+ # Install from repo
70
+ agents hooks add gh:user/my-hooks
71
+
72
+ # Remove
73
+ agents hooks remove my-hook
69
74
  ```
70
- .agents/
71
- agents.yaml # Manifest with CLIs, MCP, defaults
72
- shared/
73
- commands/ # Skills shared across all agents
74
- claude/
75
- commands/ # Claude-specific skills
76
- hooks/ # Claude hooks
77
- codex/
78
- prompts/ # Codex-specific skills
79
- gemini/
80
- prompts/ # Gemini skills (TOML format)
75
+
76
+ ### Skills
77
+
78
+ Agent Skills are reusable capabilities (SKILL.md + rules/) that agents can invoke.
79
+
80
+ ```bash
81
+ # List installed skills
82
+ agents skills list
83
+
84
+ # Install from repo
85
+ agents skills add gh:user/my-skills
86
+
87
+ # Show details
88
+ agents skills info my-skill
81
89
  ```
82
90
 
83
- ## Manifest Format
84
-
85
- ```yaml
86
- clis:
87
- claude:
88
- package: "@anthropic-ai/claude-code"
89
- version: "2.0.65"
90
- codex:
91
- package: "@openai/codex"
92
- version: "0.88.0"
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]
91
+ ### Sync
92
+
93
+ ```bash
94
+ # Pull config from your .agents repo
95
+ agents pull gh:username/.agents
96
+
97
+ # Push local changes back
98
+ agents push
99
+
100
+ # Full status
101
+ agents status
105
102
  ```
106
103
 
107
- ## Supported Agents
104
+ ### CLI Management
108
105
 
109
- | Agent | CLI | Config Directory |
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/` |
106
+ ```bash
107
+ # Show installed versions
108
+ agents cli list
117
109
 
118
- ## Options
110
+ # Upgrade all to latest
111
+ agents cli upgrade --latest
112
+ ```
119
113
 
120
- | Flag | Description |
121
- |------|-------------|
122
- | `-y, --yes` | Skip interactive prompts |
123
- | `-f, --force` | Force overwrite |
124
- | `--dry-run` | Preview changes |
125
- | `--skip-mcp` | Skip MCP registration |
114
+ ## Filtering
126
115
 
127
- ## State
116
+ All commands support `--agent` and `--scope` filters:
128
117
 
129
- Local state is stored in `~/.agents/`:
118
+ ```bash
119
+ agents commands list --agent claude
120
+ agents mcp list --scope project
121
+ agents skills list --agent codex --scope user
122
+ ```
130
123
 
124
+ ## Scopes
125
+
126
+ | Scope | Location | Use Case |
127
+ |-------|----------|----------|
128
+ | User | `~/.{agent}/` | Available everywhere |
129
+ | Project | `./.{agent}/` | This repo only |
130
+
131
+ Promote project-scoped items to user scope:
132
+
133
+ ```bash
134
+ agents commands push my-command
135
+ agents mcp push my-server
131
136
  ```
132
- ~/.agents/
133
- state.json # Sync state, last sync time
134
- repos/ # Cloned .agents repos
135
- packages/ # External skill packages
137
+
138
+ ## Supported Agents
139
+
140
+ | Agent | Prompts | MCP | Hooks | Skills |
141
+ |-------|---------|-----|-------|--------|
142
+ | Claude Code | Yes | Yes | Yes | Yes |
143
+ | Codex | Yes | Yes | - | Yes |
144
+ | Gemini CLI | Yes (TOML) | Yes | Yes | Yes |
145
+ | Cursor | Yes | - | - | - |
146
+ | OpenCode | Yes | - | - | - |
147
+ | Trae | Yes | - | - | - |
148
+
149
+ ## Your .agents Repo
150
+
151
+ ```
152
+ .agents/
153
+ agents.yaml # CLIs, MCP servers, defaults
154
+ shared/commands/ # Prompts for all agents
155
+ claude/commands/ # Claude-specific prompts
156
+ claude/hooks/ # Claude hooks
157
+ skills/ # Agent Skills
136
158
  ```
137
159
 
138
- ## Related Packages
160
+ ## Related
139
161
 
140
- | Package | Description |
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. |
162
+ - [@swarmify/agents-mcp](https://www.npmjs.com/package/@swarmify/agents-mcp) - Multi-agent orchestration MCP server
143
163
 
144
164
  ## License
145
165