c-breakout-claude 1.0.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.
@@ -0,0 +1,268 @@
1
+ # C-Breakout Orchestrate Mode - Quick Start Guide
2
+
3
+ ## What is Orchestrate Mode?
4
+
5
+ An intelligent project orchestration system that:
6
+ - **Analyzes** your project and breaks it into tasks
7
+ - **Classifies** tasks by type (planner, dev, deploy)
8
+ - **Assigns** specialized agents with minimal tools
9
+ - **Saves 43-50%** on tokens vs standard distribute mode
10
+
11
+ ## When to Use It
12
+
13
+ ✅ **Use orchestrate for:**
14
+ - Complex projects (10+ tasks)
15
+ - Full features (planning → development → deployment)
16
+ - Multi-file changes
17
+ - Projects requiring research + implementation
18
+
19
+ ❌ **Don't use orchestrate for:**
20
+ - Simple single tasks (use standard `/c-breakout distribute`)
21
+ - Pure calculation tasks (too much overhead)
22
+ - Quick file summaries (use `/c-breakout summarize`)
23
+
24
+ ## Basic Usage
25
+
26
+ ```bash
27
+ /c-breakout orchestrate "Implement user authentication system"
28
+ ```
29
+
30
+ That's it! The orchestrator will:
31
+ 1. Analyze your project
32
+ 2. Create specialized agents
33
+ 3. Execute in coordinated waves
34
+ 4. Aggregate results
35
+
36
+ ## How It Works
37
+
38
+ ### Architecture
39
+
40
+ ```
41
+ ┌─────────────────────────────────────┐
42
+ │ ORCHESTRATOR (Sonnet) │
43
+ │ • Reads project files │
44
+ │ • Creates work breakdown │
45
+ │ • Classifies tasks │
46
+ │ • Monitors execution │
47
+ └─────────────────┬───────────────────┘
48
+
49
+ ┌─────────┼──────────┐
50
+ ▼ ▼ ▼
51
+ ┌────────┐ ┌──────┐ ┌─────────┐
52
+ │PLANNER │ │ DEV │ │ DEPLOY │
53
+ │agents │ │agents│ │ agents │
54
+ └────────┘ └──────┘ └─────────┘
55
+ ```
56
+
57
+ ### Agent Types
58
+
59
+ | Type | Tools | Use For | Overhead |
60
+ |------|-------|---------|----------|
61
+ | **PLANNER** | Read, Grep, WebSearch | Research, analysis, exploration | ~12K tokens |
62
+ | **DEV** | Read, Write, Edit, Bash | Implementation, testing | ~10K tokens |
63
+ | **DEPLOY** | Bash, Read | Running scripts, deployment | ~8K tokens |
64
+
65
+ ### Execution Waves
66
+
67
+ Tasks execute in waves based on dependencies:
68
+
69
+ ```
70
+ Wave 1: [P001, P002, P003] ← All planner tasks (parallel)
71
+
72
+ Wave 2: [D001, D002, D003] ← Dev tasks blocked by planners (parallel)
73
+
74
+ Wave 3: [DPL001] ← Deploy task blocked by dev (sequential)
75
+ ```
76
+
77
+ ## Example Scenarios
78
+
79
+ ### Scenario 1: Full Feature Implementation
80
+
81
+ ```bash
82
+ /c-breakout orchestrate "Add user profile management with CRUD operations"
83
+ ```
84
+
85
+ **What happens:**
86
+ 1. Orchestrator reads `src/` to understand current structure
87
+ 2. Creates plan:
88
+ - PLANNER: Research current user model
89
+ - PLANNER: Analyze API patterns
90
+ - DEV: Create user profile model
91
+ - DEV: Implement CRUD endpoints
92
+ - DEV: Write tests
93
+ - DEPLOY: Run migrations
94
+ 3. Launches 6 specialized agents
95
+ 4. Reports results
96
+
97
+ **Cost:** ~$0.60 (vs $1.20 without orchestrate)
98
+
99
+ ### Scenario 2: Refactoring Project
100
+
101
+ ```bash
102
+ /c-breakout orchestrate "Refactor authentication to use JWT tokens"
103
+ ```
104
+
105
+ **Plan:**
106
+ - PLANNER agents: Analyze current auth, research JWT best practices
107
+ - DEV agents: Implement JWT service, update endpoints, update tests
108
+ - DEPLOY agents: Update environment configs, run migrations
109
+
110
+ ### Scenario 3: Full Stack Feature
111
+
112
+ ```bash
113
+ /c-breakout orchestrate "Add real-time notifications with WebSocket support"
114
+ ```
115
+
116
+ **Plan:**
117
+ - PLANNER: Research WebSocket libraries, analyze current architecture
118
+ - DEV: Implement WebSocket server, create notification service, add client handlers, write tests
119
+ - DEPLOY: Update server configs, deploy with new dependencies
120
+
121
+ ## Cost Comparison
122
+
123
+ ### 100-Task Project
124
+
125
+ | Method | Token Overhead | Cost (Haiku) | Savings |
126
+ |--------|----------------|--------------|---------|
127
+ | No orchestrator | 1,900,000 | $1.52 | Baseline |
128
+ | **With orchestrator** | **1,074,000** | **$0.86** | **43.5%** |
129
+
130
+ ### Why It's Cheaper
131
+
132
+ - **Full context agents:** 19K tokens each (includes all skills, tools)
133
+ - **Specialized agents:** 8-12K tokens (only tools they need)
134
+ - **Orchestrator overhead:** ~74K tokens (one-time cost)
135
+
136
+ ## Monitoring Progress
137
+
138
+ Check status anytime:
139
+
140
+ ```bash
141
+ /c-breakout status
142
+ ```
143
+
144
+ Output:
145
+ ```
146
+ === C-Breakout Status ===
147
+ Run ID: 20260131_152030
148
+ Mode: orchestrate
149
+
150
+ Wave 2/3 executing...
151
+ Progress: 15/25 agents (60%)
152
+
153
+ | Agent | Type | Status | Task |
154
+ |-------|------|--------|------|
155
+ | P001 | planner | completed ✓ | Research auth patterns |
156
+ | P002 | planner | completed ✓ | Analyze current code |
157
+ | D001 | dev | running | Implement JWT service |
158
+ | D002 | dev | running | Update endpoints |
159
+ | D003 | dev | pending | Write tests |
160
+ ```
161
+
162
+ ## Getting Results
163
+
164
+ ```bash
165
+ /c-breakout results
166
+ ```
167
+
168
+ See aggregated results by agent type with costs and completion status.
169
+
170
+ ## Tips for Best Results
171
+
172
+ ### 1. Be Specific in Project Goal
173
+
174
+ ✅ **Good:**
175
+ ```bash
176
+ /c-breakout orchestrate "Implement user authentication with JWT, including login, logout, token refresh, and password reset endpoints"
177
+ ```
178
+
179
+ ❌ **Too vague:**
180
+ ```bash
181
+ /c-breakout orchestrate "Add auth"
182
+ ```
183
+
184
+ ### 2. Let Orchestrator Analyze First
185
+
186
+ The orchestrator reads your codebase before planning. Make sure:
187
+ - Your project has clear structure
188
+ - Key files are in standard locations
189
+ - README or docs exist for context
190
+
191
+ ### 3. Review the Plan
192
+
193
+ Before execution starts, review the plan:
194
+ - Check agent classifications are correct
195
+ - Verify dependencies make sense
196
+ - Ensure no tasks are missing
197
+
198
+ ### 4. Trust the Specialization
199
+
200
+ Don't worry if dev agents can't access WebSearch - they shouldn't need it!
201
+ If an agent legitimately needs a blocked tool, it will fail and you can adjust.
202
+
203
+ ## Troubleshooting
204
+
205
+ ### "Orchestrator planning failed"
206
+
207
+ The orchestrator couldn't create a valid plan.
208
+ - Make project goal more specific
209
+ - Ensure project files are readable
210
+ - Fall back to standard distribute mode
211
+
212
+ ### "Agent needs blocked tool"
213
+
214
+ An agent was misclassified and needs a tool it doesn't have.
215
+ - Check the error message
216
+ - Manually reclassify the task
217
+ - Or use standard distribute mode for that task
218
+
219
+ ### "Dependency deadlock"
220
+
221
+ Circular dependencies detected.
222
+ - Review the execution waves
223
+ - Manually reorder tasks if needed
224
+ - Report the issue to improve orchestrator
225
+
226
+ ## Advanced Usage
227
+
228
+ ### Force Specific Agent Types
229
+
230
+ If orchestrator misclassifies, you can manually specify in your goal:
231
+
232
+ ```bash
233
+ /c-breakout orchestrate "Add caching layer. Use PLANNER agents to research Redis vs Memcached, then DEV agents to implement chosen solution."
234
+ ```
235
+
236
+ ### Adjust Concurrency
237
+
238
+ For larger projects:
239
+
240
+ ```bash
241
+ # Edit config to increase parallel execution
242
+ max_concurrent: 200 # Run more agents simultaneously
243
+ ```
244
+
245
+ ## Summary
246
+
247
+ **Use orchestrate mode for:**
248
+ - 10+ task projects
249
+ - Full lifecycle work (plan → dev → deploy)
250
+ - Cost optimization (43-50% savings)
251
+ - Better reliability (specialized agents)
252
+
253
+ **Command:**
254
+ ```bash
255
+ /c-breakout orchestrate "Your specific project goal here"
256
+ ```
257
+
258
+ **Monitor:**
259
+ ```bash
260
+ /c-breakout status
261
+ ```
262
+
263
+ **Get results:**
264
+ ```bash
265
+ /c-breakout results
266
+ ```
267
+
268
+ That's it! The orchestrator handles the complexity for you.
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "c-breakout-claude",
3
+ "version": "1.0.0",
4
+ "description": "Distributed task execution orchestrator for Claude Code with intelligent agent specialization",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "c-breakout": "./bin/c-breakout-cli.js"
8
+ },
9
+ "scripts": {
10
+ "postinstall": "node scripts/install.js",
11
+ "uninstall": "node scripts/uninstall.js"
12
+ },
13
+ "keywords": [
14
+ "claude",
15
+ "claude-code",
16
+ "orchestration",
17
+ "distributed",
18
+ "agents",
19
+ "swarm",
20
+ "parallel",
21
+ "skill"
22
+ ],
23
+ "author": "krellnpm01",
24
+ "license": "MIT",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/krellgit/c-breakout"
28
+ },
29
+ "engines": {
30
+ "node": ">=14.0.0"
31
+ },
32
+ "files": [
33
+ "skills/",
34
+ "docs/",
35
+ "bin/",
36
+ "scripts/",
37
+ "README.md",
38
+ "LICENSE"
39
+ ],
40
+ "peerDependencies": {
41
+ "claude-code": ">=0.1.0"
42
+ },
43
+ "homepage": "https://github.com/krellgit/c-breakout#readme",
44
+ "bugs": {
45
+ "url": "https://github.com/krellgit/c-breakout/issues"
46
+ }
47
+ }
@@ -0,0 +1,55 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+ const os = require('os');
6
+
7
+ const CLAUDE_DIR = path.join(os.homedir(), '.claude', 'commands');
8
+ const SKILL_SOURCE = path.join(__dirname, '..', 'skills', 'c-breakout.md');
9
+ const SKILL_DEST = path.join(CLAUDE_DIR, 'c-breakout.md');
10
+
11
+ console.log('📦 Installing C-Breakout skill for Claude Code...\n');
12
+
13
+ // Ensure .claude/commands directory exists
14
+ if (!fs.existsSync(CLAUDE_DIR)) {
15
+ console.log('Creating ~/.claude/commands directory...');
16
+ fs.mkdirSync(CLAUDE_DIR, { recursive: true });
17
+ }
18
+
19
+ // Check if skill already exists
20
+ if (fs.existsSync(SKILL_DEST)) {
21
+ console.log('⚠️ C-Breakout skill already exists at:', SKILL_DEST);
22
+ console.log('Creating backup...');
23
+ const backup = SKILL_DEST + '.backup.' + Date.now();
24
+ fs.copyFileSync(SKILL_DEST, backup);
25
+ console.log('✓ Backup created:', backup);
26
+ }
27
+
28
+ // Copy skill file
29
+ try {
30
+ fs.copyFileSync(SKILL_SOURCE, SKILL_DEST);
31
+ console.log('✓ C-Breakout skill installed to:', SKILL_DEST);
32
+ } catch (error) {
33
+ console.error('✗ Failed to install skill:', error.message);
34
+ process.exit(1);
35
+ }
36
+
37
+ console.log('\n╔════════════════════════════════════════════════════════════╗');
38
+ console.log('║ C-Breakout Installation Complete! 🎉 ║');
39
+ console.log('╚════════════════════════════════════════════════════════════╝');
40
+ console.log('\n📚 Quick Start:\n');
41
+ console.log(' # In Claude Code, use:');
42
+ console.log(' /c-breakout orchestrate "Your project goal"');
43
+ console.log('');
44
+ console.log(' # Or naturally in conversation:');
45
+ console.log(' "Orchestrate implementing user authentication"');
46
+ console.log('');
47
+ console.log('📖 Documentation:');
48
+ console.log(' npm docs @claude-code/c-breakout');
49
+ console.log('');
50
+ console.log('🔧 Configuration:');
51
+ console.log(' ~/.claude/commands/c-breakout.md');
52
+ console.log('');
53
+ console.log('💡 Learn more:');
54
+ console.log(' https://github.com/yourusername/c-breakout');
55
+ console.log('');
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+ const os = require('os');
6
+ const readline = require('readline');
7
+
8
+ const SKILL_PATH = path.join(os.homedir(), '.claude', 'commands', 'c-breakout.md');
9
+
10
+ const rl = readline.createInterface({
11
+ input: process.stdin,
12
+ output: process.stdout
13
+ });
14
+
15
+ console.log('🗑️ Uninstalling C-Breakout skill...\n');
16
+
17
+ if (!fs.existsSync(SKILL_PATH)) {
18
+ console.log('ℹ️ C-Breakout skill not found. Nothing to uninstall.');
19
+ process.exit(0);
20
+ }
21
+
22
+ rl.question('Remove ~/.claude/commands/c-breakout.md? [y/N] ', (answer) => {
23
+ if (answer.toLowerCase() === 'y' || answer.toLowerCase() === 'yes') {
24
+ try {
25
+ fs.unlinkSync(SKILL_PATH);
26
+ console.log('✓ C-Breakout skill removed');
27
+ } catch (error) {
28
+ console.error('✗ Failed to remove skill:', error.message);
29
+ process.exit(1);
30
+ }
31
+ } else {
32
+ console.log('Skipped removal. Skill remains at:', SKILL_PATH);
33
+ }
34
+ rl.close();
35
+ });