ai-consultants 2.21.0 → 2.21.1

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 (64) hide show
  1. package/.claude/commands/ai-consultants:consult.md +1 -1
  2. package/CLAUDE.md +24 -58
  3. package/README.md +91 -76
  4. package/SKILL.md +6 -9
  5. package/docs/COST_RATES.md +9 -15
  6. package/docs/JSON_SCHEMA.md +1 -1
  7. package/docs/RECIPES.md +272 -0
  8. package/docs/SETUP.md +75 -186
  9. package/docs/SMART_ROUTING.md +2 -2
  10. package/docs/cost_rates.json +23 -54
  11. package/docs/releases/v2.21.1.md +84 -0
  12. package/package.json +5 -3
  13. package/references/affinity.json +20 -23
  14. package/references/configuration.md +75 -27
  15. package/references/details.md +3 -7
  16. package/scripts/config.sh +30 -102
  17. package/scripts/configure.sh +13 -16
  18. package/scripts/consult_all.sh +2 -3
  19. package/scripts/debate_round.sh +0 -12
  20. package/scripts/doctor.sh +27 -75
  21. package/scripts/followup.sh +0 -3
  22. package/scripts/install.sh +1 -1
  23. package/scripts/lib/common.sh +17 -19
  24. package/scripts/lib/costs.sh +1 -3
  25. package/scripts/lib/personas.sh +2 -9
  26. package/scripts/lib/progress.sh +2 -2
  27. package/scripts/lib/reflection.sh +0 -1
  28. package/scripts/lib/routing.sh +1 -1
  29. package/scripts/lib/schema.json +2 -2
  30. package/scripts/peer_review.sh +0 -2
  31. package/scripts/preflight_check.sh +2 -2
  32. package/scripts/query_kimi.sh +5 -2
  33. package/scripts/setup_wizard.sh +3 -26
  34. package/scripts/update_clis.sh +0 -8
  35. package/templates/consultation_report.md +17 -17
  36. package/scripts/lib/test_helpers.sh +0 -82
  37. package/scripts/query_aider.sh +0 -83
  38. package/scripts/query_amp.sh +0 -67
  39. package/scripts/query_kilo.sh +0 -155
  40. package/scripts/query_ollama.sh +0 -329
  41. package/scripts/test_all.sh +0 -65
  42. package/scripts/test_bin.sh +0 -139
  43. package/scripts/test_capability_weighting.sh +0 -135
  44. package/scripts/test_context_optimization.sh +0 -333
  45. package/scripts/test_doctor.sh +0 -264
  46. package/scripts/test_e2e.sh +0 -84
  47. package/scripts/test_fixtures/context/sample.json +0 -13
  48. package/scripts/test_fixtures/context/sample.py +0 -90
  49. package/scripts/test_fixtures/context/sample.sh +0 -66
  50. package/scripts/test_fixtures/context/sample.txt +0 -11
  51. package/scripts/test_fixtures/stub_cli.sh +0 -45
  52. package/scripts/test_orchestration.sh +0 -203
  53. package/scripts/test_release.sh +0 -220
  54. package/scripts/test_reliability.sh +0 -83
  55. package/scripts/test_roster_audit.sh +0 -65
  56. package/scripts/test_roster_calibrate.sh +0 -91
  57. package/scripts/test_routing_parity.sh +0 -180
  58. package/scripts/test_set_e_safety.sh +0 -118
  59. package/scripts/test_stance.sh +0 -67
  60. package/scripts/test_suite.sh +0 -1723
  61. package/scripts/test_taste_elo.sh +0 -61
  62. package/scripts/test_update_clis.sh +0 -79
  63. package/scripts/test_user_config.sh +0 -403
  64. package/scripts/test_voting_metadata.sh +0 -69
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Consult AI experts (Gemini, Codex, Mistral, Kilo, Cursor, Aider, Amp, Kimi, Qwen, GLM, Grok, DeepSeek, MiniMax, Ollama) for coding questions. Use when weighing trade-offs, comparing approaches, or wanting multiple expert perspectives on non-trivial decisions.
2
+ description: Consult AI experts (Gemini, Codex, Mistral, Cursor, Kimi, Qwen, GLM, Grok, DeepSeek, MiniMax) for coding questions. Use when weighing trade-offs, comparing approaches, or wanting multiple expert perspectives on non-trivial decisions.
3
3
  argument-hint: <question> [file1] [file2] ...
4
4
  allowed-tools: Bash Read Glob Grep
5
5
  ---
package/CLAUDE.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  ## Project Overview
4
4
 
5
- AI Consultants is a multi-model AI deliberation system that queries up to 15 AI consultants (Gemini, Codex, Mistral, Kilo, Cursor, Aider, Amp, Kimi, Claude, Qwen3, GLM, Grok, DeepSeek, MiniMax, Ollama) to obtain diverse perspectives on coding problems.
5
+ AI Consultants is a multi-model AI deliberation system that queries up to 11 AI consultants (Gemini, Codex, Mistral, Cursor, Kimi, Claude, Qwen3, GLM, Grok, DeepSeek, MiniMax) to obtain diverse perspectives on coding problems.
6
6
 
7
7
  **Self-Exclusion**: The invoking agent is automatically excluded from the panel to prevent self-consultation. Claude Code won't query Claude, Codex CLI won't query Codex, etc.
8
8
 
9
- **Version**: 2.21.0
9
+ **Version**: 2.21.1
10
10
 
11
11
  ## Distribution
12
12
 
@@ -47,7 +47,6 @@ ai-consultants/
47
47
  │ ├── install.sh # One-liner installer (v2.2)
48
48
  │ ├── query_*.sh # Wrapper for each consultant
49
49
  │ ├── query_claude.sh # Claude consultant (v2.2)
50
- │ ├── query_ollama.sh # Local model support (v2.2)
51
50
  │ ├── synthesize.sh # Auto-synthesis of responses
52
51
  │ ├── debate_round.sh # Multi-Agent Debate
53
52
  │ ├── classify_question.sh # Question classifier
@@ -73,6 +72,7 @@ ai-consultants/
73
72
  ├── docs/
74
73
  │ ├── releases/ # Release notes (one per version)
75
74
  │ ├── SETUP.md # Installation guide
75
+ │ ├── RECIPES.md # Copy-paste workflow configurations
76
76
  │ ├── COST_RATES.md # Model pricing
77
77
  │ ├── SMART_ROUTING.md # Affinity matrix
78
78
  │ └── JSON_SCHEMA.md # Output schema
@@ -200,9 +200,8 @@ Functions in `lib/common.sh`:
200
200
 
201
201
  # Use Case Presets
202
202
  ./scripts/consult_all.sh --preset minimal "question" # Gemini + Codex
203
- ./scripts/consult_all.sh --preset balanced "question" # + Mistral + Kilo
203
+ ./scripts/consult_all.sh --preset balanced "question" # + Mistral + Cursor
204
204
  ./scripts/consult_all.sh --preset high-stakes "question" # All + debate
205
- ./scripts/consult_all.sh --preset local "question" # Ollama only
206
205
  ```
207
206
 
208
207
  Presets are defined in `config.sh` via `apply_preset()` function.
@@ -225,17 +224,6 @@ Strategies are implemented in `synthesize.sh` via `get_strategy_instructions()`.
225
224
  ./scripts/doctor.sh --verbose # Detailed output
226
225
  ```
227
226
 
228
- ### Ollama Local Models
229
- ```bash
230
- ENABLE_OLLAMA=true ./scripts/consult_all.sh "question"
231
- OLLAMA_MODEL=codellama ./scripts/consult_all.sh "question"
232
- ```
233
-
234
- Configuration in `config.sh`:
235
- - `OLLAMA_MODEL` - Model to use (default: hf.co/prithivMLmods/VibeThinker-3B-GGUF)
236
- - `OLLAMA_HOST` - Server URL (default: http://localhost:11434)
237
- - `OLLAMA_TIMEOUT` - Timeout in seconds (default: 300)
238
-
239
227
  ### Panic Button Mode
240
228
  Automatically adds rigor when uncertainty detected:
241
229
  - Average confidence below `PANIC_CONFIDENCE_THRESHOLD` (default: 5)
@@ -270,30 +258,6 @@ Functions in `lib/reflection.sh`:
270
258
  - `heuristic_overconfidence_check()` - Fast fallback without LLM
271
259
  - `judge_all_responses()` - Batch evaluation
272
260
 
273
- ## v2.8 Features
274
-
275
- ### Amp CLI Support
276
- Amp Code is now supported as a CLI-based consultant with "The Systems Thinker" persona.
277
-
278
- ```bash
279
- # Enable Amp consultant
280
- export ENABLE_AMP=true
281
- ./scripts/consult_all.sh "question"
282
- ```
283
-
284
- **CLI Installation:**
285
- ```bash
286
- curl -fsSL https://ampcode.com/install.sh | bash
287
- ```
288
-
289
- **Environment Variables:**
290
- - `ENABLE_AMP` - Enable Amp consultant (default: true)
291
- - `AMP_CMD` - CLI command (default: amp)
292
- - `AMP_TIMEOUT` - Timeout in seconds (default: 180)
293
- - `AMP_API_KEY` - API key for authentication
294
-
295
- **Persona:** The Systems Thinker - Focuses on holistic system design, component interactions, and emergent behaviors.
296
-
297
261
  ## v2.9 Features
298
262
 
299
263
  ### Kimi CLI Support
@@ -314,7 +278,7 @@ curl -L code.kimi.com/install.sh | bash
314
278
  - `ENABLE_KIMI` - Enable Kimi consultant (default: false)
315
279
  - `KIMI_CMD` - CLI command (default: kimi)
316
280
  - `KIMI_TIMEOUT` - Timeout in seconds (default: 180)
317
- - `KIMI_MODEL` - Model identifier (default: kimi-code/kimi-for-coding)
281
+ - `KIMI_MODEL` - Kimi CLI model alias (default: kimi-code/k3; passed explicitly with `--model`)
318
282
 
319
283
  **Persona:** The Eastern Sage - Focuses on holistic understanding, balance of perspectives, and wisdom from diverse viewpoints.
320
284
 
@@ -468,13 +432,10 @@ All consultants now use premium models by default:
468
432
  | Cursor | composer-2.5 |
469
433
  | DeepSeek | deepseek-v4-pro |
470
434
  | GLM | glm-5.2 |
471
- | Grok | grok-4.3 |
435
+ | Grok | grok-4.5 |
472
436
  | Qwen3 | qwen3.7-max |
473
- | Kimi | kimi-code/kimi-for-coding |
474
- | Aider | qwen3-coder:free |
437
+ | Kimi | kimi-code/k3 |
475
438
  | MiniMax | MiniMax-M2.7 |
476
- | Kilo | auto |
477
- | Ollama | hf.co/prithivMLmods/VibeThinker-3B-GGUF |
478
439
 
479
440
  Override with environment variables: `CLAUDE_MODEL`, `GEMINI_MODEL`, `CODEX_MODEL`, `KIMI_MODEL`, etc.
480
441
 
@@ -628,6 +589,12 @@ REPORT_MAX_JSON_LINES=50 # Max JSON lines in full report
628
589
  ## Testing
629
590
 
630
591
  ```bash
592
+ # Full regression suite (required before committing/releasing)
593
+ npm test
594
+
595
+ # ShellCheck lint
596
+ npm run lint
597
+
631
598
  # Full diagnostic
632
599
  ./scripts/doctor.sh
633
600
 
@@ -661,8 +628,6 @@ for f in scripts/*.sh scripts/lib/*.sh; do bash -n "$f" && echo "OK: $f"; done
661
628
  | `MAX_SESSION_COST` | 1.00 | Max budget ($) |
662
629
  | `ENABLE_PANIC_MODE` | auto | Panic mode trigger (v2.2) |
663
630
  | `PANIC_CONFIDENCE_THRESHOLD` | 5 | Panic threshold (v2.2) |
664
- | `ENABLE_OLLAMA` | false | Local model support (v2.2) |
665
- | `OLLAMA_MODEL` | hf.co/prithivMLmods/VibeThinker-3B-GGUF | Ollama model (v2.17 default) |
666
631
  | `CLAUDE_MODEL` | claude-opus-4-8 | Claude model (v2.5) |
667
632
  | `GEMINI_MODEL` | Gemini 3.1 Pro (High) | Gemini agy CLI model (v2.15) |
668
633
  | `GEMINI_API_MODEL` | gemini-3.1-pro-preview | Gemini API-mode model ID (v2.15) |
@@ -673,7 +638,7 @@ for f in scripts/*.sh scripts/lib/*.sh; do bash -n "$f" && echo "OK: $f"; done
673
638
  | `CACHE_TTL_HOURS` | 24 | Cache expiration in hours (v2.3) |
674
639
  | `ENABLE_RESPONSE_LIMITS` | false | Response token limits (v2.3, opt-in) |
675
640
  | `ENABLE_COST_AWARE_ROUTING` | false | Cost-based model routing (v2.3) |
676
- | `ENABLE_DEBATE_OPTIMIZATION` | false | Skip debate if all agree (v2.3, opt-in) |
641
+ | `ENABLE_DEBATE_OPTIMIZATION` | true | Skip debate if all agree; SECURITY and ARCHITECTURE remain mandatory (default since v2.13) |
677
642
  | `ENABLE_COMPACT_REPORT` | true | Compact report format (v2.3) |
678
643
  | `ENABLE_CAPABILITY_WEIGHTING` | false | Capability-weighted voting (v2.20, opt-in) |
679
644
  | `ENABLE_CAPABILITY_ROUTING` | false | Capability-aware panel composition (v2.20, opt-in) |
@@ -687,7 +652,7 @@ for f in scripts/*.sh scripts/lib/*.sh; do bash -n "$f" && echo "OK: $f"; done
687
652
  | `QWEN3_CMD` | qwen | Qwen CLI command (v2.7) |
688
653
  | `ENABLE_KIMI` | true | Enable Kimi consultant (v2.9) |
689
654
  | `KIMI_CMD` | kimi | Kimi CLI command (v2.9) |
690
- | `KIMI_MODEL` | kimi-code/kimi-for-coding | Kimi model (v2.9) |
655
+ | `KIMI_MODEL` | kimi-code/k3 | Kimi CLI model alias |
691
656
  | `ENABLE_MINIMAX` | true | Enable MiniMax consultant (v2.10; CLI via mmx v2.21) |
692
657
  | `MINIMAX_USE_API` | false | Use MiniMax API instead of the mmx CLI (v2.21) |
693
658
  | `MINIMAX_CMD` | mmx | MiniMax CLI command (v2.21) |
@@ -699,15 +664,11 @@ for f in scripts/*.sh scripts/lib/*.sh; do bash -n "$f" && echo "OK: $f"; done
699
664
  - `agy` CLI - Antigravity CLI (Gemini consultant; successor to the deprecated Gemini CLI, v2.15)
700
665
  - `codex` CLI - OpenAI Codex
701
666
  - `vibe` CLI - Mistral Vibe
702
- - `kilocode` CLI - Kilo Code
703
667
  - `agent` CLI - Cursor
704
- - `aider` CLI - Aider
705
- - `amp` CLI - Amp Code (v2.8)
706
668
  - `kimi` CLI - Kimi Code (v2.9)
707
669
  - `claude` CLI - Claude (v2.2, also used for synthesis)
708
670
  - `qwen` CLI - Qwen via qwen-code (v2.7, optional)
709
671
  - `mmx` CLI - MiniMax via mmx-cli (v2.21, optional; `npm i -g mmx-cli`, auth `mmx auth login`)
710
- - `ollama` CLI - Local models (v2.2)
711
672
  - `jq` - JSON parsing
712
673
 
713
674
  ## Error Handling and Retry
@@ -727,13 +688,12 @@ RETRY_DELAY_SECONDS=10
727
688
  # Per-consultant timeout
728
689
  GEMINI_TIMEOUT=240
729
690
  CODEX_TIMEOUT=180
730
- OLLAMA_TIMEOUT=300 # Longer for local inference
731
691
  ```
732
692
 
733
693
  ## Extended Documentation
734
694
 
735
695
  For detailed information, see:
736
- - [docs/SETUP.md](docs/SETUP.md) - Installation, authentication, Ollama setup
696
+ - [docs/SETUP.md](docs/SETUP.md) - Installation and authentication
737
697
  - [docs/COST_RATES.md](docs/COST_RATES.md) - Rates and budget management
738
698
  - [docs/SMART_ROUTING.md](docs/SMART_ROUTING.md) - Affinity matrix and routing
739
699
  - [docs/JSON_SCHEMA.md](docs/JSON_SCHEMA.md) - Complete output schema
@@ -741,8 +701,8 @@ For detailed information, see:
741
701
  ## Development Notes
742
702
 
743
703
  - Scripts in `lib/` are libraries, not standalone executables
744
- - Output goes to `/tmp/ai_consultations/TIMESTAMP/`
745
- - Session state in `/tmp/ai_consultants_sessions/`
704
+ - Output goes to `$XDG_CACHE_HOME/ai-consultants/consultations/TIMESTAMP/` (normally `~/.cache/ai-consultants/consultations/`)
705
+ - Session state lives in `$XDG_STATE_HOME/ai-consultants/sessions/` (normally `~/.local/state/ai-consultants/sessions/`)
746
706
  - All timeouts are configurable in `config.sh`
747
707
  - Consultants can be disabled individually (`ENABLE_GEMINI=false`, etc.)
748
708
  - Use `.env.example` as template for environment configuration
@@ -842,6 +802,12 @@ curl -fsSL https://raw.githubusercontent.com/matteoscurati/ai-consultants/main/s
842
802
 
843
803
  ## Changelog
844
804
 
805
+ ### v2.21.1
806
+ - **Kimi upgraded to K3.** `KIMI_MODEL` now defaults to `kimi-code/k3`; premium, standard, and economy tiers all resolve to the same K3 alias.
807
+ - **Model selection is now real, not metadata-only.** `query_kimi.sh` passes `--model "$KIMI_MODEL"` to the CLI, overriding a stale user-level Kimi default. A dedicated offline regression test captures the CLI arguments and validates response metadata; a live K3 smoke test returned a structured response with confidence 10.
808
+ - **Roster reduced from 15 to 11 supported consultants.** Kilo, Aider, Amp, and Ollama were removed end-to-end: canonical/default lists, presets, routing and personas, debate/synthesis/reflection, doctor/preflight, updater, configuration/wizard, schemas, tests, docs, and their four query adapters. `ENABLE_KILO`/`KILO_*`, `ENABLE_AIDER`/`AIDER_*`, `ENABLE_AMP`/`AMP_*`, `ENABLE_OLLAMA`/`OLLAMA_*`, and the Ollama-only `local` preset are obsolete and ignored.
809
+ - **Documentation and release surfaces synced.** README, SKILL, `.env.example`, setup/configuration/recipes, cost catalog, changelog, release note, npm metadata, and the showcase site all identify Kimi K3. Version bumped to 2.21.1.
810
+
845
811
  ### v2.21.0
846
812
  - **CLI-first transport (principle).** Every `*_USE_API` defaults `false`; a consultant with a CLI always uses it, API is opt-in (CLI-less model or explicit choice). `ENABLE_AMP`/`ENABLE_CLAUDE` default true.
847
813
  - **MiniMax via `mmx` CLI** (was API-only). `query_minimax.sh` runs `mmx text chat --non-interactive …` in CLI mode; `config.sh` adds `MINIMAX_CMD` + auto-resolves `MINIMAX_USE_API` (API iff `MINIMAX_API_KEY` set — back-compat), drops MiniMax from `API_CONSULTANTS`; `doctor.sh` treats it as switchable.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # AI Consultants v2.21.0
1
+ # AI Consultants v2.21.1
2
2
 
3
- > **A harness for every question.** A panel of up to 15 frontier models that writes its own playbook per question — fan out, debate to convergence, cross-examine under adversarial review, or run a tournament — and checks its work before it reaches you.
3
+ > **A harness for every question.** A panel of up to 11 frontier models that writes its own playbook per question — fan out, debate to convergence, cross-examine under adversarial review, or run a tournament — and checks its work before it reaches you.
4
4
 
5
- [![Version](https://img.shields.io/badge/version-2.21.0-blue.svg)](https://github.com/matteoscurati/ai-consultants)
5
+ [![Version](https://img.shields.io/badge/version-2.21.1-blue.svg)](https://github.com/matteoscurati/ai-consultants)
6
6
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
7
7
  [![Claude Code Skill](https://img.shields.io/badge/Claude%20Code-Skill-orange.svg)](https://docs.anthropic.com/en/docs/claude-code/skills)
8
8
  [![GitHub stars](https://img.shields.io/github/stars/matteoscurati/ai-consultants?style=social)](https://github.com/matteoscurati/ai-consultants)
@@ -20,11 +20,11 @@
20
20
  - [OpenAI Codex CLI](#openai-codex-cli)
21
21
  - [Gemini CLI](#gemini-cli)
22
22
  - [Cursor / Copilot / Windsurf](#cursor--copilot--windsurf-via-skillport)
23
- - [Aider](#aider)
24
23
  - [Standalone Bash](#standalone-bash)
25
24
  - [Consultants](#consultants)
26
25
  - [Quality Tiers](#quality-tiers)
27
26
  - [Configuration](#configuration)
27
+ - [Configuration Recipes](#configuration-recipes)
28
28
  - [How It Works](#how-it-works)
29
29
  - [Best Practices](#best-practices)
30
30
  - [Documentation](#documentation)
@@ -42,9 +42,8 @@ Instead of running a fixed script, it classifies your question, picks an orchest
42
42
  - **Dynamic orchestration** — the engine chooses the strategy per question: a quick read, a convergence loop, an adversarial refutation gate, a tournament of approaches, or an exhaustive sweep
43
43
  - **Convergence, not fixed rounds** — debate iterates until the panel actually agrees (or provably won't), instead of a hardcoded count
44
44
  - **Self-checking** — security answers are stress-tested by consultants trying to refute them before anything reaches you
45
- - **15 frontier models** with distinct personas (Architect, Pragmatist, Devil's Advocate, …)
45
+ - **11 supported consultants** with distinct personas (Architect, Pragmatist, Devil's Advocate, …)
46
46
  - **Confidence-weighted synthesis** — one recommendation, with the dissent and the path it took surfaced so you know how much to trust it
47
- - **Local + private** — runs fully offline via Ollama when you need it
48
47
 
49
48
  ---
50
49
 
@@ -174,8 +173,8 @@ For CLI-based consultants, you'll also need:
174
173
 
175
174
  | Dependency | Required for |
176
175
  |------------|--------------|
177
- | **Node.js 18+** | Gemini CLI, Codex CLI, Kilo CLI |
178
- | **Python 3.8+** | Mistral Vibe CLI, Aider |
176
+ | **Node.js 18+** | Gemini CLI, Codex CLI, Qwen CLI, MiniMax CLI |
177
+ | **Python 3.8+** | Mistral Vibe CLI |
179
178
 
180
179
  ```bash
181
180
  # macOS
@@ -321,37 +320,6 @@ skillport status ai-consultants
321
320
 
322
321
  ---
323
322
 
324
- ### Aider
325
-
326
- > **Status:** ✅ Via AGENTS.md
327
-
328
- **Installation:**
329
-
330
- ```bash
331
- git clone https://github.com/matteoscurati/ai-consultants.git
332
- cd ai-consultants
333
- # Aider reads AGENTS.md for skill instructions
334
- ```
335
-
336
- **Usage:**
337
-
338
- Reference the skill in your Aider session:
339
-
340
- ```
341
- /add AGENTS.md
342
- # Then ask: "Use ai-consultants to review my code"
343
- ```
344
-
345
- **Self-Exclusion:** When using Aider as the invoking agent, set `INVOKING_AGENT=aider`.
346
-
347
- **Verify:**
348
-
349
- ```bash
350
- ./scripts/doctor.sh
351
- ```
352
-
353
- ---
354
-
355
323
  ### Standalone Bash
356
324
 
357
325
  > **Status:** ✅ Direct execution
@@ -410,28 +378,22 @@ INVOKING_AGENT=codex ./scripts/consult_all.sh "Question" # Codex excluded
410
378
  | **Google Gemini** | `agy` | The Architect | Design patterns, scalability, enterprise |
411
379
  | **OpenAI Codex** | `codex` | The Pragmatist | Simplicity, quick wins, proven solutions |
412
380
  | **Mistral Vibe** | `vibe` | The Devil's Advocate | Problems, edge cases, vulnerabilities |
413
- | **Kilo Code** | `kilocode` | The Innovator | Creativity, unconventional approaches |
414
381
  | **Cursor** | `agent` | The Integrator | Full-stack perspective |
415
- | **Aider** | `aider` | The Pair Programmer | Collaborative coding |
416
- | **Amp** | `amp` | The Systems Thinker | System design, interactions, emergent behavior |
417
- | **Kimi** | `kimi` | The Eastern Sage | Holistic, balanced perspectives |
382
+ | **Kimi K3** | `kimi` | The Eastern Sage | Holistic, balanced perspectives |
418
383
  | **Claude** | `claude` | The Synthesizer | Big picture, synthesis, connecting ideas |
384
+ | **Qwen3** | `qwen` | The Analyst | Data-driven analysis |
385
+ | **MiniMax** | `mmx` | The Pragmatic Optimizer | Performance, efficiency, pragmatism |
419
386
 
420
- ### API-Based Consultants
387
+ Qwen3 and MiniMax can switch from their CLI to API transport. Gemini, Codex,
388
+ Claude, and Mistral are also CLI/API switchable.
389
+
390
+ ### API-Only Consultants
421
391
 
422
392
  | Consultant | Default Model | Persona | Focus |
423
393
  |------------|---------------|---------|-------|
424
- | **Qwen3** | qwen3.7-max | The Analyst | Data-driven analysis |
425
394
  | **GLM** | glm-5.2 | The Methodologist | Structured approaches |
426
- | **Grok** | grok-4.3 | The Provocateur | Challenge conventions |
395
+ | **Grok** | grok-4.5 | The Provocateur | Challenge conventions |
427
396
  | **DeepSeek** | deepseek-v4-pro | The Code Specialist | Algorithms, code generation |
428
- | **MiniMax** | MiniMax-M2.7 | The Pragmatic Optimizer | Performance, efficiency, pragmatism |
429
-
430
- ### Local Consultants
431
-
432
- | Consultant | Default Model | Persona | Focus |
433
- |------------|---------------|---------|-------|
434
- | **Ollama** | hf.co/prithivMLmods/VibeThinker-3B-GGUF | The Local Expert | Privacy-first, zero API cost |
435
397
 
436
398
  ### Installing Consultant CLIs
437
399
 
@@ -441,17 +403,21 @@ At least 2 consultant CLIs are required:
441
403
  curl -fsSL https://antigravity.google/cli/install.sh | bash # Gemini (Antigravity CLI: agy)
442
404
  npm install -g @openai/codex # Codex
443
405
  pip install mistral-vibe # Mistral
444
- npm install -g @kilocode/cli # Kilo
445
406
  curl https://cursor.com/install -fsS | bash # Cursor
446
407
 
447
408
  # Optional CLI-based consultants
448
- curl -fsSL https://ampcode.com/install.sh | bash # Amp
449
- curl -L code.kimi.com/install.sh | bash # Kimi
409
+ curl -L code.kimi.com/install.sh | bash # Kimi K3
450
410
  npm install -g @qwen-code/qwen-code@latest # Qwen (alternative to API)
411
+ npm install -g mmx-cli # MiniMax
451
412
 
452
- # For local inference (optional)
453
- curl -fsSL https://ollama.com/install.sh | sh
454
- ollama pull llama3.2
413
+ ```
414
+
415
+ Kimi is pinned to K3 for every consultation, even if the user's Kimi CLI has a
416
+ different default model:
417
+
418
+ ```bash
419
+ KIMI_MODEL=kimi-code/k3 ai-consultants \
420
+ "Review this API design from a holistic perspective"
455
421
  ```
456
422
 
457
423
  ---
@@ -464,10 +430,9 @@ Choose the right balance of quality, speed, and cost with model quality tiers.
464
430
 
465
431
  | Preset | Tier | Agents | Debate | Reflection | Use Case |
466
432
  |--------|------|--------|--------|------------|----------|
467
- | `max_quality` | Premium | 7 (all) | 3 rounds | 2 cycles + peer review | Critical decisions |
433
+ | `max_quality` | Premium | 8 | 3 rounds | 2 cycles + peer review | Critical decisions |
468
434
  | `medium` | Standard | 4 | 1 round | No | General questions |
469
435
  | `fast` | Economy | 2 | No | No | Quick checks |
470
- | `local` | Economy | 1 (Ollama) | No | No | Full privacy |
471
436
 
472
437
  ### Models by Tier
473
438
 
@@ -480,11 +445,10 @@ Choose the right balance of quality, speed, and cost with model quality tiers.
480
445
  | Cursor | composer-2.5 | composer-2 | gemini-3-flash |
481
446
  | DeepSeek | deepseek-v4-pro | deepseek-v4-flash | deepseek-v4-flash |
482
447
  | GLM | glm-5.2 | glm-5.2 | glm-4-flash |
483
- | Grok | grok-4.3 | grok-4.1-fast | grok-4.1-fast |
448
+ | Grok | grok-4.5 | grok-4.1-fast | grok-4.1-fast |
484
449
  | Qwen3 | qwen3.7-max | qwen3.6-35b-a3b | qwen3-32b |
485
- | Aider | qwen3-coder:free | gpt-5.4 | gpt-5.4-nano |
450
+ | Kimi | kimi-code/k3 | kimi-code/k3 | kimi-code/k3 |
486
451
  | MiniMax | MiniMax-M2.7 | MiniMax-M2.7 | MiniMax-M2.5 |
487
- | Ollama | hf.co/prithivMLmods/VibeThinker-3B-GGUF | llama3.3 | llama3.2 |
488
452
 
489
453
  ### Usage
490
454
 
@@ -515,14 +479,13 @@ Choose how many consultants to use:
515
479
 
516
480
  | Preset | Consultants | Tier | Use Case |
517
481
  |--------|-------------|------|----------|
518
- | `max_quality` | 7 (all) + debate + reflection | Premium | Critical decisions |
482
+ | `max_quality` | 8 + debate + reflection | Premium | Critical decisions |
519
483
  | `medium` | 4 + light debate | Standard | General questions |
520
484
  | `fast` | 2 | Economy | Quick checks |
521
485
  | `minimal` | 2 (Gemini + Codex) | Default | Quick questions, low cost |
522
- | `balanced` | 4 (+ Mistral + Kilo) | Default | Standard consultations |
523
- | `thorough` | 5 (+ Cursor) | Default | Comprehensive analysis |
524
- | `high-stakes` | All + debate | Default | Critical decisions |
525
- | `local` | Ollama only | Economy | Full privacy |
486
+ | `balanced` | 4 (+ Mistral + Cursor) | Default | Standard consultations |
487
+ | `thorough` | 4 | Default | Comprehensive analysis |
488
+ | `high-stakes` | Expanded panel + debate | Default | Critical decisions |
526
489
  | `security` | Security-focused + debate | Default | Security reviews |
527
490
  | `cost-capped` | Budget-conscious | Default | Minimal API costs |
528
491
 
@@ -560,21 +523,67 @@ $EDITOR ~/.config/ai-consultants/.env
560
523
  For ad-hoc overrides without persisting, the most common knobs:
561
524
 
562
525
  ```bash
563
- DEFAULT_PRESET=balanced # minimal | balanced | thorough | high-stakes | fast | local | security
526
+ DEFAULT_PRESET=balanced # minimal | balanced | thorough | high-stakes | fast | security
564
527
  DEFAULT_STRATEGY=majority # majority | risk_averse | security_first | cost_capped | compare_only
565
528
  ENABLE_DEBATE=true # Multi-agent debate (auto-skipped when consensus is high since v2.13)
566
- ENABLE_OLLAMA=true # Enable local Ollama consultant
567
529
  MAX_SESSION_COST=1.00 # USD budget cap (paired with ENABLE_BUDGET_LIMIT=true to enforce)
530
+ KIMI_MODEL=kimi-code/k3 # Pin the Kimi consultant to K3
531
+ ```
532
+
533
+ Full reference: [`references/configuration.md`](references/configuration.md). Copy-paste workflows: [`docs/RECIPES.md`](docs/RECIPES.md). For category-aware preset suggestions: `ai-consultants doctor --suggest-preset --question "..."`.
534
+
535
+ ### Configuration Recipes
536
+
537
+ **Dynamic debate until convergence:**
538
+
539
+ ```bash
540
+ ENABLE_DEBATE=true \
541
+ ORCHESTRATION_MODE=converge \
542
+ CONVERGENCE_MAX_ROUNDS=4 \
543
+ CONVERGENCE_TARGET_CONSENSUS=75 \
544
+ ai-consultants --strategy risk_averse \
545
+ "Event log or mutable relational state for this service?"
546
+ ```
547
+
548
+ **Repeatable two-round review:**
549
+
550
+ ```bash
551
+ ENABLE_DEBATE=true \
552
+ ORCHESTRATION_MODE=fixed \
553
+ DEBATE_ROUNDS=2 \
554
+ ENABLE_DEBATE_OPTIMIZATION=false \
555
+ ai-consultants "Review this migration plan" docs/migration.md@PRIMARY
556
+ ```
557
+
558
+ **Security review with adversarial verification:**
559
+
560
+ ```bash
561
+ ENABLE_DEBATE=true \
562
+ ORCHESTRATION_MODE=adversarial \
563
+ ENABLE_PEER_REVIEW=true \
564
+ ai-consultants --preset security --strategy security_first \
565
+ "Find authentication bypasses" src/auth.ts@PRIMARY
568
566
  ```
569
567
 
570
- Full reference (~150 vars): [`references/configuration.md`](references/configuration.md). For category-aware preset suggestions: `ai-consultants doctor --suggest-preset --question "..."`.
568
+ **Live health gate plus hard quorum:**
569
+
570
+ ```bash
571
+ ENABLE_HEALTH_GATE=true \
572
+ QUORUM_MIN=3 \
573
+ QUORUM_ACTION=stop \
574
+ ai-consultants "Make a release recommendation"
575
+ ```
576
+
577
+ See [13 complete recipes](docs/RECIPES.md) for fast, high-stakes, tournament,
578
+ exhaustive audit, budget-capped, CLI-only, hybrid API, semantic-consensus, and
579
+ large-context workflows.
571
580
 
572
581
  ### Doctor Command
573
582
 
574
583
  Diagnose, suggest, and fix:
575
584
 
576
585
  ```bash
577
- ai-consultants doctor # 22 health checks (CLI installed?)
586
+ ai-consultants doctor # Installation and configuration checks
578
587
  ai-consultants doctor --fix # Auto-fix common issues
579
588
  ai-consultants doctor --json # JSON for automation
580
589
  ai-consultants doctor --live # Real ping per consultant — catches installed-but-unauthenticated CLIs
@@ -596,7 +605,7 @@ Classify -> Plan shape -> Fan out -> Deliberate & converge -> Synthesize
596
605
  category orchestration Gemini (8) convergence loop /
597
606
  complexity shape Codex (7) adversarial gate /
598
607
  intent Mistral (6) tournament / exhaustive
599
- Kilo (9)
608
+ Cursor (9)
600
609
  ```
601
610
 
602
611
  The **shape** is chosen per question (or pinned via `ORCHESTRATION_MODE`):
@@ -630,7 +639,7 @@ Each consultation generates:
630
639
  ├── gemini.json # Individual responses
631
640
  ├── codex.json # with confidence scores
632
641
  ├── mistral.json
633
- ├── kilo.json
642
+ ├── cursor.json
634
643
  ├── voting.json # Consensus calculation
635
644
  ├── synthesis.json # Weighted recommendation
636
645
  ├── report.md # Human-readable report
@@ -660,7 +669,7 @@ Each consultation generates:
660
669
  ### Security
661
670
 
662
671
  - **Never** include credentials or API keys in queries
663
- - Use `--preset local` for sensitive code
672
+ - Review and redact sensitive code before sending it to any external consultant
664
673
  - Files in `/tmp` are automatically cleaned up
665
674
 
666
675
  ---
@@ -668,6 +677,7 @@ Each consultation generates:
668
677
  ## Documentation
669
678
 
670
679
  - [Setup Guide](docs/SETUP.md) - Installation, authentication, Claude Code setup
680
+ - [Configuration Recipes](docs/RECIPES.md) - Copy-paste workflows for debate, routing, budgets, and transport
671
681
  - [Cost Rates](docs/COST_RATES.md) - Model pricing and budgets
672
682
  - [Smart Routing](docs/SMART_ROUTING.md) - Category-based routing
673
683
  - [JSON Schema](docs/JSON_SCHEMA.md) - Output format specification
@@ -678,6 +688,11 @@ Each consultation generates:
678
688
 
679
689
  ## Changelog
680
690
 
691
+ ### v2.21.1
692
+
693
+ - **Kimi K3**: Kimi now defaults to `kimi-code/k3`, and the adapter passes the model explicitly with `--model`.
694
+ - **Focused 11-consultant roster**: Kilo, Aider, Amp, and Ollama were removed end-to-end, including their adapters and configuration variables. See the [v2.21.1 release note](docs/releases/v2.21.1.md) for migration guidance.
695
+
681
696
  ### v2.15.1
682
697
 
683
698
  - **Gemini fixes (Antigravity CLI)**: the default model (`Gemini 3.1 Pro (High)`) wraps its JSON in a ```` ```json ```` fence; v2.15.0 didn't strip it, so every Gemini reply degraded to a generic fallback. Now de-fenced on all paths (response processing, self-reflection, synthesis).
package/SKILL.md CHANGED
@@ -1,14 +1,14 @@
1
1
  ---
2
2
  name: ai-consultants
3
- description: Consult Gemini CLI, Codex CLI, Mistral Vibe, Kilo CLI, Cursor, Claude, Amp, Kimi, Qwen, MiniMax, and Ollama as external experts for coding questions. Automatically excludes the invoking agent from the panel to avoid self-consultation. Use when you have doubts about implementations, want a second opinion, need to choose between different approaches, or when explicitly requested with phrases like "ask the consultants", "what do the other models think", "compare solutions", "get expert opinions", "I'm not sure about this approach", "what would other models say". Make sure to consult this skill whenever the user is weighing trade-offs, comparing architectures, validating complex solutions, or wants multiple perspectives on any non-trivial coding decision. Do NOT use for simple questions that only need one model's answer or when you already have high confidence in a solution.
3
+ description: Consult Gemini, Codex, Mistral Vibe, Cursor, Claude, Kimi, Qwen, MiniMax, GLM, Grok, and DeepSeek as external experts for coding questions. Automatically excludes the invoking agent from the panel to avoid self-consultation. Use when you have doubts about implementations, want a second opinion, need to choose between different approaches, or when explicitly requested with phrases like "ask the consultants", "what do the other models think", "compare solutions", "get expert opinions", "I'm not sure about this approach", "what would other models say". Make sure to consult this skill whenever the user is weighing trade-offs, comparing architectures, validating complex solutions, or wants multiple perspectives on any non-trivial coding decision. Do NOT use for simple questions that only need one model's answer or when you already have high confidence in a solution.
4
4
  license: MIT
5
5
  compatibility: Requires bash, jq, and at least 2 AI CLI tools (agy, codex, vibe, etc.). macOS and Linux.
6
6
  metadata:
7
7
  author: matteoscurati
8
- version: 2.21.0
8
+ version: 2.21.1
9
9
  ---
10
10
 
11
- # AI Consultants v2.21.0 - AI Expert Panel
11
+ # AI Consultants v2.21.1 - AI Expert Panel
12
12
 
13
13
  **A harness for every question.** Convene a panel of AI "consultants" for coding questions — and let the engine pick *how* they deliberate: a quick read, a convergence loop, an adversarial refutation gate, a tournament, or an exhaustive sweep. Each consultant has a **configurable persona** that shapes its analysis.
14
14
 
@@ -35,15 +35,11 @@ Configuration (presets, strategies, features, personas, API keys) can be managed
35
35
  | **Google Gemini** | `agy` | The Architect | Design patterns, scalability |
36
36
  | **OpenAI Codex** | `codex` | The Pragmatist | Simplicity, proven solutions |
37
37
  | **Mistral Vibe** | `vibe` | The Devil's Advocate | Edge cases, vulnerabilities |
38
- | **Kilo Code** | `kilocode` | The Innovator | Creativity, unconventional |
39
38
  | **Cursor** | `agent` | The Integrator | Full-stack perspective |
40
- | **Aider** | `aider` | The Pair Programmer | Collaborative coding |
41
- | **Amp** | `amp` | The Systems Thinker | System design, interactions |
42
- | **Kimi** | `kimi` | The Eastern Sage | Holistic, balanced perspectives |
39
+ | **Kimi K3** | `kimi` | The Eastern Sage | Holistic, balanced perspectives |
43
40
  | **Claude** | `claude` | The Synthesizer | Big picture, synthesis |
44
41
  | **Qwen** | `qwen` | The Analyst | Data-driven, metrics |
45
42
  | **MiniMax** | `mmx` | The Pragmatic Optimizer | Performance, efficiency, pragmatism |
46
- | **Ollama** | `ollama` | The Local Expert | Privacy-first, zero cost |
47
43
 
48
44
  **API-only consultants**: GLM (The Methodologist), Grok (The Provocateur), DeepSeek (The Code Specialist)
49
45
 
@@ -110,7 +106,7 @@ ENABLE_PANIC_MODE=auto # Auto-rigor for uncertainty
110
106
  ENABLE_BUDGET_LIMIT=false # Budget enforcement (v2.4)
111
107
  ```
112
108
 
113
- Enable opt-in consultants: `ENABLE_AMP`, `ENABLE_KIMI`, `ENABLE_QWEN3`, `ENABLE_CLAUDE`, `ENABLE_OLLAMA`, `ENABLE_MINIMAX`.
109
+ Enable opt-in consultants: `ENABLE_KIMI`, `ENABLE_QWEN3`, `ENABLE_CLAUDE`, `ENABLE_MINIMAX`.
114
110
 
115
111
  CLI/API switching: `GEMINI_USE_API`, `CODEX_USE_API`, `CLAUDE_USE_API`, `MISTRAL_USE_API`, `QWEN3_USE_API`.
116
112
 
@@ -161,6 +157,7 @@ Run `./scripts/doctor.sh` to diagnose issues, or `./scripts/doctor.sh --fix` to
161
157
 
162
158
  - [Reference Details](references/details.md) - Presets, strategies, best practices, limitations
163
159
  - [Full Configuration](references/configuration.md) - All environment variables, models, tiers, timeouts
160
+ - [Configuration Recipes](docs/RECIPES.md) - Copy-paste workflows for debate, routing, budgets, and transport
164
161
  - [Setup Guide](docs/SETUP.md) - Installation, authentication
165
162
  - [Cost Rates](docs/COST_RATES.md) - Model pricing
166
163
  - [Smart Routing](docs/SMART_ROUTING.md) - Category routing
@@ -1,4 +1,4 @@
1
- # Cost Rates - AI Consultants v2.21.0
1
+ # Cost Rates - AI Consultants v2.21.1
2
2
 
3
3
  This page documents the per-token rates used by the cost tracking system.
4
4
 
@@ -24,9 +24,8 @@ Since v2.5, models are organized into three tiers. Use `apply_model_tier()` or `
24
24
  | Gemini 3.5 Flash (High) | Standard | $0.0015 | Gemini (agy CLI) |
25
25
  | Gemini 3.5 Flash (Low) | Economy | $0.0015 | Gemini (agy CLI) |
26
26
  | gpt-5.5 | Premium | $0.005 | Codex |
27
- | gpt-5.4 | Standard | $0.0025 | Codex/Aider |
28
- | gpt-5.4-nano | Economy | $0.0002 | Codex/Aider |
29
- | qwen3-coder:free | Premium | $0.00 | Aider |
27
+ | gpt-5.4 | Standard | $0.0025 | Codex |
28
+ | gpt-5.4-nano | Economy | $0.0002 | Codex |
30
29
  | claude-opus-4-8 | Premium | $0.005 | Claude |
31
30
  | claude-sonnet-4-6 | Standard | $0.003 | Claude |
32
31
  | claude-haiku-4-5 | Economy | $0.001 | Claude |
@@ -40,16 +39,14 @@ Since v2.5, models are organized into three tiers. Use `apply_model_tier()` or `
40
39
  | deepseek-v4-flash | Standard/Economy | $0.00014 | DeepSeek |
41
40
  | glm-5.2 | Premium/Standard | $0.00098 | GLM |
42
41
  | glm-4-flash | Economy | $0.001 | GLM |
43
- | grok-4.3 | Premium | $0.00125 | Grok |
42
+ | grok-4.5 | Premium | $0.002 | Grok |
44
43
  | grok-4.1-fast | Standard/Economy | $0.0002 | Grok |
45
44
  | qwen3.7-max | Premium | $0.0012 | Qwen3 |
46
45
  | qwen3.6-35b-a3b | Standard | $0.000163 | Qwen3 |
47
46
  | qwen3-32b | Economy | $0.0004 | Qwen3 |
48
47
  | MiniMax-M2.7 | Premium/Standard | $0.00025 | MiniMax |
49
48
  | MiniMax-M2.5 | Economy | $0.000255 | MiniMax |
50
- | kimi-code/kimi-for-coding | Premium/Standard | $0.0005 | Kimi |
51
- | hf.co/prithivMLmods/VibeThinker-3B-GGUF | All | $0.00 | Ollama (local) |
52
- | auto | All | $0.002 | Kilo (internal routing) |
49
+ | kimi-code/k3 | Premium/Standard/Economy | $0.0005 | Kimi |
53
50
  | default | - | $0.005 | Fallback |
54
51
 
55
52
  ### Output Tokens
@@ -60,9 +57,8 @@ Since v2.5, models are organized into three tiers. Use `apply_model_tier()` or `
60
57
  | Gemini 3.5 Flash (High) | Standard | $0.009 | Gemini (agy CLI) |
61
58
  | Gemini 3.5 Flash (Low) | Economy | $0.009 | Gemini (agy CLI) |
62
59
  | gpt-5.5 | Premium | $0.030 | Codex |
63
- | gpt-5.4 | Standard | $0.015 | Codex/Aider |
64
- | gpt-5.4-nano | Economy | $0.00125 | Codex/Aider |
65
- | qwen3-coder:free | Premium | $0.00 | Aider |
60
+ | gpt-5.4 | Standard | $0.015 | Codex |
61
+ | gpt-5.4-nano | Economy | $0.00125 | Codex |
66
62
  | claude-opus-4-8 | Premium | $0.025 | Claude |
67
63
  | claude-sonnet-4-6 | Standard | $0.015 | Claude |
68
64
  | claude-haiku-4-5 | Economy | $0.005 | Claude |
@@ -76,16 +72,14 @@ Since v2.5, models are organized into three tiers. Use `apply_model_tier()` or `
76
72
  | deepseek-v4-flash | Standard/Economy | $0.00028 | DeepSeek |
77
73
  | glm-5.2 | Premium/Standard | $0.00308 | GLM |
78
74
  | glm-4-flash | Economy | $0.003 | GLM |
79
- | grok-4.3 | Premium | $0.0025 | Grok |
75
+ | grok-4.5 | Premium | $0.006 | Grok |
80
76
  | grok-4.1-fast | Standard/Economy | $0.0005 | Grok |
81
77
  | qwen3.7-max | Premium | $0.006 | Qwen3 |
82
78
  | qwen3.6-35b-a3b | Standard | $0.0009 | Qwen3 |
83
79
  | qwen3-32b | Economy | $0.0016 | Qwen3 |
84
80
  | MiniMax-M2.7 | Premium/Standard | $0.001 | MiniMax |
85
81
  | MiniMax-M2.5 | Economy | $0.001 | MiniMax |
86
- | kimi-code/kimi-for-coding | Premium/Standard | $0.002 | Kimi |
87
- | hf.co/prithivMLmods/VibeThinker-3B-GGUF | All | $0.00 | Ollama (local) |
88
- | auto | All | $0.006 | Kilo |
82
+ | kimi-code/k3 | Premium/Standard/Economy | $0.002 | Kimi |
89
83
  | default | - | $0.015 | Fallback |
90
84
 
91
85
  ## Cost Estimation per Session
@@ -207,7 +207,7 @@ Present only if Multi-Agent Debate is enabled (round >= 2):
207
207
  ### consultant
208
208
 
209
209
  ```
210
- "Gemini" | "Codex" | "Mistral" | "Kilo" | "Cursor" | "Aider" | "Amp" | "Kimi" | "Claude" | "Qwen3" | "GLM" | "Grok" | "DeepSeek" | "MiniMax" | "Ollama"
210
+ "Gemini" | "Codex" | "Mistral" | "Cursor" | "Kimi" | "Claude" | "Qwen3" | "GLM" | "Grok" | "DeepSeek" | "MiniMax"
211
211
  ```
212
212
 
213
213
  ### persona