@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 CHANGED
@@ -1,145 +1,162 @@
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 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
- | 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
+ # Remove from all agents
57
+ agents mcp remove swarm
58
+ ```
64
59
 
65
- ## Repo Structure
60
+ ### Hooks
66
61
 
67
- Your `.agents` repo should look like:
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
- .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)
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
- ## 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]
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
- ## Supported Agents
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
- | 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/` |
111
+ ## Filtering
117
112
 
118
- ## Options
113
+ All commands support `--agent` and `--scope` filters:
119
114
 
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 |
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
- ## State
123
+ | Scope | Location | Use Case |
124
+ |-------|----------|----------|
125
+ | User | `~/.{agent}/` | Available everywhere |
126
+ | Project | `./.{agent}/` | This repo only |
128
127
 
129
- Local state is stored in `~/.agents/`:
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
- ~/.agents/
133
- state.json # Sync state, last sync time
134
- repos/ # Cloned .agents repos
135
- packages/ # External skill packages
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 Packages
157
+ ## Related
139
158
 
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. |
159
+ - [@swarmify/agents-mcp](https://www.npmjs.com/package/@swarmify/agents-mcp) - Multi-agent orchestration MCP server
143
160
 
144
161
  ## License
145
162