cp-toolkit 2.2.10 → 2.2.11
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 +73 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,6 +124,79 @@ applyTo: "**/*.ts,**/*.tsx"
|
|
|
124
124
|
| `.github/instructions/*.instructions.md` | Path-specific rules |
|
|
125
125
|
| `AGENTS.md` | Universal AI instructions |
|
|
126
126
|
| `.vscode/mcp.json` | MCP server configuration |
|
|
127
|
+
| `.github/cp-kit-models.yaml` | AI model allocation matrix |
|
|
128
|
+
|
|
129
|
+
## Architect-Builder Strategy
|
|
130
|
+
|
|
131
|
+
cp-toolkit implements the **Architect-Builder Pattern** for optimal AI agent performance. This strategy separates reasoning from execution:
|
|
132
|
+
|
|
133
|
+
### Dual-Mode Architecture
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
137
|
+
│ SINGLE MODE HYBRID MODE (Architect-Builder) │
|
|
138
|
+
│ ───────────── ─────────────────────────────── │
|
|
139
|
+
│ │
|
|
140
|
+
│ ┌─────────────────┐ PLANNER EXECUTOR │
|
|
141
|
+
│ │ High-IQ Model │ (Architect) (Builder) │
|
|
142
|
+
│ │ Pure Reasoning │ ┌──────────┐ ┌──────────┐ │
|
|
143
|
+
│ └─────────────────┘ │ temp 0.1 │ → │ temp 0.3 │ │
|
|
144
|
+
│ │ Strategy │ │ Code Gen │ │
|
|
145
|
+
│ • orchestrator └──────────┘ └──────────┘ │
|
|
146
|
+
│ • security-auditor │
|
|
147
|
+
│ • debugger • backend-specialist │
|
|
148
|
+
│ • documentation-writer • frontend-specialist │
|
|
149
|
+
│ • devops-engineer │
|
|
150
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Mode Selection
|
|
154
|
+
|
|
155
|
+
| Mode | Temperature | Use Case |
|
|
156
|
+
|------|-------------|----------|
|
|
157
|
+
| **Single** | 0.1 | Pure reasoning tasks (analysis, planning, auditing) |
|
|
158
|
+
| **Hybrid Planner** | 0.1 | Strategic thinking, architecture decisions |
|
|
159
|
+
| **Hybrid Executor** | 0.3 | Code generation, implementation |
|
|
160
|
+
|
|
161
|
+
### Agent Categories
|
|
162
|
+
|
|
163
|
+
1. **Leadership & Strategy** (Single Mode)
|
|
164
|
+
- `orchestrator`, `product-manager`, `product-owner`, `project-planner`
|
|
165
|
+
|
|
166
|
+
2. **Development Core** (Hybrid Mode)
|
|
167
|
+
- `backend-specialist`, `frontend-specialist`, `mobile-developer`, `game-developer`
|
|
168
|
+
|
|
169
|
+
3. **Infrastructure & Ops** (Hybrid Mode)
|
|
170
|
+
- `devops-engineer`, `database-architect`, `security-auditor`, `penetration-tester`
|
|
171
|
+
|
|
172
|
+
4. **Quality & Optimization** (Hybrid Mode)
|
|
173
|
+
- `qa-automation-engineer`, `test-engineer`, `performance-optimizer`, `debugger`
|
|
174
|
+
|
|
175
|
+
5. **Specialists & Research** (Mixed)
|
|
176
|
+
- `code-archaeologist`, `documentation-writer`, `seo-specialist`, `explorer-agent`
|
|
177
|
+
|
|
178
|
+
### Why This Works
|
|
179
|
+
|
|
180
|
+
- **Planner (Architect)**: Uses high-reasoning models with low temperature for accurate strategic decisions
|
|
181
|
+
- **Executor (Builder)**: Uses fast code-generation models with slightly higher temperature for creative implementation
|
|
182
|
+
- **Cost Optimization**: Expensive models only for planning; economical models for bulk code generation
|
|
183
|
+
- **Quality Assurance**: Clear separation prevents "hallucination drift" in long implementations
|
|
184
|
+
|
|
185
|
+
### Models Configuration
|
|
186
|
+
|
|
187
|
+
The `cp-kit-models.yaml` file defines the model allocation:
|
|
188
|
+
|
|
189
|
+
```yaml
|
|
190
|
+
agents:
|
|
191
|
+
backend-specialist:
|
|
192
|
+
mode: "hybrid"
|
|
193
|
+
planner:
|
|
194
|
+
model: "gpt-5.2"
|
|
195
|
+
task: "API architecture, security and data modeling"
|
|
196
|
+
executor:
|
|
197
|
+
model: "gpt-5.2-codex"
|
|
198
|
+
task: "Route and service implementation with perfect typing"
|
|
199
|
+
```
|
|
127
200
|
|
|
128
201
|
## License
|
|
129
202
|
|