get-shit-done-cc 1.10.0-experimental.0 → 1.10.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.
Files changed (61) hide show
  1. package/README.md +16 -17
  2. package/agents/gsd-executor.md +375 -37
  3. package/agents/gsd-planner.md +108 -15
  4. package/bin/install.js +163 -238
  5. package/commands/gsd/help.md +0 -43
  6. package/commands/gsd/new-project.md +8 -94
  7. package/commands/gsd/plan-phase.md +5 -35
  8. package/get-shit-done/references/verification-patterns.md +1 -1
  9. package/get-shit-done/templates/phase-prompt.md +4 -4
  10. package/get-shit-done/templates/state.md +0 -37
  11. package/get-shit-done/workflows/execute-phase.md +1 -44
  12. package/get-shit-done/workflows/execute-plan.md +856 -34
  13. package/hooks/dist/gsd-statusline.js +9 -6
  14. package/package.json +7 -10
  15. package/agents/design-specialist.md +0 -222
  16. package/commands/gsd/autopilot.md +0 -518
  17. package/commands/gsd/checkpoints.md +0 -229
  18. package/commands/gsd/design-system.md +0 -70
  19. package/commands/gsd/discuss-design.md +0 -77
  20. package/commands/gsd/extend.md +0 -80
  21. package/get-shit-done/references/ccr-integration.md +0 -468
  22. package/get-shit-done/references/checkpoint-execution.md +0 -369
  23. package/get-shit-done/references/checkpoint-types.md +0 -728
  24. package/get-shit-done/references/deviation-rules.md +0 -215
  25. package/get-shit-done/references/framework-patterns.md +0 -543
  26. package/get-shit-done/references/ui-principles.md +0 -258
  27. package/get-shit-done/skills/gsd-extend/SKILL.md +0 -154
  28. package/get-shit-done/skills/gsd-extend/references/agent-structure.md +0 -305
  29. package/get-shit-done/skills/gsd-extend/references/extension-anatomy.md +0 -123
  30. package/get-shit-done/skills/gsd-extend/references/reference-structure.md +0 -408
  31. package/get-shit-done/skills/gsd-extend/references/template-structure.md +0 -370
  32. package/get-shit-done/skills/gsd-extend/references/validation-rules.md +0 -140
  33. package/get-shit-done/skills/gsd-extend/references/workflow-structure.md +0 -253
  34. package/get-shit-done/skills/gsd-extend/templates/agent-template.md +0 -234
  35. package/get-shit-done/skills/gsd-extend/templates/reference-template.md +0 -239
  36. package/get-shit-done/skills/gsd-extend/templates/workflow-template.md +0 -169
  37. package/get-shit-done/skills/gsd-extend/workflows/create-approach.md +0 -332
  38. package/get-shit-done/skills/gsd-extend/workflows/list-extensions.md +0 -133
  39. package/get-shit-done/skills/gsd-extend/workflows/remove-extension.md +0 -93
  40. package/get-shit-done/skills/gsd-extend/workflows/validate-extension.md +0 -184
  41. package/get-shit-done/templates/autopilot-script-simple.sh +0 -181
  42. package/get-shit-done/templates/autopilot-script.sh +0 -1142
  43. package/get-shit-done/templates/autopilot-script.sh.backup +0 -1142
  44. package/get-shit-done/templates/design-system.md +0 -238
  45. package/get-shit-done/templates/phase-design.md +0 -205
  46. package/get-shit-done/templates/phase-models-template.json +0 -71
  47. package/get-shit-done/tui/App.tsx +0 -169
  48. package/get-shit-done/tui/README.md +0 -107
  49. package/get-shit-done/tui/build.js +0 -37
  50. package/get-shit-done/tui/components/ActivityFeed.tsx +0 -126
  51. package/get-shit-done/tui/components/PhaseCard.tsx +0 -86
  52. package/get-shit-done/tui/components/StatsBar.tsx +0 -147
  53. package/get-shit-done/tui/dist/index.js +0 -387
  54. package/get-shit-done/tui/index.tsx +0 -12
  55. package/get-shit-done/tui/package-lock.json +0 -1074
  56. package/get-shit-done/tui/package.json +0 -22
  57. package/get-shit-done/tui/utils/pipeReader.ts +0 -129
  58. package/get-shit-done/workflows/design-system.md +0 -245
  59. package/get-shit-done/workflows/discuss-design.md +0 -330
  60. package/get-shit-done/workflows/execute-plan-auth.md +0 -122
  61. package/get-shit-done/workflows/execute-plan-checkpoints.md +0 -541
@@ -1,468 +0,0 @@
1
- # CCR Integration with GSD Autopilot
2
-
3
- ## Overview
4
-
5
- **Claude Code Router (CCR)** enables GSD Autopilot to use different AI models for different phases, optimizing for both cost and capability. Instead of using a single model for all phases, you can route simple tasks to inexpensive models (like GLM-4.7) and complex reasoning tasks to premium models (like Claude Opus).
6
-
7
- ## What is CCR?
8
-
9
- CCR is a proxy router that sits between Claude Code and multiple AI model providers. It allows you to:
10
- - Route requests to different models based on configuration
11
- - Use multiple providers (Anthropic, OpenAI, Z-AI, OpenRouter) in one workflow
12
- - Set up automatic model selection rules
13
- - Save costs by matching model capability to task complexity
14
-
15
- ## Installation & Setup
16
-
17
- ### 1. Install CCR
18
-
19
- ```bash
20
- # Clone CCR repository
21
- git clone https://github.com/musistudio/claude-code-router.git
22
- cd claude-code-router
23
-
24
- # Install dependencies
25
- npm install
26
-
27
- # Create global symlink
28
- npm link
29
- ```
30
-
31
- ### 2. Configure CCR
32
-
33
- Create `~/.claude-code-router/config.json`:
34
-
35
- ```json
36
- {
37
- "APIKEY": "your-primary-api-key",
38
- "PROXY_URL": "http://127.0.0.1:7890",
39
- "LOG": true,
40
- "API_TIMEOUT_MS": 600000,
41
- "Providers": [
42
- {
43
- "name": "anthropic",
44
- "api_base_url": "https://api.anthropic.com",
45
- "api_key": "your-anthropic-key",
46
- "models": ["claude-3-5-sonnet-latest", "claude-3-5-opus-latest"]
47
- },
48
- {
49
- "name": "z-ai",
50
- "api_base_url": "https://open.bigmodel.cn/api/paas/v4/",
51
- "api_key": "your-z-ai-key",
52
- "models": ["glm-4.7"]
53
- },
54
- {
55
- "name": "openrouter",
56
- "api_base_url": "https://openrouter.ai/api/v1/chat/completions",
57
- "api_key": "your-openrouter-key",
58
- "models": ["deepseek/deepseek-reasoner", "google/gemini-2.5-pro-preview"]
59
- }
60
- ],
61
- "Router": {
62
- "default": "anthropic,claude-3-5-sonnet-latest",
63
- "background": "z-ai,glm-4.7",
64
- "think": "openrouter,deepseek/deepseek-reasoner",
65
- "longContext": "anthropic,claude-3-5-opus-latest"
66
- }
67
- }
68
- ```
69
-
70
- ### 3. Start CCR Service
71
-
72
- ```bash
73
- # Start the router service
74
- ccr start
75
-
76
- # Verify it's running
77
- curl http://127.0.0.1:3456/health
78
- ```
79
-
80
- ## GSD Autopilot Integration
81
-
82
- ### Automatic Detection
83
-
84
- When you run `/gsd:autopilot`, it automatically:
85
- 1. Checks if `ccr` command is available
86
- 2. Creates `.planning/phase-models.json` from template (first run)
87
- 3. Uses CCR for model routing if available
88
- 4. Falls back to native `claude` command if CCR not detected
89
-
90
- ### Phase Model Configuration
91
-
92
- Edit `.planning/phase-models.json` to customize per-phase model selection:
93
-
94
- ```json
95
- {
96
- "description": "Per-phase model configuration for GSD Autopilot",
97
- "default_model": "claude-3-5-sonnet-latest",
98
- "phases": {
99
- "1": {
100
- "model": "claude-3-5-sonnet-latest",
101
- "reasoning": "Initial setup and architecture - Sonnet is cost-effective"
102
- },
103
- "2": {
104
- "model": "claude-3-5-opus-latest",
105
- "reasoning": "Complex implementation requiring deep reasoning"
106
- },
107
- "3": {
108
- "model": "claude-3-5-sonnet-latest",
109
- "reasoning": "Standard development work"
110
- },
111
- "gaps": {
112
- "model": "glm-4.7",
113
- "reasoning": "Gap closure is typically straightforward fixes"
114
- },
115
- "continuation": {
116
- "model": "claude-3-5-sonnet-latest",
117
- "reasoning": "Checkpoint continuations need context"
118
- },
119
- "verification": {
120
- "model": "glm-4.7",
121
- "reasoning": "Verification is systematic testing"
122
- },
123
- "milestone_complete": {
124
- "model": "claude-3-5-sonnet-latest",
125
- "reasoning": "Completion task is straightforward"
126
- }
127
- },
128
- "provider_routing": {
129
- "claude-3-5-sonnet-latest": {
130
- "provider": "anthropic",
131
- "base_url": "https://api.anthropic.com"
132
- },
133
- "claude-3-5-opus-latest": {
134
- "provider": "anthropic",
135
- "base_url": "https://api.anthropic.com"
136
- },
137
- "glm-4.7": {
138
- "provider": "z-ai",
139
- "base_url": "https://open.bigmodel.cn/api/paas/v4/",
140
- "auth_header": "Authorization"
141
- },
142
- "deepseek-reasoner": {
143
- "provider": "openrouter",
144
- "model_name": "deepseek/deepseek-reasoner",
145
- "base_url": "https://openrouter.ai/api/v1/chat/completions"
146
- }
147
- },
148
- "cost_optimization": {
149
- "enabled": true,
150
- "auto_downgrade_on_budget": {
151
- "threshold_percent": 80,
152
- "fallback_model": "claude-3-5-haiku-latest"
153
- }
154
- }
155
- }
156
- ```
157
-
158
- ### Running Autopilot with CCR
159
-
160
- **Option 1: Direct execution (recommended)**
161
- ```bash
162
- cd /path/to/project
163
- bash .planning/autopilot.sh
164
- ```
165
- The script automatically detects CCR and uses configured models.
166
-
167
- **Option 2: Explicit CCR wrapper**
168
- ```bash
169
- cd /path/to/project
170
- ccr code --model claude-3-5-sonnet-latest -- bash .planning/autopilot.sh
171
- ```
172
-
173
- **Option 3: Background execution**
174
- ```bash
175
- cd /path/to/project
176
- nohup bash .planning/autopilot.sh > .planning/logs/autopilot.log 2>&1 &
177
- ```
178
-
179
- ## Model Selection Strategy
180
-
181
- ### By Task Type
182
-
183
- | Task Type | Recommended Model | Reason |
184
- |-----------|-------------------|---------|
185
- | **Complex Architecture** | `claude-3-5-opus-latest` | Deep reasoning, system design |
186
- | **Implementation** | `claude-3-5-sonnet-latest` | Good balance of capability/cost |
187
- | **Testing & Verification** | `glm-4.7` | Systematic, cost-effective |
188
- | **Documentation** | `glm-4.7` | Straightforward generation |
189
- | **Bug Fixes** | `claude-3-5-sonnet-latest` | Context + problem-solving |
190
- | **Code Review** | `claude-3-5-opus-latest` | Thorough analysis needed |
191
-
192
- ### By Phase Context
193
-
194
- **Phase 1 (Setup/Architecture)**
195
- - Use: `claude-3-5-sonnet-latest`
196
- - Reasoning: Initial work is important but typically follows patterns
197
-
198
- **Phase 2 (Core Implementation)**
199
- - Use: `claude-3-5-opus-latest` or `deepseek-reasoner`
200
- - Reasoning: Complex problem-solving, architectural decisions
201
-
202
- **Phase 3+ (Development)**
203
- - Use: `claude-3-5-sonnet-latest`
204
- - Reasoning: Consistent quality at moderate cost
205
-
206
- **Gap Closure**
207
- - Use: `glm-4.7`
208
- - Reasoning: Usually straightforward fixes based on verification feedback
209
-
210
- **Verification**
211
- - Use: `glm-4.7`
212
- - Reasoning: Systematic testing doesn't require deep reasoning
213
-
214
- ### Cost Optimization Example
215
-
216
- For a typical 5-phase project:
217
-
218
- ```
219
- Phase 1: Sonnet (~$0.50)
220
- Phase 2: Opus (~$1.50)
221
- Phase 3: Sonnet (~$0.50)
222
- Phase 4: Sonnet (~$0.50)
223
- Phase 5: Sonnet (~$0.50)
224
- Gap Closure: GLM (~$0.05)
225
- Verification: GLM (~$0.05)
226
-
227
- Total: ~$3.60
228
- ```
229
-
230
- vs. all Opus (~$7.50)
231
- **Savings: ~52%**
232
-
233
- ## Advanced Configuration
234
-
235
- ### Auto-Downgrade on Budget
236
-
237
- Enable automatic model downgrading when approaching budget limit:
238
-
239
- ```json
240
- {
241
- "cost_optimization": {
242
- "enabled": true,
243
- "auto_downgrade_on_budget": {
244
- "threshold_percent": 80,
245
- "fallback_model": "claude-3-5-haiku-latest"
246
- }
247
- }
248
- }
249
- ```
250
-
251
- ### Task-Type Routing
252
-
253
- Automatically route by detected task type:
254
-
255
- ```json
256
- {
257
- "task_type_routing": {
258
- "research": "claude-3-5-sonnet-latest",
259
- "planning": "claude-3-5-haiku-latest",
260
- "coding": "claude-3-5-sonnet-latest",
261
- "verification": "claude-3-5-haiku-latest",
262
- "testing": "glm-4.7"
263
- }
264
- }
265
- ```
266
-
267
- ### Provider Failover
268
-
269
- Configure automatic failover between providers:
270
-
271
- ```json
272
- {
273
- "provider_routing": {
274
- "claude-3-5-sonnet-latest": [
275
- {
276
- "provider": "anthropic",
277
- "base_url": "https://api.anthropic.com",
278
- "priority": 1
279
- },
280
- {
281
- "provider": "openrouter",
282
- "model_name": "anthropic/claude-3-5-sonnet",
283
- "base_url": "https://openrouter.ai/api/v1/chat/completions",
284
- "priority": 2
285
- }
286
- ]
287
- }
288
- }
289
- ```
290
-
291
- ## Monitoring & Debugging
292
-
293
- ### Check CCR Status
294
-
295
- ```bash
296
- # Verify CCR is running
297
- ccr status
298
-
299
- # Test model routing
300
- ccr model claude-3-5-sonnet-latest
301
-
302
- # View logs
303
- tail -f ~/.claude-code-router/logs/router.log
304
- ```
305
-
306
- ### Verify Model Configuration
307
-
308
- ```bash
309
- # Check which model will be used for a phase
310
- grep -A 2 '"phase_number"' .planning/phase-models.json
311
-
312
- # List all configured models
313
- cat .planning/phase-models.json | grep '"model":' | sort | uniq
314
- ```
315
-
316
- ### Debug Autopilot Execution
317
-
318
- The autopilot logs which model is used for each phase:
319
-
320
- ```
321
- [2025-01-26 10:15:23] [INFO] Configured CCR for model: claude-3-5-opus-latest via anthropic
322
- [2025-01-26 10:15:24] [INFO] Planning phase 2
323
- [2025-01-26 10:18:45] [INFO] Executing phase 2
324
- ```
325
-
326
- ### Cost Tracking
327
-
328
- Each phase log includes token usage and estimated cost:
329
-
330
- ```
331
- [2025-01-26 10:20:15] [COST] Phase 2: 62,100 tokens (~$1.50)
332
- ```
333
-
334
- Total cost accumulates across all phases.
335
-
336
- ## Troubleshooting
337
-
338
- ### CCR Not Detected
339
-
340
- **Symptom:** "CCR not found, using default claude command"
341
-
342
- **Solution:**
343
- 1. Verify CCR installation: `which ccr`
344
- 2. Start CCR service: `ccr start`
345
- 3. Check CCR config: `cat ~/.claude-code-router/config.json`
346
-
347
- ### Model Not Found
348
-
349
- **Symptom:** "Model 'glm-4.7' not available"
350
-
351
- **Solution:**
352
- 1. Verify model is in CCR config under `Providers[].models`
353
- 2. Check API key is valid for the provider
354
- 3. Test model directly: `ccr model glm-4.7`
355
-
356
- ### Routing Failure
357
-
358
- **Symptom:** "Provider routing failed"
359
-
360
- **Solution:**
361
- 1. Check `.planning/phase-models.json` syntax (use JSON validator)
362
- 2. Verify `provider_routing` section has the model defined
363
- 3. Check CCR service logs for detailed errors
364
-
365
- ### API Rate Limits
366
-
367
- **Symptom:** Requests failing with rate limit errors
368
-
369
- **Solution:**
370
- 1. Add delays between phase executions in autopilot script
371
- 2. Use multiple API keys across different providers
372
- 3. Enable provider failover in configuration
373
-
374
- ## Best Practices
375
-
376
- ### 1. Start Conservative, Optimize Later
377
- - Begin with all phases using `claude-3-5-sonnet-latest`
378
- - Profile actual costs and performance
379
- - Gradually move suitable phases to cheaper models
380
-
381
- ### 2. Document Model Choices
382
- - Always include `reasoning` field explaining model choice
383
- - Makes it easier to revisit and optimize later
384
- - Helps team understand trade-offs
385
-
386
- ### 3. Use Budget Tracking
387
- - Set `budget_limit_usd` in `.planning/config.json`
388
- - Enable `auto_downgrade_on_budget`
389
- - Review cost after each milestone
390
-
391
- ### 4. Test Critical Phases
392
- - Complex architecture phases (`--from-phase 2`)
393
- - Use premium models for unrecoverable operations
394
- - Don't over-optimize early phases
395
-
396
- ### 5. Keep Fallbacks
397
- - Always configure `default_model`
398
- - Ensure at least one provider works for all models
399
- - Test CCR configuration before long autopilot runs
400
-
401
- ### 6. Monitor Token Usage
402
- - Review logs for unexpected cost spikes
403
- - Large token usage may indicate context issues
404
- - Consider splitting overly complex phases
405
-
406
- ## Example Workflows
407
-
408
- ### Budget-Conscious Project
409
-
410
- ```json
411
- {
412
- "default_model": "glm-4.7",
413
- "phases": {
414
- "1": { "model": "glm-4.7" },
415
- "2": { "model": "claude-3-5-sonnet-latest" },
416
- "3": { "model": "glm-4.7" }
417
- },
418
- "cost_optimization": {
419
- "enabled": true,
420
- "auto_downgrade_on_budget": {
421
- "threshold_percent": 70,
422
- "fallback_model": "glm-4.7"
423
- }
424
- }
425
- }
426
- ```
427
-
428
- ### Quality-Focused Project
429
-
430
- ```json
431
- {
432
- "default_model": "claude-3-5-opus-latest",
433
- "phases": {
434
- "1": { "model": "claude-3-5-opus-latest" },
435
- "2": { "model": "claude-3-5-opus-latest" },
436
- "3": { "model": "claude-3-5-opus-latest" }
437
- }
438
- }
439
- ```
440
-
441
- ### Mixed Provider Setup
442
-
443
- ```json
444
- {
445
- "provider_routing": {
446
- "claude-3-5-sonnet-latest": {
447
- "provider": "openrouter",
448
- "model_name": "anthropic/claude-3-5-sonnet",
449
- "base_url": "https://openrouter.ai/api/v1/chat/completions"
450
- },
451
- "glm-4.7": {
452
- "provider": "z-ai",
453
- "base_url": "https://open.bigmodel.cn/api/paas/v4/"
454
- }
455
- }
456
- }
457
- ```
458
-
459
- ## Summary
460
-
461
- CCR integration with GSD Autopilot provides:
462
- - ✅ **Cost Optimization**: Route simple tasks to cheap models
463
- - ✅ **Capability Matching**: Use premium models only where needed
464
- - ✅ **Provider Flexibility**: Mix Anthropic, OpenAI, Z-AI, OpenRouter
465
- - ✅ **Automatic Fallback**: Works without CCR if not configured
466
- - ✅ **Transparent**: Model selection logged for debugging
467
-
468
- Start with the template configuration, test on a small project, then optimize for your specific needs!