cc-mirror 1.0.4 → 1.1.1

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.
Files changed (25) hide show
  1. package/README.md +168 -98
  2. package/dist/cc-mirror.mjs +805 -294
  3. package/dist/skills/multi-agent-orchestrator/SKILL.md +391 -0
  4. package/dist/skills/multi-agent-orchestrator/references/code-review.md +266 -0
  5. package/dist/skills/multi-agent-orchestrator/references/data-analysis.md +315 -0
  6. package/dist/skills/multi-agent-orchestrator/references/devops.md +309 -0
  7. package/dist/skills/multi-agent-orchestrator/references/documentation.md +310 -0
  8. package/dist/skills/multi-agent-orchestrator/references/domains/code-review.md +301 -0
  9. package/dist/skills/multi-agent-orchestrator/references/domains/data-analysis.md +347 -0
  10. package/dist/skills/multi-agent-orchestrator/references/domains/devops.md +340 -0
  11. package/dist/skills/multi-agent-orchestrator/references/domains/documentation.md +343 -0
  12. package/dist/skills/multi-agent-orchestrator/references/domains/project-management.md +370 -0
  13. package/dist/skills/multi-agent-orchestrator/references/domains/research.md +322 -0
  14. package/dist/skills/multi-agent-orchestrator/references/domains/software-development.md +269 -0
  15. package/dist/skills/multi-agent-orchestrator/references/domains/testing.md +313 -0
  16. package/dist/skills/multi-agent-orchestrator/references/examples.md +377 -0
  17. package/dist/skills/multi-agent-orchestrator/references/guide.md +327 -0
  18. package/dist/skills/multi-agent-orchestrator/references/patterns.md +441 -0
  19. package/dist/skills/multi-agent-orchestrator/references/project-management.md +345 -0
  20. package/dist/skills/multi-agent-orchestrator/references/research.md +285 -0
  21. package/dist/skills/multi-agent-orchestrator/references/software-development.md +242 -0
  22. package/dist/skills/multi-agent-orchestrator/references/testing.md +282 -0
  23. package/dist/skills/multi-agent-orchestrator/references/tools.md +454 -0
  24. package/dist/tui.mjs +1045 -360
  25. 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
- <p align="center">
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
- - **Use any provider** — Z.ai's GLM models, MiniMax-M2.1, OpenRouter's 100+ models, or route to local LLMs via Claude Code Router
33
- - **Keep variants isolated** — Each variant has its own config, sessions, and themes
34
- - **Switch instantly** — Run `zai` for Z.ai, `minimax` for MiniMax, `openrouter` for OpenRouter
35
-
36
- ## Features
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
- - **Multiple Providers** Z.ai, MiniMax, OpenRouter, Claude Code Router, or custom endpoints
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
- ## Quick Start
43
+ ---
46
44
 
47
- ### Installation
45
+ ## ⚡ Quick Start
48
46
 
49
47
  ```bash
50
- # Run directly with npx (opens TUI by default)
48
+ # Run the interactive TUI
51
49
  npx cc-mirror
52
50
 
53
- # Or install globally
54
- npm install -g cc-mirror
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-select.png" alt="Provider Selection" width="600">
56
+ <img src="./assets/cc-mirror-home.png" alt="CC-MIRROR Home Screen" width="600">
68
57
  </p>
69
58
 
70
- ### CLI Quick Setup
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
- ## Supported Providers
85
+ # Mirror Claude (pure Claude with team mode)
86
+ npx cc-mirror quick --provider mirror --name mclaude
87
+ ```
90
88
 
91
- | Provider | Description | Auth | Model Mapping |
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
- ## Variant Structure
91
+ ## 📁 How It Works
99
92
 
100
- Each variant is fully isolated in `~/.cc-mirror/<name>/`:
93
+ Each variant lives in its own directory with complete isolation:
101
94
 
102
95
  ```
103
- ~/.cc-mirror/<variant>/
104
- ├── npm/ # Claude Code installation
105
- ├── config/ # CLAUDE_CONFIG_DIR
106
- ├── settings.json # API keys, env overrides
107
- └── .claude.json # MCP servers, approvals
108
- ├── tweakcc/ # Theme & prompt configs
109
- │ ├── config.json # Brand preset
110
- │ └── system-prompts/
111
- └── variant.json # Metadata
112
-
113
- Wrapper: ~/.local/bin/<variant>
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
- ## Commands
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/manage variants
120
- cc-mirror create [options] # Full configuration wizard
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
- # Run your variant
129
- zai # If you named it 'zai'
130
- minimax # If you named it '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
- ## CLI Options
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 (for OpenRouter)
140
- --model-opus <name> Map to opus model (for OpenRouter)
141
- --model-haiku <name> Map to haiku model (for OpenRouter)
142
- --brand <preset> Theme: auto | none | zai | minimax | openrouter | ccrouter
143
- --root <path> Variants root (default: ~/.cc-mirror)
144
- --bin-dir <path> Wrapper dir (default: ~/.local/bin)
145
- --no-tweak Skip tweakcc theme application
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
- ## Brand Themes
174
+ ---
175
+
176
+ ## 🎨 Brand Themes
151
177
 
152
- Each provider has an optional color theme applied via [tweakcc](https://github.com/Piebald-AI/tweakcc):
178
+ Each provider includes a custom color theme:
153
179
 
154
- - **zai** — Dark carbon with gold accents
155
- - **minimax** Coral/red/orange spectrum
156
- - **openrouter** Teal/cyan gradient
157
- - **ccrouter** Sky blue accents
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
- ## Updating Variants
188
+ ---
189
+
190
+ ## 🤖 Team Mode
160
191
 
161
- When Claude Code releases a new version:
192
+ Enable multi-agent collaboration with shared task management:
162
193
 
163
194
  ```bash
164
- # Update all variants
165
- cc-mirror update
195
+ # Enable on any variant
196
+ cc-mirror create --provider zai --name zai-team --enable-team-mode
166
197
 
167
- # Update specific variant
168
- cc-mirror update zai
198
+ # Mirror Claude has team mode by default
199
+ cc-mirror quick --provider mirror --name mclaude
169
200
  ```
170
201
 
171
- ## Contributing
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
- Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.
210
+ A pure Claude Code variant with enhanced features:
174
211
 
175
- **Want to add a provider?** Check the [Provider Guide](docs/TWEAKCC-GUIDE.md) for details.
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
- ## Related Projects
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
- ## License
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