claude-symphony 0.0.1 β 0.0.2
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 +16 -12
- package/bin/create.js +80 -69
- package/package.json +1 -1
- package/template/.claude/commands/benchmark.md +32 -32
- package/template/.claude/commands/brainstorm.md +33 -33
- package/template/.claude/commands/checkpoint.md +42 -42
- package/template/.claude/commands/codex.md +52 -52
- package/template/.claude/commands/collaborate.md +47 -47
- package/template/.claude/commands/context.md +77 -77
- package/template/.claude/commands/deploy.md +50 -50
- package/template/.claude/commands/fork.md +46 -46
- package/template/.claude/commands/gemini.md +43 -43
- package/template/.claude/commands/handoff.md +42 -42
- package/template/.claude/commands/implement.md +42 -42
- package/template/.claude/commands/init-project.md +25 -25
- package/template/.claude/commands/next.md +67 -67
- package/template/.claude/commands/planning.md +38 -38
- package/template/.claude/commands/qa.md +47 -47
- package/template/.claude/commands/refactor.md +50 -50
- package/template/.claude/commands/research.md +31 -31
- package/template/.claude/commands/restore.md +53 -53
- package/template/.claude/commands/run-stage.md +45 -45
- package/template/.claude/commands/stages.md +49 -49
- package/template/.claude/commands/status.md +41 -41
- package/template/.claude/commands/tasks.md +33 -33
- package/template/.claude/commands/test.md +45 -45
- package/template/.claude/commands/ui-ux.md +31 -31
- package/template/.claude/commands/validate.md +81 -81
- package/template/.claude/hooks/ai-selector.sh +39 -39
- package/template/.claude/hooks/auto-checkpoint.sh +30 -30
- package/template/.claude/hooks/output-validator.sh +45 -45
- package/template/.claude/hooks/post-stage.sh +28 -28
- package/template/.claude/hooks/pre-stage.sh +47 -47
- package/template/.claude/hooks/session-start.sh +27 -27
- package/template/.claude/hooks/statusline.sh +24 -24
- package/template/.claude/hooks/stop.sh +26 -26
- package/template/.claude/settings.json +32 -32
- package/template/.claude/skills/ai-collaboration/README.md +31 -31
- package/template/.claude/skills/ai-collaboration/debate.md +66 -66
- package/template/.claude/skills/ai-collaboration/parallel.md +34 -34
- package/template/.claude/skills/ai-collaboration/prompts/CLAUDE.md +59 -63
- package/template/.claude/skills/auto-checkpoint/README.md +46 -46
- package/template/.claude/skills/auto-checkpoint/prompts/CLAUDE.md +68 -72
- package/template/.claude/skills/auto-checkpoint/rollback.md +95 -95
- package/template/.claude/skills/auto-checkpoint/trigger.md +37 -37
- package/template/.claude/skills/context-compression/README.md +69 -69
- package/template/.claude/skills/context-compression/analyze.md +74 -74
- package/template/.claude/skills/context-compression/compress.md +103 -103
- package/template/.claude/skills/context-compression/prompts/compression.md +78 -78
- package/template/.claude/skills/output-validator/README.md +33 -33
- package/template/.claude/skills/output-validator/prompts/CLAUDE.md +74 -78
- package/template/.claude/skills/output-validator/validate.md +76 -76
- package/template/.claude/skills/smart-handoff/README.md +35 -35
- package/template/.claude/skills/smart-handoff/extract.md +42 -42
- package/template/.claude/skills/smart-handoff/prompts/CLAUDE.md +52 -54
- package/template/.claude/skills/smart-handoff/summarize.md +55 -55
- package/template/.claude/skills/stage-transition/README.md +50 -50
- package/template/.claude/skills/stage-transition/handoff-gen.md +89 -89
- package/template/.claude/skills/stage-transition/prompts/transition.md +74 -74
- package/template/.claude/skills/stage-transition/validate.md +41 -41
- package/template/CLAUDE.md +334 -335
- package/template/config/ai_benchmarking.yaml +22 -22
- package/template/config/ai_collaboration.yaml +18 -18
- package/template/config/ai_logging.yaml +50 -50
- package/template/config/auto_checkpoint.yaml +32 -32
- package/template/config/context.yaml +20 -20
- package/template/config/git.yaml +51 -51
- package/template/config/handoff_intelligence.yaml +23 -23
- package/template/config/mcp_fallbacks.yaml +71 -71
- package/template/config/memory_integration.yaml +23 -23
- package/template/config/model_enforcement.yaml +53 -53
- package/template/config/models.yaml +24 -24
- package/template/config/output_validation.yaml +44 -44
- package/template/config/pipeline.yaml +25 -25
- package/template/config/pipeline_forking.yaml +40 -40
- package/template/config/qa_logging.yaml +67 -67
- package/template/config/smart_rollback.yaml +48 -48
- package/template/config/stage_personas.yaml +154 -154
- package/template/config/workflow.yaml +16 -16
- package/template/scripts/ai-benchmark.sh +41 -41
- package/template/scripts/codex-wrapper.sh +32 -32
- package/template/scripts/context-manager.sh +136 -136
- package/template/scripts/create-checkpoint.sh +34 -34
- package/template/scripts/gemini-wrapper.sh +31 -31
- package/template/scripts/init-project.sh +40 -40
- package/template/scripts/list-stages.sh +30 -30
- package/template/scripts/next-stage.sh +67 -67
- package/template/scripts/output-validate.sh +2 -2
- package/template/scripts/pipeline-fork.sh +68 -68
- package/template/scripts/pre-run-check.sh +84 -84
- package/template/scripts/restore-checkpoint.sh +50 -50
- package/template/scripts/run-stage.sh +44 -44
- package/template/scripts/show-status.sh +30 -30
- package/template/scripts/smart-handoff.sh +70 -70
- package/template/stages/01-brainstorm/CLAUDE.md +70 -74
- package/template/stages/01-brainstorm/README.md +54 -54
- package/template/stages/01-brainstorm/config.yaml +18 -18
- package/template/stages/01-brainstorm/prompts/collaboration.md +24 -24
- package/template/stages/01-brainstorm/prompts/ideation.md +41 -41
- package/template/stages/01-brainstorm/prompts/persona.md +50 -50
- package/template/stages/01-brainstorm/prompts/requirements.md +55 -55
- package/template/stages/01-brainstorm/prompts/validation.md +28 -28
- package/template/stages/01-brainstorm/templates/ideas.md +47 -47
- package/template/stages/01-brainstorm/templates/requirements_analysis.md +61 -61
- package/template/stages/02-research/CLAUDE.md +72 -76
- package/template/stages/02-research/config.yaml +12 -12
- package/template/stages/02-research/prompts/collaboration.md +29 -29
- package/template/stages/02-research/prompts/feasibility.md +38 -38
- package/template/stages/02-research/prompts/market_analysis.md +29 -29
- package/template/stages/02-research/prompts/tech_stack.md +34 -34
- package/template/stages/02-research/prompts/validation.md +29 -29
- package/template/stages/03-planning/CLAUDE.md +88 -92
- package/template/stages/03-planning/config.yaml +10 -10
- package/template/stages/03-planning/prompts/architecture.md +43 -43
- package/template/stages/03-planning/prompts/collaboration.md +34 -34
- package/template/stages/03-planning/prompts/validation.md +34 -34
- package/template/stages/04-ui-ux/CLAUDE.md +68 -72
- package/template/stages/04-ui-ux/config.yaml +5 -5
- package/template/stages/04-ui-ux/prompts/collaboration.md +35 -35
- package/template/stages/04-ui-ux/prompts/validation.md +30 -30
- package/template/stages/05-task-management/CLAUDE.md +81 -85
- package/template/stages/05-task-management/config.yaml +17 -17
- package/template/stages/05-task-management/prompts/collaboration.md +30 -30
- package/template/stages/05-task-management/prompts/validation.md +33 -33
- package/template/stages/05-task-management/templates/notion_integration.md +70 -70
- package/template/stages/05-task-management/templates/parallel_groups.yaml +64 -64
- package/template/stages/05-task-management/templates/task_schema.yaml +33 -33
- package/template/stages/06-implementation/CLAUDE.md +117 -121
- package/template/stages/06-implementation/config.yaml +10 -10
- package/template/stages/06-implementation/prompts/collaboration.md +29 -29
- package/template/stages/06-implementation/prompts/validation.md +36 -36
- package/template/stages/07-refactoring/CLAUDE.md +120 -124
- package/template/stages/07-refactoring/config.yaml +11 -11
- package/template/stages/07-refactoring/prompts/collaboration.md +36 -36
- package/template/stages/07-refactoring/prompts/validation.md +40 -40
- package/template/stages/08-qa/CLAUDE.md +80 -84
- package/template/stages/08-qa/config.yaml +7 -7
- package/template/stages/08-qa/prompts/collaboration.md +34 -34
- package/template/stages/08-qa/prompts/validation.md +41 -41
- package/template/stages/09-testing/CLAUDE.md +86 -90
- package/template/stages/09-testing/config.yaml +10 -10
- package/template/stages/09-testing/prompts/collaboration.md +38 -38
- package/template/stages/09-testing/prompts/validation.md +41 -41
- package/template/stages/10-deployment/CLAUDE.md +86 -90
- package/template/stages/10-deployment/config.yaml +11 -11
- package/template/stages/10-deployment/prompts/collaboration.md +37 -37
- package/template/stages/10-deployment/prompts/validation.md +54 -54
- package/template/stages/10-deployment/templates/github-actions-cd.yaml +1 -1
|
@@ -1,93 +1,93 @@
|
|
|
1
1
|
# /checkpoint
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Create a checkpoint of the current state.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Usage
|
|
6
6
|
```
|
|
7
7
|
/checkpoint [description]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Actions
|
|
11
11
|
|
|
12
|
-
1.
|
|
13
|
-
-
|
|
14
|
-
-
|
|
12
|
+
1. **Capture Current State**
|
|
13
|
+
- Current stage information
|
|
14
|
+
- All outputs files
|
|
15
15
|
- state/progress.json
|
|
16
|
-
-
|
|
16
|
+
- Source code (when applicable)
|
|
17
17
|
|
|
18
|
-
2.
|
|
18
|
+
2. **Create Checkpoint**
|
|
19
19
|
- ID: `CP-[stage]-[timestamp]`
|
|
20
|
-
-
|
|
20
|
+
- Location: `state/checkpoints/[CP-ID]/`
|
|
21
21
|
|
|
22
|
-
3.
|
|
22
|
+
3. **Save Metadata**
|
|
23
23
|
```json
|
|
24
24
|
{
|
|
25
25
|
"id": "CP-06-20240120-1430",
|
|
26
26
|
"stage": "06-implementation",
|
|
27
|
-
"description": "
|
|
27
|
+
"description": "Sprint 1 completed",
|
|
28
28
|
"created_at": "2024-01-20T14:30:00Z",
|
|
29
29
|
"files": [...],
|
|
30
30
|
"progress_snapshot": {...}
|
|
31
31
|
}
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
4. **state/progress.json
|
|
35
|
-
- checkpoints
|
|
34
|
+
4. **Update state/progress.json**
|
|
35
|
+
- Add to checkpoints array
|
|
36
36
|
|
|
37
|
-
##
|
|
37
|
+
## Execution Script
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
40
|
scripts/create-checkpoint.sh "$ARGUMENTS"
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
##
|
|
43
|
+
## Example
|
|
44
44
|
|
|
45
45
|
```
|
|
46
|
-
/checkpoint
|
|
46
|
+
/checkpoint Sprint 1 completed
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
β
|
|
50
|
-
β
|
|
51
|
-
β
|
|
48
|
+
Creating checkpoint...
|
|
49
|
+
β Current state captured
|
|
50
|
+
β File copy completed (42 files)
|
|
51
|
+
β Metadata saved
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Checkpoint created!
|
|
54
54
|
- ID: CP-06-20240120-1430
|
|
55
|
-
-
|
|
56
|
-
-
|
|
55
|
+
- Location: state/checkpoints/CP-06-20240120-1430/
|
|
56
|
+
- Description: Sprint 1 completed
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
Recovery command:
|
|
59
59
|
scripts/restore-checkpoint.sh CP-06-20240120-1430
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
##
|
|
62
|
+
## View Checkpoint List
|
|
63
63
|
|
|
64
64
|
```
|
|
65
65
|
/checkpoint --list
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
| ID |
|
|
69
|
-
|
|
70
|
-
| CP-06-20240120-1030 | 06-impl |
|
|
71
|
-
| CP-06-20240120-1430 | 06-impl |
|
|
67
|
+
Checkpoint List:
|
|
68
|
+
| ID | Stage | Description | Created |
|
|
69
|
+
|----|-------|-------------|---------|
|
|
70
|
+
| CP-06-20240120-1030 | 06-impl | Project initialized | 2024-01-20 10:30 |
|
|
71
|
+
| CP-06-20240120-1430 | 06-impl | Sprint 1 completed | 2024-01-20 14:30 |
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
##
|
|
74
|
+
## Restore Checkpoint
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
scripts/restore-checkpoint.sh CP-06-20240120-1030
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
Warning: Current state will be restored to checkpoint CP-06-20240120-1030.
|
|
80
|
+
Current changes may be lost.
|
|
81
|
+
Continue? [y/N] y
|
|
82
82
|
|
|
83
|
-
β
|
|
84
|
-
β
|
|
83
|
+
β Checkpoint restored
|
|
84
|
+
β Current stage: 06-implementation
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
##
|
|
88
|
-
- `06-implementation`:
|
|
89
|
-
- `07-refactoring`:
|
|
87
|
+
## Required Checkpoint Stages
|
|
88
|
+
- `06-implementation`: At major milestones during implementation
|
|
89
|
+
- `07-refactoring`: Before/after refactoring
|
|
90
90
|
|
|
91
|
-
##
|
|
92
|
-
- `--list`:
|
|
93
|
-
- `--delete [CP-ID]`:
|
|
91
|
+
## Options
|
|
92
|
+
- `--list`: Display checkpoint list
|
|
93
|
+
- `--delete [CP-ID]`: Delete checkpoint
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
# /codex
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Call OpenAI Codex CLI through tmux session.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Usage
|
|
6
6
|
```
|
|
7
7
|
/codex [prompt]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Actions
|
|
11
11
|
|
|
12
|
-
1. **tmux
|
|
13
|
-
-
|
|
14
|
-
-
|
|
12
|
+
1. **Check/Create tmux Session**
|
|
13
|
+
- Session name: `ax-codex`
|
|
14
|
+
- Create new if not exists
|
|
15
15
|
|
|
16
|
-
2. **Codex CLI
|
|
17
|
-
-
|
|
18
|
-
-
|
|
16
|
+
2. **Execute Codex CLI**
|
|
17
|
+
- Send prompt
|
|
18
|
+
- Wait for response (wait-for method)
|
|
19
19
|
|
|
20
|
-
3.
|
|
21
|
-
-
|
|
22
|
-
-
|
|
20
|
+
3. **Capture and Return Results**
|
|
21
|
+
- Read results from output file
|
|
22
|
+
- Display to user
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Execution Script
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
scripts/codex-wrapper.sh "$ARGUMENTS"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Example
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
/codex
|
|
34
|
-
|
|
33
|
+
/codex Please refactor the following function. Improve readability and performance,
|
|
34
|
+
and enhance type safety:
|
|
35
35
|
|
|
36
36
|
function processData(data) {
|
|
37
|
-
//
|
|
37
|
+
// long function code
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
Codex
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
Calling Codex...
|
|
41
|
+
Session: ax-codex
|
|
42
|
+
Timeout: 300 seconds
|
|
43
43
|
|
|
44
|
-
[
|
|
45
|
-
|
|
44
|
+
[Response]
|
|
45
|
+
Refactored code:
|
|
46
46
|
|
|
47
47
|
\`\`\`typescript
|
|
48
48
|
interface DataItem {
|
|
@@ -51,57 +51,57 @@ interface DataItem {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function processData(data: DataItem[]): ProcessedResult {
|
|
54
|
-
//
|
|
54
|
+
// cleanly refactored code
|
|
55
55
|
}
|
|
56
56
|
\`\`\`
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
1. TypeScript
|
|
60
|
-
2.
|
|
61
|
-
3.
|
|
58
|
+
Changes:
|
|
59
|
+
1. Added TypeScript types
|
|
60
|
+
2. Split function into 3 smaller functions
|
|
61
|
+
3. Optimized O(nΒ²) β O(n) by removing unnecessary loops
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
##
|
|
64
|
+
## Usage Scenarios
|
|
65
65
|
|
|
66
|
-
### 1.
|
|
66
|
+
### 1. Code Refactoring (07-refactoring)
|
|
67
67
|
```
|
|
68
|
-
/codex
|
|
69
|
-
[
|
|
68
|
+
/codex Please remove duplicates and apply DRY principle to the following code:
|
|
69
|
+
[code]
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
### 2.
|
|
72
|
+
### 2. Test Code Generation (09-testing)
|
|
73
73
|
```
|
|
74
|
-
/codex
|
|
75
|
-
|
|
76
|
-
[
|
|
74
|
+
/codex Please write Jest test code for the following function.
|
|
75
|
+
Include edge cases:
|
|
76
|
+
[function code]
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
### 3.
|
|
79
|
+
### 3. Performance Optimization
|
|
80
80
|
```
|
|
81
|
-
/codex
|
|
82
|
-
[
|
|
81
|
+
/codex Please analyze performance bottlenecks and optimize the following code:
|
|
82
|
+
[code]
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
### 4.
|
|
85
|
+
### 4. Code Analysis
|
|
86
86
|
```
|
|
87
|
-
/codex
|
|
88
|
-
[
|
|
87
|
+
/codex Please analyze complexity and suggest improvements for the following code:
|
|
88
|
+
[code]
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
##
|
|
91
|
+
## Timeout
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
Default timeout: 300 seconds (5 minutes)
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
To change:
|
|
96
96
|
```
|
|
97
|
-
/codex --timeout 600 [
|
|
97
|
+
/codex --timeout 600 [long task prompt]
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
##
|
|
101
|
-
- Codex CLI
|
|
102
|
-
- tmux
|
|
103
|
-
-
|
|
100
|
+
## Limitations
|
|
101
|
+
- Codex CLI must be installed
|
|
102
|
+
- tmux must be installed
|
|
103
|
+
- Interactive prompts not supported (single queries only)
|
|
104
104
|
|
|
105
|
-
##
|
|
106
|
-
- `/gemini`: Gemini CLI
|
|
107
|
-
- `scripts/codex-wrapper.sh`:
|
|
105
|
+
## Related
|
|
106
|
+
- `/gemini`: Gemini CLI call
|
|
107
|
+
- `scripts/codex-wrapper.sh`: Wrapper script
|
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
# /collaborate - Multi-AI Collaboration Command
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Collaborate multiple AI models to generate better results.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
/collaborate [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Options
|
|
12
12
|
|
|
13
|
-
|
|
|
14
|
-
|
|
15
|
-
| `--mode` |
|
|
16
|
-
| `--task` |
|
|
17
|
-
| `--models` |
|
|
18
|
-
| `--chain` |
|
|
19
|
-
| `--rounds` |
|
|
20
|
-
| `--topic` |
|
|
13
|
+
| Option | Description | Default |
|
|
14
|
+
|--------|-------------|---------|
|
|
15
|
+
| `--mode` | Collaboration mode (parallel, sequential, debate) | parallel |
|
|
16
|
+
| `--task` | Task description to perform | - |
|
|
17
|
+
| `--models` | Participating AI models (comma-separated) | gemini,claude |
|
|
18
|
+
| `--chain` | Sequential chain name (sequential mode) | - |
|
|
19
|
+
| `--rounds` | Debate rounds (debate mode) | 3 |
|
|
20
|
+
| `--topic` | Debate topic (debate mode) | - |
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Collaboration Modes
|
|
23
23
|
|
|
24
|
-
### 1. Parallel (
|
|
24
|
+
### 1. Parallel (Parallel Execution)
|
|
25
25
|
```bash
|
|
26
|
-
/collaborate --mode parallel --task "
|
|
26
|
+
/collaborate --mode parallel --task "idea generation" --models "gemini,claude"
|
|
27
27
|
```
|
|
28
|
-
-
|
|
29
|
-
-
|
|
28
|
+
- Multiple AIs perform same task simultaneously
|
|
29
|
+
- Compare results and select best
|
|
30
30
|
|
|
31
|
-
### 2. Sequential (
|
|
31
|
+
### 2. Sequential (Sequential Handoff)
|
|
32
32
|
```bash
|
|
33
33
|
/collaborate --mode sequential --chain "code_review"
|
|
34
34
|
```
|
|
35
|
-
-
|
|
36
|
-
-
|
|
35
|
+
- Relay between AIs for progressive improvement
|
|
36
|
+
- Chains: `code_review`, `planning_review`
|
|
37
37
|
|
|
38
|
-
### 3. Debate (
|
|
38
|
+
### 3. Debate (Discussion)
|
|
39
39
|
```bash
|
|
40
|
-
/collaborate --mode debate --topic "
|
|
40
|
+
/collaborate --mode debate --topic "architecture choice" --rounds 3
|
|
41
41
|
```
|
|
42
|
-
- AI
|
|
43
|
-
-
|
|
42
|
+
- AI debate to reach optimal conclusion
|
|
43
|
+
- Compare various perspectives
|
|
44
44
|
|
|
45
|
-
##
|
|
45
|
+
## Predefined Chains
|
|
46
46
|
|
|
47
47
|
### code_review
|
|
48
|
-
1. Claude:
|
|
49
|
-
2. Gemini:
|
|
50
|
-
3. Codex:
|
|
48
|
+
1. Claude: Draft creation
|
|
49
|
+
2. Gemini: Creative improvement
|
|
50
|
+
3. Codex: Technical verification
|
|
51
51
|
|
|
52
52
|
### planning_review
|
|
53
|
-
1. Gemini:
|
|
54
|
-
2. Claude:
|
|
55
|
-
3. Claude:
|
|
53
|
+
1. Gemini: Idea divergence
|
|
54
|
+
2. Claude: Feasibility analysis
|
|
55
|
+
3. Claude: Final plan establishment
|
|
56
56
|
|
|
57
|
-
##
|
|
57
|
+
## Output
|
|
58
58
|
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
59
|
+
- Each AI's results
|
|
60
|
+
- Comparative analysis report
|
|
61
|
+
- Final selection/merge result
|
|
62
|
+
- Storage: `state/collaborations/{task_id}/`
|
|
63
63
|
|
|
64
|
-
##
|
|
64
|
+
## Examples
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
|
-
#
|
|
68
|
-
/collaborate --task "
|
|
67
|
+
# Basic parallel collaboration
|
|
68
|
+
/collaborate --task "user authentication design"
|
|
69
69
|
|
|
70
|
-
#
|
|
70
|
+
# Code review chain
|
|
71
71
|
/collaborate --mode sequential --chain code_review
|
|
72
72
|
|
|
73
|
-
#
|
|
74
|
-
/collaborate --mode debate --topic "
|
|
73
|
+
# Architecture debate
|
|
74
|
+
/collaborate --mode debate --topic "microservices vs monolithic"
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
##
|
|
77
|
+
## Configuration
|
|
78
78
|
|
|
79
|
-
`config/ai_collaboration.yaml`
|
|
79
|
+
See `config/ai_collaboration.yaml`
|
|
80
80
|
|
|
81
|
-
##
|
|
81
|
+
## Related Commands
|
|
82
82
|
|
|
83
|
-
- `/benchmark` - AI
|
|
84
|
-
- `/gemini` - Gemini
|
|
85
|
-
- `/codex` - Codex
|
|
83
|
+
- `/benchmark` - AI model benchmarking
|
|
84
|
+
- `/gemini` - Direct Gemini call
|
|
85
|
+
- `/codex` - Direct Codex call
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
# /context
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Check and manage context state.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Usage
|
|
6
6
|
```
|
|
7
|
-
/context #
|
|
8
|
-
/context --save [desc] #
|
|
9
|
-
/context --compress #
|
|
10
|
-
/context --restore #
|
|
11
|
-
/context --clean #
|
|
7
|
+
/context # Check current state
|
|
8
|
+
/context --save [desc] # Save snapshot
|
|
9
|
+
/context --compress # Execute compression
|
|
10
|
+
/context --restore # Restore saved state
|
|
11
|
+
/context --clean # Clean old snapshots
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Actions
|
|
15
15
|
|
|
16
|
-
###
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
16
|
+
### State Check (`/context`)
|
|
17
|
+
- Display estimated token usage
|
|
18
|
+
- State relative to thresholds
|
|
19
|
+
- List of saved snapshots
|
|
20
20
|
|
|
21
|
-
###
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
- state/context/
|
|
21
|
+
### Save Snapshot (`--save`)
|
|
22
|
+
- Save current state as state.md
|
|
23
|
+
- Can add description
|
|
24
|
+
- Save to state/context/ directory
|
|
25
25
|
|
|
26
|
-
###
|
|
27
|
-
- context-compression
|
|
28
|
-
-
|
|
29
|
-
-
|
|
26
|
+
### Execute Compression (`--compress`)
|
|
27
|
+
- Activate context-compression skill
|
|
28
|
+
- Clean unnecessary context
|
|
29
|
+
- Keep only essential information
|
|
30
30
|
|
|
31
|
-
###
|
|
32
|
-
-
|
|
33
|
-
- /clear
|
|
31
|
+
### Restore (`--restore`)
|
|
32
|
+
- Restore from saved snapshot
|
|
33
|
+
- Use after /clear
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Execution Script
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
scripts/context-manager.sh "$ARGUMENTS"
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
##
|
|
41
|
+
## Output Examples
|
|
42
42
|
|
|
43
|
-
###
|
|
43
|
+
### State Check
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
/context
|
|
@@ -49,83 +49,83 @@ scripts/context-manager.sh "$ARGUMENTS"
|
|
|
49
49
|
π Context Status
|
|
50
50
|
ββββββββββββββββββββββββββββββββββββββββββββ
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
Token usage: ~45,230 / 80,000
|
|
53
|
+
Status: ββββββββββββββββββββ 56% [Normal]
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
β’
|
|
57
|
-
β’
|
|
55
|
+
Thresholds:
|
|
56
|
+
β’ Warning (50k): Still have room
|
|
57
|
+
β’ Limit (80k): ~35,000 tokens remaining
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
Current stage: 04-ui-ux
|
|
60
|
+
Conversation messages: 28
|
|
61
61
|
|
|
62
|
-
[
|
|
63
|
-
β’ state-20240120-1030.md (03-planning
|
|
64
|
-
β’ state-20240120-1430.md (04-ui-ux
|
|
62
|
+
[Saved Snapshots]
|
|
63
|
+
β’ state-20240120-1030.md (03-planning completion)
|
|
64
|
+
β’ state-20240120-1430.md (04-ui-ux start)
|
|
65
65
|
|
|
66
66
|
ββββββββββββββββββββββββββββββββββββββββββββ
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
###
|
|
69
|
+
### Warning State
|
|
70
70
|
|
|
71
71
|
```
|
|
72
72
|
/context
|
|
73
73
|
|
|
74
74
|
ββββββββββββββββββββββββββββββββββββββββββββ
|
|
75
|
-
β οΈ Context Status -
|
|
75
|
+
β οΈ Context Status - Warning
|
|
76
76
|
ββββββββββββββββββββββββββββββββββββββββββββ
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
Token usage: ~52,000 / 80,000
|
|
79
|
+
Status: ββββββββββββββββββββ 65% [Warning]
|
|
80
80
|
|
|
81
|
-
β οΈ
|
|
81
|
+
β οΈ Warning threshold (50k) exceeded!
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
1. /context --compress
|
|
85
|
-
2. /context --save
|
|
83
|
+
Recommended actions:
|
|
84
|
+
1. Compress with /context --compress
|
|
85
|
+
2. /context --save then /clear
|
|
86
86
|
|
|
87
87
|
ββββββββββββββββββββββββββββββββββββββββββββ
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
###
|
|
90
|
+
### Save Snapshot
|
|
91
91
|
|
|
92
92
|
```
|
|
93
|
-
/context --save "UI
|
|
93
|
+
/context --save "UI design completed"
|
|
94
94
|
|
|
95
95
|
ββββββββββββββββββββββββββββββββββββββββββββ
|
|
96
96
|
πΎ Context Snapshot Saved
|
|
97
97
|
ββββββββββββββββββββββββββββββββββββββββββββ
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
File: state/context/state-20240120-1530.md
|
|
100
|
+
Description: UI design completed
|
|
101
|
+
Stage: 04-ui-ux
|
|
102
|
+
Tokens: ~45,000
|
|
103
103
|
|
|
104
|
-
[
|
|
105
|
-
β
|
|
106
|
-
β
|
|
107
|
-
β
|
|
108
|
-
β
|
|
104
|
+
[Saved Content]
|
|
105
|
+
β Current stage information
|
|
106
|
+
β Progress status
|
|
107
|
+
β Key decisions (5)
|
|
108
|
+
β Reference file list
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
Recovery: /context --restore state-20240120-1530.md
|
|
111
111
|
ββββββββββββββββββββββββββββββββββββββββββββ
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
##
|
|
114
|
+
## Options
|
|
115
115
|
|
|
116
|
-
|
|
|
117
|
-
|
|
118
|
-
| (
|
|
119
|
-
| `--save [desc]` |
|
|
120
|
-
| `--compress` |
|
|
121
|
-
| `--restore [file]` |
|
|
122
|
-
| `--list` |
|
|
123
|
-
| `--clean` |
|
|
124
|
-
| `--json` | JSON
|
|
116
|
+
| Option | Description |
|
|
117
|
+
|--------|-------------|
|
|
118
|
+
| (none) | Check current state |
|
|
119
|
+
| `--save [desc]` | Save snapshot |
|
|
120
|
+
| `--compress` | Context compression |
|
|
121
|
+
| `--restore [file]` | Restore snapshot |
|
|
122
|
+
| `--list` | Snapshot list |
|
|
123
|
+
| `--clean` | Clean old snapshots |
|
|
124
|
+
| `--json` | JSON format output |
|
|
125
125
|
|
|
126
|
-
##
|
|
126
|
+
## Configuration Reference
|
|
127
127
|
|
|
128
|
-
settings.json
|
|
128
|
+
settings.json context settings:
|
|
129
129
|
|
|
130
130
|
```json
|
|
131
131
|
{
|
|
@@ -137,18 +137,18 @@ settings.jsonμ context μ€μ :
|
|
|
137
137
|
}
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
##
|
|
140
|
+
## Related Skills
|
|
141
141
|
|
|
142
|
-
- `context-compression` -
|
|
142
|
+
- `context-compression` - Auto compression skill
|
|
143
143
|
|
|
144
|
-
##
|
|
144
|
+
## Related Commands
|
|
145
145
|
|
|
146
|
-
- `/status` -
|
|
147
|
-
- `/checkpoint` -
|
|
148
|
-
- `/restore` -
|
|
146
|
+
- `/status` - Pipeline status
|
|
147
|
+
- `/checkpoint` - Create checkpoint
|
|
148
|
+
- `/restore` - Restore checkpoint
|
|
149
149
|
|
|
150
150
|
## Tips
|
|
151
151
|
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
152
|
+
- Recommended: `/context --save` before long tasks
|
|
153
|
+
- Run `/context --compress` at 50k warning
|
|
154
|
+
- Recover with `/context --restore` after /clear
|