@in-the-loop-labs/pair-review 5.3.1 → 5.3.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.
@@ -26,14 +26,23 @@ 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,
30
- * Opus 4.8 / 4.7, and Sonnet 5 support low|medium|high|xhigh|max; Opus 4.6 &
31
- * Sonnet 4.6 support low|medium|high|max (no xhigh); Haiku has no effort levels.
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.
32
35
  */
33
36
  const CLAUDE_MODELS = [
34
37
  // ── Thorough tier ───────────────────────────────────────────────────────
35
38
  {
36
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'],
37
46
  cli_model: 'claude-fable-5-1',
38
47
  env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
39
48
  name: 'Fable 5.1 XHigh',
@@ -61,12 +70,6 @@ const CLAUDE_MODELS = [
61
70
  },
62
71
  {
63
72
  id: 'fable-5-xhigh',
64
- // The bare 'fable' alias intentionally stays pinned to Fable 5 (the same way
65
- // 'opus' stays on opus-4.8-xhigh) so existing configs and --model fable
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.
69
- aliases: ['fable'],
70
73
  cli_model: 'claude-fable-5',
71
74
  env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
72
75
  name: 'Fable 5 XHigh',
@@ -91,83 +94,58 @@ const CLAUDE_MODELS = [
91
94
  extra_args: ['--thinking', 'adaptive']
92
95
  },
93
96
  {
94
- id: 'opus-5-xhigh',
95
- cli_model: 'claude-opus-5',
97
+ 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'],
102
+ cli_model: 'claude-opus-5-5',
96
103
  env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
97
- name: 'Opus 5 XHigh',
104
+ name: 'Opus 5.5 XHigh',
98
105
  tier: 'thorough',
99
106
  tagline: 'Newest Opus',
100
- description: 'Opus 5 (newest) with extra-high effort — deepest thorough reviews',
107
+ description: 'Opus 5.5 (newest) with extra-high effort — deepest thorough reviews',
101
108
  badge: 'Extra-High Effort',
102
- badgeClass: 'badge-power'
109
+ badgeClass: 'badge-power',
110
+ // Opus 5.5, like every Fable generation, is adaptive-thinking-only. Current
111
+ // CLIs normalize `--thinking enabled`, but pin adaptive so an older CLI never
112
+ // sends an explicit thinking mode the API rejects.
113
+ extra_args: ['--thinking', 'adaptive']
103
114
  },
104
115
  {
105
- id: 'opus-5-high',
106
- cli_model: 'claude-opus-5',
116
+ 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'],
118
+ cli_model: 'claude-opus-5-5',
107
119
  env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
108
- name: 'Opus 5 High',
120
+ name: 'Opus 5.5 High',
109
121
  tier: 'thorough',
110
122
  tagline: 'Recommended Default',
111
- description: 'Opus 5 (newest) with high effort — the recommended default for thorough reviews',
123
+ description: 'Opus 5.5 (newest) with high effort — the recommended default for thorough reviews',
112
124
  badge: 'Recommended',
113
125
  badgeClass: 'badge-recommended',
114
- default: true
115
- },
116
- {
117
- id: 'opus-4.8-xhigh',
118
- aliases: ['opus'],
119
- cli_model: 'claude-opus-4-8',
120
- env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
121
- name: 'Opus 4.8 XHigh',
122
- tier: 'thorough',
123
- tagline: 'Previous Gen',
124
- description: 'Opus 4.8 with extra-high effort',
125
- badge: 'Previous Gen',
126
- badgeClass: 'badge-power'
127
- },
128
- {
129
- id: 'opus-4.8-high',
130
- cli_model: 'claude-opus-4-8',
131
- env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
132
- name: 'Opus 4.8 High',
133
- tier: 'thorough',
134
- tagline: 'High Effort',
135
- description: 'Opus 4.8 with high effort — thorough, quicker than XHigh',
136
- badge: 'Thorough',
137
- badgeClass: 'badge-power'
126
+ default: true,
127
+ extra_args: ['--thinking', 'adaptive']
138
128
  },
139
129
  {
140
- id: 'opus-4.7-xhigh',
141
- cli_model: 'claude-opus-4-7',
130
+ id: 'opus-5-xhigh',
131
+ cli_model: 'claude-opus-5',
142
132
  env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
143
- name: 'Opus 4.7 XHigh',
144
- tier: 'thorough',
145
- tagline: 'Previous Gen',
146
- description: 'Opus 4.7 with extra-high effort',
147
- badge: 'Previous Gen',
148
- badgeClass: 'badge-power'
149
- },
150
- {
151
- id: 'opus-4.7-high',
152
- cli_model: 'claude-opus-4-7',
153
- env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
154
- name: 'Opus 4.7 High',
133
+ name: 'Opus 5 XHigh',
155
134
  tier: 'thorough',
156
- tagline: 'High Effort',
157
- description: 'Opus 4.7 with high effort — thorough, quicker than XHigh',
158
- badge: 'Thorough',
135
+ tagline: 'Previous Opus',
136
+ description: 'Opus 5 (previous Opus) with extra-high effort',
137
+ badge: 'Extra-High Effort',
159
138
  badgeClass: 'badge-power'
160
139
  },
161
140
  {
162
- id: 'opus-4.6-high',
163
- aliases: ['opus-4.6-low', 'opus-4.6-medium', 'opus-4.5'],
164
- cli_model: 'claude-opus-4-6',
141
+ id: 'opus-5-high',
142
+ cli_model: 'claude-opus-5',
165
143
  env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
166
- name: 'Opus 4.6 High',
144
+ name: 'Opus 5 High',
167
145
  tier: 'thorough',
168
- tagline: 'Previous Gen',
169
- description: 'Opus 4.6 with high effort',
170
- badge: 'Previous Gen',
146
+ tagline: 'Previous Opus',
147
+ description: 'Opus 5 with high effort — quicker than XHigh',
148
+ badge: 'High Effort',
171
149
  badgeClass: 'badge-power'
172
150
  },
173
151
  // ── Balanced tier ───────────────────────────────────────────────────────
@@ -193,6 +171,19 @@ const CLAUDE_MODELS = [
193
171
  badge: 'Quick & Sharp',
194
172
  badgeClass: 'badge-speed'
195
173
  },
174
+ {
175
+ id: 'opus-5.5-medium',
176
+ aliases: ['opus-4.6-medium'],
177
+ cli_model: 'claude-opus-5-5',
178
+ env: { CLAUDE_CODE_EFFORT_LEVEL: 'medium' },
179
+ name: 'Opus 5.5 Medium',
180
+ tier: 'balanced',
181
+ tagline: 'Everyday Opus',
182
+ description: 'Opus 5.5 with medium effort — strong everyday reviews at lower cost and latency',
183
+ badge: 'Medium Effort',
184
+ badgeClass: 'badge-balanced',
185
+ extra_args: ['--thinking', 'adaptive']
186
+ },
196
187
  {
197
188
  id: 'sonnet-4.6',
198
189
  cli_model: 'claude-sonnet-4-6',
@@ -203,16 +194,6 @@ const CLAUDE_MODELS = [
203
194
  badge: 'Previous Gen',
204
195
  badgeClass: 'badge-balanced'
205
196
  },
206
- {
207
- id: 'opus-4.6-1m',
208
- cli_model: 'claude-opus-4-6[1m]',
209
- name: 'Opus 4.6 1M',
210
- tier: 'balanced',
211
- tagline: 'Extended Context',
212
- description: 'Opus 4.6 high effort with 1M token context window',
213
- badge: 'More Context',
214
- badgeClass: 'badge-power'
215
- },
216
197
  // ── Fast tier ───────────────────────────────────────────────────────────
217
198
  {
218
199
  id: 'haiku',
@@ -224,6 +205,21 @@ const CLAUDE_MODELS = [
224
205
  badge: 'Fastest',
225
206
  badgeClass: 'badge-speed',
226
207
  extra_args: ['--thinking', 'adaptive']
208
+ },
209
+ {
210
+ // Kept after haiku: getFastTierModel() takes the first fast-tier entry for
211
+ // extraction and hunk summaries, which should stay on Haiku.
212
+ id: 'opus-5.5-low',
213
+ aliases: ['opus-4.6-low'],
214
+ cli_model: 'claude-opus-5-5',
215
+ env: { CLAUDE_CODE_EFFORT_LEVEL: 'low' },
216
+ name: 'Opus 5.5 Low',
217
+ tier: 'fast',
218
+ tagline: 'Quick Opus',
219
+ description: 'Opus 5.5 with low effort — fast passes over simple changes',
220
+ badge: 'Low Effort',
221
+ badgeClass: 'badge-speed',
222
+ extra_args: ['--thinking', 'adaptive']
227
223
  }
228
224
  ];
229
225
 
@@ -1038,10 +1034,6 @@ class ClaudeProvider extends AIProvider {
1038
1034
  return CLAUDE_MODELS;
1039
1035
  }
1040
1036
 
1041
- static getDefaultModel() {
1042
- return 'opus-5-high';
1043
- }
1044
-
1045
1037
  static getInstallInstructions() {
1046
1038
  return 'Install Claude CLI: npm install -g @anthropic-ai/claude-code';
1047
1039
  }
@@ -21,36 +21,59 @@ 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-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.
24
+ * Based on OpenAI's GPT-6 launches (Astra in September 2026; Sol and Luna on
25
+ * 2026-09-22) and the Models guide (developers.openai.com/api/docs/models).
26
+ * Verified against the Codex CLI 0.155.1 model catalog with a ChatGPT sign-in.
27
+ * - gpt-5.6-sol: the default (gpt-5.6-sol-high; $4/$20 per MTok). GPT-5.6 Sol
28
+ * stays the default, and GPT-5.6 Luna Low the first fast entry, while GPT-6
29
+ * access rolls out: GPT-6 Sol/Luna access depends on workspace settings and
30
+ * Enterprise admins must enable it, testAvailability() only checks
31
+ * `codex --version`, and nothing falls back to GPT-5.6 at runtime. A GPT-6
32
+ * default would fail every default analysis for users without access.
27
33
  * - 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)
31
- * - gpt-5.6-terra: Balances intelligence and cost for everyday work
32
- * - gpt-5.6-luna: Fast, affordable model for cost-sensitive, high-volume work
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.
34
+ * work ($10/$50 per MTok, same context as Sol). About five times GPT-6 Sol's
35
+ * price, so it stays an opt-in thorough choice rather than the default.
36
+ * - gpt-6-sol: Frontier model built for complex coding and agentic workflows
37
+ * ($2/$10 per MTok; 1.05M API context, capped at 272K in the Codex catalog;
38
+ * 128K output; API input above 272K bills at 2x, output at 1.5x). Newer than
39
+ * GPT-5.6 Sol at half its price, but opt-in until GPT-6 access is universal.
40
+ * - gpt-6-luna: GPT-6's most efficient model for focused, high-volume work
41
+ * ($0.10/$0.50 per MTok, same context as Sol). Per OpenAI, GPT-6 Luna (max)
42
+ * exceeds GPT-5.6 Sol (medium) at a tenth of its cost. No `ultra` effort.
43
+ * Opt-in, like GPT-6 Sol.
44
+ * - gpt-5.6-sol / gpt-5.6-terra / gpt-5.6-luna: "legacy" in Codex but still
45
+ * available (no retirement date announced)
46
+ * - gpt-5.5: older frontier model. OpenAI retires it from Codex on ALL plans
47
+ * on 2026-10-14 (the API is unaffected); remove the gpt-5.5-* entries then.
48
+ * - Every model is exposed only through explicit reasoning-effort variants.
38
49
  *
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).
50
+ * Tiers: thorough (Astra, GPT-6 Sol, GPT-5.6 Sol, GPT-5.5), balanced (Terra,
51
+ * GPT-5.6 Luna, GPT-6 Luna Max), fast (GPT-5.6 Luna Low, GPT-6 Luna Low). In
52
+ * the balanced and fast tiers GPT-6 goes last: the first entry of a tier is an
53
+ * automatic pick (provider switch in the UI, extraction, default fallback).
54
+ * Entries are ordered thorough → balanced → fast; the first `fast` entry
55
+ * serves JSON extraction and hunk summaries (see AIProvider.getFastTierModel).
56
+ * Guided tours use the provider default, not the fast tier.
42
57
  *
43
- * Reasoning-effort variants (-high / -xhigh / -max) use `cli_model` to pass the base
44
- * model ID to `codex exec -m` and add `-c model_reasoning_effort="..."` via
45
- * extra_args so Codex picks up the effort level through its config override.
58
+ * Reasoning-effort variants (-low / -high / -xhigh / -max) use `cli_model` to pass
59
+ * the base model ID to `codex exec -m` and add `-c model_reasoning_effort="..."`
60
+ * via extra_args so Codex picks up the effort level through its config override.
46
61
  *
47
62
  * Deprecated (April 2026): gpt-5.1-codex-mini, gpt-5.1-codex-max, gpt-5.1-codex
48
63
  * Deprecated (August 2026): gpt-5.4 (gpt-5.4-high / gpt-5.4-xhigh), gpt-5.4-nano,
49
64
  * gpt-5.3-codex — retired by OpenAI; Codex rejects them with a 400. They are
50
65
  * intentionally NOT aliased onto other models so saved councils fail loudly
51
66
  * instead of silently running a different model.
67
+ * Deprecated (August 31, 2026): gpt-5.4-mini — retired for ChatGPT sign-in
68
+ * (Codex rejects it with a 400) but still valid for API keys. OpenAI names
69
+ * gpt-6-luna as its replacement; it is NOT aliased onto any Luna entry
70
+ * (different model line and price). An unrecognized id reaches `codex exec -m`
71
+ * verbatim with no effort override, so API-key users can still name it raw
72
+ * (`--model gpt-5.4-mini`, or a `providers.codex.models` entry for the web UI
73
+ * picker).
52
74
  */
53
75
  const CODEX_MODELS = [
76
+ // ── Thorough tier ───────────────────────────────────────────────────────
54
77
  {
55
78
  id: 'gpt-6-astra-high',
56
79
  cli_model: 'gpt-6-astra',
@@ -58,7 +81,7 @@ const CODEX_MODELS = [
58
81
  name: 'GPT-6 Astra High',
59
82
  tier: 'thorough',
60
83
  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.',
84
+ 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 about five times more than GPT-6 Sol.',
62
85
  badge: 'Most Capable',
63
86
  badgeClass: 'badge-power'
64
87
  },
@@ -69,7 +92,29 @@ const CODEX_MODELS = [
69
92
  name: 'GPT-6 Astra XHigh',
70
93
  tier: 'thorough',
71
94
  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.',
95
+ description: 'GPT-6 Astra with extra-high reasoning effort for the most difficult reviews: concurrency, security-sensitive changes, and large codebase context. Premium pricing, about five times GPT-6 Sol.',
96
+ badge: 'Extra High',
97
+ badgeClass: 'badge-power'
98
+ },
99
+ {
100
+ id: 'gpt-6-sol-high',
101
+ cli_model: 'gpt-6-sol',
102
+ extra_args: ['-c', 'model_reasoning_effort="high"'],
103
+ name: 'GPT-6 Sol High',
104
+ tier: 'thorough',
105
+ tagline: 'Newest Frontier',
106
+ description: 'GPT-6 frontier model built for complex coding and agentic work, with high reasoning effort for demanding PR reviews and cross-file analysis, at about a fifth of Astra\'s price. Needs GPT-6 access, which is still rolling out (Enterprise admins must enable it).',
107
+ badge: 'Newest',
108
+ badgeClass: 'badge-power'
109
+ },
110
+ {
111
+ id: 'gpt-6-sol-xhigh',
112
+ cli_model: 'gpt-6-sol',
113
+ extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
114
+ name: 'GPT-6 Sol XHigh',
115
+ tier: 'thorough',
116
+ tagline: 'Frontier Depth',
117
+ description: 'GPT-6 Sol with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes. Needs GPT-6 access, which is still rolling out (Enterprise admins must enable it).',
73
118
  badge: 'Extra High',
74
119
  badgeClass: 'badge-power'
75
120
  },
@@ -80,7 +125,7 @@ const CODEX_MODELS = [
80
125
  name: 'GPT-5.6 Sol High',
81
126
  tier: 'thorough',
82
127
  tagline: 'Frontier Review',
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.',
128
+ description: 'Strong frontier reviewer with high reasoning effort for demanding PR reviews, complex professional work, and cross-file analysis. The default while GPT-6 access rolls out.',
84
129
  badge: 'Recommended',
85
130
  badgeClass: 'badge-recommended',
86
131
  default: true
@@ -103,7 +148,7 @@ const CODEX_MODELS = [
103
148
  name: 'GPT-5.5 High',
104
149
  tier: 'thorough',
105
150
  tagline: 'Previous Flagship',
106
- description: 'Previous-generation GPT model with high reasoning effort for demanding PR reviews, strong code understanding, and careful cross-file analysis.',
151
+ description: 'Previous-generation GPT model with high reasoning effort for demanding PR reviews, strong code understanding, and careful cross-file analysis. OpenAI retires GPT-5.5 from Codex on 2026-10-14.',
107
152
  badge: 'Previous Gen',
108
153
  badgeClass: 'badge-power'
109
154
  },
@@ -114,10 +159,14 @@ const CODEX_MODELS = [
114
159
  name: 'GPT-5.5 XHigh',
115
160
  tier: 'thorough',
116
161
  tagline: 'Frontier Depth',
117
- description: 'GPT-5.5 with extra-high reasoning effort for the hardest reviews: architecture, concurrency, security-sensitive changes, and large codebase context.',
162
+ description: 'GPT-5.5 with extra-high reasoning effort for the hardest reviews: architecture, concurrency, security-sensitive changes, and large codebase context. OpenAI retires GPT-5.5 from Codex on 2026-10-14.',
118
163
  badge: 'Max Reasoning',
119
164
  badgeClass: 'badge-power'
120
165
  },
166
+ // ── Balanced tier ───────────────────────────────────────────────────────
167
+ // The first balanced entry is what the UI picks when a user switches to Codex
168
+ // from a balanced model, and resolveDefaultModel's fallback when the flagged
169
+ // default is disabled, so it must run for every account: GPT-6 goes last.
121
170
  {
122
171
  id: 'gpt-5.6-terra-xhigh',
123
172
  cli_model: 'gpt-5.6-terra',
@@ -135,19 +184,46 @@ const CODEX_MODELS = [
135
184
  extra_args: ['-c', 'model_reasoning_effort="max"'],
136
185
  name: 'GPT-5.6 Luna Max',
137
186
  tier: 'balanced',
187
+ tagline: 'Previous Gen',
188
+ description: 'Previous-generation Luna, GPT-5.6\'s most cost-efficient model, with max reasoning effort for high-volume reviews and broad codebase scans.',
189
+ badge: 'Previous Gen',
190
+ badgeClass: 'badge-balanced'
191
+ },
192
+ {
193
+ id: 'gpt-6-luna-max',
194
+ cli_model: 'gpt-6-luna',
195
+ extra_args: ['-c', 'model_reasoning_effort="max"'],
196
+ name: 'GPT-6 Luna Max',
197
+ tier: 'balanced',
138
198
  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.',
199
+ description: 'GPT-6\'s most efficient model at max reasoning effort. Per OpenAI it beats GPT-5.6 Sol (medium) at a tenth of the cost, for high-volume reviews and broad codebase scans. Needs GPT-6 access, which is still rolling out (Enterprise admins must enable it).',
140
200
  badge: 'Lowest Cost',
141
201
  badgeClass: 'badge-speed'
142
202
  },
203
+ // ── Fast tier ───────────────────────────────────────────────────────────
204
+ // The first fast entry serves JSON extraction and hunk summaries, so it must
205
+ // run for every account: keep it on GPT-5.6 until GPT-6 access is universal.
143
206
  {
144
- id: 'gpt-5.4-mini',
145
- name: 'GPT-5.4 Mini',
207
+ id: 'gpt-5.6-luna-low',
208
+ cli_model: 'gpt-5.6-luna',
209
+ extra_args: ['-c', 'model_reasoning_effort="low"'],
210
+ name: 'GPT-5.6 Luna Low',
146
211
  tier: 'fast',
147
212
  tagline: 'Quick Scan',
148
- description: 'Small, fast, cost-efficient model for surface scans: obvious bugs, style issues, and lint-level feedback.',
213
+ description: 'GPT-5.6\'s most cost-efficient model at low reasoning effort for surface scans: obvious bugs, style issues, and lint-level feedback.',
149
214
  badge: 'Fastest',
150
215
  badgeClass: 'badge-speed'
216
+ },
217
+ {
218
+ id: 'gpt-6-luna-low',
219
+ cli_model: 'gpt-6-luna',
220
+ extra_args: ['-c', 'model_reasoning_effort="low"'],
221
+ name: 'GPT-6 Luna Low',
222
+ tier: 'fast',
223
+ tagline: 'Newest Quick Scan',
224
+ description: 'GPT-6\'s most efficient model at low reasoning effort for surface scans: obvious bugs, style issues, and lint-level feedback. Needs GPT-6 access, which is still rolling out (Enterprise admins must enable it).',
225
+ badge: 'Newest',
226
+ badgeClass: 'badge-speed'
151
227
  }
152
228
  ];
153
229
 
@@ -161,7 +237,7 @@ class CodexProvider extends AIProvider {
161
237
  * @param {Object} configOverrides.env - Additional environment variables
162
238
  * @param {Object[]} configOverrides.models - Custom model definitions
163
239
  */
164
- constructor(model = 'gpt-5.6-sol-high', configOverrides = {}) {
240
+ constructor(model = CodexProvider.getDefaultModel(), configOverrides = {}) {
165
241
  super(model);
166
242
 
167
243
  // Command precedence: ENV > config > default
@@ -913,10 +989,6 @@ class CodexProvider extends AIProvider {
913
989
  return CODEX_MODELS;
914
990
  }
915
991
 
916
- static getDefaultModel() {
917
- return 'gpt-5.6-sol-high';
918
- }
919
-
920
992
  static getInstallInstructions() {
921
993
  return 'Install Codex CLI: npm install -g @openai/codex\n' +
922
994
  'Or visit: https://github.com/openai/codex';
@@ -103,8 +103,6 @@ const COPILOT_MODELS = [
103
103
  }
104
104
  ];
105
105
 
106
- const DEFAULT_COPILOT_MODEL = 'claude-sonnet-4.6';
107
-
108
106
  class CopilotProvider extends AIProvider {
109
107
  /**
110
108
  * @param {string} model - Model identifier
@@ -114,7 +112,7 @@ class CopilotProvider extends AIProvider {
114
112
  * @param {Object} configOverrides.env - Additional environment variables
115
113
  * @param {Object[]} configOverrides.models - Custom model definitions
116
114
  */
117
- constructor(model = DEFAULT_COPILOT_MODEL, configOverrides = {}) {
115
+ constructor(model = CopilotProvider.getDefaultModel(), configOverrides = {}) {
118
116
  super(model);
119
117
 
120
118
  // Command precedence: ENV > config > default
@@ -541,10 +539,6 @@ class CopilotProvider extends AIProvider {
541
539
  return COPILOT_MODELS;
542
540
  }
543
541
 
544
- static getDefaultModel() {
545
- return DEFAULT_COPILOT_MODEL;
546
- }
547
-
548
542
  static getInstallInstructions() {
549
543
  return 'Install GitHub Copilot CLI: npm install -g @github/copilot\n' +
550
544
  'Or visit: https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli';
@@ -174,8 +174,6 @@ const CURSOR_AGENT_MODELS = [
174
174
  }
175
175
  ];
176
176
 
177
- const DEFAULT_CURSOR_AGENT_MODEL = 'sonnet-4.6-thinking';
178
-
179
177
  class CursorAgentProvider extends AIProvider {
180
178
  /**
181
179
  * @param {string} model - Model identifier
@@ -186,7 +184,7 @@ class CursorAgentProvider extends AIProvider {
186
184
  * @param {Object[]} configOverrides.models - Custom model definitions
187
185
  * @param {boolean} configOverrides.yolo - When true, use --yolo instead of --trust/--sandbox
188
186
  */
189
- constructor(model = DEFAULT_CURSOR_AGENT_MODEL, configOverrides = {}) {
187
+ constructor(model = CursorAgentProvider.getDefaultModel(), configOverrides = {}) {
190
188
  super(model);
191
189
 
192
190
  // Command precedence: ENV > config > default
@@ -885,10 +883,6 @@ class CursorAgentProvider extends AIProvider {
885
883
  return CURSOR_AGENT_MODELS;
886
884
  }
887
885
 
888
- static getDefaultModel() {
889
- return DEFAULT_CURSOR_AGENT_MODEL;
890
- }
891
-
892
886
  static getInstallInstructions() {
893
887
  return 'Install Cursor Agent CLI: https://cursor.com/docs/cli/using\n' +
894
888
  'Run "agent login" to authenticate after installation.';
@@ -149,17 +149,6 @@ function attemptIdOf(record) {
149
149
  return payload?.run_stream?.id || payload?.command_id || record?.causation_id || null;
150
150
  }
151
151
 
152
- /**
153
- * The provider's default model.
154
- *
155
- * DELIBERATE: this is the NON-contributor model, even though the muse CLI's own
156
- * default is `muse-spark-1.3-contributor`. Pair-review sends potentially
157
- * proprietary source code to the model, and the contributor tier is discounted
158
- * precisely because Meta may use that content for product improvement. Opting
159
- * into data sharing must be an explicit user choice, never a silent default.
160
- */
161
- const DEFAULT_MUSE_MODEL = 'muse-spark-1.3-high';
162
-
163
152
  /**
164
153
  * Muse model definitions with tier mappings.
165
154
  *
@@ -258,6 +247,12 @@ const MUSE_MODELS = [
258
247
  description: 'Meta\'s coding model with high reasoning effort and roughly 1M tokens of context—strong everyday PR review across large diffs.',
259
248
  badge: 'Recommended',
260
249
  badgeClass: 'badge-recommended',
250
+ // DELIBERATE: the default is the NON-contributor model, even though the
251
+ // muse CLI's own default is `muse-spark-1.3-contributor`. Pair-review sends
252
+ // potentially proprietary source code to the model, and the contributor
253
+ // tier is discounted precisely because Meta may use that content for
254
+ // product improvement. Opting into data sharing must be an explicit user
255
+ // choice, never a silent default.
261
256
  default: true
262
257
  },
263
258
  {
@@ -308,7 +303,7 @@ class MuseProvider extends AIProvider {
308
303
  * @param {Object[]} configOverrides.models - Custom model definitions
309
304
  * @param {boolean} configOverrides.yolo - Bypass approval and sandbox
310
305
  */
311
- constructor(model = DEFAULT_MUSE_MODEL, configOverrides = {}) {
306
+ constructor(model = MuseProvider.getDefaultModel(), configOverrides = {}) {
312
307
  super(model);
313
308
 
314
309
  // Command precedence: ENV > config > default. A blank or whitespace-only
@@ -1236,10 +1231,6 @@ class MuseProvider extends AIProvider {
1236
1231
  return MUSE_MODELS;
1237
1232
  }
1238
1233
 
1239
- static getDefaultModel() {
1240
- return DEFAULT_MUSE_MODEL;
1241
- }
1242
-
1243
1234
  static getInstallInstructions() {
1244
1235
  // `muse` on PATH is a self-updating launcher script that downloads the real
1245
1236
  // binary alongside itself (macOS and Linux, arm64 and x86_64).
@@ -271,11 +271,6 @@ class OmpProvider extends PiStyleProvider {
271
271
  return OMP_MODELS;
272
272
  }
273
273
 
274
- static getDefaultModel() {
275
- const defaultModel = OMP_MODELS.find(m => m.default);
276
- return defaultModel ? defaultModel.id : null;
277
- }
278
-
279
274
  static getInstallInstructions() {
280
275
  return 'Install OMP (Oh My Pi): npm install -g @oh-my-pi/pi-coding-agent\n' +
281
276
  'Or visit: https://github.com/can1357/oh-my-pi';
@@ -690,11 +690,6 @@ class OpenCodeProvider extends AIProvider {
690
690
  return OPENCODE_MODELS;
691
691
  }
692
692
 
693
- static getDefaultModel() {
694
- // No built-in default - must be configured via config.json
695
- return null;
696
- }
697
-
698
693
  static getInstallInstructions() {
699
694
  return 'Install OpenCode: curl -fsSL https://opencode.ai/install | bash\n' +
700
695
  'Or visit: https://opencode.ai';
@@ -294,11 +294,6 @@ class PiProvider extends PiStyleProvider {
294
294
  return PI_MODELS;
295
295
  }
296
296
 
297
- static getDefaultModel() {
298
- const defaultModel = PI_MODELS.find(m => m.default);
299
- return defaultModel ? defaultModel.id : null;
300
- }
301
-
302
297
  static getInstallInstructions() {
303
298
  return 'Install Pi: npm install -g @mariozechner/pi-coding-agent\n' +
304
299
  'Or visit: https://github.com/badlogic/pi-mono';