@in-the-loop-labs/pair-review 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +2 -2
- 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/public/index.html +3 -0
- package/public/js/index.js +29 -0
- package/src/ai/antigravity-provider.js +76 -35
- package/src/ai/claude-provider.js +115 -39
- package/src/ai/codex-provider.js +19 -24
- package/src/ai/copilot-provider.js +38 -46
- package/src/ai/cursor-agent-provider.js +78 -135
- package/src/ai/provider.js +3 -3
- package/src/chat/session-manager.js +1 -1
- package/src/main.js +7 -3
- package/src/routes/bulk-analysis-configs.js +1 -1
package/README.md
CHANGED
|
@@ -632,7 +632,7 @@ pair-review integrates with AI providers via their CLI tools:
|
|
|
632
632
|
|
|
633
633
|
- **Claude**: Uses Claude Code CLI
|
|
634
634
|
- **Antigravity**: Uses the Antigravity CLI (`agy`), the successor to the Gemini CLI. Install it with `curl -fsSL https://antigravity.google/cli/install.sh | bash` (macOS/Linux; it is not an npm package) — see the [Antigravity docs](https://antigravity.google/docs). Antigravity is an analysis-only provider: it runs as an agentic reviewer in non-interactive print mode and has **no chat/ACP mode**.
|
|
635
|
-
- **Codex**: Uses Codex CLI. GPT-5.6 Sol High (`gpt-5.6-sol-high`) remains the recommended default during rollout. GPT-6.1 Sol High (`gpt-6.1-sol-high`) and XHigh (`gpt-6.1-sol-xhigh`) are explicit choices for reviews and chat; Enterprise and Edu administrators must enable GPT-6.1 Sol access.
|
|
635
|
+
- **Codex**: Uses Codex CLI. GPT-5.6 Sol High (`gpt-5.6-sol-high`) remains the recommended default during rollout. GPT-6.1 Sol High (`gpt-6.1-sol-high`) and XHigh (`gpt-6.1-sol-xhigh`) are explicit choices for reviews and chat; Enterprise and Edu administrators must enable GPT-6.1 Sol access. GPT-6.1 Terra XHigh (`gpt-6.1-terra-xhigh`) is an explicit balanced choice; Enterprise access depends on workspace administrator controls.
|
|
636
636
|
- **GitHub Copilot**: Uses Copilot CLI
|
|
637
637
|
- **OpenCode**: Uses OpenCode CLI (requires model configuration)
|
|
638
638
|
- **Cursor**: Uses Cursor Agent CLI (streaming output with sandbox mode)
|
|
@@ -762,13 +762,13 @@ Use the provider-level `default_model` and `disabled_models` fields to tailor wh
|
|
|
762
762
|
"providers": {
|
|
763
763
|
"claude": {
|
|
764
764
|
"default_model": "sonnet-4.6",
|
|
765
|
-
"disabled_models": ["haiku", "fable"]
|
|
765
|
+
"disabled_models": ["haiku", "fable-5.2-xhigh"]
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
```
|
|
770
770
|
|
|
771
|
-
- `disabled_models` removes those models from the picker. It matches canonical ids only (`opus-5.5-
|
|
771
|
+
- `disabled_models` removes those models from the picker. It matches canonical ids only (`opus-5.5-high`, not the `opus` alias). An alias entry is ignored with a warning, so hiding a retired id such as `opus-4.7-high` never hides the newer model it now redirects to. To find the built-in IDs for a provider, see the comments in `config.example.json` (e.g. Claude ships `opus-5.5-medium`, `sonnet-4.6`, `haiku`, …).
|
|
772
772
|
- `default_model` selects which of the *remaining* models is the default. If it points at a model that is unknown or also disabled, the provider falls back to automatic selection (the model marked `default: true`, then the first `balanced`-tier model, then the first model).
|
|
773
773
|
- Prefer `default_model` over the per-model `default: true` flag, which is deprecated. Setting `default_model` suppresses the deprecation warning.
|
|
774
774
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@in-the-loop-labs/pair-review",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"description": "Your AI-powered code review partner - Close the feedback loop with AI coding agents",
|
|
5
5
|
"main": "src/server.js",
|
|
6
6
|
"bin": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@changesets/cli": "^2.29.8",
|
|
86
|
-
"@playwright/test": "^1.
|
|
86
|
+
"@playwright/test": "^1.65.0",
|
|
87
87
|
"@vitest/coverage-v8": "^4.0.16",
|
|
88
88
|
"dompurify": "^3.2.6",
|
|
89
89
|
"esbuild": "^0.27.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pair-review",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
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.4.
|
|
3
|
+
"version": "5.4.2",
|
|
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/public/index.html
CHANGED
|
@@ -278,6 +278,9 @@
|
|
|
278
278
|
.help-modal-overlay.visible {
|
|
279
279
|
opacity: 1;
|
|
280
280
|
visibility: visible;
|
|
281
|
+
/* Become visible immediately on open so the close button can take
|
|
282
|
+
focus; the base rule still delays hiding until the fade-out ends. */
|
|
283
|
+
transition: opacity var(--transition-default), visibility 0s;
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
[data-theme="dark"] .help-modal-overlay {
|
package/public/js/index.js
CHANGED
|
@@ -22,16 +22,23 @@
|
|
|
22
22
|
|
|
23
23
|
// ─── Help Modal ─────────────────────────────────────────────────────────────
|
|
24
24
|
|
|
25
|
+
/** Element that had focus before the help modal opened, refocused on close */
|
|
26
|
+
let helpModalReturnFocus = null;
|
|
27
|
+
|
|
25
28
|
function openHelpModal() {
|
|
26
29
|
const overlay = document.getElementById('help-modal-overlay');
|
|
30
|
+
helpModalReturnFocus = document.activeElement;
|
|
27
31
|
overlay.classList.add('visible');
|
|
28
32
|
document.body.style.overflow = 'hidden';
|
|
33
|
+
document.getElementById('help-modal-close').focus();
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
function closeHelpModal() {
|
|
32
37
|
const overlay = document.getElementById('help-modal-overlay');
|
|
33
38
|
overlay.classList.remove('visible');
|
|
34
39
|
document.body.style.overflow = '';
|
|
40
|
+
if (helpModalReturnFocus) helpModalReturnFocus.focus();
|
|
41
|
+
helpModalReturnFocus = null;
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
// Set up help button
|
|
@@ -2471,6 +2478,27 @@
|
|
|
2471
2478
|
|
|
2472
2479
|
// ─── DOMContentLoaded Initialization ────────────────────────────────────────
|
|
2473
2480
|
|
|
2481
|
+
/** Start-review input to focus on load, keyed by tab pane id */
|
|
2482
|
+
const TAB_AUTOFOCUS_INPUT_IDS = {
|
|
2483
|
+
'pr-tab': 'pr-url-input',
|
|
2484
|
+
'local-tab': 'local-path-input'
|
|
2485
|
+
};
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* Focus the restored tab's start-review input so a review can be started by
|
|
2489
|
+
* pasting and pressing Enter. Leaves focus alone if the user already moved
|
|
2490
|
+
* it while the page was loading.
|
|
2491
|
+
* @param {string} tabId - Tab pane id restored on load
|
|
2492
|
+
*/
|
|
2493
|
+
function focusRestoredTabInput(tabId) {
|
|
2494
|
+
const inputId = TAB_AUTOFOCUS_INPUT_IDS[tabId];
|
|
2495
|
+
if (!inputId) return;
|
|
2496
|
+
if (document.activeElement && document.activeElement !== document.body) return;
|
|
2497
|
+
|
|
2498
|
+
const input = document.getElementById(inputId);
|
|
2499
|
+
if (input) input.focus();
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2474
2502
|
document.addEventListener('DOMContentLoaded', async function () {
|
|
2475
2503
|
// Load config and update command examples based on npx detection.
|
|
2476
2504
|
// Await so that window.__pairReview.enableGraphite (and other config
|
|
@@ -2487,6 +2515,7 @@
|
|
|
2487
2515
|
switchTab(tabBar, targetBtn);
|
|
2488
2516
|
}
|
|
2489
2517
|
}
|
|
2518
|
+
focusRestoredTabInput(savedTab);
|
|
2490
2519
|
|
|
2491
2520
|
// Always load PR reviews (they show on initial load). This is the only
|
|
2492
2521
|
// caller that opens the help modal for an empty list.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* the official successor to the Gemini CLI.
|
|
7
7
|
*
|
|
8
8
|
* ============================================================================
|
|
9
|
-
* HOW THIS ADAPTER DRIVES `agy` (verified against agy 1.0.16; models re-verified against 1.
|
|
9
|
+
* HOW THIS ADAPTER DRIVES `agy` (verified against agy 1.0.16; models re-verified against 1.5.7)
|
|
10
10
|
* ============================================================================
|
|
11
11
|
* The Antigravity CLI's non-interactive "print" mode (`agy -p`) IS a real
|
|
12
12
|
* agentic loop — it reads files, searches the tree, and runs shell commands to
|
|
@@ -93,34 +93,44 @@ const TIMEOUT_BACKSTOP_GRACE_MS = 15000;
|
|
|
93
93
|
*
|
|
94
94
|
* We curate the Gemini-family models here — Antigravity is the Gemini CLI's
|
|
95
95
|
* successor and its native models are Gemini. Ordered thorough -> balanced ->
|
|
96
|
-
* fast, matching the other providers' pickers.
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
96
|
+
* fast, matching the other providers' pickers. Every built-in passes an
|
|
97
|
+
* effort-suffixed display name (`Gemini 4 Argon (High)`): as of agy 1.5.7 a
|
|
98
|
+
* bare display name is "not recognized", and a bare slug resolves to the
|
|
99
|
+
* server-default effort (Medium for Argon), so effort stays in the `cliName`.
|
|
100
|
+
*
|
|
101
|
+
* Gemini 3.8 Flash at high effort stays the default: it is the strongest
|
|
102
|
+
* Gemini every agy plan can run (DeepSWE v1.1 73.7, Terminal-Bench 2.1 89.4),
|
|
103
|
+
* and its medium and low variants lead the balanced and fast tiers.
|
|
104
|
+
* Provider-switch paths (AnalysisConfigModal.selectProvider,
|
|
105
|
+
* RepoSettingsPage) map the previous model's tier onto the first model of
|
|
106
|
+
* that tier here, and getFastTierModel() picks the first `tier: 'fast'` model
|
|
107
|
+
* for JSON extraction, so each tier must be LED by a model every plan can run.
|
|
108
|
+
*
|
|
109
|
+
* Gemini 4 Hydrogen (GA 2026-11-12) is the everyday Gemini 4 model and 3.8
|
|
110
|
+
* Flash's successor (Terminal-Bench 4.1 57.0 vs 18.2; xhigh is a new level).
|
|
111
|
+
* It is an explicit choice, not the default: at $1.50/$7.50 per 1M tokens it
|
|
112
|
+
* costs twice 3.8 Flash ($0.75/$3.75 through 2026-12-31), and Google is
|
|
113
|
+
* rolling it out to paid Google AI Pro and Ultra subscribers first.
|
|
114
|
+
*
|
|
115
|
+
* Gemini 4 Argon (GA 2026-10-13, "efficient frontier") needs a paid Google AI
|
|
116
|
+
* Pro, Ultra, or eligible Enterprise plan; it is never the default or a tier
|
|
117
|
+
* leader. Its original id `gemini-4-argon` is kept as an alias of the High
|
|
118
|
+
* entry: agy 1.3.5 accepted only the bare `Gemini 4 Argon` and ran it at
|
|
119
|
+
* High, which is exactly what `gemini-4-argon-high` now runs.
|
|
120
|
+
*
|
|
121
|
+
* Gemini 4 Carbon (Ultra / Enterprise only) is not built in: agy offers it
|
|
122
|
+
* only to Application Default Credentials sign-ins (`AGY_ADC_AUTH`), and a
|
|
123
|
+
* Google-account sign-in reports it as "not recognized". Reach it via a
|
|
124
|
+
* `providers.antigravity.models` config override with `cli_model`.
|
|
116
125
|
*
|
|
117
126
|
* Deprecated: gemini-3.1-pro-high, gemini-3.1-pro-low (alias gemini-3.1-pro) —
|
|
118
|
-
* agy
|
|
119
|
-
* They are deliberately NOT aliased onto another model (3.8 Flash is
|
|
120
|
-
* different line; Argon is plan-gated). The browser resolvers fall back to
|
|
121
|
-
* provider default for a saved selection that is no longer in the catalog;
|
|
127
|
+
* agy no longer offers 3.1 Pro outside Enterprise ("not recognized as a known
|
|
128
|
+
* model"). They are deliberately NOT aliased onto another model (3.8 Flash is
|
|
129
|
+
* a different line; Argon is plan-gated). The browser resolvers fall back to
|
|
130
|
+
* the provider default for a saved selection that is no longer in the catalog;
|
|
122
131
|
* headless, MCP, and saved-council runs pass the id through and agy fails with
|
|
123
|
-
* an unknown-model error.
|
|
132
|
+
* an unknown-model error. Retired 3.5 Flash ids are aliases of their 3.8 Flash
|
|
133
|
+
* counterparts at the same effort, so saved selections keep working.
|
|
124
134
|
*
|
|
125
135
|
* `agy` also exposes Claude and GPT-OSS models; those remain reachable via a
|
|
126
136
|
* `providers.antigravity.models` config override but are intentionally left
|
|
@@ -136,21 +146,42 @@ const ANTIGRAVITY_MODELS = [
|
|
|
136
146
|
name: '3.8 Flash (High)',
|
|
137
147
|
tier: 'thorough',
|
|
138
148
|
tagline: 'Frontier Review',
|
|
139
|
-
description: 'Gemini 3.8 Flash at high effort is the strongest Gemini available on every agy plan — DeepSWE v1.1 73.7, Terminal-Bench 2.1 89.4
|
|
149
|
+
description: 'Gemini 3.8 Flash at high effort is the strongest Gemini available on every agy plan — DeepSWE v1.1 73.7, Terminal-Bench 2.1 89.4. "Flash" now means latency, not capability. Uses the thorough prompt set.',
|
|
140
150
|
badge: 'Recommended',
|
|
141
151
|
badgeClass: 'badge-recommended',
|
|
142
152
|
default: true
|
|
143
153
|
},
|
|
144
154
|
{
|
|
145
|
-
id: 'gemini-4-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
155
|
+
id: 'gemini-4-hydrogen-xhigh',
|
|
156
|
+
cliName: 'Gemini 4 Hydrogen (XHigh)',
|
|
157
|
+
name: '4 Hydrogen (XHigh)',
|
|
158
|
+
tier: 'thorough',
|
|
159
|
+
tagline: 'Deepest Everyday Review',
|
|
160
|
+
description: 'Gemini 4 Hydrogen (Nov 2026), the 3.8 Flash successor, at its new extra-high effort — Terminal-Bench 4.1 57.0 vs 3.8 Flash\'s 18.2. $1.50/$7.50 per 1M tokens, twice 3.8 Flash; rolling out to paid Google AI Pro and Ultra plans first. Uses the thorough prompt set.',
|
|
161
|
+
badge: 'Newest',
|
|
162
|
+
badgeClass: 'badge-power'
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: 'gemini-4-hydrogen-high',
|
|
166
|
+
cliName: 'Gemini 4 Hydrogen (High)',
|
|
167
|
+
name: '4 Hydrogen (High)',
|
|
150
168
|
tier: 'thorough',
|
|
151
|
-
tagline: '
|
|
152
|
-
description: 'Gemini 4
|
|
153
|
-
badge: '
|
|
169
|
+
tagline: 'Fast Deep Review',
|
|
170
|
+
description: 'Gemini 4 Hydrogen at its default high effort — Google reports it 2.5x faster than 3.8 Flash at high. $1.50/$7.50 per 1M tokens; rolling out to paid Google AI Pro and Ultra plans first. Uses the thorough prompt set.',
|
|
171
|
+
badge: 'High Effort',
|
|
172
|
+
badgeClass: 'badge-power'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: 'gemini-4-argon-high',
|
|
176
|
+
cliName: 'Gemini 4 Argon (High)',
|
|
177
|
+
// agy 1.3.5 accepted Argon only as the bare `Gemini 4 Argon`, which ran at
|
|
178
|
+
// High; agy 1.5.7 rejects that string, so the old id lands here.
|
|
179
|
+
aliases: ['gemini-4-argon'],
|
|
180
|
+
name: '4 Argon (High)',
|
|
181
|
+
tier: 'thorough',
|
|
182
|
+
tagline: 'Frontier — Paid Plan',
|
|
183
|
+
description: 'Gemini 4 Argon (Oct 2026), Google\'s efficient-frontier model, at high effort — DeepSWE v1.1 77.9. Requires a paid Google AI Pro, Ultra, or eligible Gemini Enterprise plan; on other plans agy refuses it. Uses the thorough prompt set.',
|
|
184
|
+
badge: 'Paid Plan',
|
|
154
185
|
badgeClass: 'badge-power'
|
|
155
186
|
},
|
|
156
187
|
{
|
|
@@ -163,6 +194,16 @@ const ANTIGRAVITY_MODELS = [
|
|
|
163
194
|
badge: 'Balanced',
|
|
164
195
|
badgeClass: 'badge-balanced'
|
|
165
196
|
},
|
|
197
|
+
{
|
|
198
|
+
id: 'gemini-4-hydrogen-medium',
|
|
199
|
+
cliName: 'Gemini 4 Hydrogen (Medium)',
|
|
200
|
+
name: '4 Hydrogen (Medium)',
|
|
201
|
+
tier: 'balanced',
|
|
202
|
+
tagline: 'Newer Standard Review',
|
|
203
|
+
description: 'Gemini 4 Hydrogen at medium effort — the newer model for routine PRs. $1.50/$7.50 per 1M tokens, twice 3.8 Flash; rolling out to paid Google AI Pro and Ultra plans first.',
|
|
204
|
+
badge: 'Medium Effort',
|
|
205
|
+
badgeClass: 'badge-balanced'
|
|
206
|
+
},
|
|
166
207
|
{
|
|
167
208
|
id: 'gemini-3.8-flash-low',
|
|
168
209
|
cliName: 'Gemini 3.8 Flash (Low)',
|
|
@@ -26,29 +26,28 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
26
26
|
* in the constructor's base args; individual models can override this via extra_args
|
|
27
27
|
* (e.g., Haiku uses adaptive thinking for efficiency).
|
|
28
28
|
*
|
|
29
|
-
* Effort support by model (newest CLIs): Fable 5.
|
|
30
|
-
*
|
|
31
|
-
* low|medium|high|max (no xhigh);
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
29
|
+
* Effort support by model (newest CLIs): Fable 5.2, Fable 5.1, Fable 5,
|
|
30
|
+
* Opus 5.5, Opus 5, Sonnet 5.5, Sonnet 5, and Haiku 5.5 support
|
|
31
|
+
* low|medium|high|xhigh|max; Sonnet 4.6 supports low|medium|high|max (no xhigh);
|
|
32
|
+
* Haiku 4.5 has no effort levels.
|
|
33
|
+
* The CLI's own default effort for Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5
|
|
34
|
+
* is `medium` (and a top-level `effortLevel` in user settings does not apply to
|
|
35
|
+
* Opus 5.5 or later models), so their entries rely on the env var, which the CLI
|
|
36
|
+
* treats as an explicit choice at the top of its effort precedence.
|
|
37
|
+
*
|
|
38
|
+
* Thinking cannot be turned off on Fable (every generation), Opus 5.5,
|
|
39
|
+
* Sonnet 5.5, or Haiku 5.5, so those entries pin `--thinking adaptive`.
|
|
35
40
|
*/
|
|
36
41
|
const CLAUDE_MODELS = [
|
|
37
42
|
// ── Thorough tier ───────────────────────────────────────────────────────
|
|
38
43
|
{
|
|
39
|
-
id: 'fable-5.
|
|
40
|
-
|
|
41
|
-
// the newest generation at XHigh: a config, council, or --model naming the
|
|
42
|
-
// alias moves up a generation on each update without losing effort. Older
|
|
43
|
-
// generations stay reachable by their explicit ids. The provider DEFAULT
|
|
44
|
-
// (opus-5.5-high) is a separate setting, chosen by the `default: true` flag.
|
|
45
|
-
aliases: ['fable'],
|
|
46
|
-
cli_model: 'claude-fable-5-1',
|
|
44
|
+
id: 'fable-5.2-xhigh',
|
|
45
|
+
cli_model: 'claude-fable-5-2',
|
|
47
46
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
48
|
-
name: 'Fable 5.
|
|
47
|
+
name: 'Fable 5.2 XHigh',
|
|
49
48
|
tier: 'thorough',
|
|
50
49
|
tagline: 'Newest Fable',
|
|
51
|
-
description: 'Fable 5.
|
|
50
|
+
description: 'Fable 5.2 (newest, most capable tier) with extra-high effort',
|
|
52
51
|
badge: 'Extra-High Effort',
|
|
53
52
|
badgeClass: 'badge-power',
|
|
54
53
|
// Every Fable generation is adaptive-thinking-only: an explicit
|
|
@@ -56,13 +55,45 @@ const CLAUDE_MODELS = [
|
|
|
56
55
|
// global `--thinking enabled` base arg (last occurrence wins in commander).
|
|
57
56
|
extra_args: ['--thinking', 'adaptive']
|
|
58
57
|
},
|
|
58
|
+
{
|
|
59
|
+
id: 'fable-5.2-high',
|
|
60
|
+
// The bare generation aliases ('fable' here, 'opus' on opus-5.5-high) track
|
|
61
|
+
// the newest generation at High: a config, council, or --model naming the
|
|
62
|
+
// alias moves up a generation on each update without changing effort. Older
|
|
63
|
+
// generations and the XHigh variants stay reachable by their explicit ids.
|
|
64
|
+
// The provider DEFAULT is a separate setting, chosen by the `default: true`
|
|
65
|
+
// flag (it happens to be opus-5.5-high today).
|
|
66
|
+
aliases: ['fable'],
|
|
67
|
+
cli_model: 'claude-fable-5-2',
|
|
68
|
+
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
69
|
+
name: 'Fable 5.2 High',
|
|
70
|
+
tier: 'thorough',
|
|
71
|
+
tagline: 'Newest Fable',
|
|
72
|
+
description: 'Fable 5.2 with high effort — quicker than XHigh',
|
|
73
|
+
badge: 'High Effort',
|
|
74
|
+
badgeClass: 'badge-power',
|
|
75
|
+
extra_args: ['--thinking', 'adaptive']
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 'fable-5.1-xhigh',
|
|
79
|
+
cli_model: 'claude-fable-5-1',
|
|
80
|
+
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
81
|
+
name: 'Fable 5.1 XHigh',
|
|
82
|
+
tier: 'thorough',
|
|
83
|
+
tagline: 'Previous Fable',
|
|
84
|
+
description: 'Fable 5.1 (previous Fable) with extra-high effort',
|
|
85
|
+
badge: 'Extra-High Effort',
|
|
86
|
+
badgeClass: 'badge-power',
|
|
87
|
+
// Adaptive-thinking-only, as with Fable 5.2 above.
|
|
88
|
+
extra_args: ['--thinking', 'adaptive']
|
|
89
|
+
},
|
|
59
90
|
{
|
|
60
91
|
id: 'fable-5.1-high',
|
|
61
92
|
cli_model: 'claude-fable-5-1',
|
|
62
93
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
63
94
|
name: 'Fable 5.1 High',
|
|
64
95
|
tier: 'thorough',
|
|
65
|
-
tagline: '
|
|
96
|
+
tagline: 'Previous Fable',
|
|
66
97
|
description: 'Fable 5.1 with high effort — quicker than XHigh',
|
|
67
98
|
badge: 'High Effort',
|
|
68
99
|
badgeClass: 'badge-power',
|
|
@@ -74,11 +105,11 @@ const CLAUDE_MODELS = [
|
|
|
74
105
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
75
106
|
name: 'Fable 5 XHigh',
|
|
76
107
|
tier: 'thorough',
|
|
77
|
-
tagline: '
|
|
78
|
-
description: 'Fable 5 (
|
|
108
|
+
tagline: 'Older Fable',
|
|
109
|
+
description: 'Fable 5 (older Fable) with extra-high effort',
|
|
79
110
|
badge: 'Extra-High Effort',
|
|
80
111
|
badgeClass: 'badge-power',
|
|
81
|
-
// Adaptive-thinking-only, as with Fable 5.
|
|
112
|
+
// Adaptive-thinking-only, as with Fable 5.2 above.
|
|
82
113
|
extra_args: ['--thinking', 'adaptive']
|
|
83
114
|
},
|
|
84
115
|
{
|
|
@@ -87,7 +118,7 @@ const CLAUDE_MODELS = [
|
|
|
87
118
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
88
119
|
name: 'Fable 5 High',
|
|
89
120
|
tier: 'thorough',
|
|
90
|
-
tagline: '
|
|
121
|
+
tagline: 'Older Fable',
|
|
91
122
|
description: 'Fable 5 with high effort — quicker than XHigh',
|
|
92
123
|
badge: 'High Effort',
|
|
93
124
|
badgeClass: 'badge-power',
|
|
@@ -95,10 +126,10 @@ const CLAUDE_MODELS = [
|
|
|
95
126
|
},
|
|
96
127
|
{
|
|
97
128
|
id: 'opus-5.5-xhigh',
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
//
|
|
101
|
-
aliases: ['opus
|
|
129
|
+
// The Opus 4.x entries were dropped; their ids resolve to the Opus 5.5 entry
|
|
130
|
+
// at the matching effort so saved configs, councils, and --model flags keep
|
|
131
|
+
// working.
|
|
132
|
+
aliases: ['opus-4.8-xhigh', 'opus-4.7-xhigh'],
|
|
102
133
|
cli_model: 'claude-opus-5-5',
|
|
103
134
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
104
135
|
name: 'Opus 5.5 XHigh',
|
|
@@ -114,7 +145,8 @@ const CLAUDE_MODELS = [
|
|
|
114
145
|
},
|
|
115
146
|
{
|
|
116
147
|
id: 'opus-5.5-high',
|
|
117
|
-
|
|
148
|
+
// Generation alias 'opus'; see fable-5.2-high above.
|
|
149
|
+
aliases: ['opus', 'opus-4.8-high', 'opus-4.7-high', 'opus-4.6-high', 'opus-4.6-1m', 'opus-4.5'],
|
|
118
150
|
cli_model: 'claude-opus-5-5',
|
|
119
151
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
120
152
|
name: 'Opus 5.5 High',
|
|
@@ -149,16 +181,42 @@ const CLAUDE_MODELS = [
|
|
|
149
181
|
badgeClass: 'badge-power'
|
|
150
182
|
},
|
|
151
183
|
// ── Balanced tier ───────────────────────────────────────────────────────
|
|
184
|
+
{
|
|
185
|
+
id: 'sonnet-5.5-xhigh',
|
|
186
|
+
cli_model: 'claude-sonnet-5-5',
|
|
187
|
+
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
188
|
+
name: 'Sonnet 5.5 XHigh',
|
|
189
|
+
tier: 'balanced',
|
|
190
|
+
tagline: 'Best Balance',
|
|
191
|
+
description: 'Sonnet 5.5 (newest) with extra-high effort — recommended for most reviews',
|
|
192
|
+
badge: 'Recommended',
|
|
193
|
+
badgeClass: 'badge-recommended',
|
|
194
|
+
// Thinking cannot be turned off on Sonnet 5.5 (unlike Sonnet 5), so pin
|
|
195
|
+
// adaptive as with Opus 5.5 and Fable.
|
|
196
|
+
extra_args: ['--thinking', 'adaptive']
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: 'sonnet-5.5-high',
|
|
200
|
+
cli_model: 'claude-sonnet-5-5',
|
|
201
|
+
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
202
|
+
name: 'Sonnet 5.5 High',
|
|
203
|
+
tier: 'balanced',
|
|
204
|
+
tagline: 'Faster',
|
|
205
|
+
description: 'Sonnet 5.5 with high effort — quicker than XHigh, still sharp',
|
|
206
|
+
badge: 'Quick & Sharp',
|
|
207
|
+
badgeClass: 'badge-speed',
|
|
208
|
+
extra_args: ['--thinking', 'adaptive']
|
|
209
|
+
},
|
|
152
210
|
{
|
|
153
211
|
id: 'sonnet-5-xhigh',
|
|
154
212
|
cli_model: 'claude-sonnet-5',
|
|
155
213
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
156
214
|
name: 'Sonnet 5 XHigh',
|
|
157
215
|
tier: 'balanced',
|
|
158
|
-
tagline: '
|
|
159
|
-
description: 'Sonnet 5 (
|
|
160
|
-
badge: '
|
|
161
|
-
badgeClass: 'badge-
|
|
216
|
+
tagline: 'Previous Sonnet',
|
|
217
|
+
description: 'Sonnet 5 (previous Sonnet) with extra-high effort',
|
|
218
|
+
badge: 'Extra-High Effort',
|
|
219
|
+
badgeClass: 'badge-balanced'
|
|
162
220
|
},
|
|
163
221
|
{
|
|
164
222
|
id: 'sonnet-5-high',
|
|
@@ -166,10 +224,10 @@ const CLAUDE_MODELS = [
|
|
|
166
224
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
167
225
|
name: 'Sonnet 5 High',
|
|
168
226
|
tier: 'balanced',
|
|
169
|
-
tagline: '
|
|
170
|
-
description: 'Sonnet 5 with high effort — quicker than XHigh
|
|
171
|
-
badge: '
|
|
172
|
-
badgeClass: 'badge-
|
|
227
|
+
tagline: 'Previous Sonnet',
|
|
228
|
+
description: 'Sonnet 5 with high effort — quicker than XHigh',
|
|
229
|
+
badge: 'High Effort',
|
|
230
|
+
badgeClass: 'badge-balanced'
|
|
173
231
|
},
|
|
174
232
|
{
|
|
175
233
|
id: 'opus-5.5-medium',
|
|
@@ -196,19 +254,37 @@ const CLAUDE_MODELS = [
|
|
|
196
254
|
},
|
|
197
255
|
// ── Fast tier ───────────────────────────────────────────────────────────
|
|
198
256
|
{
|
|
257
|
+
// First fast-tier entry: getFastTierModel() picks it for JSON extraction and
|
|
258
|
+
// hunk summaries. Haiku 5.5 is newer and far cheaper than Haiku 4.5, and runs
|
|
259
|
+
// at medium effort (its own default) so extraction keeps its accuracy.
|
|
260
|
+
id: 'haiku-5.5-medium',
|
|
261
|
+
cli_model: 'claude-haiku-5-5',
|
|
262
|
+
env: { CLAUDE_CODE_EFFORT_LEVEL: 'medium' },
|
|
263
|
+
name: 'Haiku 5.5 Medium',
|
|
264
|
+
tier: 'fast',
|
|
265
|
+
tagline: 'Lightning Fast',
|
|
266
|
+
description: 'Haiku 5.5 (newest) with medium effort — quick analysis for simple changes',
|
|
267
|
+
badge: 'Fastest',
|
|
268
|
+
badgeClass: 'badge-speed',
|
|
269
|
+
// Thinking cannot be turned off on Haiku 5.5.
|
|
270
|
+
extra_args: ['--thinking', 'adaptive']
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
// 'haiku' stays pinned to Haiku 4.5: it is a canonical id, not a generation
|
|
274
|
+
// alias, so configs naming it keep the model they were written against.
|
|
199
275
|
id: 'haiku',
|
|
200
276
|
cli_model: 'claude-haiku-4-5-20251001',
|
|
201
277
|
name: 'Haiku 4.5',
|
|
202
278
|
tier: 'fast',
|
|
203
|
-
tagline: '
|
|
204
|
-
description: '
|
|
205
|
-
badge: '
|
|
279
|
+
tagline: 'Previous Haiku',
|
|
280
|
+
description: 'Haiku 4.5 (previous Haiku) — quick analysis for simple changes',
|
|
281
|
+
badge: 'Previous Gen',
|
|
206
282
|
badgeClass: 'badge-speed',
|
|
207
283
|
extra_args: ['--thinking', 'adaptive']
|
|
208
284
|
},
|
|
209
285
|
{
|
|
210
|
-
// Kept after
|
|
211
|
-
// extraction and hunk summaries, which should stay on Haiku.
|
|
286
|
+
// Kept after the Haiku entries: getFastTierModel() takes the first fast-tier
|
|
287
|
+
// entry for extraction and hunk summaries, which should stay on Haiku.
|
|
212
288
|
id: 'opus-5.5-low',
|
|
213
289
|
aliases: ['opus-4.6-low'],
|
|
214
290
|
cli_model: 'claude-opus-5-5',
|
package/src/ai/codex-provider.js
CHANGED
|
@@ -24,6 +24,9 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
24
24
|
* Descriptions follow the Codex CLI model catalog. GPT-5.6 Sol High stays the
|
|
25
25
|
* recommended default during the GPT-6 rollout. GPT-6 Sol/Luna require admin
|
|
26
26
|
* enablement in Enterprise; GPT-6.1 Sol requires it in Enterprise and Edu.
|
|
27
|
+
* GPT-6.1 Terra (2026-10-26, $1/$5 per 1M tokens, Codex CLI >= 0.159.0) runs on
|
|
28
|
+
* Plus, Pro, Business, Enterprise, and Edu, with Enterprise access subject to
|
|
29
|
+
* workspace availability and administrator controls.
|
|
27
30
|
* Selecting a model locally does not grant access. testAvailability() checks
|
|
28
31
|
* only `codex --version`, and model rejection does not trigger a fallback,
|
|
29
32
|
* so GPT-6 and GPT-6.1 remain explicit choices.
|
|
@@ -35,8 +38,6 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
35
38
|
* GPT-5.6 during rollout for access compatibility.
|
|
36
39
|
* Guided tours use the provider default, not the fast tier.
|
|
37
40
|
*
|
|
38
|
-
* GPT-5.5 retires from Codex on all plans on 2026-10-14 (API unaffected);
|
|
39
|
-
* remove the gpt-5.5-* entries then.
|
|
40
41
|
* Workspace access: learn.chatgpt.com/docs/enterprise/workspace-model-availability
|
|
41
42
|
*
|
|
42
43
|
* Reasoning-effort variants (-low / -high / -xhigh / -max) use `cli_model` to pass
|
|
@@ -55,6 +56,11 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
55
56
|
* verbatim with no effort override, so API-key users can still name it raw
|
|
56
57
|
* (`--model gpt-5.4-mini`, or a `providers.codex.models` entry for the web UI
|
|
57
58
|
* picker).
|
|
59
|
+
* Deprecated (October 14, 2026): gpt-5.5 (gpt-5.5-high / gpt-5.5-xhigh) — retired
|
|
60
|
+
* from Codex with ChatGPT sign-in (Codex rejects it with a 400) but still valid
|
|
61
|
+
* for API keys. OpenAI moves ChatGPT plans to GPT-6.1 Sol; it is NOT aliased
|
|
62
|
+
* (different model line and price). Like gpt-5.4-mini, API-key users can still
|
|
63
|
+
* name the raw id (`--model gpt-5.5`).
|
|
58
64
|
*/
|
|
59
65
|
const CODEX_MODELS = [
|
|
60
66
|
// ── Thorough tier ───────────────────────────────────────────────────────
|
|
@@ -147,28 +153,6 @@ const CODEX_MODELS = [
|
|
|
147
153
|
badge: 'Extra High',
|
|
148
154
|
badgeClass: 'badge-power'
|
|
149
155
|
},
|
|
150
|
-
{
|
|
151
|
-
id: 'gpt-5.5-high',
|
|
152
|
-
cli_model: 'gpt-5.5',
|
|
153
|
-
extra_args: ['-c', 'model_reasoning_effort="high"'],
|
|
154
|
-
name: 'GPT-5.5 High',
|
|
155
|
-
tier: 'thorough',
|
|
156
|
-
tagline: 'Legacy Coding',
|
|
157
|
-
description: 'Legacy coding model, with high reasoning effort for demanding reviews and careful cross-file analysis. OpenAI retires GPT-5.5 from Codex on 2026-10-14.',
|
|
158
|
-
badge: 'Legacy',
|
|
159
|
-
badgeClass: 'badge-power'
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
id: 'gpt-5.5-xhigh',
|
|
163
|
-
cli_model: 'gpt-5.5',
|
|
164
|
-
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
165
|
-
name: 'GPT-5.5 XHigh',
|
|
166
|
-
tier: 'thorough',
|
|
167
|
-
tagline: 'Legacy Coding Depth',
|
|
168
|
-
description: 'Legacy coding model, with extra-high reasoning effort for architecture, concurrency, and security-sensitive reviews. OpenAI retires GPT-5.5 from Codex on 2026-10-14.',
|
|
169
|
-
badge: 'Max Reasoning',
|
|
170
|
-
badgeClass: 'badge-power'
|
|
171
|
-
},
|
|
172
156
|
// ── Balanced tier ───────────────────────────────────────────────────────
|
|
173
157
|
// Provider switching and default fallback must work without GPT-6 access.
|
|
174
158
|
{
|
|
@@ -182,6 +166,17 @@ const CODEX_MODELS = [
|
|
|
182
166
|
badge: 'Previous Gen',
|
|
183
167
|
badgeClass: 'badge-balanced'
|
|
184
168
|
},
|
|
169
|
+
{
|
|
170
|
+
id: 'gpt-6.1-terra-xhigh',
|
|
171
|
+
cli_model: 'gpt-6.1-terra',
|
|
172
|
+
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
173
|
+
name: 'GPT-6.1 Terra XHigh',
|
|
174
|
+
tier: 'balanced',
|
|
175
|
+
tagline: 'Latest Balanced',
|
|
176
|
+
description: 'Fast, efficient model for professional work, with extra-high reasoning effort for careful everyday reviews and scoped fixes. Requires GPT-6.1 Terra access; Enterprise access depends on workspace availability and administrator controls.',
|
|
177
|
+
badge: 'Newest',
|
|
178
|
+
badgeClass: 'badge-balanced'
|
|
179
|
+
},
|
|
185
180
|
{
|
|
186
181
|
id: 'gpt-5.6-luna-max',
|
|
187
182
|
cli_model: 'gpt-5.6-luna',
|
|
@@ -22,33 +22,43 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
22
22
|
*
|
|
23
23
|
* GitHub Copilot CLI supports multiple AI models including OpenAI,
|
|
24
24
|
* Anthropic, and Google models via the --model flag.
|
|
25
|
-
*
|
|
26
|
-
* claude-sonnet-
|
|
27
|
-
*
|
|
28
|
-
*
|
|
25
|
+
* Built-in models (as of November 2026): claude-haiku-5.5, gpt-5.6-luna (fast);
|
|
26
|
+
* claude-sonnet-5.5 (default), gpt-5.6-terra (balanced); claude-opus-5.5,
|
|
27
|
+
* gpt-5.6-sol (thorough). Any other id Copilot supports (gpt-6.1-sol,
|
|
28
|
+
* claude-fable-5.2, gemini-4-argon, ...) can be passed verbatim with --model or
|
|
29
|
+
* added via `providers.copilot.models`.
|
|
30
|
+
* Ids and prices: docs.github.com/en/copilot/reference/ai-models/supported-models
|
|
31
|
+
*
|
|
32
|
+
* Deprecated (November 2026): claude-sonnet-4.6, claude-opus-4.5, claude-opus-4.6
|
|
33
|
+
* (retired 2026-09-01), claude-opus-4.6-fast (retired 2026-06-29), gpt-5.4 and
|
|
34
|
+
* gpt-5.4-mini (retired 2026-10-19), claude-haiku-4.6 (never in Copilot's
|
|
35
|
+
* supported list), gpt-5.3-codex (still supported, dropped from the built-ins
|
|
36
|
+
* as superseded by GPT-5.6). None are aliased: their successors are different
|
|
37
|
+
* generations at different prices, so a saved council fails loudly rather than
|
|
38
|
+
* silently running another model.
|
|
29
39
|
*/
|
|
30
40
|
const COPILOT_MODELS = [
|
|
31
41
|
{
|
|
32
|
-
id: 'claude-haiku-
|
|
33
|
-
name: 'Claude Haiku
|
|
42
|
+
id: 'claude-haiku-5.5',
|
|
43
|
+
name: 'Claude Haiku 5.5',
|
|
34
44
|
tier: 'fast',
|
|
35
45
|
tagline: 'Quick Scan',
|
|
36
|
-
description: 'Rapid feedback for obvious issues, style checks, and simple logic errors',
|
|
46
|
+
description: 'Rapid, very low-cost feedback for obvious issues, style checks, and simple logic errors',
|
|
37
47
|
badge: 'Speedy',
|
|
38
48
|
badgeClass: 'badge-speed'
|
|
39
49
|
},
|
|
40
50
|
{
|
|
41
|
-
id: 'gpt-5.
|
|
42
|
-
name: 'GPT-5.
|
|
51
|
+
id: 'gpt-5.6-luna',
|
|
52
|
+
name: 'GPT-5.6 Luna',
|
|
43
53
|
tier: 'fast',
|
|
44
54
|
tagline: 'Fast & Cheap',
|
|
45
|
-
description: 'Low-cost
|
|
55
|
+
description: 'Low-cost OpenAI model for quick reviews with solid reasoning',
|
|
46
56
|
badge: 'Fast',
|
|
47
57
|
badgeClass: 'badge-speed'
|
|
48
58
|
},
|
|
49
59
|
{
|
|
50
|
-
id: 'claude-sonnet-
|
|
51
|
-
name: 'Claude Sonnet
|
|
60
|
+
id: 'claude-sonnet-5.5',
|
|
61
|
+
name: 'Claude Sonnet 5.5',
|
|
52
62
|
tier: 'balanced',
|
|
53
63
|
tagline: 'Best Balance',
|
|
54
64
|
description: 'Latest Sonnet—excellent code understanding with fast turnaround',
|
|
@@ -57,49 +67,31 @@ const COPILOT_MODELS = [
|
|
|
57
67
|
default: true
|
|
58
68
|
},
|
|
59
69
|
{
|
|
60
|
-
id: 'gpt-5.
|
|
61
|
-
name: 'GPT-5.
|
|
62
|
-
tier: '
|
|
63
|
-
tagline: '
|
|
64
|
-
description: '
|
|
65
|
-
badge: '
|
|
66
|
-
badgeClass: 'badge-
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: 'gpt-5.3-codex',
|
|
70
|
-
name: 'GPT-5.3 Codex',
|
|
71
|
-
tier: 'thorough',
|
|
72
|
-
tagline: 'Deep Code Analysis',
|
|
73
|
-
description: 'Industry-leading coding model—frontier performance for complex multi-file reviews',
|
|
74
|
-
badge: 'Thorough',
|
|
75
|
-
badgeClass: 'badge-power'
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 'claude-opus-4.5',
|
|
79
|
-
name: 'Claude Opus 4.5',
|
|
80
|
-
tier: 'thorough',
|
|
81
|
-
tagline: 'Deep Analysis',
|
|
82
|
-
description: 'Highly capable model for critical code reviews—strong reasoning for security and architecture',
|
|
83
|
-
badge: 'Premium',
|
|
84
|
-
badgeClass: 'badge-premium'
|
|
70
|
+
id: 'gpt-5.6-terra',
|
|
71
|
+
name: 'GPT-5.6 Terra',
|
|
72
|
+
tier: 'balanced',
|
|
73
|
+
tagline: 'Balanced OpenAI',
|
|
74
|
+
description: 'Mid-tier OpenAI model—strong coding quality at a moderate price',
|
|
75
|
+
badge: 'Balanced',
|
|
76
|
+
badgeClass: 'badge-balanced'
|
|
85
77
|
},
|
|
86
78
|
{
|
|
87
|
-
id: 'claude-opus-
|
|
88
|
-
name: 'Claude Opus
|
|
79
|
+
id: 'claude-opus-5.5',
|
|
80
|
+
name: 'Claude Opus 5.5',
|
|
89
81
|
tier: 'thorough',
|
|
90
82
|
tagline: 'Most Capable',
|
|
91
|
-
description: 'Most capable model for critical code reviews—deep reasoning for security and architecture',
|
|
83
|
+
description: 'Most capable Claude model for critical code reviews—deep reasoning for security and architecture',
|
|
92
84
|
badge: 'Premium',
|
|
93
85
|
badgeClass: 'badge-premium'
|
|
94
86
|
},
|
|
95
87
|
{
|
|
96
|
-
id: '
|
|
97
|
-
name: '
|
|
88
|
+
id: 'gpt-5.6-sol',
|
|
89
|
+
name: 'GPT-5.6 Sol',
|
|
98
90
|
tier: 'thorough',
|
|
99
|
-
tagline: '
|
|
100
|
-
description: '
|
|
101
|
-
badge: '
|
|
102
|
-
badgeClass: 'badge-
|
|
91
|
+
tagline: 'Deep Analysis',
|
|
92
|
+
description: 'Flagship OpenAI workhorse for complex multi-file and architectural reviews',
|
|
93
|
+
badge: 'Thorough',
|
|
94
|
+
badgeClass: 'badge-power'
|
|
103
95
|
}
|
|
104
96
|
];
|
|
105
97
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
const path = require('path');
|
|
18
18
|
const { spawn } = require('child_process');
|
|
19
|
-
const { AIProvider, registerProvider, quoteShellArgs } = require('./provider');
|
|
19
|
+
const { AIProvider, registerProvider, quoteShellArgs, modelMatches } = require('./provider');
|
|
20
20
|
const logger = require('../utils/logger');
|
|
21
21
|
const { extractJSON } = require('../utils/json-extractor');
|
|
22
22
|
const { CancellationError, isAnalysisCancelled } = require('../routes/shared');
|
|
@@ -29,11 +29,23 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
29
29
|
/**
|
|
30
30
|
* Cursor Agent model definitions with tier mappings
|
|
31
31
|
*
|
|
32
|
-
* Tier structure:
|
|
32
|
+
* Tier structure (as of November 2026):
|
|
33
33
|
* - free (auto): Cursor's default auto-routing model
|
|
34
|
-
* - fast (composer-2
|
|
35
|
-
* - balanced (composer-
|
|
36
|
-
* - thorough (
|
|
34
|
+
* - fast (composer-2.5-fast): Quick analysis
|
|
35
|
+
* - balanced (composer-2.5 (default)): Recommended for most reviews
|
|
36
|
+
* - thorough (gpt-5.3-codex-high): Deep analysis for complex code
|
|
37
|
+
*
|
|
38
|
+
* Any other model the account has enabled can be passed verbatim with --model
|
|
39
|
+
* (see `cursor-agent --list-models`) or added via `providers.cursor-agent.models`.
|
|
40
|
+
* Models and prices: cursor.com/docs/models
|
|
41
|
+
*
|
|
42
|
+
* Deprecated (November 2026): composer-2 (alias → composer-2.5, same line and
|
|
43
|
+
* price), composer-2-fast, composer-1.5 (Composer models superseded by
|
|
44
|
+
* Composer 2.5); gpt-5.3-codex-fast, gpt-5.3-codex-xhigh, gpt-5.4-high,
|
|
45
|
+
* gpt-5.4-medium, sonnet-4.5-thinking, sonnet-4.6-thinking, opus-4.5-thinking,
|
|
46
|
+
* opus-4.6-thinking, gemini-3-flash, gemini-3.1-pro (older generations, hidden
|
|
47
|
+
* by default in Cursor). Only composer-2 is aliased; the others' successors are
|
|
48
|
+
* different generations at different prices.
|
|
37
49
|
*/
|
|
38
50
|
const CURSOR_AGENT_MODELS = [
|
|
39
51
|
{
|
|
@@ -46,131 +58,33 @@ const CURSOR_AGENT_MODELS = [
|
|
|
46
58
|
badgeClass: 'badge-speed'
|
|
47
59
|
},
|
|
48
60
|
{
|
|
49
|
-
id: 'composer-2',
|
|
50
|
-
name: 'Composer 2',
|
|
51
|
-
tier: 'thorough',
|
|
52
|
-
tagline: 'Latest Composer',
|
|
53
|
-
description: 'Frontier-level coding model trained with compaction-in-the-loop RL—strong on long-horizon tasks requiring hundreds of actions',
|
|
54
|
-
badge: 'Latest',
|
|
55
|
-
badgeClass: 'badge-power'
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: 'composer-2-fast',
|
|
59
|
-
name: 'Composer 2 Fast',
|
|
61
|
+
id: 'composer-2.5-fast',
|
|
62
|
+
name: 'Composer 2.5 Fast',
|
|
60
63
|
tier: 'fast',
|
|
61
64
|
tagline: 'Fast Composer',
|
|
62
|
-
description: 'Same intelligence as Composer 2 with lower latency—
|
|
63
|
-
badge: 'Fast',
|
|
64
|
-
badgeClass: 'badge-speed'
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
id: 'composer-1.5',
|
|
68
|
-
name: 'Composer 1.5',
|
|
69
|
-
tier: 'balanced',
|
|
70
|
-
tagline: 'Previous Composer',
|
|
71
|
-
description: 'Previous generation Cursor Composer model—positioned between Sonnet and Opus for multi-file edits',
|
|
72
|
-
badge: 'Previous Gen',
|
|
73
|
-
badgeClass: 'badge-balanced',
|
|
74
|
-
default: true
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
id: 'gpt-5.3-codex-fast',
|
|
78
|
-
name: 'GPT-5.3 Codex Fast',
|
|
79
|
-
tier: 'fast',
|
|
80
|
-
tagline: 'Lightning Fast',
|
|
81
|
-
description: 'Latest code-specialized model optimized for speed—quick scans for obvious issues',
|
|
82
|
-
badge: 'Fastest',
|
|
83
|
-
badgeClass: 'badge-speed'
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: 'gemini-3-flash',
|
|
87
|
-
name: 'Gemini 3 Flash',
|
|
88
|
-
tier: 'fast',
|
|
89
|
-
tagline: 'Fast & Capable',
|
|
90
|
-
description: 'High SWE-bench scores at a fraction of the cost—great for quick reviews',
|
|
65
|
+
description: 'Same intelligence as Composer 2.5 with lower latency—quick scans for obvious issues',
|
|
91
66
|
badge: 'Fast',
|
|
92
67
|
badgeClass: 'badge-speed'
|
|
93
68
|
},
|
|
94
69
|
{
|
|
95
|
-
id: '
|
|
96
|
-
name: '
|
|
70
|
+
id: 'composer-2.5',
|
|
71
|
+
name: 'Composer 2.5',
|
|
97
72
|
tier: 'balanced',
|
|
98
73
|
tagline: 'Best Balance',
|
|
99
|
-
description: '
|
|
74
|
+
description: "Cursor's latest in-house coding model—near-frontier review quality at a fraction of the cost",
|
|
100
75
|
badge: 'Recommended',
|
|
101
|
-
badgeClass: 'badge-recommended'
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
id: 'sonnet-4.5-thinking',
|
|
105
|
-
name: 'Claude 4.5 Sonnet (Thinking)',
|
|
106
|
-
tier: 'balanced',
|
|
107
|
-
tagline: 'Previous Gen',
|
|
108
|
-
description: 'Previous generation extended thinking—still strong for thorough analysis',
|
|
109
|
-
badge: 'Previous Gen',
|
|
110
|
-
badgeClass: 'badge-balanced'
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
id: 'gemini-3.1-pro',
|
|
114
|
-
name: 'Gemini 3.1 Pro',
|
|
115
|
-
tier: 'balanced',
|
|
116
|
-
tagline: 'Latest Gemini',
|
|
117
|
-
description: 'Newest Gemini model—cutting-edge reasoning for complex multi-file reviews',
|
|
118
|
-
badge: 'Latest',
|
|
119
|
-
badgeClass: 'badge-balanced'
|
|
76
|
+
badgeClass: 'badge-recommended',
|
|
77
|
+
default: true,
|
|
78
|
+
aliases: ['composer-2']
|
|
120
79
|
},
|
|
121
80
|
{
|
|
122
81
|
id: 'gpt-5.3-codex-high',
|
|
123
82
|
name: 'GPT-5.3 Codex High',
|
|
124
83
|
tier: 'thorough',
|
|
125
84
|
tagline: 'Deep Code Analysis',
|
|
126
|
-
description:
|
|
127
|
-
badge: 'Thorough',
|
|
128
|
-
badgeClass: 'badge-power'
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
id: 'gpt-5.3-codex-xhigh',
|
|
132
|
-
name: 'GPT-5.3 Codex Extra High',
|
|
133
|
-
tier: 'thorough',
|
|
134
|
-
tagline: 'Maximum Reasoning',
|
|
135
|
-
description: 'Highest reasoning effort for the most complex architectural reviews',
|
|
136
|
-
badge: 'Maximum',
|
|
137
|
-
badgeClass: 'badge-power'
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
id: 'opus-4.5-thinking',
|
|
141
|
-
name: 'Claude 4.5 Opus (Thinking)',
|
|
142
|
-
tier: 'thorough',
|
|
143
|
-
tagline: 'Deep Analysis',
|
|
144
|
-
description: 'Deep analysis with extended thinking for complex code reviews',
|
|
145
|
-
badge: 'Thorough',
|
|
146
|
-
badgeClass: 'badge-power'
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
id: 'opus-4.6-thinking',
|
|
150
|
-
name: 'Claude 4.6 Opus (Thinking)',
|
|
151
|
-
tier: 'thorough',
|
|
152
|
-
tagline: 'Most Capable',
|
|
153
|
-
description: 'Deep analysis with extended thinking—Cursor default for maximum review quality',
|
|
85
|
+
description: 'Code-specialized OpenAI model with high reasoning effort for complex multi-file reviews',
|
|
154
86
|
badge: 'Most Thorough',
|
|
155
87
|
badgeClass: 'badge-power'
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
id: 'gpt-5.4-high',
|
|
159
|
-
name: 'GPT-5.4 High',
|
|
160
|
-
tier: 'thorough',
|
|
161
|
-
tagline: 'Latest OpenAI',
|
|
162
|
-
description: 'Latest generation with high reasoning effort—strong for complex architectural reviews',
|
|
163
|
-
badge: 'Latest Gen',
|
|
164
|
-
badgeClass: 'badge-power'
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
id: 'gpt-5.4-medium',
|
|
168
|
-
name: 'GPT-5.4',
|
|
169
|
-
tier: 'thorough',
|
|
170
|
-
tagline: 'Latest Gen',
|
|
171
|
-
description: 'Latest generation at medium reasoning depth',
|
|
172
|
-
badge: 'Latest',
|
|
173
|
-
badgeClass: 'badge-power'
|
|
174
88
|
}
|
|
175
89
|
];
|
|
176
90
|
|
|
@@ -232,24 +146,21 @@ class CursorAgentProvider extends AIProvider {
|
|
|
232
146
|
const permissionArgs = configOverrides.yolo
|
|
233
147
|
? ['--yolo']
|
|
234
148
|
: ['--trust', '--sandbox', 'enabled'];
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
const
|
|
238
|
-
const
|
|
149
|
+
// Alias-aware: `--model` gets the canonical id and the override is matched on
|
|
150
|
+
// the union of selector, canonical id and aliases (see _resolveModelConfig).
|
|
151
|
+
const { cliModel, extraArgs, env } = this._resolveModelConfig(model);
|
|
152
|
+
const baseArgs = ['-p', '--output-format', 'stream-json', '--stream-partial-output', '--model', cliModel, ...permissionArgs];
|
|
239
153
|
|
|
240
154
|
// Merge env: provider env + model env
|
|
241
|
-
this.extraEnv =
|
|
242
|
-
...(configOverrides.env || {}),
|
|
243
|
-
...(modelConfig?.env || {})
|
|
244
|
-
};
|
|
155
|
+
this.extraEnv = env;
|
|
245
156
|
|
|
246
157
|
if (this.useShell) {
|
|
247
158
|
// In shell mode, build full command string with args
|
|
248
|
-
this.command = `${agentCmd} ${quoteShellArgs([...baseArgs, ...
|
|
159
|
+
this.command = `${agentCmd} ${quoteShellArgs([...baseArgs, ...extraArgs]).join(' ')}`;
|
|
249
160
|
this.args = [];
|
|
250
161
|
} else {
|
|
251
162
|
this.command = agentCmd;
|
|
252
|
-
this.args = [...baseArgs, ...
|
|
163
|
+
this.args = [...baseArgs, ...extraArgs];
|
|
253
164
|
}
|
|
254
165
|
}
|
|
255
166
|
|
|
@@ -760,16 +671,13 @@ class CursorAgentProvider extends AIProvider {
|
|
|
760
671
|
* @returns {string[]} Complete args array for the CLI
|
|
761
672
|
*/
|
|
762
673
|
buildArgsForModel(model) {
|
|
674
|
+
// Provider extra_args + model extra_args, resolved alias-aware
|
|
675
|
+
const { cliModel, extraArgs } = this._resolveModelConfig(model);
|
|
763
676
|
// Base args for extraction (text output, no tools needed)
|
|
764
677
|
// --trust needed to auto-approve the working directory without interactive prompt
|
|
765
|
-
const baseArgs = ['-p', '--output-format', 'text', '--trust', '--model',
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
// Model-specific extra_args (from the model config for the given model)
|
|
769
|
-
const modelConfig = this.configOverrides?.models?.find(m => m.id === model);
|
|
770
|
-
const modelArgs = modelConfig?.extra_args || [];
|
|
771
|
-
|
|
772
|
-
return [...baseArgs, ...providerArgs, ...modelArgs];
|
|
678
|
+
const baseArgs = ['-p', '--output-format', 'text', '--trust', '--model', cliModel];
|
|
679
|
+
|
|
680
|
+
return [...baseArgs, ...extraArgs];
|
|
773
681
|
}
|
|
774
682
|
|
|
775
683
|
/**
|
|
@@ -781,11 +689,46 @@ class CursorAgentProvider extends AIProvider {
|
|
|
781
689
|
* @returns {Object} Env vars to merge into the child environment
|
|
782
690
|
*/
|
|
783
691
|
_resolveEnvForModel(model) {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
692
|
+
return this._resolveModelConfig(model).env;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Single id-or-alias resolution shared by the analysis constructor, the
|
|
697
|
+
* extraction args, and the extraction env, so the same selector always runs
|
|
698
|
+
* the same model with the same override.
|
|
699
|
+
*
|
|
700
|
+
* - The built-in entry matches by canonical id or alias (`composer-2` →
|
|
701
|
+
* `composer-2.5`).
|
|
702
|
+
* - A `providers.cursor-agent.models` override matches on the union of the
|
|
703
|
+
* selector, the built-in's canonical id, and its aliases, or by one of the
|
|
704
|
+
* override's own aliases. `applyConfigOverrides()` stores alias-keyed
|
|
705
|
+
* overrides under the canonical id, so an exact-id match would miss them.
|
|
706
|
+
* - `--model` gets the canonical id. Unknown ids pass through verbatim, so
|
|
707
|
+
* any model the account enables can still be named directly.
|
|
708
|
+
*
|
|
709
|
+
* @param {string} modelId - Selector (canonical id, alias, or any Cursor id)
|
|
710
|
+
* @returns {{ builtIn: Object|undefined, configModel: Object|undefined, cliModel: string, extraArgs: string[], env: Object }}
|
|
711
|
+
* @private
|
|
712
|
+
*/
|
|
713
|
+
_resolveModelConfig(modelId) {
|
|
714
|
+
const configOverrides = this.configOverrides || {};
|
|
715
|
+
|
|
716
|
+
const builtIn = CURSOR_AGENT_MODELS.find(m => modelMatches(m, modelId));
|
|
717
|
+
const modelKeys = new Set([modelId, builtIn?.id, ...(builtIn?.aliases || [])].filter(Boolean));
|
|
718
|
+
const configModel = configOverrides.models?.find(
|
|
719
|
+
m => modelKeys.has(m.id) || (m.aliases || []).some(a => modelKeys.has(a))
|
|
720
|
+
);
|
|
721
|
+
|
|
722
|
+
const cliModel = builtIn?.id || configModel?.id || modelId;
|
|
723
|
+
|
|
724
|
+
// Merge: provider config → per-model config (built-ins carry no args/env)
|
|
725
|
+
const extraArgs = [...(configOverrides.extra_args || []), ...(configModel?.extra_args || [])];
|
|
726
|
+
const env = {
|
|
727
|
+
...(configOverrides.env || {}),
|
|
728
|
+
...(configModel?.env || {})
|
|
788
729
|
};
|
|
730
|
+
|
|
731
|
+
return { builtIn, configModel, cliModel, extraArgs, env };
|
|
789
732
|
}
|
|
790
733
|
|
|
791
734
|
/**
|
package/src/ai/provider.js
CHANGED
|
@@ -594,7 +594,7 @@ function resolveCliModelConfig(builtIn, configModel, modelId) {
|
|
|
594
594
|
* Match a model definition against a selector that may be the model's canonical
|
|
595
595
|
* id OR one of its aliases. Used by config-driven selectors (`default_model`,
|
|
596
596
|
* `models` overrides) so legacy config naming an alias (e.g.
|
|
597
|
-
* `opus`, an alias of the canonical `opus-5.5-
|
|
597
|
+
* `opus`, an alias of the canonical `opus-5.5-high`) keeps working.
|
|
598
598
|
*
|
|
599
599
|
* Optional-chaining is intentional: a model with no `aliases` short-circuits to
|
|
600
600
|
* undefined/falsy, so no Array.isArray guard is needed.
|
|
@@ -785,7 +785,7 @@ function applyConfigOverrides(config) {
|
|
|
785
785
|
|
|
786
786
|
// Canonicalize alias-keyed override ids to their built-in canonical id.
|
|
787
787
|
// A config entry may key a model by a short alias (e.g. `opus` for the
|
|
788
|
-
// canonical `opus-5.5-
|
|
788
|
+
// canonical `opus-5.5-high`). mergeModels() already resolves aliases for the
|
|
789
789
|
// display/metadata path, but the runtime path forwards this raw `models` array
|
|
790
790
|
// to the provider instance, where per-model config is looked up by EXACT id
|
|
791
791
|
// (e.g. `configOverrides.models.find(m => m.id === model)`). The frontend
|
|
@@ -897,7 +897,7 @@ function mergeModels(builtInModels, configModels) {
|
|
|
897
897
|
}
|
|
898
898
|
// Replace overridden built-ins in-place to preserve display order. An override
|
|
899
899
|
// matched by alias (e.g. config `{ id: 'opus' }` against built-in
|
|
900
|
-
// `opus-5.5-
|
|
900
|
+
// `opus-5.5-high`) still replaces, but keeps the canonical built-in id.
|
|
901
901
|
const matched = new Set();
|
|
902
902
|
const merged = builtInModels.map(bm => {
|
|
903
903
|
const override = configModels.find(cm => modelMatches(bm, cm.id));
|
|
@@ -110,7 +110,7 @@ class ChatSessionManager extends EventEmitter {
|
|
|
110
110
|
const selector = model || providerDef?.model || null;
|
|
111
111
|
|
|
112
112
|
// Canonicalise BEFORE the INSERT. Both the request and `chat_providers.<id>.model`
|
|
113
|
-
// may name a model by alias (`opus` -> `opus-5.5-
|
|
113
|
+
// may name a model by alias (`opus` -> `opus-5.5-high`); storing the alias would
|
|
114
114
|
// leave the sessions list, the hook payload, and the picker's checkmark disagreeing
|
|
115
115
|
// with the catalog. `resolution.id` is exactly what to store: the canonical id when
|
|
116
116
|
// known, the raw selector for a passthrough (raw CLI strings are supported), and
|
package/src/main.js
CHANGED
|
@@ -234,12 +234,16 @@ OPTIONS:
|
|
|
234
234
|
The web UI also starts for the human reviewer.
|
|
235
235
|
--model <name> Override the AI model. Claude Code is the default provider.
|
|
236
236
|
Available models: opus, sonnet, haiku (Claude Code);
|
|
237
|
-
also: fable-5.
|
|
237
|
+
also: fable-5.2-xhigh, fable-5.2-high,
|
|
238
|
+
fable-5.1-xhigh, fable-5.1-high,
|
|
238
239
|
fable-5-xhigh, fable-5-high, opus-5.5-xhigh,
|
|
239
240
|
opus-5.5-high, opus-5.5-medium, opus-5.5-low,
|
|
240
241
|
opus-5-xhigh, opus-5-high,
|
|
241
|
-
sonnet-5-xhigh, sonnet-5-high,
|
|
242
|
-
|
|
242
|
+
sonnet-5.5-xhigh, sonnet-5.5-high,
|
|
243
|
+
sonnet-5-xhigh, sonnet-5-high, sonnet-4.6,
|
|
244
|
+
haiku-5.5-medium
|
|
245
|
+
(default is opus-5.5-high; opus is Opus 5.5 High;
|
|
246
|
+
fable is Fable 5.2 High;
|
|
243
247
|
a saved default_model wins over the default)
|
|
244
248
|
or use provider-specific models with Antigravity/Codex
|
|
245
249
|
--provider <name> Override the AI provider for headless modes
|
|
@@ -152,7 +152,7 @@ function sanitizeSingleConfig(config) {
|
|
|
152
152
|
// to the provider's own default rather than forwarding an invalid pair. Unknown
|
|
153
153
|
// providers (custom/unavailable, not in the registry) pass through unchanged.
|
|
154
154
|
// A model "belongs" to the provider if config.model matches a model id OR one of
|
|
155
|
-
// its aliases (e.g. 'opus' is an alias of the canonical 'opus-5.5-
|
|
155
|
+
// its aliases (e.g. 'opus' is an alias of the canonical 'opus-5.5-high'). Matching
|
|
156
156
|
// id-only would wrongly treat a valid alias as a mismatched pair and silently coerce
|
|
157
157
|
// it to the provider default.
|
|
158
158
|
let normalizedModel = config.model;
|