@yeongjaeyou/claude-code-config 0.9.0 → 0.9.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.
|
@@ -40,7 +40,11 @@ Detect keywords in the prompt to determine execution mode:
|
|
|
40
40
|
## Sub-Agent Output Schema
|
|
41
41
|
|
|
42
42
|
**MANDATORY**: Each platform search Task **MUST** return results in this exact structure.
|
|
43
|
-
|
|
43
|
+
|
|
44
|
+
**On schema violation:**
|
|
45
|
+
- Missing required fields → retry (max 2 attempts)
|
|
46
|
+
- Invalid YAML → skip with warning, note in report
|
|
47
|
+
- Empty findings → accept with `confidence: 0.1`
|
|
44
48
|
|
|
45
49
|
### Required Fields (Quick & Deep)
|
|
46
50
|
|
|
@@ -156,6 +160,11 @@ Parallel execution (Task tool, run_in_background: true):
|
|
|
156
160
|
└── Task: arXiv + general web (if needed)
|
|
157
161
|
```
|
|
158
162
|
|
|
163
|
+
**Execution policy:**
|
|
164
|
+
- Timeout: 300000ms (5min) per agent
|
|
165
|
+
- Min success: 3/5 agents required to proceed
|
|
166
|
+
- On partial failure: continue with warning in report
|
|
167
|
+
|
|
159
168
|
**Each Task prompt MUST include:**
|
|
160
169
|
```
|
|
161
170
|
Format your response according to the Sub-Agent Output Schema.
|
|
@@ -187,7 +196,7 @@ Return findings as a YAML block with ALL fields:
|
|
|
187
196
|
- gaps, conflicts, suggested_followups (Deep Mode required)
|
|
188
197
|
```
|
|
189
198
|
|
|
190
|
-
Each Task returns results following Sub-Agent Output Schema. **
|
|
199
|
+
Each Task returns results following Sub-Agent Output Schema. **On non-compliance: retry once, then skip with warning.**
|
|
191
200
|
|
|
192
201
|
---
|
|
193
202
|
|
|
@@ -227,6 +236,11 @@ Selective execution (1-2 platforms only):
|
|
|
227
236
|
└── Task: {Second most suitable platform} (if needed)
|
|
228
237
|
```
|
|
229
238
|
|
|
239
|
+
**Round context to include:**
|
|
240
|
+
- Unresolved `gaps` list from Round 1
|
|
241
|
+
- Detected `conflicts` requiring verification
|
|
242
|
+
- Top 3 key findings (title + URL only)
|
|
243
|
+
|
|
230
244
|
Repeat Round 1.5 analysis → Convergence check
|
|
231
245
|
|
|
232
246
|
---
|
|
@@ -271,17 +285,16 @@ Validation execution:
|
|
|
271
285
|
| Condition | Value |
|
|
272
286
|
|-----------|-------|
|
|
273
287
|
| Max rounds | 3 |
|
|
274
|
-
| Max total time |
|
|
275
|
-
|
|
|
288
|
+
| Max total time | 15 min |
|
|
289
|
+
| Min successful agents | 3/5 per round |
|
|
276
290
|
|
|
277
291
|
### Soft Limits (Convergence Conditions)
|
|
278
292
|
|
|
279
293
|
Terminate when any of the following is met:
|
|
280
294
|
|
|
281
|
-
- **New information < 10%**:
|
|
282
|
-
- **All gaps resolved**:
|
|
283
|
-
- **
|
|
284
|
-
- **High confidence**: Core answer confidence > 0.9
|
|
295
|
+
- **New information < 10%**: `(new_unique_urls / prev_total_urls) < 0.1`
|
|
296
|
+
- **All gaps resolved**: `len(unresolved_gaps) == 0`
|
|
297
|
+
- **High confidence**: `avg(agent_confidences) > 0.9`
|
|
285
298
|
|
|
286
299
|
### Forced Termination
|
|
287
300
|
|
|
@@ -216,12 +216,19 @@ Task(subagent_type="general-purpose", run_in_background: true):
|
|
|
216
216
|
|
|
217
217
|
**Important:**
|
|
218
218
|
- Use `run_in_background: true` for true parallelism
|
|
219
|
-
- Timeout
|
|
220
|
-
|
|
219
|
+
- Timeout per model (use same value for TaskOutput):
|
|
220
|
+
| Model | Timeout | Reason |
|
|
221
|
+
|-------|---------|--------|
|
|
222
|
+
| Opus/Sonnet | 300000ms (5min) | Direct execution |
|
|
223
|
+
| Codex | 480000ms (8min) | MCP tool + deep reasoning |
|
|
224
|
+
| Gemini | 600000ms (10min) | CLI invocation + long thinking |
|
|
225
|
+
- Continue with successful responses if some models fail (min 2/4 required)
|
|
226
|
+
- **TaskOutput must use matching timeout**: `TaskOutput(task_id, block=true, timeout=600000)`
|
|
221
227
|
|
|
222
|
-
### Round 1.5: Coordinator Analysis
|
|
228
|
+
### Round 1.5: Coordinator Analysis (MANDATORY)
|
|
223
229
|
|
|
224
|
-
After collecting responses, the
|
|
230
|
+
**⚠️ DO NOT SKIP**: After collecting responses, the coordinator **MUST** perform this analysis before synthesis.
|
|
231
|
+
Skipping Round 1.5 defeats the purpose of multi-round deliberation.
|
|
225
232
|
|
|
226
233
|
**1. Anonymize Responses:**
|
|
227
234
|
```
|
|
@@ -261,7 +268,7 @@ conflicts_detected:
|
|
|
261
268
|
resolution_needed: true
|
|
262
269
|
```
|
|
263
270
|
|
|
264
|
-
**4. Convergence Check:**
|
|
271
|
+
**4. Convergence Check (REQUIRED before synthesis):**
|
|
265
272
|
```yaml
|
|
266
273
|
convergence_status:
|
|
267
274
|
confidence_average: 0.815
|
|
@@ -271,6 +278,11 @@ convergence_status:
|
|
|
271
278
|
decision: "proceed_to_round_2" | "terminate_and_synthesize"
|
|
272
279
|
```
|
|
273
280
|
|
|
281
|
+
**Decision logic:**
|
|
282
|
+
- If `gaps_remaining > 0` AND `confidence_average < 0.9` → `proceed_to_round_2`
|
|
283
|
+
- If `conflicts_remaining > 0` AND round < 3 → `proceed_to_round_2`
|
|
284
|
+
- Otherwise → `terminate_and_synthesize`
|
|
285
|
+
|
|
274
286
|
### Round 2: Targeted Re-queries (Conditional)
|
|
275
287
|
|
|
276
288
|
If convergence criteria not met, re-query only models with gaps/conflicts:
|
|
@@ -342,8 +354,10 @@ After convergence or max rounds:
|
|
|
342
354
|
| Condition | Value |
|
|
343
355
|
|-----------|-------|
|
|
344
356
|
| Max rounds | 3 |
|
|
345
|
-
| Max total time |
|
|
346
|
-
|
|
|
357
|
+
| Max total time | 20 min |
|
|
358
|
+
| Max per-model timeout | 10 min (Gemini) |
|
|
359
|
+
| Min successful models | 2/4 (proceed with partial results) |
|
|
360
|
+
| All models failed | immediate termination |
|
|
347
361
|
|
|
348
362
|
### Soft Limits (Convergence - any triggers termination)
|
|
349
363
|
| Condition | Threshold |
|
|
@@ -88,6 +88,14 @@ Serena provides LSP-based semantic code analysis. Use it for precise code naviga
|
|
|
88
88
|
3. Prefer symbolic editing over file-based editing when modifying functions/classes
|
|
89
89
|
4. Always check `find_referencing_symbols` before renaming/removing symbols
|
|
90
90
|
|
|
91
|
+
### Large File Handling
|
|
92
|
+
- Files exceeding 25000 tokens cannot be read at once (Claude Code internal limit)
|
|
93
|
+
- When encountering "exceeds maximum allowed tokens" error:
|
|
94
|
+
1. Use Grep to locate relevant content first
|
|
95
|
+
2. Use Read tool with `offset` and `limit` parameters to read in chunks
|
|
96
|
+
3. Example: `offset=0, limit=1000` → `offset=1000, limit=1000` sequentially
|
|
97
|
+
- Never attempt to read entire large files without chunking
|
|
98
|
+
|
|
91
99
|
### Python Development
|
|
92
100
|
- **Virtual Environment (MANDATORY)**: Always use virtual environment (uv) when running Python
|
|
93
101
|
- **NEVER** use system Python (`python`, `python3`) directly
|