ai-consultants 2.22.0 → 2.24.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.
- package/.env.example +0 -4
- package/CLAUDE.md +37 -18
- package/README.md +25 -9
- package/SKILL.md +2 -2
- package/bin/ai-consultants +19 -0
- package/docs/COST_RATES.md +1 -9
- package/docs/RECIPES.md +0 -2
- package/docs/cost_rates.json +1 -1
- package/docs/releases/v2.23.0.md +75 -0
- package/docs/releases/v2.24.0.md +88 -0
- package/package.json +2 -1
- package/references/configuration.md +0 -2
- package/scripts/config.sh +5 -17
- package/scripts/consult_all.sh +1 -1
- package/scripts/install.sh +50 -4
- package/scripts/lib/common.sh +15 -1
- package/scripts/lib/reflection.sh +0 -452
- package/scripts/release.sh +0 -220
package/.env.example
CHANGED
|
@@ -207,10 +207,6 @@ SYNTH_MAX=10
|
|
|
207
207
|
ENABLE_DEBATE=false
|
|
208
208
|
DEBATE_ROUNDS=1 # 1 = no debate, 2-3 = with cross-critique
|
|
209
209
|
|
|
210
|
-
# Self-Reflection (experimental): generate-critique-refine loop
|
|
211
|
-
ENABLE_REFLECTION=false
|
|
212
|
-
REFLECTION_CYCLES=1
|
|
213
|
-
|
|
214
210
|
# Peer Review: anonymous evaluation
|
|
215
211
|
ENABLE_PEER_REVIEW=false
|
|
216
212
|
PEER_REVIEW_MIN_RESPONSES=3
|
package/CLAUDE.md
CHANGED
|
@@ -6,7 +6,7 @@ AI Consultants is a multi-model AI deliberation system that queries up to 11 AI
|
|
|
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.
|
|
9
|
+
**Version**: 2.24.0
|
|
10
10
|
|
|
11
11
|
## Distribution
|
|
12
12
|
|
|
@@ -64,8 +64,7 @@ ai-consultants/
|
|
|
64
64
|
│ ├── costs.sh # Cost tracking + response limits
|
|
65
65
|
│ ├── cache.sh # Semantic caching (v2.3)
|
|
66
66
|
│ ├── api_query.sh # API mode query execution (v2.6)
|
|
67
|
-
│
|
|
68
|
-
│ └── reflection.sh # Self-reflection + judge step
|
|
67
|
+
│ └── progress.sh # Progress bars
|
|
69
68
|
├── references/
|
|
70
69
|
│ ├── configuration.md # Full configuration reference
|
|
71
70
|
│ └── details.md # Presets, strategies, best practices
|
|
@@ -194,7 +193,7 @@ Functions in `lib/common.sh`:
|
|
|
194
193
|
### Configuration Presets
|
|
195
194
|
```bash
|
|
196
195
|
# Quality Tier Presets (v2.5)
|
|
197
|
-
./scripts/consult_all.sh --preset max_quality "question" #
|
|
196
|
+
./scripts/consult_all.sh --preset max_quality "question" # 8 of 11 consultants + premium models + peer review
|
|
198
197
|
./scripts/consult_all.sh --preset medium "question" # 4 consultants + standard models
|
|
199
198
|
./scripts/consult_all.sh --preset fast "question" # 2 consultants + economy models
|
|
200
199
|
|
|
@@ -252,12 +251,6 @@ Process:
|
|
|
252
251
|
3. Aggregate peer scores to identify strongest arguments
|
|
253
252
|
4. De-anonymize in final report
|
|
254
253
|
|
|
255
|
-
### Judge Step (Overconfidence Detection)
|
|
256
|
-
Functions in `lib/reflection.sh`:
|
|
257
|
-
- `judge_response()` - Evaluates single response for overconfidence
|
|
258
|
-
- `heuristic_overconfidence_check()` - Fast fallback without LLM
|
|
259
|
-
- `judge_all_responses()` - Batch evaluation
|
|
260
|
-
|
|
261
254
|
## v2.9 Features
|
|
262
255
|
|
|
263
256
|
### Kimi CLI Support
|
|
@@ -410,7 +403,7 @@ get_model_for_tier "claude" "economy" # → claude-haiku-4-5
|
|
|
410
403
|
Three new presets leverage the model tiers:
|
|
411
404
|
|
|
412
405
|
```bash
|
|
413
|
-
# Maximum quality - all premium models + debate +
|
|
406
|
+
# Maximum quality - all premium models + debate + peer review
|
|
414
407
|
./scripts/consult_all.sh --preset max_quality "critical architecture decision"
|
|
415
408
|
|
|
416
409
|
# Balanced quality - standard models, 4 consultants, light debate
|
|
@@ -726,15 +719,21 @@ Manual lint of the full repo: `npm run lint`. Bypass the hook: `git commit --no-
|
|
|
726
719
|
|
|
727
720
|
Every version bump **must** include a release note in `docs/releases/v<VERSION>.md`. Use the template below.
|
|
728
721
|
|
|
722
|
+
**The whole flow is automated by the maintainer's `ai-consultants-release` skill — run `/ai-consultants-release <VERSION>` from anywhere inside this checkout.** It orchestrates the steps below and refuses to proceed when a surface is missing.
|
|
723
|
+
|
|
724
|
+
That skill deliberately lives **outside this repository**, at `~/.claude/skills/ai-consultants-release/`, and is not distributed. `scripts/install.sh` git-clones this entire repo into `~/.claude/skills/ai-consultants`, so anything under a `.claude/skills/` directory here reaches every `curl | bash` user — and release tooling that pushes tags and deploys the showcase site must not. The skill's own `references/surfaces.md` is the authoritative map of every release surface; this section is the summary.
|
|
725
|
+
|
|
726
|
+
Consequence worth knowing: the skill's `finalize.sh` re-verifies the same version surfaces `scripts/release.sh` owns, and the two now live in different places with nothing making them drift together. `finalize.sh` compares its arity against that script's `SURFACES` array on every run and aborts if they disagree — so **adding or removing a surface in `scripts/release.sh` will correctly fail the next release until the skill is updated to match.** That is the tradeoff for not shipping release tooling to users.
|
|
727
|
+
|
|
729
728
|
### Steps
|
|
730
729
|
|
|
731
|
-
1. **
|
|
732
|
-
2. **
|
|
733
|
-
3. **
|
|
734
|
-
4. **
|
|
735
|
-
5. **
|
|
736
|
-
6. **
|
|
737
|
-
7. **
|
|
730
|
+
1. **Preflight**: `~/.claude/skills/ai-consultants-release/scripts/preflight.sh <VERSION>` — read-only gate on both repos (branch, cleanliness, origin sync, forward semver, free tag, tooling)
|
|
731
|
+
2. **Bump the version**: `scripts/release.sh <VERSION>` — rewrites 9 anchored surfaces across 7 files (`package.json`, `scripts/config.sh`, `SKILL.md` ×2, `README.md` ×2, `CLAUDE.md`, `docs/cost_rates.json`, `docs/COST_RATES.md`), validates them, and runs `npm test` + `npm run lint`. Never commits, tags, or publishes.
|
|
732
|
+
3. **Write the three changelogs** (hand-written — see "Why three changelog surfaces?" below): `CHANGELOG.md` entry at the top, `## Changelog` entry in this file, and `docs/releases/v<VERSION>.md`
|
|
733
|
+
4. **Update workspace sync surfaces**: `../CLAUDE.md` workspace guide ("Latest at time of last sync" + Recent release line)
|
|
734
|
+
5. **Finalize**: `~/.claude/skills/ai-consultants-release/scripts/finalize.sh <VERSION> --message-file … --tag-message-file …` — re-verifies all 9 version surfaces *and* the 3 doc surfaces, re-runs the gate, then commits, creates the annotated tag, and pushes both
|
|
735
|
+
6. **Publishing is automatic**: pushing the `v*` tag triggers `.github/workflows/publish.yml`, which re-runs the gate, verifies the tag matches `package.json`, publishes to npm via **Trusted Publishing (OIDC — no `NPM_TOKEN`)** with provenance, and creates the GitHub release from the release note. Both terminal steps are idempotent, so a failed run can be re-run after a fix — **never move or delete a pushed tag**, and never `npm publish` from a workstation.
|
|
736
|
+
7. **Sync the showcase site last**: `~/.claude/skills/ai-consultants-release/scripts/sync_site.sh <VERSION> --message-file …` waits for npm to actually serve the version, bumps `index.html` (`softwareVersion` schema + badge), then commits and pushes. Editorial copy (roster, feature cards, presets table, install commands) is hand-edited before running it. The wait enforces the npx timing rule: a subcommand advertised as `npx ai-consultants <cmd>` before publication does not error — `bin/` routes an unknown argument to `consult_all.sh`, starting a real **billable** consultation.
|
|
738
737
|
|
|
739
738
|
**Why three changelog surfaces?** They serve different audiences:
|
|
740
739
|
- `CLAUDE.md ## Changelog` — what the *next maintainer* needs (file/line references, rationale, latent bugs uncovered)
|
|
@@ -802,6 +801,26 @@ curl -fsSL https://raw.githubusercontent.com/matteoscurati/ai-consultants/main/s
|
|
|
802
801
|
|
|
803
802
|
## Changelog
|
|
804
803
|
|
|
804
|
+
### v2.24.0
|
|
805
|
+
- **Stale slash commands are finally removed on install/update, on both entry points.** `scripts/install.sh` and `bin/ai-consultants install` only ever `cp`'d `.claude/commands/*.md` into `~/.claude/commands`, never pruning — so a command deleted from the repo lived on the user's machine indefinitely. Measured on a real installation: **14 `ai-consultants:*.md` installed, 4 of which this repo still ships.** The other ten were dropped by `9ae73e3` (v2.10.0, "command consolidation") and had been dead for 13 releases. Not inert — they stay invocable, and `config-features.md` tells the user to set `ENABLE_REFLECTION`, removed in v2.23.0 and now rejected by `configure --set` with a non-zero exit. New `prune_removed_commands()` in `install.sh` plus an inline equivalent in `bin/ai-consultants`; both scoped to the `ai-consultants:*.md` namespace. **Known and accepted bound**: within that namespace it also removes a user-authored command, because nothing distinguishes it from one of ours deleted upstream. Documented in `CHANGELOG.md` rather than worked around.
|
|
806
|
+
- **`bin/ai-consultants install` was initially missed** — the first cut of the fix landed only in `install.sh`, leaving npx users (the path the shipped `bin` help and `docs/releases/v2.19.2.md` advertise) with exactly the stale commands the fix targeted. Caught by the `/code-review max` pass, not by tests.
|
|
807
|
+
- **`install.sh` gained a define-only source guard, and its first placement was destructive.** The guard (`AI_CONSULTANTS_INSTALL_DEFINE_ONLY`) exists so `test_install.sh` can source the file for its helpers without the installer running. It was placed at line 240 — *below* the argument parser (line 145) and *below* the uninstall block (line 179). A sourced script inherits the **caller's** positional parameters, so `bash scripts/test_install.sh --uninstall` had `install.sh` parse the suite's own flag and execute the real uninstall: `rm -rf` on the installed skill plus every `~/.claude/commands/ai-consultants*.md`. Reproduced in a sandboxed `HOME` with a canary file before fixing, and re-verified after. The guard and `prune_removed_commands()` now sit above the parser, with the invariant stated inline: nothing above the guard may act, and anything below it must be safe to skip. Milder instance of the same root cause: `./scripts/test_install.sh --verbose` exited 1 printing `install.sh`'s help.
|
|
808
|
+
- **`scripts/release.sh` dropped from the npm tarball** (`package.json` `files` gains `!scripts/release.sh`). It is the last maintainer-only artifact in the package now that `.claude/skills/` is gone; `bin/ai-consultants` does not route it, so `npx ai-consultants release` reaches the consult fallback, not the script. **Deliberately kept** after checking their consumers: `roster_audit.sh` (backs the shipped `roster-audit` slash command and `doctor --roster-audit`), `roster_calibrate.sh` / `taste_elo.sh` / `run_calibration.sh` (documented for users in the shipped `docs/SMART_ROUTING.md`), `install-hooks.sh` (wired to a `package.json` script, and `CHANGELOG.md` records it as safe for tarball consumption).
|
|
809
|
+
- **Release tooling moved out of the repository entirely** (`6a4e70d`, `95d2e29`, `384a1cd`). `scripts/install.sh` git-clones the whole repo into `~/.claude/skills/ai-consultants`, making `.claude/skills/` a distribution channel — confirmed on a real install, which carried both `release` and `verify`. Shipping tooling that pushes tags and deploys the showcase site to end users is both useless and dangerous, so the release and verify skills now live in the maintainer's `~/.claude/skills/`, and this repo has **no** `.claude/skills/` directory. Keep it that way; if a future skill must be in-tree, prune it in `install.sh` after the clone. New `.github/workflows/publish.yml` publishes to npm via **Trusted Publishing (OIDC, no `NPM_TOKEN`)** on a `v*` tag push and creates the GitHub release from `docs/releases/v<VERSION>.md`; it re-runs the full gate because `ci.yml` only covers branches and PRs, and verifies all nine version surfaces server-side (checking only `package.json` would let a hand-bumped tag publish a package whose `config.sh`/`SKILL.md`/`README.md` still report the previous version — unfixable, since npm forbids republishing).
|
|
810
|
+
- **Two test-harness weaknesses fixed, both found by breaking them on purpose.** `lib/test_helpers.sh::test_summary` now fails a suite that ran zero assertions: `run_test` takes `"<name>" <function>`, and given the function alone the name absorbs it, `shift` empties the list, `"$@"` expands to nothing — no test runs and the suite exits 0. That is the v2.23.0 `test_functions.sh` fix one level up (that one scored a test by its last assertion; this one scored a suite that had none). The guard only covers suites calling `test_summary`, so `test_routing_parity.sh` got the same check inline, and `test_set_e_safety.sh` — a static lint with no assertion counter — now asserts its scan corpus is non-empty, since a lint that scans nothing reports "zero occurrences" and passes forever.
|
|
811
|
+
- **`test_configure.sh`'s parameter-contract scan correctly flagged the new test hook.** It walks every `${VAR:-}` in non-test scripts and demands each be a declared config parameter; `AI_CONSULTANTS_INSTALL_DEFINE_ONLY` joins the existing internal hooks (`SKIP_GATE`, `ROOT`, `FORCE`) in its exclusion list. The test did its job on a change it had no knowledge of.
|
|
812
|
+
- **New `scripts/test_install.sh`** (12 assertions, `npm test` now 21 suites): prunes what upstream dropped, keeps what it ships, ignores other tools' commands and lookalike filenames, no-ops on a fresh install (glob matches nothing) and on an absent commands directory, and asserts the define-only guard is still present so a refactor that drops it fails loudly rather than making `npm test` clone.
|
|
813
|
+
- **Cosmetic, found while sweeping for dead code**: three SKIP lines in `test_context_optimization.sh` used plain `echo` with `${C_YELLOW}`, which under bash prints a literal `\033[33m` instead of colour (zsh's builtin `echo` interprets escapes, which masked it during the first check). Now `echo -e`. `C_YELLOW` itself is **not** dead despite shellcheck SC2034 — that suite sources `test_helpers.sh` and uses it; shellcheck analyses one file at a time, which is why its message says "or export if used externally".
|
|
814
|
+
|
|
815
|
+
### v2.23.0
|
|
816
|
+
- **`lib/reflection.sh` deleted (452 lines) and `ENABLE_REFLECTION` / `REFLECTION_CYCLES` removed.** The module was never sourced — `grep -rn 'reflection\.sh' scripts/` matched only the file's own header — so the generate-critique-refine loop had never executed. The two flags were declared at `config.sh` and exported by four presets (`high-stakes`, `max_quality`, `fast`, `_disable_all_consultants`) with no consumer anywhere. It had also aged past the codebase: `_exec_consultant` hardcoded a Gemini/Codex/Mistral case (3 of 11 consultants; the rest hit `*) return 1`) and its Gemini branch still used the pre-`agy` CLI syntax retired in v2.15.0 — so wiring it up as written would have produced partial reflection with a broken Gemini path. Removed rather than implemented because v2.16's `converge`/`adversarial` shapes already run critique-refine off measured consensus rather than a fixed cycle count. Worth noting for archaeology: the module was *maintained* in at least three review passes (v2.15.1 de-fencing, the `--model` parity change, the v2.10.9 `((var++))` sweep) — effort spent on code that never ran.
|
|
817
|
+
- **The release gate had been red since 2.22.0 and nobody could see it.** `scripts/release.sh:26` sources `lib/common.sh` → `config.sh` → `load_user_config` *before* `npm test` at line 194, so `_apply_env_file`'s `export "$key=$value"` put the maintainer's entire `~/.config/ai-consultants/.env` into the test environment. Two suites were not hermetic against that, and the first aborted the run before the second could surface:
|
|
818
|
+
- **`test_user_config.sh`** — `test_xdg_fallback` (Test 6) unsets `AI_CONSULTANTS_CONFIG_DIR` in the suite's own shell (required, to assert the XDG branch) and `_reset_state` never restored it, so the unset leaked into all 22 later tests, which then read the *real* user config. Fixed by re-exporting an empty temp dir in `_reset_state`, making isolation order-independent; tests that legitimately override the dir per-invocation are unaffected. Plus the whole `*_USE_API` set unset at suite top (the guard `test_configure.sh` already carried), and `ENABLE_KIMI`/`GROK_API_URL` (Test 27) and `GEMINI_MODEL`/`PANIC_KEYWORDS` (Test 28) unset inside their subshells — those assert on *real* var names and `load_user_config` lets the environment win over the file by design, so with `config.sh` pre-sourced the file under test was never consulted.
|
|
819
|
+
- **`test_configure.sh`** — `run_clean_configure` scrubbed the nine API keys but no settings, while `configure`'s `has_explicit_value` reads any ambient value as a deliberate pin. An exported `DEFAULT_PRESET` therefore overrode the value Tests 6 and 10 had just written into the file they assert on. The scrub set is now derived from `configure --show-parameters` — configure's own contract — with a hard failure if that list comes back empty, so the scrub can never silently degrade to a no-op. **Verified pre-existing**: the same two assertions fail at `2ac18d4` (the v2.22.0 release commit) under the same conditions, via a throwaway worktree.
|
|
820
|
+
- **`test_functions.sh` was under-reporting failures across the whole file.** `run_tests` scores a test by its exit status — that of its LAST command — so a failing assertion followed by a passing one printed `FAIL`, incremented nothing, and let the suite exit 0. 8 of the 13 test functions run more than one assertion and none accumulated a result. The five `assert_*` helpers now set `_ASSERT_FAILED` on every failure path and `run_tests` fails a test when either that flag or the exit status is non-zero. **Caught by trying to make the new pin fail**: the first version of `test_known_feature_flags_in_sync` printed `FAIL: ... Actual: PHANTOM_FEATURE` while the suite still reported "All tests passed". Verified against a pre-existing test by breaking the first of three assertions in `test_case_conversion` — previously green, now correctly red.
|
|
821
|
+
- **`KNOWN_FEATURE_FLAGS` synced (9 → 27) and pinned.** `_discover_custom_api_agents` (`consult_all.sh:48`) walks `env` and enrolls any `ENABLE_X=true` as a consultant when `X_API_URL` is set and `X` is absent from the registry, so the 18 missing flags — `PEER_REVIEW`, `HEALTH_GATE`, `SEMANTIC_CACHE`, … — were latent phantom consultants. Measured drift: 18 missing, 0 stale. `test_known_feature_flags_in_sync` derives the expected set from `config.sh`'s top-level `ENABLE_*` declarations minus `KNOWN_CLI_AGENTS`/`KNOWN_API_AGENTS` and asserts both directions, so the next added flag fails the build. (Checked that the `^ENABLE_` grep misses nothing declared only inside functions — the sole extra hit was `AGENTNAME`, from the convention's doc comment.)
|
|
822
|
+
- **Preset tables were documenting a mode that stopped being the default in v2.16.** Found by the `/code-review max` pass on the removal branch: renaming the README column from "Reflection" to "Peer Review" turned a code-enforced "No" into a false claim, because `_disable_all_consultants` exported `ENABLE_REFLECTION=false` — the line this release deletes — whereas nothing ever clears `ENABLE_PEER_REVIEW`. Combined with `consult_all.sh:285` force-enabling peer review for the adversarial shape, `--preset medium` on a SECURITY question runs a full billed peer-review round the table promised it would not. The Debate column was stale for the same reason (`DEBATE_ROUNDS` is only read under `ORCHESTRATION_MODE=fixed`). Both tables now state only what the preset pins, with the planner's role called out. Also corrected `max_quality`'s "All consultants" → 8 of 11, which contradicted the README table in the same commit.
|
|
823
|
+
|
|
805
824
|
### v2.22.0
|
|
806
825
|
- Added the public `ai-consultants configure` / `config` subcommand. Automatic mode detects every current consultant, uses CLI-first transport selection with API fallback when credentials are available, persists to the XDG user config directory, preserves custom values and secrets while refreshing availability-derived `ENABLE_*` flags, backs up rewrites, and keeps files at mode 600.
|
|
807
826
|
- Replaced the stale 1,092-line v2.0 configurator with a compact implementation whose accepted parameter surface is derived from `.env.example`. `--set KEY=VALUE` supports repeatable automation and participates in detection, `--interactive` reviews credentials/transports/panel selection, `--advanced` reviews every parameter, `--show-parameters` exposes the contract, and side-effect-free `--dry-run` redacts secrets.
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# AI Consultants v2.
|
|
1
|
+
# AI Consultants v2.24.0
|
|
2
2
|
|
|
3
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
|
-
[](https://github.com/matteoscurati/ai-consultants)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://docs.anthropic.com/en/docs/claude-code/skills)
|
|
8
8
|
[](https://github.com/matteoscurati/ai-consultants)
|
|
@@ -428,11 +428,19 @@ Choose the right balance of quality, speed, and cost with model quality tiers.
|
|
|
428
428
|
|
|
429
429
|
### Tier Presets
|
|
430
430
|
|
|
431
|
-
| Preset | Tier | Agents |
|
|
432
|
-
|
|
433
|
-
| `max_quality` | Premium | 8
|
|
434
|
-
| `medium` | Standard | 4 |
|
|
435
|
-
| `fast` | Economy | 2 |
|
|
431
|
+
| Preset | Tier | Agents | Use Case |
|
|
432
|
+
|--------|------|--------|----------|
|
|
433
|
+
| `max_quality` | Premium | 8 of 11 | Critical decisions |
|
|
434
|
+
| `medium` | Standard | 4 | General questions |
|
|
435
|
+
| `fast` | Economy | 2 | Quick checks |
|
|
436
|
+
|
|
437
|
+
**Deliberation depth is not fixed by the preset.** Under the default
|
|
438
|
+
`ORCHESTRATION_MODE=auto` the planner picks the shape per question, so the
|
|
439
|
+
`DEBATE_ROUNDS` a preset pins applies only under `ORCHESTRATION_MODE=fixed`,
|
|
440
|
+
and a `SECURITY`-classified question runs the adversarial shape — including a
|
|
441
|
+
peer-review round — whatever preset you chose. `max_quality` additionally
|
|
442
|
+
enables peer review outright; `medium` and `fast` do not *clear* it, so an
|
|
443
|
+
enabled peer review carries into them.
|
|
436
444
|
|
|
437
445
|
### Models by Tier
|
|
438
446
|
|
|
@@ -479,8 +487,8 @@ Choose how many consultants to use:
|
|
|
479
487
|
|
|
480
488
|
| Preset | Consultants | Tier | Use Case |
|
|
481
489
|
|--------|-------------|------|----------|
|
|
482
|
-
| `max_quality` | 8
|
|
483
|
-
| `medium` | 4
|
|
490
|
+
| `max_quality` | 8 of 11 (+ peer review) | Premium | Critical decisions |
|
|
491
|
+
| `medium` | 4 | Standard | General questions |
|
|
484
492
|
| `fast` | 2 | Economy | Quick checks |
|
|
485
493
|
| `minimal` | 2 (Gemini + Codex) | Default | Quick questions, low cost |
|
|
486
494
|
| `balanced` | 4 (+ Mistral + Cursor) | Default | Standard consultations |
|
|
@@ -717,6 +725,14 @@ Each consultation generates:
|
|
|
717
725
|
|
|
718
726
|
## Changelog
|
|
719
727
|
|
|
728
|
+
### v2.23.0
|
|
729
|
+
|
|
730
|
+
- **`ENABLE_REFLECTION` and `REFLECTION_CYCLES` removed.** The self-reflection module they controlled was never called by anything, so the settings had never affected a consultation — v2.16's `converge` and `adversarial` shapes already run critique-refine off measured consensus. **If you set either key**, remove it: `configure --set ENABLE_REFLECTION=...` now exits non-zero, and both keys are dropped when an existing `.env` is rewritten.
|
|
731
|
+
- **The release gate works again.** Two test suites failed deterministically against any real user configuration, so no release since 2.22.0 could pass its own `npm test`.
|
|
732
|
+
- **`npm test` no longer swallows failures.** A failing assertion followed by a passing one inside the same test function was counted as a pass, across 8 of 13 test functions.
|
|
733
|
+
- **Feature flags can no longer be enrolled as consultants.** A registry that told feature flags apart from custom API agents was 18 entries out of date; it is now complete and pinned by a test.
|
|
734
|
+
- **Preset tables corrected** — they described a debate and peer-review depth the code has not enforced since v2.16, and called `high-stakes`/`max_quality` "all consultants" when they enable 5 and 8 of 11. See the [v2.23.0 release note](docs/releases/v2.23.0.md).
|
|
735
|
+
|
|
720
736
|
### v2.22.0
|
|
721
737
|
|
|
722
738
|
- **`ai-consultants configure`**: a public automatic configurator. It detects your installed CLIs and API keys, picks CLI-first transports, and writes a private XDG config while preserving your existing settings and secrets. Drive it with repeatable `--set KEY=VALUE`, review it with `--interactive` / `--advanced`, or preview it with `--dry-run`. See the [v2.22.0 release note](docs/releases/v2.22.0.md).
|
package/SKILL.md
CHANGED
|
@@ -5,10 +5,10 @@ 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.
|
|
8
|
+
version: 2.24.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
# AI Consultants v2.
|
|
11
|
+
# AI Consultants v2.24.0 - 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
|
|
package/bin/ai-consultants
CHANGED
|
@@ -185,6 +185,25 @@ EOF
|
|
|
185
185
|
exit 1
|
|
186
186
|
fi
|
|
187
187
|
mkdir -p "$COMMANDS_DST"
|
|
188
|
+
|
|
189
|
+
# Prune commands this project no longer ships, before copying the current
|
|
190
|
+
# set in. Copying alone leaves a removed command installed forever: the
|
|
191
|
+
# v2.10.0 consolidation dropped ten, and config-features among them still
|
|
192
|
+
# tells users to set ENABLE_REFLECTION, which v2.23.0 removed and
|
|
193
|
+
# `configure --set` now rejects. scripts/install.sh does the same for the
|
|
194
|
+
# curl | bash path — both entry points must prune or npx users keep them.
|
|
195
|
+
pruned=0
|
|
196
|
+
for f in "$COMMANDS_DST"/ai-consultants:*.md; do
|
|
197
|
+
[ -e "$f" ] || continue
|
|
198
|
+
if [ ! -f "$COMMANDS_SRC/$(basename "$f")" ]; then
|
|
199
|
+
rm -f "$f"
|
|
200
|
+
pruned=$((pruned + 1))
|
|
201
|
+
fi
|
|
202
|
+
done
|
|
203
|
+
if [ "$pruned" -gt 0 ]; then
|
|
204
|
+
echo "Pruned $pruned slash command(s) removed in a previous release"
|
|
205
|
+
fi
|
|
206
|
+
|
|
188
207
|
copied=0
|
|
189
208
|
for f in "$COMMANDS_SRC"/ai-consultants:*.md; do
|
|
190
209
|
[ -f "$f" ] || continue
|
package/docs/COST_RATES.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Cost Rates - AI Consultants v2.
|
|
1
|
+
# Cost Rates - AI Consultants v2.24.0
|
|
2
2
|
|
|
3
3
|
This page documents the per-token rates used by the cost tracking system.
|
|
4
4
|
|
|
@@ -102,14 +102,6 @@ Since v2.5, models are organized into three tiers. Use `apply_model_tier()` or `
|
|
|
102
102
|
|
|
103
103
|
**Estimated cost:** $0.08 - $0.15
|
|
104
104
|
|
|
105
|
-
### With Self-Reflection
|
|
106
|
-
|
|
107
|
-
**Additional parameters:**
|
|
108
|
-
- Critique + refinement cycle per consultant
|
|
109
|
-
- ~500 additional tokens per cycle
|
|
110
|
-
|
|
111
|
-
**Estimated cost:** $0.10 - $0.20
|
|
112
|
-
|
|
113
105
|
## Budget Management
|
|
114
106
|
|
|
115
107
|
### Configuration Variables
|
package/docs/RECIPES.md
CHANGED
package/docs/cost_rates.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
2
|
+
"version": "2.24.0",
|
|
3
3
|
"updated": "2026-07-16",
|
|
4
4
|
"models": {
|
|
5
5
|
"_comment_units": "All rates are USD per 1,000 tokens (per-1K). lib/costs.sh computes cost as (token_count / 1000) * rate, so every value here MUST be a per-1K rate = (provider $/1M price) / 1000. Do NOT paste $/MTok figures directly.",
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Release v2.23.0
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-07-20
|
|
4
|
+
**Type:** Minor — removes a dead feature flag and repairs the release gate
|
|
5
|
+
**Previous:** v2.22.0
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
- **`ENABLE_REFLECTION` / `REFLECTION_CYCLES` removed.** The self-reflection module they controlled was never called by anything, so the settings had never affected a consultation.
|
|
10
|
+
- **The release gate works again.** `scripts/release.sh` could not pass its own `npm test` since 2.22.0; two test suites failed deterministically against any real user configuration.
|
|
11
|
+
- **`npm test` now reports failures it used to swallow.** A failing assertion followed by a passing one inside the same test function was counted as a pass.
|
|
12
|
+
- **A registry that could enroll feature flags as consultants is fixed**, and pinned by a test so it cannot drift again.
|
|
13
|
+
- **Preset documentation corrected** — the tables described a deliberation depth the code has not enforced since v2.16.
|
|
14
|
+
|
|
15
|
+
## What's New
|
|
16
|
+
|
|
17
|
+
### Self-reflection is gone
|
|
18
|
+
|
|
19
|
+
`lib/reflection.sh` implemented a generate-critique-refine loop across 452 lines. Nothing ever sourced it. `ENABLE_REFLECTION` and `REFLECTION_CYCLES` were declared in `config.sh` and set by four presets, but no consumer read them — the flags were configuration that promised behavior the tool never performed.
|
|
20
|
+
|
|
21
|
+
The module had also aged past the codebase. Its `_exec_consultant` hardcoded a three-branch dispatch (Gemini/Codex/Mistral) predating both the 11-consultant roster and the CLI/API transport layer, and its Gemini branch still used the CLI syntax retired in v2.15.0 by the `agy` migration. Wiring it up as written would have produced reflection for 3 of 11 consultants with a broken Gemini path.
|
|
22
|
+
|
|
23
|
+
It was removed rather than implemented because v2.16 already covers the ground: the `converge` and `adversarial` orchestration shapes run critique-refine driven by measured consensus instead of a fixed cycle count.
|
|
24
|
+
|
|
25
|
+
### The release gate
|
|
26
|
+
|
|
27
|
+
`scripts/release.sh` sources `lib/common.sh` — and so `config.sh`, and so `load_user_config` — before running `npm test`. Every setting in the maintainer's own `~/.config/ai-consultants/.env` was therefore exported into the test process, and two suites were not isolated against it:
|
|
28
|
+
|
|
29
|
+
- **`test_user_config.sh`** — `test_xdg_fallback` unsets `AI_CONSULTANTS_CONFIG_DIR` in the suite's own shell, which it must in order to assert the XDG branch, but nothing restored it. The unset leaked into all 22 following tests, which then read the real user config. Two further tests asserted on real configuration variable names that an ambient export silently replaced.
|
|
30
|
+
- **`test_configure.sh`** — its `run_clean_configure` helper scrubbed the nine API keys but no settings, while `configure`'s `has_explicit_value` reads *any* ambient value as a deliberate user pin. An exported `DEFAULT_PRESET` overrode the value the preservation tests had just written into the file they were asserting on.
|
|
31
|
+
|
|
32
|
+
Both suites now derive their isolation from the contract they test rather than from a hand-listed subset: `test_user_config.sh` re-establishes an empty config directory before every test, and `test_configure.sh` builds its scrub set from `configure --show-parameters`.
|
|
33
|
+
|
|
34
|
+
This is why the failure was invisible: `configure` shipped in 2.22.0, so only a maintainer who had actually run it hit the condition, and the first failing suite aborted the run before the second could be seen.
|
|
35
|
+
|
|
36
|
+
### Test failures that were being swallowed
|
|
37
|
+
|
|
38
|
+
`test_functions.sh` scores a test function by its exit status, which in bash is that of its last command. A failing assertion followed by a passing one printed `FAIL`, counted as a pass, left the failure total at zero and exited 0. Eight of the thirteen test functions run more than one assertion and were exposed.
|
|
39
|
+
|
|
40
|
+
The `assert_*` helpers now record failures in a flag the runner consults, so a test fails if either its status or any assertion inside it did.
|
|
41
|
+
|
|
42
|
+
### Phantom consultants from feature flags
|
|
43
|
+
|
|
44
|
+
`_discover_custom_api_agents` walks the environment and enrolls any `ENABLE_X=true` as a consultant when an `X_API_URL` is also present and `X` is absent from `KNOWN_FEATURE_FLAGS`. That registry listed 9 entries against 27 live non-consultant flags, so 18 — `ENABLE_PEER_REVIEW` and `ENABLE_HEALTH_GATE` among them — were latent phantom consultants. All 27 are registered, and a test derives the expected set from `config.sh` so the next added flag fails the build instead of drifting silently.
|
|
45
|
+
|
|
46
|
+
### Preset documentation
|
|
47
|
+
|
|
48
|
+
The tier-preset tables stated a per-preset debate and peer-review depth that the code does not enforce. Under the default `ORCHESTRATION_MODE=auto` the planner chooses the shape per question: a `DEBATE_ROUNDS` value a preset pins applies only under `ORCHESTRATION_MODE=fixed`, and a `SECURITY`-classified question runs the adversarial shape — peer review included — whatever preset was chosen. `max_quality` was also described as "all consultants" while enabling 8 of the 11-consultant roster.
|
|
49
|
+
|
|
50
|
+
## Breaking Changes
|
|
51
|
+
|
|
52
|
+
**`ENABLE_REFLECTION` and `REFLECTION_CYCLES` are no longer accepted parameters.**
|
|
53
|
+
|
|
54
|
+
No runtime behavior changes — the flags controlled nothing. What changes is the configuration surface:
|
|
55
|
+
|
|
56
|
+
- `ai-consultants configure --set ENABLE_REFLECTION=...` now exits non-zero instead of accepting the value. A provisioning script that pins either key will abort after upgrading.
|
|
57
|
+
- Both keys are dropped, without warning, the next time `configure` rewrites an existing user `.env`.
|
|
58
|
+
|
|
59
|
+
## Upgrade Guide
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# If installed via git clone
|
|
63
|
+
cd ~/.claude/skills/ai-consultants && git pull
|
|
64
|
+
|
|
65
|
+
# If installed via curl | bash
|
|
66
|
+
curl -fsSL https://raw.githubusercontent.com/matteoscurati/ai-consultants/main/scripts/install.sh | bash
|
|
67
|
+
|
|
68
|
+
# If installed via npx — nothing to do, npx resolves the published version
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Remove `ENABLE_REFLECTION` and `REFLECTION_CYCLES` from any `.env` file or provisioning script that sets them. No other configuration changes are required.
|
|
72
|
+
|
|
73
|
+
## Contributors
|
|
74
|
+
|
|
75
|
+
- matteoscurati
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Release v2.24.0
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-07-20
|
|
4
|
+
**Type:** Minor — installing now removes slash commands that were deleted in earlier releases
|
|
5
|
+
**Previous:** v2.23.0
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
- Installing or updating now **removes** `ai-consultants:*.md` slash commands this project no longer ships. Previously they were only ever copied in, so a command deleted upstream stayed on your machine forever.
|
|
10
|
+
- Ten such commands have been dead since v2.10.0 and are still installed on every setup predating it. One of them, `ai-consultants:config-features`, tells you to set `ENABLE_REFLECTION` — removed in v2.23.0, and now rejected by `configure --set`.
|
|
11
|
+
- **Read the breaking-change note below if you wrote your own commands under the `ai-consultants:` prefix.**
|
|
12
|
+
- Both entry points are fixed: `curl | bash` (`scripts/install.sh`) and npx (`ai-consultants install`).
|
|
13
|
+
- `scripts/release.sh` is no longer shipped in the npm package.
|
|
14
|
+
|
|
15
|
+
## What's New
|
|
16
|
+
|
|
17
|
+
### Stale slash commands are pruned on install and update
|
|
18
|
+
|
|
19
|
+
Both installers used to `cp` the current commands into `~/.claude/commands` and nothing else. Nothing ever removed one that had been deleted from the project, so obsolete commands accumulated and stayed invocable.
|
|
20
|
+
|
|
21
|
+
Measured on a real installation: **14 `ai-consultants:*.md` files present, 4 of which this project still ships.** The other ten were removed by the v2.10.0 command consolidation, thirteen releases ago:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
ask-experts config-check config-preset config-strategy
|
|
25
|
+
config-api config-features config-status config-wizard
|
|
26
|
+
config-budget config-personas
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
They are not merely clutter. `config-features` instructs you to set `ENABLE_REFLECTION`, a setting v2.23.0 removed; `ai-consultants configure --set ENABLE_REFLECTION=...` now exits non-zero. Following that command's instructions fails.
|
|
30
|
+
|
|
31
|
+
Both paths now prune before copying and report what they removed:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Pruned 10 slash command(s) removed in a previous release
|
|
35
|
+
Installed 4 slash commands to /Users/you/.claude/commands
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### `scripts/release.sh` removed from the npm package
|
|
39
|
+
|
|
40
|
+
Maintainer-only version-bump automation. `bin/ai-consultants` does not route it, so it was never reachable from the CLI — `npx ai-consultants release` starts a consultation, it does not run the script.
|
|
41
|
+
|
|
42
|
+
Other scripts that look maintainer-only are **deliberately kept**, having checked what depends on them: `roster_audit.sh` backs the shipped `roster-audit` slash command and `doctor --roster-audit`; `roster_calibrate.sh`, `taste_elo.sh` and `run_calibration.sh` are documented for your own use in `docs/SMART_ROUTING.md`; `install-hooks.sh` is wired to a `package.json` script.
|
|
43
|
+
|
|
44
|
+
## Breaking Changes
|
|
45
|
+
|
|
46
|
+
**The prune removes any `ai-consultants:*.md` this project does not ship — including a command you wrote yourself under that prefix.**
|
|
47
|
+
|
|
48
|
+
There is no way to distinguish a command you authored in this namespace from one of ours that was deleted upstream: both are simply files we do not ship. The `ai-consultants:` prefix is this project's namespace, and the prune treats it as such.
|
|
49
|
+
|
|
50
|
+
If you have custom commands there, **rename them out of the prefix before upgrading**:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
mv ~/.claude/commands/ai-consultants:mine.md ~/.claude/commands/my-consultants:mine.md
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Commands belonging to other tools are never considered — only the `ai-consultants:` prefix is examined.
|
|
57
|
+
|
|
58
|
+
## Upgrade Guide
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# npx (no install)
|
|
62
|
+
npx ai-consultants "question"
|
|
63
|
+
|
|
64
|
+
# refresh the slash commands (this is what prunes)
|
|
65
|
+
npx ai-consultants install
|
|
66
|
+
|
|
67
|
+
# git clone install
|
|
68
|
+
cd ~/.claude/skills/ai-consultants && git pull
|
|
69
|
+
|
|
70
|
+
# curl | bash install
|
|
71
|
+
curl -fsSL https://raw.githubusercontent.com/matteoscurati/ai-consultants/main/scripts/install.sh | bash
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
No configuration changes required.
|
|
75
|
+
|
|
76
|
+
Note for `git pull` users: pulling updates the checkout but does **not** re-run the installer, so it does not prune. Run `scripts/install.sh` or `ai-consultants install` afterwards to refresh the installed commands.
|
|
77
|
+
|
|
78
|
+
## Commits
|
|
79
|
+
|
|
80
|
+
- `315afb6` fix: harden the release and install tooling after a max code review
|
|
81
|
+
- `48892e4` fix(install): prune slash commands removed in earlier releases
|
|
82
|
+
- `384a1cd` chore: move the verify skill out of the distributed repo
|
|
83
|
+
- `95d2e29` chore(release): move the release skill out of the distributed repo
|
|
84
|
+
- `6a4e70d` chore(release): automate the release and publish pipeline
|
|
85
|
+
|
|
86
|
+
## Contributors
|
|
87
|
+
|
|
88
|
+
- Matteo Scurati
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-consultants",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
4
|
"description": "A harness for every question - a panel of up to 11 AI models that picks its own deliberation strategy per question (convergence, adversarial verification, tournament) and checks its work before answering",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ai-consultants": "bin/ai-consultants"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"!scripts/test_*.sh",
|
|
12
12
|
"!scripts/test_fixtures/",
|
|
13
13
|
"!scripts/lib/test_helpers.sh",
|
|
14
|
+
"!scripts/release.sh",
|
|
14
15
|
"templates/",
|
|
15
16
|
".env.example",
|
|
16
17
|
".claude/commands/",
|
|
@@ -164,8 +164,6 @@ ENABLE_DEBATE=false # Multi-agent debate
|
|
|
164
164
|
DEBATE_ROUNDS=1 # Used by ORCHESTRATION_MODE=fixed
|
|
165
165
|
ENABLE_PEER_REVIEW=false # Anonymous peer review
|
|
166
166
|
PEER_REVIEW_MIN_RESPONSES=3 # Minimum panel size for peer review
|
|
167
|
-
ENABLE_REFLECTION=false # Generate -> critique -> refine
|
|
168
|
-
REFLECTION_CYCLES=1
|
|
169
167
|
ENABLE_PANIC_MODE=auto # auto | always | never
|
|
170
168
|
ENABLE_SMART_ROUTING=false # Category-based consultant selection
|
|
171
169
|
ENABLE_COST_TRACKING=true # Track API usage costs
|
package/scripts/config.sh
CHANGED
|
@@ -374,16 +374,6 @@ PANIC_EXTRA_DEBATE_ROUNDS="${PANIC_EXTRA_DEBATE_ROUNDS:-1}"
|
|
|
374
374
|
# Keywords that trigger panic mode when found in responses
|
|
375
375
|
PANIC_KEYWORDS="${PANIC_KEYWORDS:-uncertain|maybe|not sure|possibly|unclear|depends|hard to say|difficult to determine}"
|
|
376
376
|
|
|
377
|
-
# =============================================================================
|
|
378
|
-
# SELF-REFLECTION (v2.0)
|
|
379
|
-
# =============================================================================
|
|
380
|
-
|
|
381
|
-
# Enable auto-reflection (generate-critique-refine)
|
|
382
|
-
ENABLE_REFLECTION="${ENABLE_REFLECTION:-false}"
|
|
383
|
-
|
|
384
|
-
# Number of reflection cycles per response
|
|
385
|
-
REFLECTION_CYCLES="${REFLECTION_CYCLES:-1}"
|
|
386
|
-
|
|
387
377
|
# =============================================================================
|
|
388
378
|
# SMART ROUTING (v2.0)
|
|
389
379
|
# =============================================================================
|
|
@@ -761,7 +751,7 @@ apply_model_tier() {
|
|
|
761
751
|
# high-stakes - Broad premium panel + debate (maximum rigor)
|
|
762
752
|
#
|
|
763
753
|
# Quality Tiers (v2.5):
|
|
764
|
-
# max_quality -
|
|
754
|
+
# max_quality - 8 of 11 consultants + premium models + peer review
|
|
765
755
|
# medium - 4 consultants + standard models + light debate
|
|
766
756
|
# fast - 2 consultants + economy models, no debate
|
|
767
757
|
#
|
|
@@ -773,7 +763,7 @@ _disable_all_consultants() {
|
|
|
773
763
|
export ENABLE_CURSOR=false ENABLE_KIMI=false ENABLE_CLAUDE=false
|
|
774
764
|
export ENABLE_QWEN3=false ENABLE_GLM=false ENABLE_GROK=false
|
|
775
765
|
export ENABLE_DEEPSEEK=false ENABLE_MINIMAX=false
|
|
776
|
-
export ENABLE_DEBATE=false
|
|
766
|
+
export ENABLE_DEBATE=false
|
|
777
767
|
}
|
|
778
768
|
|
|
779
769
|
# Apply a preset configuration
|
|
@@ -800,7 +790,6 @@ apply_preset() {
|
|
|
800
790
|
export ENABLE_GEMINI=true ENABLE_CODEX=true ENABLE_MISTRAL=true
|
|
801
791
|
export ENABLE_CURSOR=true ENABLE_CLAUDE=true
|
|
802
792
|
export ENABLE_DEBATE=true DEBATE_ROUNDS=2
|
|
803
|
-
export ENABLE_REFLECTION=true REFLECTION_CYCLES=1
|
|
804
793
|
;;
|
|
805
794
|
security)
|
|
806
795
|
export ENABLE_GEMINI=true ENABLE_CODEX=true
|
|
@@ -820,7 +809,6 @@ apply_preset() {
|
|
|
820
809
|
export ENABLE_CURSOR=true ENABLE_KIMI=true
|
|
821
810
|
export ENABLE_CLAUDE=true ENABLE_QWEN3=true ENABLE_MINIMAX=true
|
|
822
811
|
export ENABLE_DEBATE=true DEBATE_ROUNDS=3
|
|
823
|
-
export ENABLE_REFLECTION=true REFLECTION_CYCLES=2
|
|
824
812
|
export ENABLE_PEER_REVIEW=true
|
|
825
813
|
;;
|
|
826
814
|
medium)
|
|
@@ -834,7 +822,7 @@ apply_preset() {
|
|
|
834
822
|
# Super fast - economy models, minimal consultants
|
|
835
823
|
apply_model_tier "economy"
|
|
836
824
|
export ENABLE_GEMINI=true ENABLE_CODEX=true
|
|
837
|
-
export ENABLE_DEBATE=false
|
|
825
|
+
export ENABLE_DEBATE=false
|
|
838
826
|
export ENABLE_COMPACT_REPORT=true
|
|
839
827
|
;;
|
|
840
828
|
*)
|
|
@@ -853,7 +841,7 @@ list_presets() {
|
|
|
853
841
|
Available presets:
|
|
854
842
|
|
|
855
843
|
Quality Tiers (v2.5):
|
|
856
|
-
max_quality
|
|
844
|
+
max_quality 8 of 11 consultants + premium models + peer review
|
|
857
845
|
medium 4 consultants + standard models + light debate
|
|
858
846
|
fast 2 consultants + economy models, no debate
|
|
859
847
|
|
|
@@ -873,4 +861,4 @@ EOF
|
|
|
873
861
|
# VERSION
|
|
874
862
|
# =============================================================================
|
|
875
863
|
|
|
876
|
-
AI_CONSULTANTS_VERSION="2.
|
|
864
|
+
AI_CONSULTANTS_VERSION="2.24.0"
|
package/scripts/consult_all.sh
CHANGED
|
@@ -82,7 +82,7 @@ Options:
|
|
|
82
82
|
balanced - 4 models, good coverage
|
|
83
83
|
thorough - 5 models, comprehensive
|
|
84
84
|
high-stakes - All models + debate
|
|
85
|
-
max_quality -
|
|
85
|
+
max_quality - 8 of 11 consultants + premium models + peer review
|
|
86
86
|
medium - 4 models + standard models + light debate
|
|
87
87
|
fast - 2 models + economy models, no debate
|
|
88
88
|
security - Security-focused + debate
|
package/scripts/install.sh
CHANGED
|
@@ -138,6 +138,51 @@ check_dependencies() {
|
|
|
138
138
|
return 0
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
# Remove installed slash commands that this project no longer ships.
|
|
142
|
+
#
|
|
143
|
+
# The install step only copies files in, so a command deleted from the repo
|
|
144
|
+
# would live in the user's commands directory forever. v2.10.0's command
|
|
145
|
+
# consolidation dropped ten of them, and every install predating it still
|
|
146
|
+
# carries all ten — including config-features, which instructs users to set
|
|
147
|
+
# ENABLE_REFLECTION, a setting v2.23.0 removed and `configure --set` now
|
|
148
|
+
# rejects with a non-zero exit.
|
|
149
|
+
#
|
|
150
|
+
# Scoped to this project's own "ai-consultants:*.md" namespace, so another
|
|
151
|
+
# tool's commands are never considered. Within that namespace it removes
|
|
152
|
+
# anything this repo does not ship — including a command the user authored
|
|
153
|
+
# under the same prefix. That is the intended bound: the prefix is this
|
|
154
|
+
# project's namespace, and there is no way to tell a user's file there from
|
|
155
|
+
# one of ours that was deleted upstream.
|
|
156
|
+
# Sets PRUNED_COUNT rather than echoing, so log output can't be mistaken for it.
|
|
157
|
+
prune_removed_commands() {
|
|
158
|
+
local commands_dir="$1" repo_commands_dir="$2" installed
|
|
159
|
+
PRUNED_COUNT=0
|
|
160
|
+
|
|
161
|
+
[[ -d "$commands_dir" ]] || return 0
|
|
162
|
+
|
|
163
|
+
for installed in "$commands_dir"/ai-consultants:*.md; do
|
|
164
|
+
[[ -e "$installed" ]] || continue # glob didn't match: nothing installed yet
|
|
165
|
+
if [[ ! -f "$repo_commands_dir/$(basename "$installed")" ]]; then
|
|
166
|
+
rm -f "$installed"
|
|
167
|
+
PRUNED_COUNT=$((PRUNED_COUNT + 1))
|
|
168
|
+
fi
|
|
169
|
+
done
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
# Test hook: `AI_CONSULTANTS_INSTALL_DEFINE_ONLY=1 source scripts/install.sh`
|
|
173
|
+
# yields the functions above and nothing else.
|
|
174
|
+
#
|
|
175
|
+
# It sits HERE — above the argument parser and the uninstall block — because a
|
|
176
|
+
# sourced script inherits the CALLER's positional parameters. With the guard
|
|
177
|
+
# below them, `bash scripts/test_install.sh --uninstall` had install.sh parse
|
|
178
|
+
# the suite's own flag and run the real uninstall: rm -rf on the user's
|
|
179
|
+
# installed skill plus every ~/.claude/commands/ai-consultants*.md. Anything
|
|
180
|
+
# added below this point must be safe to skip, and nothing above it may act.
|
|
181
|
+
if [[ -n "${AI_CONSULTANTS_INSTALL_DEFINE_ONLY:-}" ]]; then
|
|
182
|
+
# shellcheck disable=SC2317 # exit fallback for script-mode load
|
|
183
|
+
return 0 2>/dev/null || exit 0
|
|
184
|
+
fi
|
|
185
|
+
|
|
141
186
|
# =============================================================================
|
|
142
187
|
# ARGUMENT PARSING
|
|
143
188
|
# =============================================================================
|
|
@@ -203,10 +248,6 @@ if [[ "$UNINSTALL_MODE" == "true" ]]; then
|
|
|
203
248
|
exit 0
|
|
204
249
|
fi
|
|
205
250
|
|
|
206
|
-
# =============================================================================
|
|
207
|
-
# INSTALL / UPDATE
|
|
208
|
-
# =============================================================================
|
|
209
|
-
|
|
210
251
|
print_header
|
|
211
252
|
|
|
212
253
|
# Check dependencies
|
|
@@ -260,6 +301,11 @@ if [[ "$INSTALL_COMMANDS" == "true" ]]; then
|
|
|
260
301
|
log_info "Installing slash commands..."
|
|
261
302
|
|
|
262
303
|
if [[ -d "$INSTALL_DIR/.claude/commands" ]]; then
|
|
304
|
+
prune_removed_commands "$COMMANDS_DIR" "$INSTALL_DIR/.claude/commands"
|
|
305
|
+
if [[ "$PRUNED_COUNT" -gt 0 ]]; then
|
|
306
|
+
log_info "Pruned $PRUNED_COUNT slash command(s) removed in a previous release"
|
|
307
|
+
fi
|
|
308
|
+
|
|
263
309
|
cp "$INSTALL_DIR"/.claude/commands/*.md "$COMMANDS_DIR/" 2>/dev/null || true
|
|
264
310
|
cmd_count=$(find "$INSTALL_DIR/.claude/commands" -maxdepth 1 -name '*.md' -type f 2>/dev/null | wc -l | tr -d ' ')
|
|
265
311
|
log_success "Installed $cmd_count slash commands"
|