@in-the-loop-labs/pair-review 5.2.2 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -13
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
- package/plugin-pair-loop/.claude-plugin/plugin.json +1 -1
- package/src/ai/analyzer.js +1 -1
- package/src/ai/antigravity-provider.js +55 -36
- package/src/ai/claude-provider.js +14 -12
- package/src/ai/codex-provider.js +72 -76
- package/src/ai/executable-provider.js +3 -1
- package/src/ai/muse-provider.js +81 -48
- package/src/ai/provider.js +1 -1
- package/src/config.js +1 -1
- package/src/main.js +1 -1
package/README.md
CHANGED
|
@@ -638,7 +638,7 @@ pair-review integrates with AI providers via their CLI tools:
|
|
|
638
638
|
- **Cursor**: Uses Cursor Agent CLI (streaming output with sandbox mode)
|
|
639
639
|
- **Pi**: Uses Pi coding agent CLI (requires model configuration)
|
|
640
640
|
- **OMP**: Uses the [Oh My Pi](https://github.com/can1357/oh-my-pi) CLI (`omp`), a fork of the Pi coding agent. Install it with `npm install -g @oh-my-pi/pi-coding-agent`. Works out of the box: the built-in `default` mode uses whatever model your OMP configuration selects, and you can add specific models via `providers.omp.models` (run `omp models` to list the catalog). OMP's advisor runtime — which passively reviews each turn and injects notes — is disabled during reviews by default for deterministic, lower-cost analysis; set `"advisor": true` in `providers.omp` to opt back in.
|
|
641
|
-
- **Muse**: Uses Meta's Muse Code CLI (`muse`), a terminal coding agent released in beta in August 2026 and powered by the Muse Spark 1.
|
|
641
|
+
- **Muse**: Uses Meta's Muse Code CLI (`muse`), a terminal coding agent released in beta in August 2026 and powered by the Muse Spark 1.3 model. Install it with the single shell command from Meta's Muse Code install instructions (macOS/Linux), then authenticate once with `muse login` (credentials are stored in `~/.config/muse/auth.json`). pair-review drives it headlessly via `muse exec --json`. Within pair-review, Muse is analysis-only: the CLI exposes no ACP server mode, so there is no Muse chat provider.
|
|
642
642
|
|
|
643
643
|
You can select your preferred provider and model in the repository settings UI.
|
|
644
644
|
|
|
@@ -650,20 +650,22 @@ Most providers (Claude, Antigravity, Codex, Copilot, Muse) come with built-in mo
|
|
|
650
650
|
|
|
651
651
|
Muse exposes its built-in models as reasoning-effort variants over two underlying CLI models:
|
|
652
652
|
|
|
653
|
-
| Model ID | Tier |
|
|
654
|
-
|
|
655
|
-
| `muse-spark-1.
|
|
656
|
-
| `muse-spark-1.
|
|
657
|
-
| `muse-spark-1.
|
|
658
|
-
| `muse-spark-1.
|
|
659
|
-
| `muse-spark-1.
|
|
660
|
-
| `muse-spark-1.
|
|
661
|
-
| `muse-spark-1.
|
|
662
|
-
| `muse-spark-1.
|
|
653
|
+
| Model ID | Tier | CLI model |
|
|
654
|
+
|----------|------|-----------|
|
|
655
|
+
| `muse-spark-1.3-max` | thorough | `muse-spark-1.3` |
|
|
656
|
+
| `muse-spark-1.3-contributor-max` | thorough | `muse-spark-1.3-contributor` |
|
|
657
|
+
| `muse-spark-1.3-xhigh` | thorough | `muse-spark-1.3` |
|
|
658
|
+
| `muse-spark-1.3-contributor-xhigh` | thorough | `muse-spark-1.3-contributor` |
|
|
659
|
+
| `muse-spark-1.3-high` | balanced (**default**) | `muse-spark-1.3` |
|
|
660
|
+
| `muse-spark-1.3-contributor-high` | balanced | `muse-spark-1.3-contributor` |
|
|
661
|
+
| `muse-spark-1.3-low` | fast | `muse-spark-1.3` |
|
|
662
|
+
| `muse-spark-1.3-contributor-low` | fast | `muse-spark-1.3-contributor` |
|
|
663
663
|
|
|
664
|
-
`muse-spark-1.
|
|
664
|
+
`muse-spark-1.3` and `muse-spark` are convenience aliases for `muse-spark-1.3-high`. `muse-spark-1.3-contributor` is likewise an alias for `muse-spark-1.3-contributor-high` — worth knowing because it is the bare CLI model name, so `--model muse-spark-1.3-contributor` selects the data-sharing tier described below rather than erroring out.
|
|
665
665
|
|
|
666
|
-
|
|
666
|
+
Muse Spark 1.3 is priced identically to 1.2 and is strictly better, so every `muse-spark-1.2-*` id (including the bare `muse-spark-1.2` and `muse-spark-1.2-contributor`) is kept as an alias of its 1.3 twin at the same reasoning effort — saved councils and configs upgrade in place. The former `-ultra` ids resolve to the `-max` entries: `--reasoning-effort ultra` is behind a closed feature gate and silently runs at `xhigh`, whereas `max` actually runs.
|
|
667
|
+
|
|
668
|
+
The `-contributor` models are substantially cheaper ($0.10/M input, $0.20/M output versus $1.25/M and $4.25/M) **because Meta may use their content for product improvement**. Since a code review sends your diff and surrounding source to the model, pair-review deliberately defaults to the non-contributor `muse-spark-1.3-high` — opting into data sharing is always an explicit choice you make by selecting a `-contributor` model, whether by its full ID or by that alias.
|
|
667
669
|
|
|
668
670
|
#### Configuring Custom Models
|
|
669
671
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pair-review",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "pair-review app integration — Open PRs and local changes in the pair-review web UI, run server-side AI analysis, and address review feedback. Requires the pair-review MCP server.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "in-the-loop-labs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pair-loop",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "Agent-orchestrated review loop — implement, review with pair-review multi-model councils via the headless CLI, triage, fix, and repeat until a final review returns no blockers. MCP-independent.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "in-the-loop-labs",
|
package/src/ai/analyzer.js
CHANGED
|
@@ -402,7 +402,7 @@ function hasSchemaKeys(obj) {
|
|
|
402
402
|
class Analyzer {
|
|
403
403
|
/**
|
|
404
404
|
* @param {Object} database - Database instance
|
|
405
|
-
* @param {string} model - Model to use (e.g., 'opus', 'gemini-3.
|
|
405
|
+
* @param {string} model - Model to use (e.g., 'opus', 'gemini-3.8-flash-high')
|
|
406
406
|
* @param {string} provider - Provider ID (e.g., 'claude', 'antigravity'). Defaults to 'claude'.
|
|
407
407
|
* @param {Object} providerOverrides - Per-call config overrides passed to createProvider (optional)
|
|
408
408
|
* @param {Object|null} providerOverridesMap - Per-provider overrides map for council mode (provider ID → overrides)
|
|
@@ -91,42 +91,33 @@ const TIMEOUT_BACKSTOP_GRACE_MS = 15000;
|
|
|
91
91
|
* which contains spaces and parentheses and must never leak into ids.
|
|
92
92
|
*
|
|
93
93
|
* We curate the Gemini-family models here — Antigravity is the Gemini CLI's
|
|
94
|
-
* successor and its native models are Gemini.
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
94
|
+
* successor and its native models are Gemini. Ordered thorough -> balanced ->
|
|
95
|
+
* fast, matching the other providers' pickers. Gemini 3.8 Flash at high effort
|
|
96
|
+
* is the thorough-tier default: it is the strongest Gemini agy exposes today
|
|
97
|
+
* (DeepSWE v1.1 73.7, Terminal-Bench 2.1 89.4 — on par with GPT-6 Astra and
|
|
98
|
+
* Muse 1.3), so "Flash" now describes latency, not capability. Gemini 3.1 Pro
|
|
99
|
+
* (Low/High, Feb 2026) is the previous-generation Pro line and stays on the
|
|
100
|
+
* balanced/thorough tiers for anyone who prefers it. Gemini 3.8 Flash at low
|
|
101
|
+
* effort is the sole fast-tier entry, which also makes it the JSON-extraction
|
|
102
|
+
* model (getFastTierModel() picks the first `tier: 'fast'` model — position
|
|
103
|
+
* in this array does not matter). Retired ids (3.5 Flash) are kept as aliases
|
|
104
|
+
* of their 3.8 Flash counterparts so saved selections keep working. `agy` also
|
|
105
|
+
* exposes Claude and GPT-OSS models; those remain reachable via a
|
|
106
|
+
* `providers.antigravity.models` config override but are intentionally left
|
|
107
|
+
* out of the default picker to keep the cross-provider model-mismatch guard
|
|
108
|
+
* and the UX unambiguous.
|
|
98
109
|
*/
|
|
99
110
|
const ANTIGRAVITY_MODELS = [
|
|
100
111
|
{
|
|
101
|
-
id: 'gemini-3.
|
|
102
|
-
cliName: 'Gemini 3.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: 'gemini-3.5-flash-high',
|
|
113
|
-
cliName: 'Gemini 3.5 Flash (High)',
|
|
114
|
-
name: '3.5 Flash (High)',
|
|
115
|
-
tier: 'fast',
|
|
116
|
-
tagline: 'Quick Look',
|
|
117
|
-
description: 'Flash speed with more reasoning effort for a sharper first pass',
|
|
118
|
-
badge: 'Quick Look',
|
|
119
|
-
badgeClass: 'badge-speed'
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
id: 'gemini-3.1-pro-low',
|
|
123
|
-
cliName: 'Gemini 3.1 Pro (Low)',
|
|
124
|
-
aliases: ['gemini-3.1-pro'],
|
|
125
|
-
name: '3.1 Pro (Low)',
|
|
126
|
-
tier: 'balanced',
|
|
127
|
-
tagline: 'Standard PR Review',
|
|
128
|
-
description: 'Strong reasoning with a large context window — the reliable daily driver',
|
|
129
|
-
badge: 'Daily Driver',
|
|
112
|
+
id: 'gemini-3.8-flash-high',
|
|
113
|
+
cliName: 'Gemini 3.8 Flash (High)',
|
|
114
|
+
// Retired 3.5 Flash (High) id — see the note on gemini-3.8-flash-low.
|
|
115
|
+
aliases: ['gemini-3.5-flash-high'],
|
|
116
|
+
name: '3.8 Flash (High)',
|
|
117
|
+
tier: 'thorough',
|
|
118
|
+
tagline: 'Frontier Review',
|
|
119
|
+
description: 'Gemini 3.8 Flash at high effort is the strongest Gemini on agy — DeepSWE v1.1 73.7, Terminal-Bench 2.1 89.4, on par with GPT-6 Astra and Muse 1.3. "Flash" now means latency, not capability. Uses the thorough prompt set.',
|
|
120
|
+
badge: 'Recommended',
|
|
130
121
|
badgeClass: 'badge-recommended',
|
|
131
122
|
default: true
|
|
132
123
|
},
|
|
@@ -136,13 +127,39 @@ const ANTIGRAVITY_MODELS = [
|
|
|
136
127
|
name: '3.1 Pro (High)',
|
|
137
128
|
tier: 'thorough',
|
|
138
129
|
tagline: 'Deep Dive',
|
|
139
|
-
description: '
|
|
130
|
+
description: 'Previous-generation Pro (Feb 2026) at maximum reasoning effort — slower and now outscored by 3.8 Flash (High), kept for reviewers who prefer the Pro line',
|
|
140
131
|
badge: 'Deep Dive',
|
|
141
132
|
badgeClass: 'badge-power'
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: 'gemini-3.1-pro-low',
|
|
136
|
+
cliName: 'Gemini 3.1 Pro (Low)',
|
|
137
|
+
aliases: ['gemini-3.1-pro'],
|
|
138
|
+
name: '3.1 Pro (Low)',
|
|
139
|
+
tier: 'balanced',
|
|
140
|
+
tagline: 'Previous-Gen Pro',
|
|
141
|
+
description: 'Previous-generation Pro (Feb 2026) at low effort — a large-context middle ground, superseded as the default by 3.8 Flash (High)',
|
|
142
|
+
badge: 'Previous Gen',
|
|
143
|
+
badgeClass: 'badge-balanced'
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: 'gemini-3.8-flash-low',
|
|
147
|
+
cliName: 'Gemini 3.8 Flash (Low)',
|
|
148
|
+
// The 3.5 Flash ids no longer exist on agy (`agy --model gemini-3.5-flash-low`
|
|
149
|
+
// exits 1 with an unknown-model listing). Saved councils/configs that still
|
|
150
|
+
// name them resolve to the same effort level on 3.8 Flash; without the
|
|
151
|
+
// aliases they would hit agy's exit-1 unknown-model failure.
|
|
152
|
+
aliases: ['gemini-3.8-flash', 'gemini-3.5-flash-low', 'gemini-3.5-flash'],
|
|
153
|
+
name: '3.8 Flash (Low)',
|
|
154
|
+
tier: 'fast',
|
|
155
|
+
tagline: 'Rapid Sanity Check',
|
|
156
|
+
description: 'Cheapest, fastest pass — quick scans and the JSON-extraction fallback model',
|
|
157
|
+
badge: 'Cheapest',
|
|
158
|
+
badgeClass: 'badge-speed'
|
|
142
159
|
}
|
|
143
160
|
];
|
|
144
161
|
|
|
145
|
-
const DEFAULT_ANTIGRAVITY_MODEL = 'gemini-3.
|
|
162
|
+
const DEFAULT_ANTIGRAVITY_MODEL = 'gemini-3.8-flash-high';
|
|
146
163
|
|
|
147
164
|
class AntigravityProvider extends AIProvider {
|
|
148
165
|
/**
|
|
@@ -201,7 +218,9 @@ class AntigravityProvider extends AIProvider {
|
|
|
201
218
|
// Exact `agy --model` string. Config overrides honor the shared `cli_model`
|
|
202
219
|
// contract used across providers (documented in config.example.json) and
|
|
203
220
|
// fall back to `cliName`; built-ins carry `cliName`. Raw id is the last
|
|
204
|
-
// resort
|
|
221
|
+
// resort. Note: agy no longer falls back to its default for an unknown
|
|
222
|
+
// name — as of agy 1.0.16 it exits 1 and prints the model listing, and
|
|
223
|
+
// the provider's clean ids (`gemini-3.8-flash-low`) are accepted verbatim.
|
|
205
224
|
const cliModel =
|
|
206
225
|
configModel?.cli_model ||
|
|
207
226
|
configModel?.cliName ||
|
|
@@ -64,6 +64,8 @@ const CLAUDE_MODELS = [
|
|
|
64
64
|
// The bare 'fable' alias intentionally stays pinned to Fable 5 (the same way
|
|
65
65
|
// 'opus' stays on opus-4.8-xhigh) so existing configs and --model fable
|
|
66
66
|
// invocations keep resolving to the generation they were written against.
|
|
67
|
+
// The provider DEFAULT is a separate knob: it moved to opus-5-high (same
|
|
68
|
+
// price as Opus 4.8) while the 'opus' alias stayed pinned to opus-4.8-xhigh.
|
|
67
69
|
aliases: ['fable'],
|
|
68
70
|
cli_model: 'claude-fable-5',
|
|
69
71
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
@@ -95,8 +97,8 @@ const CLAUDE_MODELS = [
|
|
|
95
97
|
name: 'Opus 5 XHigh',
|
|
96
98
|
tier: 'thorough',
|
|
97
99
|
tagline: 'Newest Opus',
|
|
98
|
-
description: 'Opus 5 (newest) with extra-high effort',
|
|
99
|
-
badge: '
|
|
100
|
+
description: 'Opus 5 (newest) with extra-high effort — deepest thorough reviews',
|
|
101
|
+
badge: 'Extra-High Effort',
|
|
100
102
|
badgeClass: 'badge-power'
|
|
101
103
|
},
|
|
102
104
|
{
|
|
@@ -105,10 +107,11 @@ const CLAUDE_MODELS = [
|
|
|
105
107
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
106
108
|
name: 'Opus 5 High',
|
|
107
109
|
tier: 'thorough',
|
|
108
|
-
tagline: '
|
|
109
|
-
description: 'Opus 5 with high effort —
|
|
110
|
-
badge: '
|
|
111
|
-
badgeClass: 'badge-
|
|
110
|
+
tagline: 'Recommended Default',
|
|
111
|
+
description: 'Opus 5 (newest) with high effort — the recommended default for thorough reviews',
|
|
112
|
+
badge: 'Recommended',
|
|
113
|
+
badgeClass: 'badge-recommended',
|
|
114
|
+
default: true
|
|
112
115
|
},
|
|
113
116
|
{
|
|
114
117
|
id: 'opus-4.8-xhigh',
|
|
@@ -117,11 +120,10 @@ const CLAUDE_MODELS = [
|
|
|
117
120
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
118
121
|
name: 'Opus 4.8 XHigh',
|
|
119
122
|
tier: 'thorough',
|
|
120
|
-
tagline: '
|
|
121
|
-
description: 'Opus 4.8 with extra-high effort
|
|
122
|
-
badge: '
|
|
123
|
-
badgeClass: 'badge-power'
|
|
124
|
-
default: true
|
|
123
|
+
tagline: 'Previous Gen',
|
|
124
|
+
description: 'Opus 4.8 with extra-high effort',
|
|
125
|
+
badge: 'Previous Gen',
|
|
126
|
+
badgeClass: 'badge-power'
|
|
125
127
|
},
|
|
126
128
|
{
|
|
127
129
|
id: 'opus-4.8-high',
|
|
@@ -1041,7 +1043,7 @@ class ClaudeProvider extends AIProvider {
|
|
|
1041
1043
|
}
|
|
1042
1044
|
|
|
1043
1045
|
static getDefaultModel() {
|
|
1044
|
-
return 'opus-
|
|
1046
|
+
return 'opus-5-high';
|
|
1045
1047
|
}
|
|
1046
1048
|
|
|
1047
1049
|
static getInstallInstructions() {
|
package/src/ai/codex-provider.js
CHANGED
|
@@ -21,24 +21,58 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
21
21
|
/**
|
|
22
22
|
* Codex model definitions with tier mappings
|
|
23
23
|
*
|
|
24
|
-
* Based on OpenAI's GPT-5.6 launch and
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Based on OpenAI's GPT-6 Astra launch (Sept 2026), the GPT-5.6 launch, and the
|
|
25
|
+
* Models guide (developers.openai.com/api/docs/models). Verified against the
|
|
26
|
+
* Codex CLI 0.144.0 model catalog.
|
|
27
|
+
* - gpt-6-astra: GPT-6 flagship, the most capable model for complex, demanding
|
|
28
|
+
* work (272k context). Priced several times above Sol, so it is offered as an
|
|
29
|
+
* opt-in thorough choice rather than the default.
|
|
30
|
+
* - gpt-5.6-sol: Strong frontier model for complex professional work (default)
|
|
27
31
|
* - gpt-5.6-terra: Balances intelligence and cost for everyday work
|
|
28
32
|
* - gpt-5.6-luna: Fast, affordable model for cost-sensitive, high-volume work
|
|
29
|
-
* - gpt-5.
|
|
30
|
-
* - gpt-5.4-mini:
|
|
31
|
-
*
|
|
32
|
-
* - GPT-
|
|
33
|
-
*
|
|
33
|
+
* - gpt-5.5: Previous-generation frontier model
|
|
34
|
+
* - gpt-5.4-mini: Small, fast, cost-efficient model for simpler coding tasks
|
|
35
|
+
* (272k context) — the sole fast-tier model
|
|
36
|
+
* - GPT-6, GPT-5.6, and GPT-5.5 models are exposed only through explicit
|
|
37
|
+
* reasoning-effort variants.
|
|
38
|
+
*
|
|
39
|
+
* Tiers: thorough (Astra, Sol, GPT-5.5), balanced (Terra, Luna), fast (Mini).
|
|
40
|
+
* Entries are ordered thorough → balanced → fast; the first `fast` entry is the
|
|
41
|
+
* extraction model (see AIProvider.getFastTierModel).
|
|
34
42
|
*
|
|
35
43
|
* Reasoning-effort variants (-high / -xhigh / -max) use `cli_model` to pass the base
|
|
36
44
|
* model ID to `codex exec -m` and add `-c model_reasoning_effort="..."` via
|
|
37
45
|
* extra_args so Codex picks up the effort level through its config override.
|
|
38
46
|
*
|
|
39
47
|
* Deprecated (April 2026): gpt-5.1-codex-mini, gpt-5.1-codex-max, gpt-5.1-codex
|
|
48
|
+
* Deprecated (August 2026): gpt-5.4 (gpt-5.4-high / gpt-5.4-xhigh), gpt-5.4-nano,
|
|
49
|
+
* gpt-5.3-codex — retired by OpenAI; Codex rejects them with a 400. They are
|
|
50
|
+
* intentionally NOT aliased onto other models so saved councils fail loudly
|
|
51
|
+
* instead of silently running a different model.
|
|
40
52
|
*/
|
|
41
53
|
const CODEX_MODELS = [
|
|
54
|
+
{
|
|
55
|
+
id: 'gpt-6-astra-high',
|
|
56
|
+
cli_model: 'gpt-6-astra',
|
|
57
|
+
extra_args: ['-c', 'model_reasoning_effort="high"'],
|
|
58
|
+
name: 'GPT-6 Astra High',
|
|
59
|
+
tier: 'thorough',
|
|
60
|
+
tagline: 'Most Capable',
|
|
61
|
+
description: 'OpenAI\'s GPT-6 flagship with high reasoning effort for the hardest reviews: deep cross-file analysis, subtle regressions, and demanding architectural work. Costs several times more than Sol.',
|
|
62
|
+
badge: 'Most Capable',
|
|
63
|
+
badgeClass: 'badge-power'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'gpt-6-astra-xhigh',
|
|
67
|
+
cli_model: 'gpt-6-astra',
|
|
68
|
+
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
69
|
+
name: 'GPT-6 Astra XHigh',
|
|
70
|
+
tier: 'thorough',
|
|
71
|
+
tagline: 'Maximum Depth',
|
|
72
|
+
description: 'GPT-6 Astra with extra-high reasoning effort for the most difficult reviews: concurrency, security-sensitive changes, and large codebase context. Premium pricing.',
|
|
73
|
+
badge: 'Extra High',
|
|
74
|
+
badgeClass: 'badge-power'
|
|
75
|
+
},
|
|
42
76
|
{
|
|
43
77
|
id: 'gpt-5.6-sol-high',
|
|
44
78
|
cli_model: 'gpt-5.6-sol',
|
|
@@ -46,7 +80,7 @@ const CODEX_MODELS = [
|
|
|
46
80
|
name: 'GPT-5.6 Sol High',
|
|
47
81
|
tier: 'thorough',
|
|
48
82
|
tagline: 'Frontier Review',
|
|
49
|
-
description: '
|
|
83
|
+
description: 'Strong frontier reviewer at a fraction of Astra\'s cost, with high reasoning effort for demanding PR reviews, complex professional work, and cross-file analysis.',
|
|
50
84
|
badge: 'Recommended',
|
|
51
85
|
badgeClass: 'badge-recommended',
|
|
52
86
|
default: true
|
|
@@ -62,28 +96,6 @@ const CODEX_MODELS = [
|
|
|
62
96
|
badge: 'Extra High',
|
|
63
97
|
badgeClass: 'badge-power'
|
|
64
98
|
},
|
|
65
|
-
{
|
|
66
|
-
id: 'gpt-5.6-terra-xhigh',
|
|
67
|
-
cli_model: 'gpt-5.6-terra',
|
|
68
|
-
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
69
|
-
name: 'GPT-5.6 Terra XHigh',
|
|
70
|
-
tier: 'balanced',
|
|
71
|
-
tagline: 'Intelligence & Value',
|
|
72
|
-
description: 'GPT-5.6 balanced model with extra-high reasoning effort, combining strong intelligence and lower cost for careful everyday PR reviews.',
|
|
73
|
-
badge: 'Best Balance',
|
|
74
|
-
badgeClass: 'badge-balanced'
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
id: 'gpt-5.6-luna-max',
|
|
78
|
-
cli_model: 'gpt-5.6-luna',
|
|
79
|
-
extra_args: ['-c', 'model_reasoning_effort="max"'],
|
|
80
|
-
name: 'GPT-5.6 Luna Max',
|
|
81
|
-
tier: 'balanced',
|
|
82
|
-
tagline: 'High-Volume Value',
|
|
83
|
-
description: 'GPT-5.6 fastest, most cost-efficient model with max reasoning effort for high-volume reviews and broad codebase scans.',
|
|
84
|
-
badge: 'Lowest Cost',
|
|
85
|
-
badgeClass: 'badge-speed'
|
|
86
|
-
},
|
|
87
99
|
{
|
|
88
100
|
id: 'gpt-5.5-high',
|
|
89
101
|
cli_model: 'gpt-5.5',
|
|
@@ -107,55 +119,34 @@ const CODEX_MODELS = [
|
|
|
107
119
|
badgeClass: 'badge-power'
|
|
108
120
|
},
|
|
109
121
|
{
|
|
110
|
-
id: 'gpt-5.
|
|
111
|
-
|
|
112
|
-
// model ID resolving to the now-explicit high-effort variant.
|
|
113
|
-
aliases: ['gpt-5.4'],
|
|
114
|
-
cli_model: 'gpt-5.4',
|
|
115
|
-
extra_args: ['-c', 'model_reasoning_effort="high"'],
|
|
116
|
-
name: 'GPT-5.4 High',
|
|
117
|
-
tier: 'thorough',
|
|
118
|
-
tagline: 'Deep Review',
|
|
119
|
-
description: 'GPT-5.4 with high reasoning effort for complex multi-file reviews, architectural consistency, and subtle behavioral regressions.',
|
|
120
|
-
badge: 'Previous Gen',
|
|
121
|
-
badgeClass: 'badge-power'
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
id: 'gpt-5.4-xhigh',
|
|
125
|
-
cli_model: 'gpt-5.4',
|
|
122
|
+
id: 'gpt-5.6-terra-xhigh',
|
|
123
|
+
cli_model: 'gpt-5.6-terra',
|
|
126
124
|
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
127
|
-
name: 'GPT-5.
|
|
128
|
-
tier: '
|
|
129
|
-
tagline: '
|
|
130
|
-
description: 'GPT-5.
|
|
131
|
-
badge: '
|
|
132
|
-
badgeClass: 'badge-
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
id: 'gpt-5.3-codex',
|
|
136
|
-
name: 'GPT-5.3 Codex',
|
|
137
|
-
tier: 'thorough',
|
|
138
|
-
tagline: 'Deep Review',
|
|
139
|
-
description: 'Industry-leading coding model—frontier performance with strong reasoning for cross-file analysis.',
|
|
140
|
-
badge: 'Thorough',
|
|
141
|
-
badgeClass: 'badge-power'
|
|
125
|
+
name: 'GPT-5.6 Terra XHigh',
|
|
126
|
+
tier: 'balanced',
|
|
127
|
+
tagline: 'Intelligence & Value',
|
|
128
|
+
description: 'GPT-5.6 balanced model with extra-high reasoning effort, combining strong intelligence and lower cost for careful everyday PR reviews.',
|
|
129
|
+
badge: 'Best Balance',
|
|
130
|
+
badgeClass: 'badge-balanced'
|
|
142
131
|
},
|
|
143
132
|
{
|
|
144
|
-
id: 'gpt-5.
|
|
145
|
-
|
|
133
|
+
id: 'gpt-5.6-luna-max',
|
|
134
|
+
cli_model: 'gpt-5.6-luna',
|
|
135
|
+
extra_args: ['-c', 'model_reasoning_effort="max"'],
|
|
136
|
+
name: 'GPT-5.6 Luna Max',
|
|
146
137
|
tier: 'balanced',
|
|
147
|
-
tagline: '
|
|
148
|
-
description: '
|
|
149
|
-
badge: '
|
|
138
|
+
tagline: 'High-Volume Value',
|
|
139
|
+
description: 'GPT-5.6 fastest, most cost-efficient model with max reasoning effort for high-volume reviews and broad codebase scans.',
|
|
140
|
+
badge: 'Lowest Cost',
|
|
150
141
|
badgeClass: 'badge-speed'
|
|
151
142
|
},
|
|
152
143
|
{
|
|
153
|
-
id: 'gpt-5.4-
|
|
154
|
-
name: 'GPT-5.4
|
|
144
|
+
id: 'gpt-5.4-mini',
|
|
145
|
+
name: 'GPT-5.4 Mini',
|
|
155
146
|
tier: 'fast',
|
|
156
|
-
tagline: '
|
|
157
|
-
description: '
|
|
158
|
-
badge: '
|
|
147
|
+
tagline: 'Quick Scan',
|
|
148
|
+
description: 'Small, fast, cost-efficient model for surface scans: obvious bugs, style issues, and lint-level feedback.',
|
|
149
|
+
badge: 'Fastest',
|
|
159
150
|
badgeClass: 'badge-speed'
|
|
160
151
|
}
|
|
161
152
|
];
|
|
@@ -222,7 +213,7 @@ class CodexProvider extends AIProvider {
|
|
|
222
213
|
|
|
223
214
|
// Resolve cli_model + extra_args + env from built-in model, provider config,
|
|
224
215
|
// and per-model config. This is what lets reasoning variants like
|
|
225
|
-
// gpt-
|
|
216
|
+
// gpt-6-astra-high pass `-m gpt-6-astra` plus `-c model_reasoning_effort="high"`.
|
|
226
217
|
const { cliModel, extraArgs, env } = this._resolveModelConfig(model);
|
|
227
218
|
|
|
228
219
|
// IMPORTANT: `-` (stdin marker) must come LAST, after any extra_args.
|
|
@@ -249,8 +240,8 @@ class CodexProvider extends AIProvider {
|
|
|
249
240
|
* Produces the CLI model ID (for `-m`), merged extra_args, and merged env.
|
|
250
241
|
*
|
|
251
242
|
* Precedence for cli_model: config model > built-in model > modelId.
|
|
252
|
-
* `cli_model` lets reasoning-effort variants (e.g. `gpt-
|
|
253
|
-
* base model (`gpt-
|
|
243
|
+
* `cli_model` lets reasoning-effort variants (e.g. `gpt-6-astra-high`) pass the
|
|
244
|
+
* base model (`gpt-6-astra`) to `codex exec -m` while adding reasoning overrides
|
|
254
245
|
* via extra_args.
|
|
255
246
|
*
|
|
256
247
|
* @param {string} modelId
|
|
@@ -261,7 +252,12 @@ class CodexProvider extends AIProvider {
|
|
|
261
252
|
const configOverrides = this.configOverrides || {};
|
|
262
253
|
|
|
263
254
|
const builtIn = CODEX_MODELS.find(m => m.id === modelId || (m.aliases && m.aliases.includes(modelId)));
|
|
264
|
-
|
|
255
|
+
// A config override may target the built-in by any of its ids/aliases, or
|
|
256
|
+
// declare its own aliases; match on the union so no lookup diverges.
|
|
257
|
+
const modelKeys = new Set([modelId, builtIn?.id, ...(builtIn?.aliases || [])].filter(Boolean));
|
|
258
|
+
const configModel = configOverrides.models?.find(
|
|
259
|
+
m => modelKeys.has(m.id) || (m.aliases || []).some(a => modelKeys.has(a))
|
|
260
|
+
);
|
|
265
261
|
|
|
266
262
|
const cliModel = configModel?.cli_model !== undefined
|
|
267
263
|
? configModel.cli_model
|
|
@@ -22,6 +22,8 @@ const { killChildSafely } = require('./abort-signal-wiring');
|
|
|
22
22
|
const jsonExtractor = require('../utils/json-extractor');
|
|
23
23
|
const configModule = require('../config');
|
|
24
24
|
|
|
25
|
+
const MAPPING_TIMEOUT_MS = 5 * 60 * 1000;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Convert a snake_case string to camelCase
|
|
27
29
|
* @param {string} str - snake_case string
|
|
@@ -422,7 +424,7 @@ function createExecutableProviderClass(id, config) {
|
|
|
422
424
|
const provider = providerModule.createProvider(mappingProviderId);
|
|
423
425
|
const result = await provider.execute(mappingPrompt, {
|
|
424
426
|
cwd: process.cwd(),
|
|
425
|
-
timeout:
|
|
427
|
+
timeout: MAPPING_TIMEOUT_MS,
|
|
426
428
|
level: 'mapping'
|
|
427
429
|
});
|
|
428
430
|
|
package/src/ai/muse-provider.js
CHANGED
|
@@ -153,25 +153,41 @@ function attemptIdOf(record) {
|
|
|
153
153
|
* The provider's default model.
|
|
154
154
|
*
|
|
155
155
|
* DELIBERATE: this is the NON-contributor model, even though the muse CLI's own
|
|
156
|
-
* default is `muse-spark-1.
|
|
156
|
+
* default is `muse-spark-1.3-contributor`. Pair-review sends potentially
|
|
157
157
|
* proprietary source code to the model, and the contributor tier is discounted
|
|
158
158
|
* precisely because Meta may use that content for product improvement. Opting
|
|
159
159
|
* into data sharing must be an explicit user choice, never a silent default.
|
|
160
160
|
*/
|
|
161
|
-
const DEFAULT_MUSE_MODEL = 'muse-spark-1.
|
|
161
|
+
const DEFAULT_MUSE_MODEL = 'muse-spark-1.3-high';
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* Muse model definitions with tier mappings.
|
|
165
165
|
*
|
|
166
|
-
* Muse exposes
|
|
167
|
-
* reasoning-effort variant over
|
|
166
|
+
* Muse exposes two real CLI model IDs per generation; everything below is a
|
|
167
|
+
* reasoning-effort variant over the current pair, using the same `cli_model` +
|
|
168
168
|
* `extra_args` pattern as the Codex provider:
|
|
169
|
-
* - muse-spark-1.
|
|
170
|
-
* - muse-spark-1.
|
|
171
|
-
* submitted content may be used by Meta for product improvement
|
|
169
|
+
* - muse-spark-1.3 — $1.25/$4.25 per MTok ($0.15 cached), ~1M context
|
|
170
|
+
* - muse-spark-1.3-contributor — $0.10/$0.20 per MTok ($0.002 cached), discounted
|
|
171
|
+
* because submitted content may be used by Meta for product improvement
|
|
172
172
|
*
|
|
173
|
-
*
|
|
174
|
-
* (
|
|
173
|
+
* Muse Spark 1.3 (released 2026-09-02) is priced identically to 1.2 and is
|
|
174
|
+
* strictly better (Meta reports ~20% fewer tool calls and ~25% fewer tokens;
|
|
175
|
+
* DeepSWE v1.1 75.4 vs 55.0, Terminal-Bench 2.1 88.8 vs 82.9). The 1.2 ids still
|
|
176
|
+
* work on the CLI and are not deprecated, but there is no reason to offer both
|
|
177
|
+
* generations at the same price, so every `muse-spark-1.2-*` id is kept as an
|
|
178
|
+
* alias of its 1.3 twin at the same reasoning effort. Saved councils and configs
|
|
179
|
+
* upgrade in place instead of falling through to muse's own default.
|
|
180
|
+
*
|
|
181
|
+
* Do NOT treat the locally cached catalog (~/.local/share/muse/model-catalog/)
|
|
182
|
+
* as authoritative: it lags the CLI and still listed only 1.2 after 1.3 worked.
|
|
183
|
+
*
|
|
184
|
+
* `--reasoning-effort` accepts minimal|low|medium|high|xhigh|max|ultra with
|
|
185
|
+
* `--provider meta` (`none` is rejected outright; muse's own default is `high`).
|
|
186
|
+
* `ultra` is behind a closed feature gate: muse prints "reasoning effort ultra
|
|
187
|
+
* is not available (gate ultra_reasoning_effort is closed); using xhigh" and
|
|
188
|
+
* silently runs at xhigh, whereas `max` actually runs. The top built-in is
|
|
189
|
+
* therefore `max`, and the former `-ultra` ids alias onto it rather than
|
|
190
|
+
* shipping a duplicate of the xhigh entries.
|
|
175
191
|
*
|
|
176
192
|
* Ordering matters: each reasoning effort is listed as a non-contributor entry
|
|
177
193
|
* followed by its contributor twin, so that getFastTierModel() — which picks the
|
|
@@ -180,32 +196,37 @@ const DEFAULT_MUSE_MODEL = 'muse-spark-1.2-high';
|
|
|
180
196
|
*/
|
|
181
197
|
const MUSE_MODELS = [
|
|
182
198
|
{
|
|
183
|
-
id: 'muse-spark-1.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
199
|
+
id: 'muse-spark-1.3-max',
|
|
200
|
+
// `-ultra` ids resolve here because ultra is gate-closed and degrades to
|
|
201
|
+
// xhigh; 1.2 ids resolve here because 1.3 is a same-price upgrade.
|
|
202
|
+
aliases: ['muse-spark-1.3-ultra', 'muse-spark-1.2-max', 'muse-spark-1.2-ultra'],
|
|
203
|
+
cli_model: 'muse-spark-1.3',
|
|
204
|
+
extra_args: ['--reasoning-effort', 'max'],
|
|
205
|
+
name: 'Muse Spark 1.3 Max',
|
|
187
206
|
tier: 'thorough',
|
|
188
207
|
tagline: 'Maximum Depth',
|
|
189
|
-
description: 'Muse Spark at the highest reasoning effort for the hardest reviews: architecture, concurrency, and security-sensitive changes.',
|
|
208
|
+
description: 'Muse Spark at the highest available reasoning effort for the hardest reviews: architecture, concurrency, and security-sensitive changes.',
|
|
190
209
|
badge: 'Max Reasoning',
|
|
191
210
|
badgeClass: 'badge-power'
|
|
192
211
|
},
|
|
193
212
|
{
|
|
194
|
-
id: 'muse-spark-1.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
213
|
+
id: 'muse-spark-1.3-contributor-max',
|
|
214
|
+
aliases: ['muse-spark-1.3-contributor-ultra', 'muse-spark-1.2-contributor-max', 'muse-spark-1.2-contributor-ultra'],
|
|
215
|
+
cli_model: 'muse-spark-1.3-contributor',
|
|
216
|
+
extra_args: ['--reasoning-effort', 'max'],
|
|
217
|
+
name: 'Muse Spark 1.3 Contributor Max',
|
|
198
218
|
tier: 'thorough',
|
|
199
219
|
tagline: 'Discounted Depth',
|
|
200
|
-
description: 'Same model and highest reasoning effort at roughly a tenth of the cost. Content you send on this tier may be used by Meta for product improvement—do not select it for proprietary code.',
|
|
220
|
+
description: 'Same model and highest available reasoning effort at roughly a tenth of the cost. Content you send on this tier may be used by Meta for product improvement—do not select it for proprietary code.',
|
|
201
221
|
badge: 'Shares Data',
|
|
202
222
|
badgeClass: 'badge-power'
|
|
203
223
|
},
|
|
204
224
|
{
|
|
205
|
-
id: 'muse-spark-1.
|
|
206
|
-
|
|
225
|
+
id: 'muse-spark-1.3-xhigh',
|
|
226
|
+
aliases: ['muse-spark-1.2-xhigh'],
|
|
227
|
+
cli_model: 'muse-spark-1.3',
|
|
207
228
|
extra_args: ['--reasoning-effort', 'xhigh'],
|
|
208
|
-
name: 'Muse Spark 1.
|
|
229
|
+
name: 'Muse Spark 1.3 XHigh',
|
|
209
230
|
tier: 'thorough',
|
|
210
231
|
tagline: 'Frontier Depth',
|
|
211
232
|
description: 'Muse Spark with extra-high reasoning effort for difficult architectural reviews and subtle behavioral regressions.',
|
|
@@ -213,10 +234,11 @@ const MUSE_MODELS = [
|
|
|
213
234
|
badgeClass: 'badge-power'
|
|
214
235
|
},
|
|
215
236
|
{
|
|
216
|
-
id: 'muse-spark-1.
|
|
217
|
-
|
|
237
|
+
id: 'muse-spark-1.3-contributor-xhigh',
|
|
238
|
+
aliases: ['muse-spark-1.2-contributor-xhigh'],
|
|
239
|
+
cli_model: 'muse-spark-1.3-contributor',
|
|
218
240
|
extra_args: ['--reasoning-effort', 'xhigh'],
|
|
219
|
-
name: 'Muse Spark 1.
|
|
241
|
+
name: 'Muse Spark 1.3 Contributor XHigh',
|
|
220
242
|
tier: 'thorough',
|
|
221
243
|
tagline: 'Discounted Frontier',
|
|
222
244
|
description: 'Same model and extra-high reasoning effort at roughly a tenth of the cost. Content you send on this tier may be used by Meta for product improvement—do not select it for proprietary code.',
|
|
@@ -224,12 +246,13 @@ const MUSE_MODELS = [
|
|
|
224
246
|
badgeClass: 'badge-power'
|
|
225
247
|
},
|
|
226
248
|
{
|
|
227
|
-
id: 'muse-spark-1.
|
|
228
|
-
//
|
|
229
|
-
|
|
230
|
-
|
|
249
|
+
id: 'muse-spark-1.3-high',
|
|
250
|
+
// Bare model ids (and the previous generation's) keep results/councils
|
|
251
|
+
// saved under them resolving here.
|
|
252
|
+
aliases: ['muse-spark-1.3', 'muse-spark', 'muse-spark-1.2', 'muse-spark-1.2-high'],
|
|
253
|
+
cli_model: 'muse-spark-1.3',
|
|
231
254
|
extra_args: ['--reasoning-effort', 'high'],
|
|
232
|
-
name: 'Muse Spark 1.
|
|
255
|
+
name: 'Muse Spark 1.3 High',
|
|
233
256
|
tier: 'balanced',
|
|
234
257
|
tagline: 'Best Balance',
|
|
235
258
|
description: 'Meta\'s coding model with high reasoning effort and roughly 1M tokens of context—strong everyday PR review across large diffs.',
|
|
@@ -238,11 +261,11 @@ const MUSE_MODELS = [
|
|
|
238
261
|
default: true
|
|
239
262
|
},
|
|
240
263
|
{
|
|
241
|
-
id: 'muse-spark-1.
|
|
242
|
-
aliases: ['muse-spark-1.2-contributor'],
|
|
243
|
-
cli_model: 'muse-spark-1.
|
|
264
|
+
id: 'muse-spark-1.3-contributor-high',
|
|
265
|
+
aliases: ['muse-spark-1.3-contributor', 'muse-spark-1.2-contributor', 'muse-spark-1.2-contributor-high'],
|
|
266
|
+
cli_model: 'muse-spark-1.3-contributor',
|
|
244
267
|
extra_args: ['--reasoning-effort', 'high'],
|
|
245
|
-
name: 'Muse Spark 1.
|
|
268
|
+
name: 'Muse Spark 1.3 Contributor High',
|
|
246
269
|
tier: 'balanced',
|
|
247
270
|
tagline: 'Discounted Tier',
|
|
248
271
|
description: 'Same model and high reasoning effort at roughly a tenth of the cost. Content you send on this tier may be used by Meta for product improvement—do not select it for proprietary code.',
|
|
@@ -250,10 +273,11 @@ const MUSE_MODELS = [
|
|
|
250
273
|
badgeClass: 'badge-balanced'
|
|
251
274
|
},
|
|
252
275
|
{
|
|
253
|
-
id: 'muse-spark-1.
|
|
254
|
-
|
|
276
|
+
id: 'muse-spark-1.3-low',
|
|
277
|
+
aliases: ['muse-spark-1.2-low'],
|
|
278
|
+
cli_model: 'muse-spark-1.3',
|
|
255
279
|
extra_args: ['--reasoning-effort', 'low'],
|
|
256
|
-
name: 'Muse Spark 1.
|
|
280
|
+
name: 'Muse Spark 1.3 Low',
|
|
257
281
|
tier: 'fast',
|
|
258
282
|
tagline: 'Quick Pass',
|
|
259
283
|
description: 'Muse Spark with low reasoning effort for fast surface scans of small, straightforward changes.',
|
|
@@ -261,10 +285,11 @@ const MUSE_MODELS = [
|
|
|
261
285
|
badgeClass: 'badge-speed'
|
|
262
286
|
},
|
|
263
287
|
{
|
|
264
|
-
id: 'muse-spark-1.
|
|
265
|
-
|
|
288
|
+
id: 'muse-spark-1.3-contributor-low',
|
|
289
|
+
aliases: ['muse-spark-1.2-contributor-low'],
|
|
290
|
+
cli_model: 'muse-spark-1.3-contributor',
|
|
266
291
|
extra_args: ['--reasoning-effort', 'low'],
|
|
267
|
-
name: 'Muse Spark 1.
|
|
292
|
+
name: 'Muse Spark 1.3 Contributor Low',
|
|
268
293
|
tier: 'fast',
|
|
269
294
|
tagline: 'Lowest Cost',
|
|
270
295
|
description: 'The cheapest option: low reasoning effort on the discounted tier. Content you send on this tier may be used by Meta for product improvement—do not select it for proprietary code.',
|
|
@@ -334,8 +359,8 @@ class MuseProvider extends AIProvider {
|
|
|
334
359
|
|
|
335
360
|
// Resolve cli_model + extra_args + env from built-in model, provider config,
|
|
336
361
|
// and per-model config. This is what lets reasoning variants like
|
|
337
|
-
// muse-spark-1.
|
|
338
|
-
// `--reasoning-effort
|
|
362
|
+
// muse-spark-1.3-max pass `--model muse-spark-1.3` plus
|
|
363
|
+
// `--reasoning-effort max`.
|
|
339
364
|
const { cliModel, extraArgs, env } = this._resolveModelConfig(model);
|
|
340
365
|
|
|
341
366
|
// A cli_model of explicitly `null` omits --model entirely, letting muse pick
|
|
@@ -368,7 +393,13 @@ class MuseProvider extends AIProvider {
|
|
|
368
393
|
const configOverrides = this.configOverrides || {};
|
|
369
394
|
|
|
370
395
|
const builtIn = MUSE_MODELS.find(m => m.id === modelId || (m.aliases && m.aliases.includes(modelId)));
|
|
371
|
-
|
|
396
|
+
// A config override may target the built-in by any of its ids/aliases (e.g.
|
|
397
|
+
// keyed under a retired 1.2 id while the provider was constructed with the
|
|
398
|
+
// 1.3 id), or declare its own aliases; match on the union so no lookup diverges.
|
|
399
|
+
const modelKeys = new Set([modelId, builtIn?.id, ...(builtIn?.aliases || [])].filter(Boolean));
|
|
400
|
+
const configModel = configOverrides.models?.find(
|
|
401
|
+
m => modelKeys.has(m.id) || (m.aliases || []).some(a => modelKeys.has(a))
|
|
402
|
+
);
|
|
372
403
|
|
|
373
404
|
const cliModel = configModel?.cli_model !== undefined
|
|
374
405
|
? configModel.cli_model
|
|
@@ -1078,8 +1109,8 @@ class MuseProvider extends AIProvider {
|
|
|
1078
1109
|
|
|
1079
1110
|
if (this.isUnknownModelError(diagnostic)) {
|
|
1080
1111
|
return new Error(
|
|
1081
|
-
`${levelPrefix} Muse CLI rejected the model "${this.model}" as unknown. ` +
|
|
1082
|
-
`Check the model ID (and any cli_model override) against
|
|
1112
|
+
`${levelPrefix} Muse CLI rejected the model "${this.model}" as unknown or inaccessible. ` +
|
|
1113
|
+
`Check the model ID (and any cli_model override) against what \`muse exec --model\` accepts — the locally cached catalog can lag the CLI. ` +
|
|
1083
1114
|
`Original error: ${diagnostic}`
|
|
1084
1115
|
);
|
|
1085
1116
|
}
|
|
@@ -1102,14 +1133,16 @@ class MuseProvider extends AIProvider {
|
|
|
1102
1133
|
}
|
|
1103
1134
|
|
|
1104
1135
|
/**
|
|
1105
|
-
* Detect an unknown/hidden model rejection. Muse fails fast
|
|
1106
|
-
* "model `X` is not in the catalog"
|
|
1136
|
+
* Detect an unknown/hidden/inaccessible model rejection. Muse fails fast
|
|
1137
|
+
* with either "model `X` is not in the catalog" (older CLIs; also "is hidden
|
|
1138
|
+
* in the catalog") or "model `X` does not exist or you lack access" (current
|
|
1139
|
+
* CLI, exit 1).
|
|
1107
1140
|
*
|
|
1108
1141
|
* @param {string} text - Captured stderr and/or terminal reason
|
|
1109
1142
|
* @returns {boolean}
|
|
1110
1143
|
*/
|
|
1111
1144
|
isUnknownModelError(text) {
|
|
1112
|
-
return /is (?:not in|hidden in) the catalog/i.test(text || '');
|
|
1145
|
+
return /(?:is (?:not in|hidden in) the catalog|does not exist or you lack access)/i.test(text || '');
|
|
1113
1146
|
}
|
|
1114
1147
|
|
|
1115
1148
|
/**
|
package/src/ai/provider.js
CHANGED
|
@@ -1097,7 +1097,7 @@ async function testProviderAvailability(providerId, timeoutMs) {
|
|
|
1097
1097
|
* model IDs (e.g. `gpt-5.4` before reasoning-effort variants were introduced)
|
|
1098
1098
|
* still resolve their tier for historical analysis runs.
|
|
1099
1099
|
* @param {string} providerId - Provider ID (e.g., 'claude', 'antigravity')
|
|
1100
|
-
* @param {string} modelId - Model ID (e.g., 'sonnet', 'gemini-3.
|
|
1100
|
+
* @param {string} modelId - Model ID (e.g., 'sonnet', 'gemini-3.8-flash-high')
|
|
1101
1101
|
* @returns {string|null} Tier name or null if provider or model not found
|
|
1102
1102
|
*/
|
|
1103
1103
|
function getTierForModel(providerId, modelId) {
|
package/src/config.js
CHANGED
|
@@ -68,7 +68,7 @@ const DEFAULT_CONFIG = {
|
|
|
68
68
|
single_port: true, // When true, reuse a single server on the configured port; new invocations delegate to the running server
|
|
69
69
|
theme: "light",
|
|
70
70
|
default_provider: "claude", // AI provider: 'claude', 'antigravity', 'codex', 'copilot', 'opencode', 'cursor-agent', 'pi', 'omp', 'muse'
|
|
71
|
-
default_model: "opus", // Model within the provider (e.g., 'opus' for Claude, 'gemini-3.
|
|
71
|
+
default_model: "opus", // Model within the provider (e.g., 'opus' for Claude, 'gemini-3.8-flash-high' for Antigravity)
|
|
72
72
|
tours: {
|
|
73
73
|
enabled: false, // When true, the guided-tour feature is available (toolbar button visible, etc.)
|
|
74
74
|
auto_generate: true, // When true, a tour generation job is kicked off automatically on review load
|
package/src/main.js
CHANGED
|
@@ -235,7 +235,7 @@ OPTIONS:
|
|
|
235
235
|
opus-4.7-xhigh, opus-4.7-high, opus-4.6-high,
|
|
236
236
|
opus-4.6-1m, sonnet-5-xhigh, sonnet-5-high,
|
|
237
237
|
sonnet-4.6
|
|
238
|
-
(opus is Opus 4.8 XHigh
|
|
238
|
+
(default is opus-5-high; opus is Opus 4.8 XHigh)
|
|
239
239
|
or use provider-specific models with Antigravity/Codex
|
|
240
240
|
--provider <name> Override the AI provider for headless modes
|
|
241
241
|
(--ai-draft / --ai-review). Defaults to the
|