@in-the-loop-labs/pair-review 5.4.1 → 5.4.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.
Files changed (46) hide show
  1. package/README.md +3 -3
  2. package/package.json +2 -2
  3. package/plugin/.claude-plugin/plugin.json +1 -1
  4. package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
  5. package/plugin-code-critic/skills/analyze/references/level1-balanced.md +1 -1
  6. package/plugin-code-critic/skills/analyze/references/level1-thorough.md +1 -1
  7. package/plugin-code-critic/skills/analyze/references/level2-balanced.md +2 -2
  8. package/plugin-code-critic/skills/analyze/references/level2-thorough.md +2 -2
  9. package/plugin-code-critic/skills/analyze/references/level3-balanced.md +2 -2
  10. package/plugin-code-critic/skills/analyze/references/level3-thorough.md +2 -2
  11. package/plugin-code-critic/skills/analyze/references/orchestration-balanced.md +3 -3
  12. package/plugin-code-critic/skills/analyze/references/orchestration-fast.md +1 -1
  13. package/plugin-code-critic/skills/analyze/references/orchestration-thorough.md +3 -3
  14. package/plugin-pair-loop/.claude-plugin/plugin.json +1 -1
  15. package/public/index.html +3 -0
  16. package/public/js/components/CouncilProgressModal.js +2 -9
  17. package/public/js/index.js +29 -0
  18. package/public/js/pr.js +21 -8
  19. package/public/js/utils/category-emoji.js +1 -1
  20. package/public/js/utils/header-anchor.js +38 -0
  21. package/public/local.html +3 -0
  22. package/public/pr.html +3 -0
  23. package/src/ai/antigravity-provider.js +76 -35
  24. package/src/ai/claude-provider.js +115 -39
  25. package/src/ai/codex-provider.js +84 -41
  26. package/src/ai/copilot-provider.js +38 -46
  27. package/src/ai/cursor-agent-provider.js +78 -135
  28. package/src/ai/executable-provider.js +1 -1
  29. package/src/ai/pi-format.js +42 -1
  30. package/src/ai/pi-style-provider.js +25 -10
  31. package/src/ai/prompts/baseline/consolidation/balanced.js +2 -2
  32. package/src/ai/prompts/baseline/consolidation/thorough.js +2 -2
  33. package/src/ai/prompts/baseline/level1/balanced.js +1 -1
  34. package/src/ai/prompts/baseline/level1/thorough.js +1 -1
  35. package/src/ai/prompts/baseline/level2/balanced.js +2 -2
  36. package/src/ai/prompts/baseline/level2/thorough.js +2 -2
  37. package/src/ai/prompts/baseline/level3/balanced.js +2 -2
  38. package/src/ai/prompts/baseline/level3/thorough.js +2 -2
  39. package/src/ai/prompts/baseline/orchestration/balanced.js +2 -2
  40. package/src/ai/prompts/baseline/orchestration/thorough.js +2 -2
  41. package/src/ai/prompts/shared/output-schema.js +6 -201
  42. package/src/ai/provider.js +3 -3
  43. package/src/chat/session-manager.js +1 -1
  44. package/src/main.js +7 -3
  45. package/src/routes/bulk-analysis-configs.js +1 -1
  46. package/src/utils/category-emoji.js +1 -1
@@ -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.3.5)
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. Gemini 3.8 Flash at high effort
97
- * is the default: it is the strongest Gemini every agy plan can run
98
- * (DeepSWE v1.1 73.7, Terminal-Bench 2.1 89.4 — on par with GPT-6 Astra and
99
- * Muse 1.3), so "Flash" now describes latency, not capability. Gemini 4 Argon
100
- * (Oct 2026) is Google's new frontier model, but agy gates it to Google AI
101
- * Ultra and eligible Enterprise subscriptions; on any other plan agy exits 1
102
- * with `"Gemini 4 Argon" is unavailable: ... available to Ultra plan
103
- * subscribers`, so it is an explicit thorough-tier choice and never the
104
- * default. It also never LEADS the thorough tier: provider-switch paths
105
- * (AnalysisConfigModal.selectProvider, RepoSettingsPage) map the previous
106
- * model's tier onto the first model of that tier here, so a thorough Claude
107
- * selection switched to Antigravity must land on a model every plan can run.
108
- * agy (1.3.5) recognizes Argon only by its bare display name —
109
- * `Gemini 4 Argon (High)`, `gemini-4-argon`, and `gemini-4-argon-high` are all
110
- * "not recognized" — and runs it at the server-default effort, which is High.
111
- * Gemini 3.8 Flash at medium effort is the balanced entry and at low effort
112
- * the sole fast-tier entry, which also makes it the JSON-extraction model
113
- * (getFastTierModel() picks the first `tier: 'fast'` model — position in this
114
- * array does not matter). Retired ids (3.5 Flash) are kept as aliases of their
115
- * 3.8 Flash counterparts so saved selections keep working.
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 1.3.5 no longer offers 3.1 Pro ("not recognized as a known model").
119
- * They are deliberately NOT aliased onto another model (3.8 Flash is a
120
- * different line; Argon is plan-gated). The browser resolvers fall back to the
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, on par with GPT-6 Astra and Muse 1.3. "Flash" now means latency, not capability. Uses the thorough prompt set.',
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-argon',
146
- // agy rejects every effort-suffixed form for Argon; the bare display name
147
- // is the only accepted --model value, and it runs at High (Argon's default).
148
- cliName: 'Gemini 4 Argon',
149
- name: '4 Argon',
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: 'Frontier — Ultra Plan',
152
- description: 'Gemini 4 Argon (Oct 2026), Google\'s frontier model, at its default High effort. Requires a Google AI Ultra or eligible Gemini Enterprise subscription — on other plans agy refuses it as unavailable. Uses the thorough prompt set.',
153
- badge: 'Ultra Plan',
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.1, Fable 5, Opus 5.5, Opus 5,
30
- * and Sonnet 5 support low|medium|high|xhigh|max; Sonnet 4.6 supports
31
- * low|medium|high|max (no xhigh); Haiku has no effort levels.
32
- * The CLI's own default effort for Opus 5.5 is `medium` (and it ignores a
33
- * top-level `effortLevel` in user settings), so its entries rely on the env var,
34
- * which the CLI treats as an explicit choice at the top of its effort precedence.
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.1-xhigh',
40
- // The bare generation aliases ('fable' here, 'opus' on opus-5.5-xhigh) track
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.1 XHigh',
47
+ name: 'Fable 5.2 XHigh',
49
48
  tier: 'thorough',
50
49
  tagline: 'Newest Fable',
51
- description: 'Fable 5.1 (newest, most capable tier) with extra-high effort',
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: 'Newest Fable',
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: 'Previous Fable',
78
- description: 'Fable 5 (previous Fable) with extra-high effort',
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.1 above.
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: 'Previous Fable',
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
- // Generation alias; see fable-5.1-xhigh above. The Opus 4.x entries were
99
- // dropped; their ids resolve to the Opus 5.5 entry at the matching effort so
100
- // saved configs, councils, and --model flags keep working.
101
- aliases: ['opus', 'opus-4.8-xhigh', 'opus-4.7-xhigh'],
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
- aliases: ['opus-4.8-high', 'opus-4.7-high', 'opus-4.6-high', 'opus-4.6-1m', 'opus-4.5'],
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: 'Best Balance',
159
- description: 'Sonnet 5 (newest) with extra-high effort — recommended for most reviews',
160
- badge: 'Recommended',
161
- badgeClass: 'badge-recommended'
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: 'Faster',
170
- description: 'Sonnet 5 with high effort — quicker than XHigh, still sharp',
171
- badge: 'Quick & Sharp',
172
- badgeClass: 'badge-speed'
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: 'Lightning Fast',
204
- description: 'Quick analysis for simple changes',
205
- badge: 'Fastest',
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 haiku: getFastTierModel() takes the first fast-tier entry for
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',
@@ -24,9 +24,16 @@ 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.
30
+ * GPT-6.2 Sol and GPT-6.2 Astra (2026-11-17; Sol $2/$10, Astra $8/$40 per 1M
31
+ * tokens; Codex CLI >= 0.170.0, which older CLIs reject as model_not_found) run
32
+ * on Plus, Pro, Enterprise, and Edu, with Enterprise and Edu off by default
33
+ * until an administrator enables them.
27
34
  * Selecting a model locally does not grant access. testAvailability() checks
28
35
  * only `codex --version`, and model rejection does not trigger a fallback,
29
- * so GPT-6 and GPT-6.1 remain explicit choices.
36
+ * so GPT-6, GPT-6.1, and GPT-6.2 remain explicit choices.
30
37
  * Each picker entry specifies a reasoning effort explicitly.
31
38
  *
32
39
  * Entries are ordered thorough → balanced → fast. The first balanced entry
@@ -35,8 +42,6 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
35
42
  * GPT-5.6 during rollout for access compatibility.
36
43
  * Guided tours use the provider default, not the fast tier.
37
44
  *
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
45
  * Workspace access: learn.chatgpt.com/docs/enterprise/workspace-model-availability
41
46
  *
42
47
  * Reasoning-effort variants (-low / -high / -xhigh / -max) use `cli_model` to pass
@@ -55,18 +60,67 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
55
60
  * verbatim with no effort override, so API-key users can still name it raw
56
61
  * (`--model gpt-5.4-mini`, or a `providers.codex.models` entry for the web UI
57
62
  * picker).
63
+ * Deprecated (October 14, 2026): gpt-5.5 (gpt-5.5-high / gpt-5.5-xhigh) — retired
64
+ * from Codex with ChatGPT sign-in (Codex rejects it with a 400) but still valid
65
+ * for API keys. OpenAI moves ChatGPT plans to GPT-6.1 Sol; it is NOT aliased
66
+ * (different model line and price). Like gpt-5.4-mini, API-key users can still
67
+ * name the raw id (`--model gpt-5.5`).
58
68
  */
59
69
  const CODEX_MODELS = [
60
70
  // ── Thorough tier ───────────────────────────────────────────────────────
71
+ {
72
+ id: 'gpt-6.2-sol-high',
73
+ cli_model: 'gpt-6.2-sol',
74
+ extra_args: ['-c', 'model_reasoning_effort="high"'],
75
+ name: 'GPT-6.2 Sol High',
76
+ tier: 'thorough',
77
+ tagline: 'Latest Workhorse',
78
+ description: 'Latest workhorse model for coding and everyday work, with high reasoning effort for demanding reviews and cross-file analysis. Requires GPT-6.2 Sol access and Codex CLI 0.170.0 or later; Enterprise and Edu administrators must enable it during rollout.',
79
+ badge: 'Newest',
80
+ badgeClass: 'badge-power'
81
+ },
82
+ {
83
+ id: 'gpt-6.2-sol-xhigh',
84
+ cli_model: 'gpt-6.2-sol',
85
+ extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
86
+ name: 'GPT-6.2 Sol XHigh',
87
+ tier: 'thorough',
88
+ tagline: 'Latest Workhorse Depth',
89
+ description: 'Latest workhorse model for coding and everyday work, with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes. Requires GPT-6.2 Sol access and Codex CLI 0.170.0 or later; Enterprise and Edu administrators must enable it during rollout.',
90
+ badge: 'Extra High',
91
+ badgeClass: 'badge-power'
92
+ },
93
+ {
94
+ id: 'gpt-6.2-astra-high',
95
+ cli_model: 'gpt-6.2-astra',
96
+ extra_args: ['-c', 'model_reasoning_effort="high"'],
97
+ name: 'GPT-6.2 Astra High',
98
+ tier: 'thorough',
99
+ tagline: 'Most Capable',
100
+ description: 'Frontier intelligence for the most demanding coding and professional work, with high reasoning effort for deep cross-file analysis and demanding architectural reviews. Requires GPT-6.2 Astra access and Codex CLI 0.170.0 or later; Enterprise and Edu administrators must enable it during rollout.',
101
+ badge: 'Most Capable',
102
+ badgeClass: 'badge-power'
103
+ },
104
+ {
105
+ id: 'gpt-6.2-astra-xhigh',
106
+ cli_model: 'gpt-6.2-astra',
107
+ extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
108
+ name: 'GPT-6.2 Astra XHigh',
109
+ tier: 'thorough',
110
+ tagline: 'Maximum Depth',
111
+ description: 'Frontier intelligence for the most demanding coding and professional work, with extra-high reasoning effort for concurrency, security-sensitive changes, and large codebase context. Requires GPT-6.2 Astra access and Codex CLI 0.170.0 or later; Enterprise and Edu administrators must enable it during rollout.',
112
+ badge: 'Extra High',
113
+ badgeClass: 'badge-power'
114
+ },
61
115
  {
62
116
  id: 'gpt-6.1-sol-high',
63
117
  cli_model: 'gpt-6.1-sol',
64
118
  extra_args: ['-c', 'model_reasoning_effort="high"'],
65
119
  name: 'GPT-6.1 Sol High',
66
120
  tier: 'thorough',
67
- tagline: 'Latest Workhorse',
68
- description: 'Latest workhorse model for coding and everyday work, with high reasoning effort for demanding reviews and cross-file analysis. Requires GPT-6.1 Sol access; Enterprise and Edu administrators must enable it during rollout.',
69
- badge: 'Newest',
121
+ tagline: 'Previous Workhorse',
122
+ description: 'Previous generation workhorse model for coding and everyday work, with high reasoning effort for demanding reviews and cross-file analysis. Requires GPT-6.1 Sol access; Enterprise and Edu administrators must enable it during rollout.',
123
+ badge: 'Previous Gen',
70
124
  badgeClass: 'badge-power'
71
125
  },
72
126
  {
@@ -75,8 +129,8 @@ const CODEX_MODELS = [
75
129
  extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
76
130
  name: 'GPT-6.1 Sol XHigh',
77
131
  tier: 'thorough',
78
- tagline: 'Latest Workhorse Depth',
79
- description: 'Latest workhorse model for coding and everyday work, with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes. Requires GPT-6.1 Sol access; Enterprise and Edu administrators must enable it during rollout.',
132
+ tagline: 'Previous Workhorse Depth',
133
+ description: 'Previous generation workhorse model for coding and everyday work, with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes. Requires GPT-6.1 Sol access; Enterprise and Edu administrators must enable it during rollout.',
80
134
  badge: 'Extra High',
81
135
  badgeClass: 'badge-power'
82
136
  },
@@ -86,9 +140,9 @@ const CODEX_MODELS = [
86
140
  extra_args: ['-c', 'model_reasoning_effort="high"'],
87
141
  name: 'GPT-6 Astra High',
88
142
  tier: 'thorough',
89
- tagline: 'Most Capable',
90
- description: 'Frontier intelligence for the most demanding work, with high reasoning effort for deep cross-file analysis and demanding architectural reviews.',
91
- badge: 'Most Capable',
143
+ tagline: 'Previous Gen',
144
+ description: 'Previous generation frontier model for the most demanding work, with high reasoning effort for deep cross-file analysis and demanding architectural reviews.',
145
+ badge: 'Previous Gen',
92
146
  badgeClass: 'badge-power'
93
147
  },
94
148
  {
@@ -97,8 +151,8 @@ const CODEX_MODELS = [
97
151
  extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
98
152
  name: 'GPT-6 Astra XHigh',
99
153
  tier: 'thorough',
100
- tagline: 'Maximum Depth',
101
- description: 'Frontier intelligence for the most demanding work, with extra-high reasoning effort for concurrency, security-sensitive changes, and large codebase context.',
154
+ tagline: 'Previous Gen Depth',
155
+ description: 'Previous generation frontier model for the most demanding work, with extra-high reasoning effort for concurrency, security-sensitive changes, and large codebase context.',
102
156
  badge: 'Extra High',
103
157
  badgeClass: 'badge-power'
104
158
  },
@@ -108,9 +162,9 @@ const CODEX_MODELS = [
108
162
  extra_args: ['-c', 'model_reasoning_effort="high"'],
109
163
  name: 'GPT-6 Sol High',
110
164
  tier: 'thorough',
111
- tagline: 'Previous Gen',
112
- description: 'Previous generation workhorse model, with high reasoning effort for demanding reviews and cross-file analysis. Requires GPT-6 access; Enterprise administrators must enable it during rollout.',
113
- badge: 'Previous Gen',
165
+ tagline: 'Older Workhorse',
166
+ description: 'Older generation workhorse model, with high reasoning effort for demanding reviews and cross-file analysis. Requires GPT-6 access; Enterprise administrators must enable it during rollout.',
167
+ badge: 'Older Gen',
114
168
  badgeClass: 'badge-power'
115
169
  },
116
170
  {
@@ -119,8 +173,8 @@ const CODEX_MODELS = [
119
173
  extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
120
174
  name: 'GPT-6 Sol XHigh',
121
175
  tier: 'thorough',
122
- tagline: 'Previous Gen Depth',
123
- description: 'Previous generation workhorse model, with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes. Requires GPT-6 access; Enterprise administrators must enable it during rollout.',
176
+ tagline: 'Older Workhorse Depth',
177
+ description: 'Older generation workhorse model, with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes. Requires GPT-6 access; Enterprise administrators must enable it during rollout.',
124
178
  badge: 'Extra High',
125
179
  badgeClass: 'badge-power'
126
180
  },
@@ -131,7 +185,7 @@ const CODEX_MODELS = [
131
185
  name: 'GPT-5.6 Sol High',
132
186
  tier: 'thorough',
133
187
  tagline: 'Older Workhorse',
134
- description: 'Older generation workhorse model, with high reasoning effort for demanding reviews and cross-file analysis. The default while GPT-6 and GPT-6.1 access rolls out.',
188
+ description: 'Older generation workhorse model, with high reasoning effort for demanding reviews and cross-file analysis. The default while GPT-6, GPT-6.1, and GPT-6.2 access rolls out.',
135
189
  badge: 'Recommended',
136
190
  badgeClass: 'badge-recommended',
137
191
  default: true
@@ -147,28 +201,6 @@ const CODEX_MODELS = [
147
201
  badge: 'Extra High',
148
202
  badgeClass: 'badge-power'
149
203
  },
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
204
  // ── Balanced tier ───────────────────────────────────────────────────────
173
205
  // Provider switching and default fallback must work without GPT-6 access.
174
206
  {
@@ -182,6 +214,17 @@ const CODEX_MODELS = [
182
214
  badge: 'Previous Gen',
183
215
  badgeClass: 'badge-balanced'
184
216
  },
217
+ {
218
+ id: 'gpt-6.1-terra-xhigh',
219
+ cli_model: 'gpt-6.1-terra',
220
+ extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
221
+ name: 'GPT-6.1 Terra XHigh',
222
+ tier: 'balanced',
223
+ tagline: 'Latest Balanced',
224
+ 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.',
225
+ badge: 'Newest',
226
+ badgeClass: 'badge-balanced'
227
+ },
185
228
  {
186
229
  id: 'gpt-5.6-luna-max',
187
230
  cli_model: 'gpt-5.6-luna',