@yeongjaeyou/claude-code-config 0.15.0 → 0.16.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.
@@ -23,11 +23,53 @@ Inspired by Andrej Karpathy's LLM Council: query multiple AI models with the sam
23
23
  3. **Quick mode**: `/council --quick What's the best approach?`
24
24
 
25
25
  **Flags:**
26
- - `--quick`: Quick mode - reduced reasoning depth, faster convergence
26
+ - `--quick`: Quick mode (see below)
27
27
 
28
28
  **Default behavior (no flags):**
29
- - Maximum reasoning depth (Codex: xhigh + gpt-5.1-codex-max)
29
+ - Maximum reasoning depth (Codex: reasoningEffort=xhigh, model=gpt-5.1-codex-max)
30
30
  - Full multi-round deliberation (up to 3 rounds)
31
+ - YAML schema enforced
32
+
33
+ **Quick mode (`--quick`):**
34
+ - All 4 models queried (Opus, Sonnet, Codex, Gemini)
35
+ - Single round only (Round 1 -> direct Synthesis, no Round 1.5 analysis)
36
+ - YAML schema not enforced (free-form responses accepted)
37
+ - Codex: reasoningEffort=high (instead of xhigh)
38
+
39
+ ---
40
+
41
+ ## Pre-flight Check
42
+
43
+ Before querying models, verify environment parity:
44
+
45
+ **1. CLI Installation:**
46
+ ```bash
47
+ command -v claude && echo "Claude Code: OK" || echo "Claude Code: Missing"
48
+ command -v codex && echo "Codex CLI: OK" || echo "Codex CLI: Missing"
49
+ command -v gemini && echo "Gemini CLI: OK" || echo "Gemini CLI: Missing"
50
+ ```
51
+
52
+ **2. Guidelines Files:**
53
+ ```bash
54
+ [ -f ./CLAUDE.md ] && echo "CLAUDE.md: OK" || echo "CLAUDE.md: Missing"
55
+ [ -f ./AGENTS.md ] && echo "AGENTS.md: OK" || echo "AGENTS.md: Missing"
56
+ [ -f ./GEMINI.md ] && echo "GEMINI.md: OK" || echo "GEMINI.md: Missing"
57
+ ```
58
+
59
+ **3. MCP Configuration:**
60
+ | CLI | Config Location | Check Command |
61
+ |-----|-----------------|---------------|
62
+ | Claude Code | `.mcp.json`, `~/.claude.json` | `claude mcp list` |
63
+ | Codex CLI | `~/.codex/config.toml` | `codex mcp --help` |
64
+ | Gemini CLI | `~/.gemini/settings.json`, `.gemini/settings.json` | `gemini mcp list` |
65
+
66
+ **Warning conditions (proceed with caution):**
67
+ - Guidelines file missing: model runs without project context
68
+ - MCP not configured: model has limited tool access
69
+ - CLI not installed: model excluded from council
70
+
71
+ **If warnings detected:**
72
+ Use AskUserQuestion to confirm whether to proceed or fix issues first.
31
73
 
32
74
  ---
33
75
 
@@ -41,15 +83,14 @@ council_member:
41
83
  response:
42
84
  summary: "1-2 sentence core answer"
43
85
  detailed_answer: "full response content"
44
- confidence: 0.0-1.0
45
86
  key_points:
46
87
  - point: "key insight"
47
88
  evidence: "file:line or reasoning"
48
- code_references:
89
+ code_references: # optional
49
90
  - file: "/absolute/path/to/file.py"
50
91
  lines: "42-58"
51
92
  context: "why this is relevant"
52
- caveats:
93
+ caveats: # optional
53
94
  - "potential limitation or edge case"
54
95
  # Round 2+ additional fields
55
96
  gaps:
@@ -72,7 +113,6 @@ Before querying models, collect relevant context:
72
113
  ```
73
114
  - git status / git diff (current changes)
74
115
  - Directory structure (tree -L 2)
75
- - Files mentioned in conversation (Read/Edit history)
76
116
 
77
117
  Model-specific guidelines (project root):
78
118
  - ./CLAUDE.md (Claude Opus/Sonnet)
@@ -80,6 +120,38 @@ Model-specific guidelines (project root):
80
120
  - ./gemini.md (Gemini)
81
121
  ```
82
122
 
123
+ **Conditional Code Exploration:**
124
+
125
+ When relevant files are unclear from the question, spawn Explore agents to discover them:
126
+
127
+ ```
128
+ Trigger conditions:
129
+ - Question mentions code/architecture/structure without specific files
130
+ - Question asks about "this", "the code", "current implementation" ambiguously
131
+ - UI/UX questions that need component/style file identification
132
+
133
+ Skip exploration when:
134
+ - User provides specific file paths or permalinks
135
+ - Question is conceptual (no code context needed)
136
+ - Files are obvious from recent git diff
137
+ ```
138
+
139
+ ```
140
+ Task(subagent_type="Explore", run_in_background: true):
141
+ prompt: |
142
+ Find files related to: [USER_QUESTION]
143
+
144
+ Return results in this format:
145
+ - /absolute/path/file.ext:LINE-LINE (brief context)
146
+
147
+ Focus on:
148
+ - Direct implementation files
149
+ - Related tests
150
+ - Configuration if relevant
151
+ ```
152
+
153
+ After exploration, use discovered paths in the File Path Inclusion format below.
154
+
83
155
  **File Path Inclusion (MANDATORY format):**
84
156
  ```
85
157
  Relevant files for this question:
@@ -95,7 +167,7 @@ Use your file access tools to READ these files directly.
95
167
  |-------|-------------------|
96
168
  | Claude Opus/Sonnet | Read tool (images supported) |
97
169
  | Codex | sandbox read-only file access |
98
- | Gemini | Include file content in prompt, or instruct to read |
170
+ | Gemini | MCP tools or Bash file read (MCP supported since 2025) |
99
171
 
100
172
  **Sensitive Data Filtering (exclude from prompts):**
101
173
  ```
@@ -114,6 +186,41 @@ Directories: node_modules/, __pycache__/, .git/
114
186
 
115
187
  ---
116
188
 
189
+ ## Progress Tracking
190
+
191
+ Use TodoWrite to show progress at each stage:
192
+
193
+ **Round 1 start:**
194
+ ```yaml
195
+ todos:
196
+ - content: "[Council] Query Opus"
197
+ status: "in_progress"
198
+ activeForm: "Querying Opus"
199
+ - content: "[Council] Query Sonnet"
200
+ status: "in_progress"
201
+ activeForm: "Querying Sonnet"
202
+ - content: "[Council] Query Codex"
203
+ status: "in_progress"
204
+ activeForm: "Querying Codex"
205
+ - content: "[Council] Query Gemini"
206
+ status: "in_progress"
207
+ activeForm: "Querying Gemini"
208
+ - content: "[Council] Analyze responses"
209
+ status: "pending"
210
+ activeForm: "Analyzing responses"
211
+ - content: "[Council] Synthesize"
212
+ status: "pending"
213
+ activeForm: "Synthesizing"
214
+ ```
215
+
216
+ **Update rules:**
217
+ - Model response received -> mark that model's todo as "completed"
218
+ - All models done -> "[Council] Analyze responses" to "in_progress"
219
+ - Round 2 needed -> add re-query todos for specific models
220
+ - Analysis done -> "[Council] Synthesize" to "in_progress"
221
+
222
+ ---
223
+
117
224
  ## Execution
118
225
 
119
226
  ### Round 1: Collect Initial Responses
@@ -160,7 +267,7 @@ Task(subagent_type="general-purpose", run_in_background: true):
160
267
  You are participating in an LLM Council deliberation as Codex.
161
268
 
162
269
  ## Tool Usage
163
- Use mcp__codex__codex tool with:
270
+ Use mcp__codex-cli__codex tool with:
164
271
  - sandbox: "read-only"
165
272
  - workingDirectory: "{PROJECT_ROOT}"
166
273
  - reasoningEffort: "xhigh" (or "high" with --quick)
@@ -196,6 +303,8 @@ Task(subagent_type="general-purpose", run_in_background: true):
196
303
  [GEMINI_PROMPT_WITH_CONTEXT]
197
304
  EOF
198
305
  ```
306
+ Note: Gemini CLI supports MCP (since 2025). If MCP is configured,
307
+ Gemini can access project files directly via MCP tools.
199
308
 
200
309
  ## Guidelines
201
310
  Read and follow ./gemini.md project guidelines.
@@ -204,8 +313,8 @@ Task(subagent_type="general-purpose", run_in_background: true):
204
313
  ## Question
205
314
  [USER_QUESTION]
206
315
 
207
- ## Context Files (include content since Gemini has limited file access)
208
- [FILE_CONTENTS_WITH_LINE_NUMBERS]
316
+ ## Context Files (READ directly using exact paths)
317
+ [FILE_LIST_WITH_LINE_NUMBERS]
209
318
 
210
319
  ## Instructions
211
320
  Parse Gemini's response and return structured YAML following the schema.
@@ -232,15 +341,15 @@ Skipping Round 1.5 defeats the purpose of multi-round deliberation.
232
341
 
233
342
  **1. Anonymize Responses:**
234
343
  ```
235
- 1. Shuffle response order randomly
236
- 2. Assign labels: Response A, B, C, D
237
- 3. Create internal mapping:
344
+ 1. Assign labels in response arrival order: Response A, B, C, D
345
+ 2. Create internal mapping:
238
346
  label_to_model = {
239
- "Response A": "gemini",
240
- "Response B": "opus",
241
- "Response C": "sonnet",
242
- "Response D": "codex"
347
+ "Response A": "[first arrived]",
348
+ "Response B": "[second arrived]",
349
+ "Response C": "[third arrived]",
350
+ "Response D": "[fourth arrived]"
243
351
  }
352
+ 3. Present responses by label only (hide model names until synthesis)
244
353
  ```
245
354
 
246
355
  **2. Gap Analysis:**
@@ -271,16 +380,17 @@ conflicts_detected:
271
380
  **4. Convergence Check (REQUIRED before synthesis):**
272
381
  ```yaml
273
382
  convergence_status:
274
- confidence_average: 0.815
275
- new_information_ratio: 0.15
383
+ agreement_count: 3 # models with same core conclusion
276
384
  gaps_remaining: 2
277
385
  conflicts_remaining: 1
278
386
  decision: "proceed_to_round_2" | "terminate_and_synthesize"
279
387
  ```
280
388
 
281
389
  **Decision logic:**
282
- - If `gaps_remaining > 0` AND `confidence_average < 0.9` `proceed_to_round_2`
390
+ - If `agreement_count >= 3` `terminate_and_synthesize` (strong consensus)
391
+ - If `gaps_remaining == 0` AND `conflicts_remaining == 0` → `terminate_and_synthesize`
283
392
  - If `conflicts_remaining > 0` AND round < 3 → `proceed_to_round_2`
393
+ - If `gaps_remaining > 0` AND round < 3 → `proceed_to_round_2`
284
394
  - Otherwise → `terminate_and_synthesize`
285
395
 
286
396
  ### Round 2: Targeted Re-queries (Conditional)
@@ -292,11 +402,11 @@ If convergence criteria not met, re-query only models with gaps/conflicts:
292
402
  ## Previous Round Summary
293
403
  Round 1 produced the following positions:
294
404
 
295
- ### Response A (Confidence: 0.92)
405
+ ### Response A
296
406
  - Position: [summary]
297
407
  - Key points: [list]
298
408
 
299
- ### Response B (Confidence: 0.85)
409
+ ### Response B
300
410
  - Position: [summary]
301
411
  - Key points: [list]
302
412
 
@@ -317,7 +427,6 @@ Please address specifically:
317
427
  2. [specific gap or conflict to resolve]
318
428
 
319
429
  Provide evidence and reasoning for your position.
320
- Update your confidence score based on new information.
321
430
 
322
431
  ## Output (YAML format required)
323
432
  [COUNCIL_MEMBER_SCHEMA with gaps/conflicts fields]
@@ -362,10 +471,9 @@ After convergence or max rounds:
362
471
  ### Soft Limits (Convergence - any triggers termination)
363
472
  | Condition | Threshold |
364
473
  |-----------|-----------|
365
- | Average confidence | > 0.9 |
366
- | New information ratio | < 10% |
474
+ | Strong consensus | 3+ models agree on core conclusion |
367
475
  | All gaps resolved | 0 remaining |
368
- | Strong consensus | 3+ models agree |
476
+ | All conflicts resolved | 0 remaining |
369
477
  | Conflicts irreconcilable | Cannot be resolved with more queries |
370
478
 
371
479
  ---
@@ -387,29 +495,29 @@ After convergence or max rounds:
387
495
 
388
496
  ### Individual Responses (Anonymized)
389
497
 
390
- #### Response A (Confidence: 0.92)
498
+ #### Response A
391
499
  [Content]
392
500
 
393
501
  **Key Points:**
394
502
  - [point 1] (evidence: file:line)
395
503
  - [point 2] (evidence: file:line)
396
504
 
397
- #### Response B (Confidence: 0.85)
505
+ #### Response B
398
506
  [Content]
399
507
 
400
- #### Response C (Confidence: 0.78)
508
+ #### Response C
401
509
  [Content]
402
510
 
403
- #### Response D (Confidence: 0.71)
511
+ #### Response D
404
512
  [Content]
405
513
 
406
514
  ### Model Reveal
407
- | Label | Model | Final Confidence |
408
- |-------|-------|-----------------|
409
- | Response A | codex | 0.92 |
410
- | Response B | opus | 0.85 |
411
- | Response C | sonnet | 0.78 |
412
- | Response D | gemini | 0.71 |
515
+ | Label | Model |
516
+ |-------|-------|
517
+ | Response A | codex |
518
+ | Response B | opus |
519
+ | Response C | sonnet |
520
+ | Response D | gemini |
413
521
 
414
522
  ### Coordinator Analysis
415
523
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeongjaeyou/claude-code-config",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Claude Code CLI custom commands, agents, and skills",
5
5
  "bin": {
6
6
  "claude-code-config": "./bin/cli.js"