@in-the-loop-labs/pair-review 5.4.0 → 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 +4 -0
- package/public/js/components/AdvancedConfigTab.js +18 -108
- package/public/js/components/VoiceCentricConfigTab.js +18 -108
- package/public/js/index.js +47 -5
- package/public/js/modules/diff-renderer.js +7 -6
- package/public/js/utils/council-timeout.js +203 -0
- package/public/local.html +4 -0
- package/public/pr.html +4 -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 +59 -48
- package/src/ai/cursor-agent-provider.js +95 -133
- package/src/ai/opencode-provider.js +21 -2
- package/src/ai/provider.js +3 -3
- package/src/chat/session-manager.js +1 -1
- package/src/database.js +240 -59
- package/src/git/worktree-pool-lifecycle.js +152 -33
- package/src/git/worktree-pool-usage.js +20 -0
- package/src/git/worktree.js +14 -5
- package/src/main.js +25 -9
- package/src/routes/bulk-analysis-configs.js +1 -1
- package/src/routes/pr.js +11 -14
- package/src/routes/reviews.js +8 -30
- package/src/routes/setup.js +22 -9
- package/src/setup/pr-setup.js +12 -3
- package/src/utils/diff-file-content.js +62 -25
- package/src/utils/json-extractor.js +267 -13
- package/src/utils/pr-file-blob-cache.js +134 -0
- package/src/utils/process-liveness.js +64 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
// Copyright 2026 Tim Perkins (tjwp) | SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* Shared per-provider timeout logic for the council config tabs.
|
|
4
|
+
*
|
|
5
|
+
* AdvancedConfigTab and VoiceCentricConfigTab both show a timeout dropdown and a
|
|
6
|
+
* clock icon per voice plus one for orchestration/consolidation. They kept
|
|
7
|
+
* separate copies of the same timeout methods, and the copies drifted apart
|
|
8
|
+
* (e.g. the _defaultConfig() provider-default gap). This mixin is the single
|
|
9
|
+
* copy.
|
|
10
|
+
*
|
|
11
|
+
* The tabs differ only in DOM shape, so each tab describes its own with a
|
|
12
|
+
* static TIMEOUT_DOM:
|
|
13
|
+
*
|
|
14
|
+
* static TIMEOUT_DOM = {
|
|
15
|
+
* panelId: 'tab-panel-advanced', // panel inside the modal
|
|
16
|
+
* voiceWrapperClass: 'participant-wrapper', // wraps one voice row
|
|
17
|
+
* voiceKeys: ['level', 'index'], // data-* attrs that identify a voice
|
|
18
|
+
* timeoutClass: 'adv-timeout', // per-voice timeout select
|
|
19
|
+
* orchestrationTimeoutId: 'adv-orchestration-timeout',
|
|
20
|
+
* orchestrationToggleId: 'adv-orchestration-timeout-toggle',
|
|
21
|
+
* orchestrationRowId: 'orchestration-voice',
|
|
22
|
+
* };
|
|
23
|
+
*
|
|
24
|
+
* A voice is addressed by a key object holding its voiceKeys, e.g.
|
|
25
|
+
* { level: '1', index: '0' } (Advanced) or { index: '0' } (Voice-centric).
|
|
26
|
+
*
|
|
27
|
+
* The host class must also define static DEFAULT_TIMEOUT and instance
|
|
28
|
+
* `providers` and `modal`.
|
|
29
|
+
*/
|
|
30
|
+
(function () {
|
|
31
|
+
/**
|
|
32
|
+
* Timeout to use after a voice's provider changes. A value still at the old
|
|
33
|
+
* provider's default follows the new default; a customised value is kept
|
|
34
|
+
* unless the new default is longer.
|
|
35
|
+
* @param {number} currentValue - Current timeout in ms
|
|
36
|
+
* @param {number|null} oldDefault - Previous provider's default, or null if unknown
|
|
37
|
+
* @param {number} newDefault - New provider's default
|
|
38
|
+
* @returns {number} Timeout in ms
|
|
39
|
+
*/
|
|
40
|
+
function resolveProviderSwitchTimeout(currentValue, oldDefault, newDefault) {
|
|
41
|
+
return (oldDefault !== null && currentValue !== oldDefault)
|
|
42
|
+
? Math.max(currentValue, newDefault)
|
|
43
|
+
: newDefault;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Attribute selector for a voice key, e.g. '[data-level="1"][data-index="0"]'.
|
|
48
|
+
* @param {string[]} voiceKeys
|
|
49
|
+
* @param {Object} key
|
|
50
|
+
* @returns {string}
|
|
51
|
+
*/
|
|
52
|
+
function voiceKeySelector(voiceKeys, key) {
|
|
53
|
+
return voiceKeys.map(k => `[data-${k}="${key[k]}"]`).join('');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const methods = {
|
|
57
|
+
/**
|
|
58
|
+
* Get the default timeout for a provider, falling back to the static DEFAULT_TIMEOUT.
|
|
59
|
+
* @param {string} providerId - Provider ID (e.g., 'pi', 'claude')
|
|
60
|
+
* @returns {number} Default timeout in ms
|
|
61
|
+
*/
|
|
62
|
+
_getProviderDefaultTimeout(providerId) {
|
|
63
|
+
const provider = this.providers[providerId];
|
|
64
|
+
return provider?.defaultTimeout ?? this.constructor.DEFAULT_TIMEOUT;
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Update the clock/timeout icon styling to indicate non-default timeout.
|
|
69
|
+
* @param {Element} panel - The council panel element
|
|
70
|
+
* @param {Object} key - Voice key, e.g. { level, index } or { index }
|
|
71
|
+
* @param {string} value - Current timeout value (as string of ms)
|
|
72
|
+
*/
|
|
73
|
+
_updateTimeoutIcon(panel, key, value) {
|
|
74
|
+
const dom = this.constructor.TIMEOUT_DOM;
|
|
75
|
+
const keySel = voiceKeySelector(dom.voiceKeys, key);
|
|
76
|
+
const wrapper = panel.querySelector(`.${dom.voiceWrapperClass}${keySel}`);
|
|
77
|
+
const iconBtn = wrapper?.querySelector(`.toggle-timeout-icon${keySel}`);
|
|
78
|
+
if (!iconBtn) return;
|
|
79
|
+
|
|
80
|
+
const providerId = wrapper?.querySelector('.voice-provider')?.value;
|
|
81
|
+
const defaultTimeout = this._getProviderDefaultTimeout(providerId);
|
|
82
|
+
const isNonDefault = parseInt(value, 10) !== defaultTimeout;
|
|
83
|
+
iconBtn.classList.toggle('has-custom-timeout', isNonDefault);
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
_updateOrchestrationTimeoutIcon(panel, value) {
|
|
87
|
+
const dom = this.constructor.TIMEOUT_DOM;
|
|
88
|
+
const iconBtn = panel.querySelector(`#${dom.orchestrationToggleId}`);
|
|
89
|
+
if (!iconBtn) return;
|
|
90
|
+
|
|
91
|
+
const orchRow = panel.querySelector(`#${dom.orchestrationRowId}`);
|
|
92
|
+
const providerId = orchRow?.querySelector('.voice-provider')?.value;
|
|
93
|
+
const defaultTimeout = this._getProviderDefaultTimeout(providerId);
|
|
94
|
+
const isNonDefault = parseInt(value, 10) !== defaultTimeout;
|
|
95
|
+
iconBtn.classList.toggle('has-custom-timeout', isNonDefault);
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* When a voice's provider changes, update its timeout to the new provider's default,
|
|
100
|
+
* preserving explicit user overrides via Math.max when the user had customized the value.
|
|
101
|
+
* @param {HTMLSelectElement} providerSelect - The provider dropdown that changed
|
|
102
|
+
*/
|
|
103
|
+
_applyProviderDefaultTimeout(providerSelect) {
|
|
104
|
+
const dom = this.constructor.TIMEOUT_DOM;
|
|
105
|
+
const panel = this.modal.querySelector(`#${dom.panelId}`);
|
|
106
|
+
if (!panel) return;
|
|
107
|
+
|
|
108
|
+
const providerId = providerSelect.value;
|
|
109
|
+
const newDefault = this._getProviderDefaultTimeout(providerId);
|
|
110
|
+
const oldProviderId = providerSelect.dataset.previousProvider;
|
|
111
|
+
const oldDefault = oldProviderId ? this._getProviderDefaultTimeout(oldProviderId) : null;
|
|
112
|
+
|
|
113
|
+
const isOrchestration = providerSelect.dataset.target === 'orchestration';
|
|
114
|
+
if (isOrchestration) {
|
|
115
|
+
const timeoutEl = panel.querySelector(`#${dom.orchestrationTimeoutId}`);
|
|
116
|
+
if (timeoutEl) {
|
|
117
|
+
const resolvedTimeout = resolveProviderSwitchTimeout(parseInt(timeoutEl.value, 10), oldDefault, newDefault);
|
|
118
|
+
timeoutEl.value = String(resolvedTimeout);
|
|
119
|
+
this._updateOrchestrationTimeoutIcon(panel, String(resolvedTimeout));
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
const key = {};
|
|
123
|
+
dom.voiceKeys.forEach(k => { key[k] = providerSelect.dataset[k]; });
|
|
124
|
+
const wrapper = providerSelect.closest(`.${dom.voiceWrapperClass}`);
|
|
125
|
+
const timeoutEl = wrapper?.querySelector(`.${dom.timeoutClass}`);
|
|
126
|
+
if (timeoutEl) {
|
|
127
|
+
const resolvedTimeout = resolveProviderSwitchTimeout(parseInt(timeoutEl.value, 10), oldDefault, newDefault);
|
|
128
|
+
timeoutEl.value = String(resolvedTimeout);
|
|
129
|
+
this._updateTimeoutIcon(panel, key, String(resolvedTimeout));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
providerSelect.dataset.previousProvider = providerId;
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Restore a voice's saved timeout into its (already mounted) timeout select.
|
|
138
|
+
* Shows the select when the saved value differs from the provider's default;
|
|
139
|
+
* with no saved value, applies the provider's default.
|
|
140
|
+
* @param {Element} panel - The council panel element
|
|
141
|
+
* @param {Object} key - Voice key, e.g. { level, index } or { index }
|
|
142
|
+
* @param {HTMLSelectElement|null} timeoutEl - The voice's timeout select
|
|
143
|
+
* @param {{provider: string, timeout?: number}} voice - Saved voice config
|
|
144
|
+
*/
|
|
145
|
+
_restoreVoiceTimeout(panel, key, timeoutEl, voice) {
|
|
146
|
+
const providerDefaultTimeout = this._getProviderDefaultTimeout(voice.provider);
|
|
147
|
+
if (timeoutEl && voice.timeout) {
|
|
148
|
+
timeoutEl.value = String(voice.timeout);
|
|
149
|
+
// Show the dropdown if non-default for this provider
|
|
150
|
+
if (voice.timeout !== providerDefaultTimeout) {
|
|
151
|
+
timeoutEl.style.display = '';
|
|
152
|
+
}
|
|
153
|
+
this._updateTimeoutIcon(panel, key, String(voice.timeout));
|
|
154
|
+
} else if (timeoutEl) {
|
|
155
|
+
// No saved timeout — apply the provider's default
|
|
156
|
+
timeoutEl.value = String(providerDefaultTimeout);
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Restore the orchestration/consolidation timeout select and its icon.
|
|
162
|
+
* @param {Element} panel - The council panel element
|
|
163
|
+
* @param {{provider: string, timeout?: number}} orchestration - Saved orchestration config
|
|
164
|
+
*/
|
|
165
|
+
_restoreOrchestrationTimeout(panel, orchestration) {
|
|
166
|
+
const dom = this.constructor.TIMEOUT_DOM;
|
|
167
|
+
const orchTimeoutSelect = panel.querySelector(`#${dom.orchestrationTimeoutId}`);
|
|
168
|
+
const orchProviderDefaultTimeout = this._getProviderDefaultTimeout(orchestration.provider);
|
|
169
|
+
if (orchTimeoutSelect && orchestration.timeout) {
|
|
170
|
+
orchTimeoutSelect.value = String(orchestration.timeout);
|
|
171
|
+
// Show the dropdown if non-default for this provider
|
|
172
|
+
if (orchestration.timeout !== orchProviderDefaultTimeout) {
|
|
173
|
+
orchTimeoutSelect.style.display = '';
|
|
174
|
+
}
|
|
175
|
+
this._updateOrchestrationTimeoutIcon(panel, String(orchestration.timeout));
|
|
176
|
+
} else if (orchTimeoutSelect) {
|
|
177
|
+
// No saved timeout — apply the provider's default
|
|
178
|
+
orchTimeoutSelect.value = String(orchProviderDefaultTimeout);
|
|
179
|
+
this._updateOrchestrationTimeoutIcon(panel, String(orchProviderDefaultTimeout));
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Copy the shared timeout methods onto a tab class's prototype.
|
|
186
|
+
* @param {Function} TabClass - Class with static TIMEOUT_DOM and DEFAULT_TIMEOUT
|
|
187
|
+
*/
|
|
188
|
+
function mixInto(TabClass) {
|
|
189
|
+
Object.assign(TabClass.prototype, methods);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const CouncilTimeout = { resolveProviderSwitchTimeout, methods, mixInto };
|
|
193
|
+
|
|
194
|
+
if (typeof window !== 'undefined') {
|
|
195
|
+
window.CouncilTimeout = CouncilTimeout;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Support CommonJS require() in unit tests while keeping the browser IIFE
|
|
199
|
+
// behavior of assigning to window.
|
|
200
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
201
|
+
module.exports = CouncilTimeout;
|
|
202
|
+
}
|
|
203
|
+
})();
|
package/public/local.html
CHANGED
|
@@ -562,6 +562,9 @@
|
|
|
562
562
|
<!-- Highlight.js for legacy/context-file syntax highlighting -->
|
|
563
563
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
|
564
564
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/elixir.min.js"></script>
|
|
565
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/erb.min.js"></script>
|
|
566
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/scala.min.js"></script>
|
|
567
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/dockerfile.min.js"></script>
|
|
565
568
|
|
|
566
569
|
<!-- Markdown-it Library for rendering markdown in comments -->
|
|
567
570
|
<script src="https://cdn.jsdelivr.net/npm/markdown-it@14.3.2/dist/markdown-it.min.js"></script>
|
|
@@ -616,6 +619,7 @@
|
|
|
616
619
|
<script src="/js/components/TextInputDialog.js"></script>
|
|
617
620
|
<script src="/js/components/AnalysisConfigModal.js"></script>
|
|
618
621
|
<script src="/js/components/TimeoutSelect.js"></script>
|
|
622
|
+
<script src="/js/utils/council-timeout.js"></script>
|
|
619
623
|
<script src="/js/components/VoiceCentricConfigTab.js"></script>
|
|
620
624
|
<script src="/js/components/AdvancedConfigTab.js"></script>
|
|
621
625
|
<script src="/js/components/CouncilProgressModal.js"></script>
|
package/public/pr.html
CHANGED
|
@@ -367,6 +367,9 @@
|
|
|
367
367
|
<!-- Highlight.js for legacy/context-file syntax highlighting -->
|
|
368
368
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
|
369
369
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/elixir.min.js"></script>
|
|
370
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/erb.min.js"></script>
|
|
371
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/scala.min.js"></script>
|
|
372
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/dockerfile.min.js"></script>
|
|
370
373
|
|
|
371
374
|
<!-- Markdown-it Library for rendering markdown in comments -->
|
|
372
375
|
<script src="https://cdn.jsdelivr.net/npm/markdown-it@14.3.2/dist/markdown-it.min.js"></script>
|
|
@@ -421,6 +424,7 @@
|
|
|
421
424
|
<script src="/js/components/TextInputDialog.js"></script>
|
|
422
425
|
<script src="/js/components/AnalysisConfigModal.js"></script>
|
|
423
426
|
<script src="/js/components/TimeoutSelect.js"></script>
|
|
427
|
+
<script src="/js/utils/council-timeout.js"></script>
|
|
424
428
|
<script src="/js/components/VoiceCentricConfigTab.js"></script>
|
|
425
429
|
<script src="/js/components/AdvancedConfigTab.js"></script>
|
|
426
430
|
<script src="/js/components/CouncilProgressModal.js"></script>
|
|
@@ -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',
|