cc-mirror 1.0.3 → 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 +168 -98
- package/dist/cc-mirror.mjs +807 -287
- package/dist/skills/multi-agent-orchestrator/SKILL.md +391 -0
- package/dist/skills/multi-agent-orchestrator/references/code-review.md +266 -0
- package/dist/skills/multi-agent-orchestrator/references/data-analysis.md +315 -0
- package/dist/skills/multi-agent-orchestrator/references/devops.md +309 -0
- package/dist/skills/multi-agent-orchestrator/references/documentation.md +310 -0
- package/dist/skills/multi-agent-orchestrator/references/domains/code-review.md +301 -0
- package/dist/skills/multi-agent-orchestrator/references/domains/data-analysis.md +347 -0
- package/dist/skills/multi-agent-orchestrator/references/domains/devops.md +340 -0
- package/dist/skills/multi-agent-orchestrator/references/domains/documentation.md +343 -0
- package/dist/skills/multi-agent-orchestrator/references/domains/project-management.md +370 -0
- package/dist/skills/multi-agent-orchestrator/references/domains/research.md +322 -0
- package/dist/skills/multi-agent-orchestrator/references/domains/software-development.md +269 -0
- package/dist/skills/multi-agent-orchestrator/references/domains/testing.md +313 -0
- package/dist/skills/multi-agent-orchestrator/references/examples.md +377 -0
- package/dist/skills/multi-agent-orchestrator/references/guide.md +327 -0
- package/dist/skills/multi-agent-orchestrator/references/patterns.md +441 -0
- package/dist/skills/multi-agent-orchestrator/references/project-management.md +345 -0
- package/dist/skills/multi-agent-orchestrator/references/research.md +285 -0
- package/dist/skills/multi-agent-orchestrator/references/software-development.md +242 -0
- package/dist/skills/multi-agent-orchestrator/references/testing.md +282 -0
- package/dist/skills/multi-agent-orchestrator/references/tools.md +454 -0
- package/dist/tui.mjs +1063 -405
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,60 +14,59 @@
|
|
|
14
14
|
<strong>Create multiple isolated Claude Code variants with custom providers.</strong>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
|
-
<p align="center">
|
|
18
|
-
Run Claude Code with Z.ai, MiniMax, OpenRouter, Claude Code Router, or any Anthropic-compatible API —<br>
|
|
19
|
-
each with its own config, themes, and session storage.
|
|
20
|
-
</p>
|
|
21
|
-
|
|
22
17
|
---
|
|
23
18
|
|
|
24
|
-
|
|
25
|
-
<img src="./assets/cc-mirror-home.png" alt="CC-MIRROR Home Screen" width="600">
|
|
26
|
-
</p>
|
|
27
|
-
|
|
28
|
-
## Why CC-MIRROR?
|
|
29
|
-
|
|
30
|
-
Claude Code is powerful, but locked to Anthropic's API. **CC-MIRROR** lets you:
|
|
19
|
+
## What is CC-MIRROR?
|
|
31
20
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
```
|
|
22
|
+
┌────────────────────────────────────────────────────────────────────────────────┐
|
|
23
|
+
│ │
|
|
24
|
+
│ One tool. Multiple Claude Code instances. Complete isolation. │
|
|
25
|
+
│ │
|
|
26
|
+
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
27
|
+
│ │ zai │ │ minimax │ │openrouter│ │ ccrouter │ │ mclaude │ │
|
|
28
|
+
│ │ GLM-4.7 │ │ M2.1 │ │ 100+ LLMs│ │ Local │ │ Claude │ │
|
|
29
|
+
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
|
|
30
|
+
│ │ │ │ │ │ │
|
|
31
|
+
│ └──────────────┴──────────────┴──────────────┴──────────────┘ │
|
|
32
|
+
│ │ │
|
|
33
|
+
│ ┌──────────▼──────────┐ │
|
|
34
|
+
│ │ Claude Code │ │
|
|
35
|
+
│ │ (isolated) │ │
|
|
36
|
+
│ └─────────────────────┘ │
|
|
37
|
+
│ │
|
|
38
|
+
└────────────────────────────────────────────────────────────────────────────────┘
|
|
39
|
+
```
|
|
37
40
|
|
|
38
|
-
- **
|
|
39
|
-
- **Complete Isolation** — Each variant has its own config, sessions, and themes
|
|
40
|
-
- **Brand Themes** — Custom color schemes per provider via [tweakcc](https://github.com/Piebald-AI/tweakcc)
|
|
41
|
-
- **Prompt Packs** — Enhanced system prompts for Z.ai and MiniMax
|
|
42
|
-
- **One-Command Updates** — Update all variants when Claude Code releases
|
|
43
|
-
- **Interactive TUI** — Full-screen setup wizard or CLI for automation
|
|
41
|
+
CC-MIRROR creates **isolated Claude Code instances** that connect to different AI providers. Each variant has its own config, sessions, themes, and API credentials — completely separate from each other.
|
|
44
42
|
|
|
45
|
-
|
|
43
|
+
---
|
|
46
44
|
|
|
47
|
-
|
|
45
|
+
## ⚡ Quick Start
|
|
48
46
|
|
|
49
47
|
```bash
|
|
50
|
-
# Run
|
|
48
|
+
# Run the interactive TUI
|
|
51
49
|
npx cc-mirror
|
|
52
50
|
|
|
53
|
-
# Or
|
|
54
|
-
|
|
55
|
-
cc-mirror
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Interactive TUI
|
|
59
|
-
|
|
60
|
-
Running `cc-mirror` with no arguments opens the interactive TUI:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
cc-mirror
|
|
51
|
+
# Or quick setup from CLI
|
|
52
|
+
npx cc-mirror quick --provider zai --api-key "$Z_AI_API_KEY"
|
|
64
53
|
```
|
|
65
54
|
|
|
66
55
|
<p align="center">
|
|
67
|
-
<img src="./assets/cc-mirror-
|
|
56
|
+
<img src="./assets/cc-mirror-home.png" alt="CC-MIRROR Home Screen" width="600">
|
|
68
57
|
</p>
|
|
69
58
|
|
|
70
|
-
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 🔌 Supported Providers
|
|
62
|
+
|
|
63
|
+
| Provider | Models | Auth | Best For |
|
|
64
|
+
| -------------- | ---------------------- | ---------- | ------------------------------- |
|
|
65
|
+
| **Z.ai** | GLM-4.7, GLM-4.5-Air | API Key | Heavy coding with GLM reasoning |
|
|
66
|
+
| **MiniMax** | MiniMax-M2.1 | API Key | Unified model experience |
|
|
67
|
+
| **OpenRouter** | 100+ models | Auth Token | Model flexibility, pay-per-use |
|
|
68
|
+
| **CCRouter** | Ollama, DeepSeek, etc. | Optional | Local-first development |
|
|
69
|
+
| **Mirror** | Claude (native) | OAuth/Key | Pure Claude with team mode |
|
|
71
70
|
|
|
72
71
|
```bash
|
|
73
72
|
# Z.ai (GLM Coding Plan)
|
|
@@ -78,109 +77,180 @@ npx cc-mirror quick --provider minimax --api-key "$MINIMAX_API_KEY"
|
|
|
78
77
|
|
|
79
78
|
# OpenRouter (100+ models)
|
|
80
79
|
npx cc-mirror quick --provider openrouter --api-key "$OPENROUTER_API_KEY" \
|
|
81
|
-
--model-sonnet "anthropic/claude-3.5-sonnet"
|
|
82
|
-
--model-opus "anthropic/claude-3-opus" \
|
|
83
|
-
--model-haiku "anthropic/claude-3-haiku"
|
|
80
|
+
--model-sonnet "anthropic/claude-3.5-sonnet"
|
|
84
81
|
|
|
85
82
|
# Claude Code Router (local LLMs)
|
|
86
83
|
npx cc-mirror quick --provider ccrouter
|
|
87
|
-
```
|
|
88
84
|
|
|
89
|
-
|
|
85
|
+
# Mirror Claude (pure Claude with team mode)
|
|
86
|
+
npx cc-mirror quick --provider mirror --name mclaude
|
|
87
|
+
```
|
|
90
88
|
|
|
91
|
-
|
|
92
|
-
| -------------- | -------------------------------------------- | ---------- | ----------------------------------------------------- |
|
|
93
|
-
| **Z.ai** | GLM-4.7 via GLM Coding Plan | API Key | Auto (GLM-4.7 for Sonnet/Opus, GLM-4.5-Air for Haiku) |
|
|
94
|
-
| **MiniMax** | MiniMax-M2.1 via MiniMax Coding Plan | API Key | Auto (single model for all tiers) |
|
|
95
|
-
| **OpenRouter** | Access 100+ models through one API | Auth Token | Required (you choose the models) |
|
|
96
|
-
| **CCRouter** | Route to local LLMs (Ollama, DeepSeek, etc.) | Optional | Handled by CCRouter config |
|
|
89
|
+
---
|
|
97
90
|
|
|
98
|
-
##
|
|
91
|
+
## 📁 How It Works
|
|
99
92
|
|
|
100
|
-
Each variant
|
|
93
|
+
Each variant lives in its own directory with complete isolation:
|
|
101
94
|
|
|
102
95
|
```
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
│
|
|
107
|
-
│
|
|
108
|
-
├──
|
|
109
|
-
│ ├──
|
|
110
|
-
│ └──
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
96
|
+
┌─────────────────────────────────────────────────────────────────────────┐
|
|
97
|
+
│ ~/.cc-mirror/ │
|
|
98
|
+
│ │
|
|
99
|
+
│ ├── zai/ ← Your Z.ai variant │
|
|
100
|
+
│ │ ├── npm/ Claude Code installation │
|
|
101
|
+
│ │ ├── config/ API keys, sessions, MCP servers │
|
|
102
|
+
│ │ ├── tweakcc/ Theme & prompt customization │
|
|
103
|
+
│ │ └── variant.json Metadata │
|
|
104
|
+
│ │ │
|
|
105
|
+
│ ├── minimax/ ← Your MiniMax variant │
|
|
106
|
+
│ │ └── ... │
|
|
107
|
+
│ │ │
|
|
108
|
+
│ └── mclaude/ ← Your Mirror Claude variant │
|
|
109
|
+
│ └── ... │
|
|
110
|
+
│ │
|
|
111
|
+
│ Wrappers: ~/.local/bin/zai, ~/.local/bin/minimax, ~/.local/bin/mclaude │
|
|
112
|
+
│ │
|
|
113
|
+
└─────────────────────────────────────────────────────────────────────────┘
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
Run any variant directly from your terminal:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
zai # Launch Z.ai variant
|
|
120
|
+
minimax # Launch MiniMax variant
|
|
121
|
+
mclaude # Launch Mirror Claude variant
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## ✨ Features
|
|
127
|
+
|
|
128
|
+
| Feature | Description |
|
|
129
|
+
| -------------------------- | -------------------------------------------------------------------------------------- |
|
|
130
|
+
| **🔌 Multiple Providers** | Z.ai, MiniMax, OpenRouter, CCRouter, Mirror, or custom endpoints |
|
|
131
|
+
| **📁 Complete Isolation** | Each variant has its own config, sessions, and credentials |
|
|
132
|
+
| **🎨 Brand Themes** | Custom color schemes per provider via [tweakcc](https://github.com/Piebald-AI/tweakcc) |
|
|
133
|
+
| **📝 Prompt Packs** | Enhanced system prompts for Z.ai and MiniMax |
|
|
134
|
+
| **🤖 Team Mode** | Multi-agent collaboration with shared task management |
|
|
135
|
+
| **🔄 One-Command Updates** | Update all variants when Claude Code releases |
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## 🛠️ Commands
|
|
117
140
|
|
|
118
141
|
```bash
|
|
119
|
-
# Create
|
|
120
|
-
cc-mirror create
|
|
142
|
+
# Create & manage variants
|
|
143
|
+
cc-mirror create # Full configuration wizard
|
|
121
144
|
cc-mirror quick [options] # Fast setup with defaults
|
|
122
145
|
cc-mirror list # List all variants
|
|
123
146
|
cc-mirror update [name] # Update one or all variants
|
|
124
147
|
cc-mirror remove <name> # Delete a variant
|
|
125
148
|
cc-mirror doctor # Health check all variants
|
|
126
|
-
cc-mirror tweak <name> # Launch tweakcc UI
|
|
127
149
|
|
|
128
|
-
#
|
|
129
|
-
zai #
|
|
130
|
-
minimax #
|
|
150
|
+
# Launch your variant
|
|
151
|
+
zai # Run Z.ai variant
|
|
152
|
+
minimax # Run MiniMax variant
|
|
153
|
+
mclaude # Run Mirror Claude variant
|
|
131
154
|
```
|
|
132
155
|
|
|
133
|
-
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 🎛️ CLI Options
|
|
134
159
|
|
|
135
160
|
```
|
|
136
|
-
--provider <name> zai | minimax | openrouter | ccrouter | custom
|
|
161
|
+
--provider <name> zai | minimax | openrouter | ccrouter | mirror | custom
|
|
162
|
+
--name <name> Variant name (becomes the CLI command)
|
|
137
163
|
--api-key <key> Provider API key
|
|
138
164
|
--base-url <url> Custom API endpoint
|
|
139
|
-
--model-sonnet <name> Map to sonnet model (
|
|
140
|
-
--model-opus <name> Map to opus model (
|
|
141
|
-
--model-haiku <name> Map to haiku model (
|
|
142
|
-
--brand <preset> Theme: auto |
|
|
143
|
-
--
|
|
144
|
-
--
|
|
145
|
-
--no-
|
|
146
|
-
--no-prompt-pack Skip prompt pack enhancements
|
|
147
|
-
--no-skill-install Skip dev-browser skill installation
|
|
165
|
+
--model-sonnet <name> Map to sonnet model (OpenRouter)
|
|
166
|
+
--model-opus <name> Map to opus model (OpenRouter)
|
|
167
|
+
--model-haiku <name> Map to haiku model (OpenRouter)
|
|
168
|
+
--brand <preset> Theme: auto | zai | minimax | openrouter | ccrouter | mirror
|
|
169
|
+
--enable-team-mode Enable team mode (TaskCreate, TaskGet, TaskUpdate, TaskList)
|
|
170
|
+
--no-tweak Skip tweakcc theme
|
|
171
|
+
--no-prompt-pack Skip prompt pack
|
|
148
172
|
```
|
|
149
173
|
|
|
150
|
-
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 🎨 Brand Themes
|
|
151
177
|
|
|
152
|
-
Each provider
|
|
178
|
+
Each provider includes a custom color theme:
|
|
153
179
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
180
|
+
| Brand | Style |
|
|
181
|
+
| -------------- | -------------------------------- |
|
|
182
|
+
| **zai** | Dark carbon with gold accents |
|
|
183
|
+
| **minimax** | Coral/red/orange spectrum |
|
|
184
|
+
| **openrouter** | Teal/cyan gradient |
|
|
185
|
+
| **ccrouter** | Sky blue accents |
|
|
186
|
+
| **mirror** | Silver/chrome with electric blue |
|
|
158
187
|
|
|
159
|
-
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## 🤖 Team Mode
|
|
160
191
|
|
|
161
|
-
|
|
192
|
+
Enable multi-agent collaboration with shared task management:
|
|
162
193
|
|
|
163
194
|
```bash
|
|
164
|
-
#
|
|
165
|
-
cc-mirror
|
|
195
|
+
# Enable on any variant
|
|
196
|
+
cc-mirror create --provider zai --name zai-team --enable-team-mode
|
|
166
197
|
|
|
167
|
-
#
|
|
168
|
-
cc-mirror
|
|
198
|
+
# Mirror Claude has team mode by default
|
|
199
|
+
cc-mirror quick --provider mirror --name mclaude
|
|
169
200
|
```
|
|
170
201
|
|
|
171
|
-
|
|
202
|
+
Team mode enables: `TaskCreate`, `TaskGet`, `TaskUpdate`, `TaskList` tools plus an **orchestrator skill** that teaches Claude effective multi-agent coordination patterns.
|
|
203
|
+
|
|
204
|
+
→ [Team Mode Documentation](docs/features/team-mode.md)
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 🪞 Mirror Claude
|
|
172
209
|
|
|
173
|
-
|
|
210
|
+
A pure Claude Code variant with enhanced features:
|
|
174
211
|
|
|
175
|
-
**
|
|
212
|
+
- **No proxy** — Connects directly to Anthropic's API
|
|
213
|
+
- **Team mode** — Enabled by default
|
|
214
|
+
- **Isolated config** — Experiment without affecting your main setup
|
|
215
|
+
- **Custom theme** — Silver/chrome aesthetic
|
|
176
216
|
|
|
177
|
-
|
|
217
|
+
```bash
|
|
218
|
+
npx cc-mirror quick --provider mirror --name mclaude
|
|
219
|
+
mclaude # Authenticate via OAuth or API key
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
→ [Mirror Claude Documentation](docs/features/mirror-claude.md)
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## 📚 Documentation
|
|
227
|
+
|
|
228
|
+
| Document | Description |
|
|
229
|
+
| ----------------------------------------------- | ------------------------------------------- |
|
|
230
|
+
| [Team Mode](docs/features/team-mode.md) | Multi-agent collaboration with shared tasks |
|
|
231
|
+
| [Mirror Claude](docs/features/mirror-claude.md) | Pure Claude Code with enhanced features |
|
|
232
|
+
| [Architecture](docs/architecture/overview.md) | How cc-mirror works under the hood |
|
|
233
|
+
| [Full Documentation](docs/README.md) | Complete documentation index |
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## 🔗 Related Projects
|
|
178
238
|
|
|
179
239
|
- [tweakcc](https://github.com/Piebald-AI/tweakcc) — Theme and customize Claude Code
|
|
180
240
|
- [Claude Code Router](https://github.com/musistudio/claude-code-router) — Route Claude Code to any LLM
|
|
181
241
|
- [n-skills](https://github.com/numman-ali/n-skills) — Universal skills for AI agents
|
|
182
242
|
|
|
183
|
-
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## 🤝 Contributing
|
|
246
|
+
|
|
247
|
+
Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup.
|
|
248
|
+
|
|
249
|
+
**Want to add a provider?** Check the [Provider Guide](docs/TWEAKCC-GUIDE.md).
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## 📄 License
|
|
184
254
|
|
|
185
255
|
MIT — see [LICENSE](LICENSE)
|
|
186
256
|
|