converse-mcp-server 4.10.2 → 4.12.0
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/.env.example +5 -5
- package/README.md +34 -31
- package/docs/API.md +29 -26
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/EXAMPLES.md +2 -2
- package/docs/PROVIDERS.md +31 -27
- package/package.json +1 -1
- package/src/prompts/helpPrompt.js +2 -2
- package/src/providers/codex.js +17 -7
- package/src/providers/copilot.js +46 -8
- package/src/providers/gemini-cli.js +55 -24
- package/src/providers/google.js +34 -11
- package/src/providers/openai.js +49 -18
- package/src/tools/chat.js +1 -1
package/.env.example
CHANGED
|
@@ -101,12 +101,12 @@ CLOUDFLARE_API_TOKEN=your_cloudflare_api_token_here
|
|
|
101
101
|
# The model a bare provider name ("codex", "openai", ...) and "auto" use.
|
|
102
102
|
# Each must be a model ID or alias from that provider's catalog; startup fails
|
|
103
103
|
# with "did you mean" suggestions otherwise. Per request, use "provider:model".
|
|
104
|
-
# CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
104
|
+
# CODEX_DEFAULT_MODEL=gpt-6.2-astra # gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-sol, gpt-6-sol, gpt-6-luna, gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.3-codex-spark (CODEX_MODEL is the legacy name)
|
|
105
105
|
# CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
106
|
-
# AGY_DEFAULT_MODEL=gemini-
|
|
107
|
-
# COPILOT_DEFAULT_MODEL=gpt-6.
|
|
108
|
-
# OPENAI_DEFAULT_MODEL=gpt-6.
|
|
109
|
-
# GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
106
|
+
# AGY_DEFAULT_MODEL=gemini-4-hydrogen # Antigravity CLI: gemini-4-carbon (default, requires Google AI Ultra), gemini-4-hydrogen, gemini-3.8-flash
|
|
107
|
+
# COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL is the legacy name
|
|
108
|
+
# OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
109
|
+
# GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
110
110
|
# XAI_DEFAULT_MODEL=grok-4.5
|
|
111
111
|
# ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
112
112
|
# MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
package/README.md
CHANGED
|
@@ -234,10 +234,12 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
234
234
|
|
|
235
235
|
### OpenAI Models
|
|
236
236
|
|
|
237
|
-
- **gpt-6.
|
|
238
|
-
- **gpt-6-
|
|
237
|
+
- **gpt-6.2-sol** (default; aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`): GPT-6.2 Sol (1M context, 128K output) - Everyday coding, agentic workflows, and professional work at a quarter of the Astra price; effort `low`–`max`
|
|
238
|
+
- **gpt-6.2-astra** (alias: `astra`): Frontier GPT-6 flagship (1M context, 128K output) - Hardest end-to-end work; effort `low`–`max` (EXPENSIVE: 4x Sol)
|
|
239
|
+
- **gpt-6.1-sol** (alias: `gpt-6.1`): Previous GPT-6.1 Sol (1M context, 128K output), reachable by versioned name only; effort `low`–`max`
|
|
240
|
+
- **gpt-6-sol**: Original GPT-6 Sol (1M context, 128K output), reachable by versioned name only; effort `none`–`max`
|
|
239
241
|
- **gpt-6-luna** (alias: `luna`): Most efficient GPT-6 (1M context, 128K output) - Focused, high-volume tasks; effort `none`–`max`
|
|
240
|
-
- **gpt-6-astra
|
|
242
|
+
- **gpt-6-astra**: Previous GPT-6 Astra (1M context, 128K output), reachable by versioned name only; effort `low`–`max` (EXPENSIVE: 5x Sol)
|
|
241
243
|
- **gpt-5.6-sol** (alias: `gpt-5.6`): Previous flagship GPT-5.6 (1M context, 128K output)
|
|
242
244
|
- **gpt-5.6-terra** (alias: `terra`): Lower-cost GPT-5.6 (400K context, 128K output) - Performance competitive with GPT-5.5 at half the price
|
|
243
245
|
- **gpt-5.6-luna**: Fastest, most affordable GPT-5.6 (400K context, 128K output)
|
|
@@ -259,7 +261,8 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
259
261
|
|
|
260
262
|
**Supported Models**:
|
|
261
263
|
|
|
262
|
-
- **gemini-4-
|
|
264
|
+
- **gemini-4-carbon** (default; aliases: `carbon`, `pro`, `gemini-pro`): Strongest Gemini model for long-horizon software engineering, scientific reasoning and agentic work; thinking levels low/medium/high; paid API tier only (1M unified context, 65K output)
|
|
265
|
+
- **gemini-4-hydrogen** (alias: `hydrogen`): Fast Gemini 4 model for everyday coding and agentic workflows; thinking levels low/medium/high/xhigh (`reasoning_effort: "xhigh"`); available on every API tier (1M unified context, 65K output)
|
|
263
266
|
- **gemini-3.1-pro-preview** (aliases: `gemini-3.1-pro`, `gemini-3`): Gemini 3.1 Pro reasoning with expanded thinking levels (1M context, 64K output)
|
|
264
267
|
- **gemini-3.5-flash** (aliases: `gemini-3.5`, `flash-3.5`): Frontier-level agentic and coding performance at Flash speed (1M context, 65K output)
|
|
265
268
|
- **gemini-3.8-flash** (aliases: `gemini-3.8`, `flash-3.8`): Current-generation Flash with stronger long-horizon agentic performance (1M context, 65K output; thinking levels low/medium/high — no minimal)
|
|
@@ -267,7 +270,7 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
267
270
|
- **gemini-2.5-flash** (alias: `flash`): Ultra-fast (1M context, 65K output)
|
|
268
271
|
- **gemini-2.5-flash-lite** (alias: `flash-lite`): Lightweight fast model (1M context, 65K output)
|
|
269
272
|
|
|
270
|
-
**Note**: The Antigravity CLI provider serves `gemini-4-
|
|
273
|
+
**Note**: The Antigravity CLI provider serves `gemini-4-carbon`, `gemini-4-hydrogen` and `gemini-3.8-flash`. Bare `pro` and `gemini-pro` resolve to Gemini 4 Carbon on Antigravity first, then the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `flash` and `gemini-3.8-flash` route to Antigravity first when it is installed (see [Model Selection](#model-selection)). Use `google:<model>` to always use the Google API.
|
|
271
274
|
|
|
272
275
|
### X.AI/Grok Models
|
|
273
276
|
|
|
@@ -323,11 +326,11 @@ All models reason by default and return reasoning traces (`reasoning_content`),
|
|
|
323
326
|
|
|
324
327
|
### Codex Models
|
|
325
328
|
|
|
326
|
-
OpenAI Codex agentic coding assistant. `codex` uses its default model (GPT-6 Astra, or `CODEX_DEFAULT_MODEL`); `codex:<model>` picks one (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`):
|
|
329
|
+
OpenAI Codex agentic coding assistant. `codex` uses its default model (GPT-6.2 Astra, or `CODEX_DEFAULT_MODEL`); `codex:<model>` picks one (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`):
|
|
327
330
|
|
|
328
|
-
- **gpt-6.
|
|
331
|
+
- **gpt-6.2-astra** (`astra`), **gpt-6.2-sol** (`sol`, `gpt-6`), **gpt-6.1-sol**, **gpt-6-sol**, **gpt-6-luna** (`luna`), **gpt-6-astra**
|
|
329
332
|
- **gpt-5.6-sol** (`gpt-5.6`), **gpt-5.6-terra** (`terra`), **gpt-5.6-luna**, **gpt-5.5**, **gpt-5.3-codex-spark** (`spark`)
|
|
330
|
-
- `reasoning_effort` maps onto the tiers the chosen backend accepts (
|
|
333
|
+
- `reasoning_effort` maps onto the tiers the chosen backend accepts (GPT-6 Sol, Luna, and GPT-5.6: `none` through `max`; GPT-6.2 Astra/Sol, GPT-6.1 Sol and GPT-6 Astra: `low` through `max`, no `none`)
|
|
331
334
|
- Thread-based sessions with persistent context
|
|
332
335
|
- Direct filesystem access from working directory
|
|
333
336
|
- Typical response time: 6-20 seconds (longer for complex tasks)
|
|
@@ -347,11 +350,11 @@ Claude via the Claude Agent SDK. `claude` uses its default model (Fable 5.2, or
|
|
|
347
350
|
|
|
348
351
|
### GitHub Copilot SDK Models
|
|
349
352
|
|
|
350
|
-
Reach these only with the `copilot:` namespace (e.g. `copilot:gpt-6.
|
|
353
|
+
Reach these only with the `copilot:` namespace (e.g. `copilot:gpt-6.2-sol`) — Copilot never serves bare model names. `copilot` alone uses GPT-6.2 Sol, or `COPILOT_DEFAULT_MODEL`. Uses your GitHub Copilot subscription (`gh auth login`) - no API key needed:
|
|
351
354
|
|
|
352
|
-
- **OpenAI**: `gpt-6.
|
|
355
|
+
- **OpenAI**: `gpt-6.2-sol` (aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`), `gpt-6.2-astra` (alias: `astra`), `gpt-6.1-sol` (alias: `gpt-6.1`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna` (all support `reasoning_effort`)
|
|
353
356
|
- **Anthropic**: `claude-opus-5.5` (aliases: `opus`, `claude`), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
354
|
-
- **Google**: `gemini-4-
|
|
357
|
+
- **Google**: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
355
358
|
|
|
356
359
|
## 📚 Help & Documentation
|
|
357
360
|
|
|
@@ -410,12 +413,12 @@ CODEX_APPROVAL_POLICY=never # never (default), untrusted, on-fa
|
|
|
410
413
|
# Optional: per-provider default model, used for a bare provider name (`codex`,
|
|
411
414
|
# `openai`, ...) and for "auto". Must be a model or alias from that provider's
|
|
412
415
|
# list; startup fails with suggestions otherwise.
|
|
413
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
416
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL still works as a fallback
|
|
414
417
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
415
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
416
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
417
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
418
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
418
|
+
AGY_DEFAULT_MODEL=gemini-4-carbon # Requires Google AI Ultra; other plans can use gemini:hydrogen or set AGY_DEFAULT_MODEL=gemini-4-hydrogen
|
|
419
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL still works as a fallback
|
|
420
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
421
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
419
422
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
420
423
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
421
424
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -482,30 +485,30 @@ Every entry in `models` takes one of four forms:
|
|
|
482
485
|
"auto";
|
|
483
486
|
|
|
484
487
|
// A provider: its default model (hardcoded, or <PROVIDER>_DEFAULT_MODEL)
|
|
485
|
-
"codex"; // -> Codex (GPT-6 Astra)
|
|
488
|
+
"codex"; // -> Codex (GPT-6.2 Astra)
|
|
486
489
|
"claude"; // -> Claude Agent SDK (Claude Fable 5.2)
|
|
487
|
-
"gemini"; // -> Antigravity CLI (Gemini 4
|
|
488
|
-
"openai"; // -> OpenAI API (GPT-6.
|
|
490
|
+
"gemini"; // -> Antigravity CLI (Gemini 4 Carbon)
|
|
491
|
+
"openai"; // -> OpenAI API (GPT-6.2 Sol)
|
|
489
492
|
|
|
490
493
|
// provider:model — that model on that provider only
|
|
491
|
-
"codex:astra"; // -> Codex (GPT-6 Astra)
|
|
492
|
-
"openai:gpt-6-astra"; // -> OpenAI API, even when Codex is available
|
|
493
|
-
"gemini:pro"; // -> Antigravity CLI (Gemini 4
|
|
494
|
+
"codex:astra"; // -> Codex (GPT-6.2 Astra)
|
|
495
|
+
"openai:gpt-6.2-astra"; // -> OpenAI API, even when Codex is available
|
|
496
|
+
"gemini:pro"; // -> Antigravity CLI (Gemini 4 Carbon)
|
|
494
497
|
"google:gemini-3.1-pro-preview"; // -> Google API
|
|
495
498
|
"copilot:sonnet"; // -> GitHub Copilot (Claude Sonnet 5.5)
|
|
496
499
|
"openrouter:z-ai/glm-5.2:online"; // -> OpenRouter with web search opt-in
|
|
497
500
|
|
|
498
501
|
// A bare model ID or alias — the first configured provider that offers it
|
|
499
|
-
"gpt-6-astra"; // -> Codex, else OpenAI API
|
|
502
|
+
"gpt-6.2-astra"; // -> Codex, else OpenAI API
|
|
500
503
|
"opus"; // -> Claude Agent SDK, else Anthropic API
|
|
501
|
-
"pro"; // -> Antigravity CLI (gemini-4-
|
|
504
|
+
"pro"; // -> Antigravity CLI (gemini-4-carbon), else Google API
|
|
502
505
|
"grok"; // -> grok-4.5 (XAI)
|
|
503
506
|
"z-ai/glm-5.2"; // -> OpenRouter (any vendor/model slug)
|
|
504
507
|
```
|
|
505
508
|
|
|
506
509
|
**Bare model names** go to the first provider, in the order below, whose model list contains the name and that is set up (API key present; for Codex and Claude, a login file or token; for Antigravity, the `agy` binary). If that provider then fails with an authentication or availability error, the next provider that serves **the same model** takes over — a provider whose alias of that name points at a different model is never substituted (bare `flash` is Gemini 3.8 Flash on Antigravity and Gemini 2.5 Flash on the Google API, so it does not fail over between them). Copilot is never picked for bare names; use `copilot:<model>`.
|
|
507
510
|
|
|
508
|
-
**Unknown names are rejected**, never guessed: a typo or an unlisted model returns an error with up to three close matches, e.g. `Unknown model "gtp-6-
|
|
511
|
+
**Unknown names are rejected**, never guessed: a typo or an unlisted model returns an error with up to three close matches, e.g. `Unknown model "gtp-6-luna". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?` or `Unknown openai model "spark" in "openai:spark". Did you mean: codex:spark?`. OpenRouter is the exception for full `vendor/model` slugs, which are checked against OpenRouter's live catalog.
|
|
509
512
|
|
|
510
513
|
**Auto Model Behavior:**
|
|
511
514
|
|
|
@@ -515,12 +518,12 @@ Every entry in `models` takes one of four forms:
|
|
|
515
518
|
|
|
516
519
|
Provider priority order (subscription-based local providers first, then API-key providers), used by both `auto` and bare model names:
|
|
517
520
|
|
|
518
|
-
1. Codex (`codex` → GPT-6 Astra)
|
|
519
|
-
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini 4
|
|
521
|
+
1. Codex (`codex` → GPT-6.2 Astra)
|
|
522
|
+
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini 4 Carbon)
|
|
520
523
|
3. Claude Agent SDK (`claude` → Claude Fable 5.2)
|
|
521
|
-
4. Copilot (`copilot` → GPT-6.
|
|
522
|
-
5. OpenAI (`openai` → GPT-6.
|
|
523
|
-
6. Google (`google` → Gemini 4
|
|
524
|
+
4. Copilot (`copilot` → GPT-6.2 Sol; `auto` only, never bare names)
|
|
525
|
+
5. OpenAI (`openai` → GPT-6.2 Sol)
|
|
526
|
+
6. Google (`google` → Gemini 4 Carbon)
|
|
524
527
|
7. XAI (`xai` → Grok 4.5)
|
|
525
528
|
8. Anthropic (`anthropic` → Claude Opus 5.5)
|
|
526
529
|
9. Mistral (`mistral` → Mistral Medium 3.5)
|
|
@@ -528,7 +531,7 @@ Provider priority order (subscription-based local providers first, then API-key
|
|
|
528
531
|
11. OpenRouter (`openrouter` → GLM 5.2)
|
|
529
532
|
12. Abliteration (`abliteration` / `ablit` → `abliterated-model-large-v2`)
|
|
530
533
|
|
|
531
|
-
**Local agent permissions:** Bare model names and `auto` reach the local agent providers whenever they are set up, not only when named explicitly. The Antigravity CLI runs `agy` with `--dangerously-skip-permissions` because headless calls cannot prompt for tool approval — every tool request is auto-approved, including shell commands and file writes. The Claude Agent SDK runs with `bypassPermissions`. Codex uses `CODEX_SANDBOX_MODE` (read-only by default). A read-only prompt is not an enforced security boundary for these providers, so use them only with trusted prompts and context. To keep a request on a plain API, name the provider: `google:pro`, `anthropic:opus`, `openai:gpt-6-astra`.
|
|
534
|
+
**Local agent permissions:** Bare model names and `auto` reach the local agent providers whenever they are set up, not only when named explicitly. The Antigravity CLI runs `agy` with `--dangerously-skip-permissions` because headless calls cannot prompt for tool approval — every tool request is auto-approved, including shell commands and file writes. The Claude Agent SDK runs with `bypassPermissions`. Codex uses `CODEX_SANDBOX_MODE` (read-only by default). A read-only prompt is not an enforced security boundary for these providers, so use them only with trusted prompts and context. To keep a request on a plain API, name the provider: `google:pro`, `anthropic:opus`, `openai:gpt-6.2-astra`.
|
|
532
535
|
|
|
533
536
|
### Advanced Configuration
|
|
534
537
|
|
package/docs/API.md
CHANGED
|
@@ -509,10 +509,12 @@ Provide models as plain name strings in the `models` array. Each entry is `auto`
|
|
|
509
509
|
|
|
510
510
|
| Model | Aliases | Context | Output | Notes |
|
|
511
511
|
|-------|---------|---------|--------|-------|
|
|
512
|
-
| `gpt-6.
|
|
513
|
-
| `gpt-6-
|
|
512
|
+
| `gpt-6.2-sol` | `gpt-6`, `gpt-6.2`, `gpt-5`, `sol` | 1M | 128K | Default OpenAI model; everyday coding, agentic workflows, and professional work at a quarter of the Astra price; effort `low`–`max` |
|
|
513
|
+
| `gpt-6.2-astra` | `astra` | 1M | 128K | Frontier flagship (expensive); effort `low`–`max`, no `none` |
|
|
514
|
+
| `gpt-6.1-sol` | `gpt-6.1` | 1M | 128K | Previous GPT-6.1 Sol; reachable by versioned name only; effort `low`–`max` |
|
|
515
|
+
| `gpt-6-sol` | — | 1M | 128K | Original GPT-6 Sol; reachable by versioned name only; effort `none`–`max` |
|
|
514
516
|
| `gpt-6-luna` | `luna` | 1M | 128K | Most efficient GPT-6; effort `none`–`max` |
|
|
515
|
-
| `gpt-6-astra` |
|
|
517
|
+
| `gpt-6-astra` | — | 1M | 128K | Previous GPT-6 Astra (expensive); reachable by versioned name only; effort `low`–`max`, no `none` |
|
|
516
518
|
| `gpt-5.6-sol` | `gpt-5.6` | 1M | 128K | Previous flagship |
|
|
517
519
|
| `gpt-5.6-terra` | `terra` | 400K | 128K | Lower-cost GPT-5.6 tier |
|
|
518
520
|
| `gpt-5.6-luna` | — | 400K | 128K | Fastest GPT-5.6 tier |
|
|
@@ -528,7 +530,8 @@ Provide models as plain name strings in the `models` array. Each entry is `auto`
|
|
|
528
530
|
|
|
529
531
|
| Model | Aliases | Context | Output | Notes |
|
|
530
532
|
|-------|---------|---------|--------|-------|
|
|
531
|
-
| `gemini-4-
|
|
533
|
+
| `gemini-4-carbon` | `carbon`, `pro`, `gemini-pro` | 1M | 65K | Default; strongest Gemini for long-horizon software engineering and scientific reasoning; thinking low/medium/high; paid API tier only |
|
|
534
|
+
| `gemini-4-hydrogen` | `hydrogen` | 1M | 65K | Fast Gemini 4 for everyday coding and agentic work; thinking low/medium/high/xhigh; every API tier |
|
|
532
535
|
| `gemini-3.1-pro-preview` | `gemini-3.1-pro`, `gemini-3` | 1M | 64K | Gemini 3.1 Pro reasoning, expanded thinking levels |
|
|
533
536
|
| `gemini-3.5-flash` | `gemini-3.5`, `flash-3.5` | 1M | 65K | Frontier agentic/coding at Flash speed |
|
|
534
537
|
| `gemini-3.8-flash` | `gemini-3.8`, `flash-3.8` | 1M | 65K | Current-generation Flash; thinking low/medium/high only |
|
|
@@ -536,7 +539,7 @@ Provide models as plain name strings in the `models` array. Each entry is `auto`
|
|
|
536
539
|
| `gemini-2.5-flash` | `flash` | 1M | 65K | Ultra-fast |
|
|
537
540
|
| `gemini-2.5-flash-lite` | `flash-lite` | 1M | 65K | Lightweight fast model |
|
|
538
541
|
|
|
539
|
-
**Note:** The **Antigravity CLI** provider (`agy`, OAuth-based) serves `gemini-4-
|
|
542
|
+
**Note:** The **Antigravity CLI** provider (`agy`, OAuth-based) serves `gemini-4-carbon`, `gemini-4-hydrogen` and `gemini-3.8-flash`. Bare `pro` and `gemini-pro` resolve to Gemini 4 Carbon on Antigravity first, then the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `flash` and `gemini-3.8-flash` route to Antigravity first when `agy` is installed; the bare name `gemini` is the Antigravity namespace. Use `google:<model>` (e.g. `google:pro`) to always use the Google API.
|
|
540
543
|
|
|
541
544
|
### X.AI / Grok Models
|
|
542
545
|
|
|
@@ -610,14 +613,14 @@ All three are uncensored ("abliterated") reasoning models using Abliteration's O
|
|
|
610
613
|
|
|
611
614
|
**Codex** is an agentic coding assistant with direct filesystem access:
|
|
612
615
|
|
|
613
|
-
- **Model**: `codex` (underlying model: GPT-6 Astra by default, or `CODEX_DEFAULT_MODEL`)
|
|
614
|
-
- **Backend selection**: `codex:<model>` per request (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`) from the Codex catalog: `gpt-6.
|
|
616
|
+
- **Model**: `codex` (underlying model: GPT-6.2 Astra by default, or `CODEX_DEFAULT_MODEL`)
|
|
617
|
+
- **Backend selection**: `codex:<model>` per request (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`) from the Codex catalog: `gpt-6.2-astra` (`astra`), `gpt-6.2-sol` (`sol`, `gpt-6`), `gpt-6.1-sol`, `gpt-6-sol`, `gpt-6-luna` (`luna`), `gpt-6-astra`, `gpt-5.6-sol` (`gpt-5.6`), `gpt-5.6-terra` (`terra`), `gpt-5.6-luna`, `gpt-5.5`, `gpt-5.3-codex-spark` (`spark`). Other names are rejected with suggestions. Bare IDs from this list (e.g. `gpt-6.2-astra`) go to Codex first, then the OpenAI API.
|
|
615
618
|
- **Availability**: the Codex SDK is installed and `~/.codex/auth.json` exists (`$CODEX_HOME/auth.json` when set) or `CODEX_API_KEY` is set
|
|
616
619
|
- **Thread-based sessions**: persistent conversation history via `continuation_id` in `chat` mode
|
|
617
620
|
- **Direct file access**: reads files from the working directory (paths relative to `CLIENT_CWD`)
|
|
618
621
|
- **Response times**: 6-20 seconds typical (complex tasks may take minutes)
|
|
619
622
|
- **Authentication**: ChatGPT login OR `CODEX_API_KEY` (NOT `OPENAI_API_KEY`)
|
|
620
|
-
- `reasoning_effort` is clamped onto the tiers the chosen backend accepts (GPT-6 Sol/Luna and GPT-5.6: `none`–`max`; GPT-6 Astra and GPT-6.1 Sol: `low`–`max`, no `none`); web search is not applicable — Codex manages its own execution
|
|
623
|
+
- `reasoning_effort` is clamped onto the tiers the chosen backend accepts (GPT-6 Sol/Luna and GPT-5.6: `none`–`max`; GPT-6.2 Astra/Sol, GPT-6 Astra and GPT-6.1 Sol: `low`–`max`, no `none`); web search is not applicable — Codex manages its own execution
|
|
621
624
|
|
|
622
625
|
### Claude Agent SDK (subscription)
|
|
623
626
|
|
|
@@ -637,7 +640,7 @@ All three are uncensored ("abliterated") reasoning models using Abliteration's O
|
|
|
637
640
|
|
|
638
641
|
The **Antigravity CLI** (`agy`) provides subscription-based access to Gemini models through Google OAuth:
|
|
639
642
|
|
|
640
|
-
- **Models** (text-only): `gemini-4-
|
|
643
|
+
- **Models** (text-only): `gemini-4-carbon` (default; `carbon`, `pro`, `gemini-pro`, ...; `gemini:pro`), `gemini-4-hydrogen` (`hydrogen`, ...; `gemini:hydrogen`; `reasoning_effort: "xhigh"` selects its XHigh variant), `gemini-3.8-flash` (`flash`, `gemini-3.8`, `flash-3.8`, ...; `gemini:flash`). Gemini 4 Carbon requires Google AI Ultra; other plans can use `gemini:hydrogen` or set `AGY_DEFAULT_MODEL=gemini-4-hydrogen`. Default override: `AGY_DEFAULT_MODEL`.
|
|
641
644
|
- **Namespaces**: `gemini`, `agy`, `antigravity`, `gemini-cli`
|
|
642
645
|
- **Availability**: the `agy` binary is found on PATH or at the platform install location
|
|
643
646
|
- **Permissions**: `agy` runs with `--dangerously-skip-permissions`, so every tool request is auto-approved
|
|
@@ -662,11 +665,11 @@ agy
|
|
|
662
665
|
|
|
663
666
|
### GitHub Copilot SDK (subscription)
|
|
664
667
|
|
|
665
|
-
Reach these only with the `copilot:` namespace (also `github-copilot:`, `copilot-sdk:`; e.g. `copilot:gpt-6.
|
|
668
|
+
Reach these only with the `copilot:` namespace (also `github-copilot:`, `copilot-sdk:`; e.g. `copilot:gpt-6.2-sol`) — Copilot never serves bare model names. `copilot` alone uses GPT-6.2 Sol, or `COPILOT_DEFAULT_MODEL`. Available when the Copilot SDK is installed; uses your GitHub Copilot subscription (`gh auth login`) — no API key needed:
|
|
666
669
|
|
|
667
|
-
- **OpenAI**: `gpt-6.
|
|
670
|
+
- **OpenAI**: `gpt-6.2-sol` (aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`), `gpt-6.2-astra` (alias: `astra`), `gpt-6.1-sol` (alias: `gpt-6.1`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna` (all accept `reasoning_effort`)
|
|
668
671
|
- **Anthropic**: `claude-opus-5.5` (aliases: `opus`, `claude`), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
669
|
-
- **Google**: `gemini-4-
|
|
672
|
+
- **Google**: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
670
673
|
- Any other `copilot:<id>` is rejected with suggestions
|
|
671
674
|
|
|
672
675
|
### Model Selection
|
|
@@ -678,14 +681,14 @@ Every entry in `models` takes one of four forms:
|
|
|
678
681
|
- **`provider:model`** — that model on that provider only; the model must be in that provider's list.
|
|
679
682
|
- **Bare `model`** — the first provider, in the order `codex`, `gemini-cli`, `claude`, `openai`, `google`, `xai`, `anthropic`, `mistral`, `deepseek`, `openrouter`, `abliteration`, whose list contains the ID or alias and that is set up (API key for API providers; SDK plus login for Codex and the Claude Agent SDK; the `agy` binary for Antigravity). On an authentication or availability error, the next set-up provider serving **the same model** takes over; a provider whose alias points at a different model is never substituted (bare `flash` is Gemini 3.8 Flash on Antigravity and Gemini 2.5 Flash on the Google API). Copilot never serves bare names.
|
|
680
683
|
|
|
681
|
-
**Unknown names are rejected**, never forwarded: the error lists up to three close matches, e.g. `Unknown model "gtp-6-
|
|
684
|
+
**Unknown names are rejected**, never forwarded: the error lists up to three close matches, e.g. `Unknown model "gtp-6-luna". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?` or `Unknown openai model "spark" in "openai:spark". Did you mean: codex:spark?`. The exception is OpenRouter: a full `vendor/model` slug (bare or `openrouter:`) is validated against OpenRouter's live catalog.
|
|
682
685
|
|
|
683
686
|
```text
|
|
684
687
|
"auto" // First available provider (chat); first 3 (consensus)
|
|
685
|
-
"gpt-6" // Codex (-> gpt-6.
|
|
688
|
+
"gpt-6" // Codex (-> gpt-6.2-sol), else OpenAI API
|
|
686
689
|
"openai:gpt-6" // OpenAI API only
|
|
687
690
|
"gemini-2.5-flash" // Google API
|
|
688
|
-
"pro" // Antigravity CLI (-> gemini-4-
|
|
691
|
+
"pro" // Antigravity CLI (-> gemini-4-carbon), else Google API
|
|
689
692
|
"google:pro" // Google API only
|
|
690
693
|
"grok-4.5" // X.AI
|
|
691
694
|
"deepseek" // DeepSeek (-> deepseek-v4-pro)
|
|
@@ -699,11 +702,11 @@ Every entry in `models` takes one of four forms:
|
|
|
699
702
|
"claude" // Claude Agent SDK (-> Claude Fable 5.2)
|
|
700
703
|
"claude:opus" // Claude Agent SDK (Claude Opus 5.5)
|
|
701
704
|
"codex:luna" // Codex (GPT-6 Luna)
|
|
702
|
-
"gemini" // Antigravity CLI (Gemini 4
|
|
703
|
-
"copilot:gpt-6.
|
|
705
|
+
"gemini" // Antigravity CLI (Gemini 4 Carbon)
|
|
706
|
+
"copilot:gpt-6.2-sol" // GitHub Copilot SDK
|
|
704
707
|
```
|
|
705
708
|
|
|
706
|
-
**Local agent permissions:** bare names and `auto` reach the local agent providers whenever they are set up. The Antigravity CLI auto-approves every tool request and the Claude Agent SDK runs with `bypassPermissions`, so a read-only prompt is not an enforced boundary there. Name the API provider (`google:pro`, `anthropic:opus`, `openai:gpt-6-astra`) to keep a request on a plain API.
|
|
709
|
+
**Local agent permissions:** bare names and `auto` reach the local agent providers whenever they are set up. The Antigravity CLI auto-approves every tool request and the Claude Agent SDK runs with `bypassPermissions`, so a read-only prompt is not an enforced boundary there. Name the API provider (`google:pro`, `anthropic:opus`, `openai:gpt-6.2-astra`) to keep a request on a plain API.
|
|
707
710
|
|
|
708
711
|
**Auto behavior:**
|
|
709
712
|
- **chat mode**: `["auto"]` selects the first available provider and uses its default model, with failover to the next provider on error.
|
|
@@ -729,7 +732,7 @@ Control Codex behavior through environment variables:
|
|
|
729
732
|
- **`CODEX_SANDBOX_MODE`** — filesystem access: `read-only` (default), `workspace-write`, `danger-full-access` (containers only)
|
|
730
733
|
- **`CODEX_SKIP_GIT_CHECK`** — `true` (default) works in any directory; `false` requires a Git repository
|
|
731
734
|
- **`CODEX_APPROVAL_POLICY`** — `never` (default, recommended for servers), `untrusted`, `on-failure`, `on-request`
|
|
732
|
-
- **`CODEX_DEFAULT_MODEL`** — model used for `codex` and `auto` (default: `gpt-6-astra`); the legacy name `CODEX_MODEL` is honored when it is unset
|
|
735
|
+
- **`CODEX_DEFAULT_MODEL`** — model used for `codex` and `auto` (default: `gpt-6.2-astra`); the legacy name `CODEX_MODEL` is honored when it is unset
|
|
733
736
|
- **`CODEX_API_KEY`** — optional API key for headless deployments (alternative to ChatGPT login)
|
|
734
737
|
|
|
735
738
|
**Example (.env):**
|
|
@@ -738,7 +741,7 @@ CODEX_API_KEY=your_codex_api_key_here
|
|
|
738
741
|
CODEX_SANDBOX_MODE=read-only
|
|
739
742
|
CODEX_SKIP_GIT_CHECK=true
|
|
740
743
|
CODEX_APPROVAL_POLICY=never
|
|
741
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
744
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra
|
|
742
745
|
```
|
|
743
746
|
|
|
744
747
|
### Default Models
|
|
@@ -746,12 +749,12 @@ CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
|
746
749
|
Each provider's default model (used for its bare provider name and for `auto`) can be set with `<PROVIDER>_DEFAULT_MODEL`. The value must be a model ID or alias from that provider's list; startup fails with "Did you mean" suggestions otherwise (OpenRouter also accepts any `vendor/model` slug).
|
|
747
750
|
|
|
748
751
|
```bash
|
|
749
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
752
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL is honored as a legacy fallback
|
|
750
753
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
751
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
752
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
753
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
754
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
754
|
+
AGY_DEFAULT_MODEL=gemini-4-carbon # Antigravity CLI (gemini)
|
|
755
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
756
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
757
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
755
758
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
756
759
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
757
760
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -880,7 +883,7 @@ Set `async: true` on a chat request for long-running work:
|
|
|
880
883
|
|
|
881
884
|
**Invalid model** (unknown names are rejected with up to three suggestions):
|
|
882
885
|
```json
|
|
883
|
-
{ "error": "Unknown model \"gtp-6-
|
|
886
|
+
{ "error": "Unknown model \"gtp-6-luna\". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?" }
|
|
884
887
|
```
|
|
885
888
|
|
|
886
889
|
**All models failed (multi-model chat):** the error lists each model and its failure. In consensus/roundtable, individual model/turn failures are recorded in the result (`failed` entries and trailing failure details) rather than aborting the whole request.
|
package/docs/ARCHITECTURE.md
CHANGED
package/docs/EXAMPLES.md
CHANGED
|
@@ -85,7 +85,7 @@ Use `provider:model` to run a model on one provider only, or a provider name alo
|
|
|
85
85
|
"tool": "chat",
|
|
86
86
|
"arguments": {
|
|
87
87
|
"prompt": "Compare these two approaches to request batching",
|
|
88
|
-
"models": ["openai:gpt-6-astra", "google:pro", "anthropic:opus", "codex:luna", "copilot:sonnet"]
|
|
88
|
+
"models": ["openai:gpt-6.2-astra", "google:pro", "anthropic:opus", "codex:luna", "copilot:sonnet"]
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
```
|
|
@@ -446,7 +446,7 @@ Codex maintains conversation history through threads in `chat` mode:
|
|
|
446
446
|
|
|
447
447
|
### Choosing the Codex Model
|
|
448
448
|
|
|
449
|
-
`codex` uses GPT-6 Astra (or `CODEX_DEFAULT_MODEL`); `codex:<model>` picks another model from the Codex list:
|
|
449
|
+
`codex` uses GPT-6.2 Astra (or `CODEX_DEFAULT_MODEL`); `codex:<model>` picks another model from the Codex list:
|
|
450
450
|
|
|
451
451
|
```json
|
|
452
452
|
{
|
package/docs/PROVIDERS.md
CHANGED
|
@@ -9,10 +9,12 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
9
9
|
- **Get Key**: [platform.openai.com/api-keys](https://platform.openai.com/api-keys)
|
|
10
10
|
- **Environment Variable**: `OPENAI_API_KEY`
|
|
11
11
|
- **Supported Models**:
|
|
12
|
-
- `gpt-6.
|
|
13
|
-
- `gpt-6-
|
|
12
|
+
- `gpt-6.2-sol` (aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`) - Default OpenAI model (1M context, 128K output); everyday coding, agentic workflows, and professional work at a quarter of the Astra price; effort `low`–`max`
|
|
13
|
+
- `gpt-6.2-astra` (alias: `astra`) - Frontier GPT-6 flagship, 4x the Sol price (1M context, 128K output; effort `low`–`max`)
|
|
14
|
+
- `gpt-6.1-sol` (alias: `gpt-6.1`) - Previous GPT-6.1 Sol (1M context, 128K output), reachable by versioned name only; effort `low`–`max`
|
|
15
|
+
- `gpt-6-sol` - Original GPT-6 Sol (1M context, 128K output), reachable by versioned name only; effort `none`–`max`
|
|
14
16
|
- `gpt-6-luna` (alias: `luna`) - Most efficient GPT-6 for focused, high-volume tasks (1M context, 128K output; effort `none`–`max`)
|
|
15
|
-
- `gpt-6-astra`
|
|
17
|
+
- `gpt-6-astra` - Previous GPT-6 Astra, 5x the Sol price, reachable by versioned name only (1M context, 128K output; effort `low`–`max`)
|
|
16
18
|
- `gpt-5.6-sol` (alias: `gpt-5.6`) - Previous flagship GPT-5.6
|
|
17
19
|
- `gpt-5.6-terra` (alias: `terra`) - Lower-cost GPT-5.6, competitive with GPT-5.5
|
|
18
20
|
- `gpt-5.6-luna` - Fastest, most affordable GPT-5.6
|
|
@@ -26,14 +28,15 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
26
28
|
- **Get Key**: [makersuite.google.com/app/apikey](https://makersuite.google.com/app/apikey)
|
|
27
29
|
- **Environment Variable**: `GOOGLE_API_KEY`
|
|
28
30
|
- **Supported Models**:
|
|
29
|
-
- `gemini-4-
|
|
31
|
+
- `gemini-4-carbon` (default; aliases: `carbon`, `pro`, `gemini-pro`) - Strongest Gemini model for long-horizon software engineering, scientific reasoning and agentic work; thinking levels low/medium/high; paid API tier only (1M unified context, 65K output)
|
|
32
|
+
- `gemini-4-hydrogen` (alias: `hydrogen`) - Fast Gemini 4 model for everyday coding and agentic workflows; thinking levels low/medium/high/xhigh; available on every API tier (1M unified context, 65K output)
|
|
30
33
|
- `gemini-3.1-pro-preview` (aliases: `gemini-3.1-pro`, `gemini-3`) - Gemini 3.1 Pro reasoning with expanded thinking levels (1M context, 64K output)
|
|
31
34
|
- `gemini-3.5-flash` (aliases: `gemini-3.5`, `flash-3.5`) - Frontier-level agentic and coding performance at Flash speed (1M context, 65K output)
|
|
32
35
|
- `gemini-3.8-flash` (aliases: `gemini-3.8`, `flash-3.8`) - Current-generation Flash with stronger long-horizon agentic performance (1M context, 65K output; thinking levels low/medium/high — no minimal)
|
|
33
36
|
- `gemini-2.5-pro` (alias: `pro 2.5`) - Deep reasoning with thinking budget (1M context, 65K output)
|
|
34
37
|
- `gemini-2.5-flash` (alias: `flash`) - Ultra-fast model with thinking budget (1M context, 65K output)
|
|
35
38
|
- `gemini-2.5-flash-lite` (alias: `flash-lite`) - Lightweight fast model (1M context, 65K output)
|
|
36
|
-
- **Note**: The **Antigravity CLI** provider (`agy`, OAuth-based access) serves `gemini-4-
|
|
39
|
+
- **Note**: The **Antigravity CLI** provider (`agy`, OAuth-based access) serves `gemini-4-carbon`, `gemini-4-hydrogen` and `gemini-3.8-flash`, and it comes before the Google API in bare-name order. When `agy` is installed, bare `pro` and `gemini-pro` resolve to Gemini 4 Carbon on Antigravity first, with the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. The bare name `gemini` is the Antigravity namespace. Use `google:<model>` (e.g. `google:pro`, `google:gemini-2.5-flash`) to always use the Google API. Names only the Google API serves (e.g. `gemini-2.5-pro`, `gemini-3.5-flash`) route there directly.
|
|
37
40
|
|
|
38
41
|
### X.AI (Grok)
|
|
39
42
|
- **API Key Format**: `xai-...` (starts with `xai-`)
|
|
@@ -122,15 +125,15 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
122
125
|
- `CODEX_SANDBOX_MODE` - Filesystem access control (default: read-only)
|
|
123
126
|
- `CODEX_SKIP_GIT_CHECK` - Skip Git repository validation (default: true)
|
|
124
127
|
- `CODEX_APPROVAL_POLICY` - Command approval behavior (default: never)
|
|
125
|
-
- `CODEX_DEFAULT_MODEL` - Model used for bare `codex` and `auto` (default: `gpt-6-astra`; any Codex model ID or alias below). The legacy name `CODEX_MODEL` is honored when `CODEX_DEFAULT_MODEL` is unset.
|
|
128
|
+
- `CODEX_DEFAULT_MODEL` - Model used for bare `codex` and `auto` (default: `gpt-6.2-astra`; any Codex model ID or alias below). The legacy name `CODEX_MODEL` is honored when `CODEX_DEFAULT_MODEL` is unset.
|
|
126
129
|
- **Supported Models**:
|
|
127
|
-
- `codex` - OpenAI Codex agentic coding assistant (GPT-6 Astra by default)
|
|
130
|
+
- `codex` - OpenAI Codex agentic coding assistant (GPT-6.2 Astra by default)
|
|
128
131
|
- `codex:<model>` - Same, with an explicit backend from the Codex catalog:
|
|
129
|
-
- `gpt-6.
|
|
132
|
+
- `gpt-6.2-astra` (`astra`), `gpt-6.2-sol` (`sol`, `gpt-6`), `gpt-6.1-sol`, `gpt-6-sol`, `gpt-6-luna` (`luna`), `gpt-6-astra`
|
|
130
133
|
- `gpt-5.6-sol` (`gpt-5.6`), `gpt-5.6-terra` (`terra`), `gpt-5.6-luna`, `gpt-5.5`, `gpt-5.3-codex-spark` (`spark`)
|
|
131
134
|
- Names outside this catalog are rejected with suggestions
|
|
132
|
-
- These IDs are also bare names: `gpt-6-astra`, `luna` or `terra` alone go to Codex first and fail over to the OpenAI API (see [Model Routing Logic](#model-routing-logic))
|
|
133
|
-
- `reasoning_effort` is clamped onto what the backend accepts (
|
|
135
|
+
- These IDs are also bare names: `gpt-6.2-astra`, `luna` or `terra` alone go to Codex first and fail over to the OpenAI API (see [Model Routing Logic](#model-routing-logic))
|
|
136
|
+
- `reasoning_effort` is clamped onto what the backend accepts (GPT-6 Sol, Luna, and GPT-5.6: `none`–`max`; GPT-6.2 Astra/Sol, GPT-6.1 Sol and GPT-6 Astra: `low`–`max`, no `none`)
|
|
134
137
|
- Thread-based sessions with persistent context
|
|
135
138
|
- Direct filesystem access from working directory
|
|
136
139
|
- Typical response time: 6-20 seconds (longer for complex tasks)
|
|
@@ -157,10 +160,11 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
157
160
|
2. Authenticate: run `agy` once interactively and complete the Google OAuth login. This also establishes workspace trust for your home directory (the provider spawns each call in a per-call subdirectory under `~/.converse/agy-runs`).
|
|
158
161
|
- **Availability**: The `agy` binary is found on PATH or at the platform install location
|
|
159
162
|
- **Environment Variables**:
|
|
160
|
-
- `AGY_DEFAULT_MODEL` - Model used for bare `gemini` and `auto` (default: `gemini-4-
|
|
163
|
+
- `AGY_DEFAULT_MODEL` - Model used for bare `gemini` and `auto` (default: `gemini-4-carbon`, requires Google AI Ultra; other plans can use `gemini:hydrogen` or set `AGY_DEFAULT_MODEL=gemini-4-hydrogen`)
|
|
161
164
|
- **Namespaces**: `gemini`, `agy`, `antigravity`, `gemini-cli` (all equivalent, e.g. `agy:pro`)
|
|
162
165
|
- **Supported Models** (text-only — print mode has no image input channel):
|
|
163
|
-
- `gemini-4-
|
|
166
|
+
- `gemini-4-carbon` (aliases: `carbon`, `pro`, `gemini-pro`, ...) - Gemini 4 Carbon (default; `gemini` alone = `gemini:gemini-4-carbon`; `gemini:pro`)
|
|
167
|
+
- `gemini-4-hydrogen` (aliases: `hydrogen`, `gemini-hydrogen`, ...) - Gemini 4 Hydrogen, every plan (`gemini:hydrogen`); `reasoning_effort: "xhigh"` selects its XHigh variant
|
|
164
168
|
- `gemini-3.8-flash` (aliases: `flash`, `gemini-3.8`, `flash-3.8`, ...) - Gemini 3.8 Flash (`gemini:flash`)
|
|
165
169
|
- Every model has Low, Medium, and High variants selected by `reasoning_effort`.
|
|
166
170
|
|
|
@@ -215,7 +219,7 @@ agy
|
|
|
215
219
|
**Differences from Google API Provider:**
|
|
216
220
|
- **Authentication**: Google OAuth via `agy` vs API Key (Google API)
|
|
217
221
|
- **Billing**: Antigravity subscription/compute allowance vs pay-per-use API
|
|
218
|
-
- **Model Routing**: `gemini` / `gemini:<model>` / `agy:<model>` → Antigravity CLI provider; `google:<model>` → Google API provider; bare `pro` and `gemini-pro` resolve to Gemini 4
|
|
222
|
+
- **Model Routing**: `gemini` / `gemini:<model>` / `agy:<model>` → Antigravity CLI provider; `google:<model>` → Google API provider; bare `pro` and `gemini-pro` resolve to Gemini 4 Carbon on Antigravity first, then the Google API on authentication/availability failure. Bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `gemini-3.8-flash` is served by both providers and tries Antigravity first; bare `flash` is Gemini 3.8 Flash on Antigravity but Gemini 2.5 Flash on the Google API, so it does not fail over between them.
|
|
219
223
|
- **Images**: Not supported (text-only) vs full multimodal on the Google API provider
|
|
220
224
|
- **Permissions**: `agy` runs with `--dangerously-skip-permissions` (headless calls cannot prompt), so every tool request, including shell commands and file writes, is auto-approved. Bare names and `auto` reach it whenever `agy` is installed; use `google:<model>` to keep a request on the plain API.
|
|
221
225
|
|
|
@@ -255,12 +259,12 @@ agy
|
|
|
255
259
|
- **Setup Required**: Authenticate the GitHub CLI and ensure your account has an active Copilot subscription
|
|
256
260
|
- **Availability**: The Copilot SDK (`@github/copilot-sdk`) is installed
|
|
257
261
|
- **Environment Variables**:
|
|
258
|
-
- `COPILOT_DEFAULT_MODEL` - Model used for bare `copilot` and `auto` (default: `gpt-6.
|
|
259
|
-
- **Supported Models** (namespace-only: reach them with `copilot:`, `github-copilot:` or `copilot-sdk:`, e.g. `copilot:gpt-6.
|
|
260
|
-
- `copilot` - GPT-6.
|
|
261
|
-
- OpenAI: `gpt-6.
|
|
262
|
+
- `COPILOT_DEFAULT_MODEL` - Model used for bare `copilot` and `auto` (default: `gpt-6.2-sol`). The legacy name `COPILOT_MODEL` is honored when `COPILOT_DEFAULT_MODEL` is unset.
|
|
263
|
+
- **Supported Models** (namespace-only: reach them with `copilot:`, `github-copilot:` or `copilot-sdk:`, e.g. `copilot:gpt-6.2-sol`; Copilot never serves bare model names):
|
|
264
|
+
- `copilot` - GPT-6.2 Sol, or `COPILOT_DEFAULT_MODEL`
|
|
265
|
+
- OpenAI: `gpt-6.2-sol` (aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`), `gpt-6.2-astra` (alias: `astra`), `gpt-6.1-sol` (alias: `gpt-6.1`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna`
|
|
262
266
|
- Anthropic: `claude-opus-5.5` (aliases: `opus`, `claude`; Copilot Pro+/Max/Business/Enterprise), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
263
|
-
- Google: `gemini-4-
|
|
267
|
+
- Google: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
264
268
|
- **Reasoning**: The GPT-6 and GPT-5.6 tiers accept `reasoning_effort` (clamped onto Copilot's `low`–`xhigh`).
|
|
265
269
|
- **Unknown IDs**: Any other `copilot:<id>` is rejected with suggestions; only the IDs and aliases above are accepted.
|
|
266
270
|
|
|
@@ -298,12 +302,12 @@ CODEX_APPROVAL_POLICY=never # never (default), untrusted, on-fa
|
|
|
298
302
|
Each provider has a `<PROVIDER>_DEFAULT_MODEL` variable that sets the model used for its bare provider name (`codex`, `openai`, ...) and for `auto`. The value must be a model ID or alias from that provider's list; startup fails with "Did you mean" suggestions otherwise. OpenRouter also accepts any `vendor/model` slug.
|
|
299
303
|
|
|
300
304
|
```bash
|
|
301
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
305
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL is honored as a legacy fallback
|
|
302
306
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
303
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
304
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
305
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
306
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
307
|
+
AGY_DEFAULT_MODEL=gemini-4-carbon # Antigravity CLI (gemini)
|
|
308
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
309
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
310
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
307
311
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
308
312
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
309
313
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -394,16 +398,16 @@ Routing is derived entirely from each provider's model list (canonical IDs plus
|
|
|
394
398
|
|
|
395
399
|
4. **`auto`** — the first available provider's default model, in the priority order above with Copilot between the Claude Agent SDK and OpenAI.
|
|
396
400
|
|
|
397
|
-
**Unknown names are rejected**, never guessed or forwarded: a typo or an unlisted model returns an error with up to three close matches, e.g. `Unknown model "gtp-6-
|
|
401
|
+
**Unknown names are rejected**, never guessed or forwarded: a typo or an unlisted model returns an error with up to three close matches, e.g. `Unknown model "gtp-6-luna". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?` or `Unknown openai model "spark" in "openai:spark". Did you mean: codex:spark?`.
|
|
398
402
|
|
|
399
403
|
**OpenRouter slugs** are the one open-ended case: a full `vendor/model` slug (bare, or with the `openrouter:` namespace) routes to OpenRouter and is validated against OpenRouter's live catalog. `openrouter/auto` (aliases `auto-router`, `openrouter-auto`) selects OpenRouter's auto-router.
|
|
400
404
|
|
|
401
|
-
**Local agent permissions**: Bare names and `auto` reach the local agent providers whenever they are set up. The Antigravity CLI auto-approves every tool request (`--dangerously-skip-permissions`) and the Claude Agent SDK runs with `bypassPermissions`. Name the API provider (`google:pro`, `anthropic:opus`, `openai:gpt-6-astra`) to keep a request off the local agents.
|
|
405
|
+
**Local agent permissions**: Bare names and `auto` reach the local agent providers whenever they are set up. The Antigravity CLI auto-approves every tool request (`--dangerously-skip-permissions`) and the Claude Agent SDK runs with `bypassPermissions`. Name the API provider (`google:pro`, `anthropic:opus`, `openai:gpt-6.2-astra`) to keep a request off the local agents.
|
|
402
406
|
|
|
403
407
|
Examples:
|
|
404
408
|
|
|
405
409
|
```text
|
|
406
|
-
"gpt-6" // Codex (gpt-6.
|
|
410
|
+
"gpt-6" // Codex (gpt-6.2-sol), else OpenAI API
|
|
407
411
|
"openai:gpt-6" // OpenAI API only
|
|
408
412
|
"fable" // Claude Agent SDK (claude-fable-5-2), else Anthropic API
|
|
409
413
|
"opus" // Claude Agent SDK (claude-opus-5-5), else Anthropic API
|
|
@@ -411,7 +415,7 @@ Examples:
|
|
|
411
415
|
"sonnet" // Claude Agent SDK (claude-sonnet-5-5), else Anthropic API
|
|
412
416
|
"claude" // Claude Agent SDK (defaults to Claude Fable 5.2)
|
|
413
417
|
"claude:opus" // Claude Agent SDK (Claude Opus 5.5)
|
|
414
|
-
"pro" // Antigravity CLI (gemini-4-
|
|
418
|
+
"pro" // Antigravity CLI (gemini-4-carbon), else Google API
|
|
415
419
|
"google:pro" // Google API only
|
|
416
420
|
"gemini-2.5-pro" // Google API
|
|
417
421
|
"grok-4.5" // X.AI
|
package/package.json
CHANGED
|
@@ -470,8 +470,8 @@ ${toolsSection}
|
|
|
470
470
|
Every entry in \`models\` takes one of these forms:
|
|
471
471
|
|
|
472
472
|
- **\`provider\`** — that provider's default model (e.g. \`codex\`, \`claude\`, \`gemini\`, \`openai\`). Override a default with \`<PROVIDER>_DEFAULT_MODEL\` (see Environment Variables).
|
|
473
|
-
- **\`provider:model\`** — that model on that provider only (e.g. \`codex:astra\`, \`openai:gpt-6-astra\`, \`gemini:pro\`, \`copilot:sonnet\`). \`model\` is a model ID or alias from the provider's list below.
|
|
474
|
-
- **\`model\`** — a bare model ID or alias (e.g. \`gpt-6-astra\`, \`opus\`). It goes to the first configured provider that offers it, in this order: ${BARE_NAME_PRIORITY.join(', ')}. When that provider fails with an auth or availability error, the next provider offering the same model takes over. Copilot is reachable only as \`copilot:model\`.
|
|
473
|
+
- **\`provider:model\`** — that model on that provider only (e.g. \`codex:astra\`, \`openai:gpt-6.2-astra\`, \`gemini:pro\`, \`copilot:sonnet\`). \`model\` is a model ID or alias from the provider's list below.
|
|
474
|
+
- **\`model\`** — a bare model ID or alias (e.g. \`gpt-6.2-astra\`, \`opus\`). It goes to the first configured provider that offers it, in this order: ${BARE_NAME_PRIORITY.join(', ')}. When that provider fails with an auth or availability error, the next provider offering the same model takes over. Copilot is reachable only as \`copilot:model\`.
|
|
475
475
|
- **\`auto\`** — the default model of the first available provider (${PROVIDER_PRIORITY.join(', ')}).
|
|
476
476
|
|
|
477
477
|
Provider namespaces: ${Object.entries(PROVIDER_NAMESPACES)
|
package/src/providers/codex.js
CHANGED
|
@@ -31,11 +31,12 @@ import {
|
|
|
31
31
|
* catalog key is the canonical model ID the router resolves to. The reasoning tiers are the ones each model's API accepts, verified
|
|
32
32
|
* against the API's own rejection messages (gpt-6-astra and gpt-6.1-sol:
|
|
33
33
|
* "Supported values are: 'low', 'medium', 'high', 'xhigh', and 'max'"; the
|
|
34
|
-
* GPT-6 and GPT-5.6 Sol/Luna tiers accept 'none' as well). The
|
|
35
|
-
*
|
|
36
|
-
*
|
|
34
|
+
* GPT-6 and GPT-5.6 Sol/Luna tiers accept 'none' as well). The GPT-6.2 tiers
|
|
35
|
+
* come from the model pages, which state that the API rejects 'none'. The
|
|
36
|
+
* SDK's ModelReasoningEffort type is the union across models, so the backend
|
|
37
|
+
* is the authority and requests are clamped per model.
|
|
37
38
|
*
|
|
38
|
-
* Bare tier names (sol, luna) and the bare generation (gpt-6) point at the
|
|
39
|
+
* Bare tier names (sol, astra, luna) and the bare generation (gpt-6) point at the
|
|
39
40
|
* current release of each tier; older releases stay reachable by full slug.
|
|
40
41
|
*
|
|
41
42
|
* Codex also exposes 'ultra' above 'max', but that tier turns on automatic
|
|
@@ -63,8 +64,17 @@ function codexModel(slug, friendlyName, { aliases, contextWindow = 272000, suppo
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
const SUPPORTED_MODELS = {
|
|
67
|
+
'gpt-6.2-astra': codexModel('gpt-6.2-astra', 'GPT-6.2 Astra', {
|
|
68
|
+
aliases: ['astra', 'gpt6.2-astra'],
|
|
69
|
+
supportedEfforts: NO_NONE_EFFORTS,
|
|
70
|
+
}),
|
|
71
|
+
'gpt-6.2-sol': codexModel('gpt-6.2-sol', 'GPT-6.2 Sol', {
|
|
72
|
+
aliases: ['sol', 'gpt-6', 'gpt6', 'gpt-6.2', 'gpt6.2', 'gpt6.2-sol', 'gpt-6-codex'],
|
|
73
|
+
contextWindow: 500000,
|
|
74
|
+
supportedEfforts: NO_NONE_EFFORTS,
|
|
75
|
+
}),
|
|
66
76
|
'gpt-6.1-sol': codexModel('gpt-6.1-sol', 'GPT-6.1 Sol', {
|
|
67
|
-
aliases: ['
|
|
77
|
+
aliases: ['gpt-6.1', 'gpt6.1', 'gpt6.1-sol'],
|
|
68
78
|
supportedEfforts: NO_NONE_EFFORTS,
|
|
69
79
|
}),
|
|
70
80
|
'gpt-6-sol': codexModel('gpt-6-sol', 'GPT-6 Sol', {
|
|
@@ -74,7 +84,7 @@ const SUPPORTED_MODELS = {
|
|
|
74
84
|
aliases: ['luna', 'gpt6-luna'],
|
|
75
85
|
}),
|
|
76
86
|
'gpt-6-astra': codexModel('gpt-6-astra', 'GPT-6 Astra', {
|
|
77
|
-
aliases: ['
|
|
87
|
+
aliases: ['gpt6-astra'],
|
|
78
88
|
supportedEfforts: NO_NONE_EFFORTS,
|
|
79
89
|
}),
|
|
80
90
|
'gpt-5.6-sol': codexModel('gpt-5.6-sol', 'GPT-5.6 Sol', {
|
|
@@ -97,7 +107,7 @@ const SUPPORTED_MODELS = {
|
|
|
97
107
|
}),
|
|
98
108
|
};
|
|
99
109
|
|
|
100
|
-
const DEFAULT_MODEL = 'gpt-6-astra';
|
|
110
|
+
const DEFAULT_MODEL = 'gpt-6.2-astra';
|
|
101
111
|
|
|
102
112
|
/**
|
|
103
113
|
* Custom error class for Codex provider errors
|
package/src/providers/copilot.js
CHANGED
|
@@ -21,7 +21,7 @@ import { clampReasoningEffort } from '../utils/reasoningEffort.js';
|
|
|
21
21
|
import { findCatalogEntry, findCatalogId } from '../utils/modelCatalog.js';
|
|
22
22
|
import { isPackageResolvable } from '../utils/localProviderAuth.js';
|
|
23
23
|
|
|
24
|
-
const DEFAULT_MODEL = 'gpt-6.
|
|
24
|
+
const DEFAULT_MODEL = 'gpt-6.2-sol';
|
|
25
25
|
|
|
26
26
|
// Keyed by the SDK model ID, which is also the canonical ID the router
|
|
27
27
|
// resolves to. Every name here is reached only through the `copilot:`
|
|
@@ -29,9 +29,35 @@ const DEFAULT_MODEL = 'gpt-6.1-sol';
|
|
|
29
29
|
const SUPPORTED_MODELS = {
|
|
30
30
|
// OpenAI models
|
|
31
31
|
// `gpt-6` / `gpt-5.6` point at that generation's latest Sol, matching
|
|
32
|
-
// Copilot's own bare-alias behavior; `sol`/`luna` and the legacy `gpt-5`
|
|
32
|
+
// Copilot's own bare-alias behavior; `sol`/`astra`/`luna` and the legacy `gpt-5`
|
|
33
33
|
// shortcut follow the current release of each tier. `codex` and `gpt` point
|
|
34
34
|
// at the latest GPT tier.
|
|
35
|
+
'gpt-6.2-sol': {
|
|
36
|
+
modelName: 'gpt-6.2-sol',
|
|
37
|
+
friendlyName: 'GPT-6.2 Sol (via Copilot)',
|
|
38
|
+
contextWindow: 1050000,
|
|
39
|
+
maxOutputTokens: 32768,
|
|
40
|
+
supportsStreaming: true,
|
|
41
|
+
supportsImages: false,
|
|
42
|
+
supportsWebSearch: false,
|
|
43
|
+
supportsReasoningEffort: true,
|
|
44
|
+
timeout: 1800000,
|
|
45
|
+
description: 'OpenAI GPT-6.2 Sol via Copilot subscription',
|
|
46
|
+
aliases: ['gpt-6', 'gpt-6.2', 'gpt-5', 'gpt', 'codex', 'sol'],
|
|
47
|
+
},
|
|
48
|
+
'gpt-6.2-astra': {
|
|
49
|
+
modelName: 'gpt-6.2-astra',
|
|
50
|
+
friendlyName: 'GPT-6.2 Astra (via Copilot)',
|
|
51
|
+
contextWindow: 1050000,
|
|
52
|
+
maxOutputTokens: 32768,
|
|
53
|
+
supportsStreaming: true,
|
|
54
|
+
supportsImages: false,
|
|
55
|
+
supportsWebSearch: false,
|
|
56
|
+
supportsReasoningEffort: true,
|
|
57
|
+
timeout: 1800000,
|
|
58
|
+
description: 'OpenAI GPT-6.2 Astra via Copilot subscription',
|
|
59
|
+
aliases: ['astra'],
|
|
60
|
+
},
|
|
35
61
|
'gpt-6.1-sol': {
|
|
36
62
|
modelName: 'gpt-6.1-sol',
|
|
37
63
|
friendlyName: 'GPT-6.1 Sol (via Copilot)',
|
|
@@ -43,7 +69,7 @@ const SUPPORTED_MODELS = {
|
|
|
43
69
|
supportsReasoningEffort: true,
|
|
44
70
|
timeout: 1800000,
|
|
45
71
|
description: 'OpenAI GPT-6.1 Sol via Copilot subscription',
|
|
46
|
-
aliases: ['gpt-6
|
|
72
|
+
aliases: ['gpt-6.1'],
|
|
47
73
|
},
|
|
48
74
|
'gpt-6-sol': {
|
|
49
75
|
modelName: 'gpt-6-sol',
|
|
@@ -223,17 +249,29 @@ const SUPPORTED_MODELS = {
|
|
|
223
249
|
},
|
|
224
250
|
|
|
225
251
|
// Google models
|
|
226
|
-
'gemini-4-
|
|
227
|
-
modelName: 'gemini-4-
|
|
228
|
-
friendlyName: 'Gemini 4
|
|
252
|
+
'gemini-4-carbon': {
|
|
253
|
+
modelName: 'gemini-4-carbon',
|
|
254
|
+
friendlyName: 'Gemini 4 Carbon (via Copilot)',
|
|
255
|
+
contextWindow: 1048576,
|
|
256
|
+
maxOutputTokens: 65536,
|
|
257
|
+
supportsStreaming: true,
|
|
258
|
+
supportsImages: false,
|
|
259
|
+
supportsWebSearch: false,
|
|
260
|
+
timeout: 1800000,
|
|
261
|
+
description: 'Google Gemini 4 Carbon via Copilot subscription',
|
|
262
|
+
aliases: ['gemini', 'carbon', 'gemini-4'],
|
|
263
|
+
},
|
|
264
|
+
'gemini-4-hydrogen': {
|
|
265
|
+
modelName: 'gemini-4-hydrogen',
|
|
266
|
+
friendlyName: 'Gemini 4 Hydrogen (via Copilot)',
|
|
229
267
|
contextWindow: 1048576,
|
|
230
268
|
maxOutputTokens: 65536,
|
|
231
269
|
supportsStreaming: true,
|
|
232
270
|
supportsImages: false,
|
|
233
271
|
supportsWebSearch: false,
|
|
234
272
|
timeout: 1800000,
|
|
235
|
-
description: 'Google Gemini 4
|
|
236
|
-
aliases: ['
|
|
273
|
+
description: 'Google Gemini 4 Hydrogen via Copilot subscription',
|
|
274
|
+
aliases: ['hydrogen'],
|
|
237
275
|
},
|
|
238
276
|
'gemini-3.8-flash': {
|
|
239
277
|
modelName: 'gemini-3.8-flash',
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* establishes workspace trust for the user's home directory.
|
|
20
20
|
*
|
|
21
21
|
* The provider registry key remains 'gemini-cli'; its namespaces are `gemini:`
|
|
22
|
-
* and `agy:`. Gemini 4
|
|
23
|
-
* Google AI Ultra plans, so other plans select `gemini:
|
|
22
|
+
* and `agy:`. Gemini 4 Carbon is the default; Antigravity serves it only on
|
|
23
|
+
* Google AI Ultra plans, so other plans select `gemini:hydrogen` (or set
|
|
24
24
|
* AGY_DEFAULT_MODEL). Antigravity no longer offers Gemini 3.1 Pro.
|
|
25
25
|
*/
|
|
26
26
|
|
|
@@ -60,9 +60,9 @@ const PTY_COLS = 1000;
|
|
|
60
60
|
* channel).
|
|
61
61
|
*/
|
|
62
62
|
const SUPPORTED_MODELS = {
|
|
63
|
-
'gemini-4-
|
|
64
|
-
modelName: 'gemini-4-
|
|
65
|
-
friendlyName: 'Gemini 4
|
|
63
|
+
'gemini-4-carbon': {
|
|
64
|
+
modelName: 'gemini-4-carbon',
|
|
65
|
+
friendlyName: 'Gemini 4 Carbon (via Antigravity CLI)',
|
|
66
66
|
contextWindow: 1048576,
|
|
67
67
|
maxOutputTokens: 65536,
|
|
68
68
|
supportsStreaming: true,
|
|
@@ -71,21 +71,45 @@ const SUPPORTED_MODELS = {
|
|
|
71
71
|
supportsThinking: true,
|
|
72
72
|
timeout: DEFAULT_TIMEOUT_MS,
|
|
73
73
|
description:
|
|
74
|
-
'Gemini 4
|
|
74
|
+
'Gemini 4 Carbon via Antigravity CLI (agy, default) - requires Antigravity Google OAuth login on a Google AI Ultra plan',
|
|
75
75
|
aliases: [
|
|
76
|
-
'
|
|
77
|
-
'gemini-
|
|
78
|
-
'gemini
|
|
76
|
+
'carbon',
|
|
77
|
+
'gemini-carbon',
|
|
78
|
+
'gemini carbon',
|
|
79
79
|
'gemini-4',
|
|
80
80
|
'gemini4',
|
|
81
|
-
'gemini 4
|
|
82
|
-
'4-
|
|
81
|
+
'gemini 4 carbon',
|
|
82
|
+
'4-carbon',
|
|
83
83
|
'pro',
|
|
84
84
|
'gemini-pro',
|
|
85
85
|
'gemini pro',
|
|
86
86
|
],
|
|
87
|
-
// agy display-name base; reasoning_effort selects
|
|
88
|
-
|
|
87
|
+
// agy display-name base; reasoning_effort selects one of agyEffortTiers
|
|
88
|
+
// as the parenthesized variant
|
|
89
|
+
agyModelBase: 'Gemini 4 Carbon',
|
|
90
|
+
agyEffortTiers: ['low', 'medium', 'high'],
|
|
91
|
+
},
|
|
92
|
+
'gemini-4-hydrogen': {
|
|
93
|
+
modelName: 'gemini-4-hydrogen',
|
|
94
|
+
friendlyName: 'Gemini 4 Hydrogen (via Antigravity CLI)',
|
|
95
|
+
contextWindow: 1048576,
|
|
96
|
+
maxOutputTokens: 65536,
|
|
97
|
+
supportsStreaming: true,
|
|
98
|
+
supportsImages: false,
|
|
99
|
+
supportsWebSearch: false,
|
|
100
|
+
supportsThinking: true,
|
|
101
|
+
timeout: DEFAULT_TIMEOUT_MS,
|
|
102
|
+
description:
|
|
103
|
+
'Gemini 4 Hydrogen via Antigravity CLI (agy) - requires Antigravity Google OAuth login; available on every plan',
|
|
104
|
+
aliases: [
|
|
105
|
+
'hydrogen',
|
|
106
|
+
'gemini-hydrogen',
|
|
107
|
+
'gemini hydrogen',
|
|
108
|
+
'gemini 4 hydrogen',
|
|
109
|
+
'4-hydrogen',
|
|
110
|
+
],
|
|
111
|
+
agyModelBase: 'Gemini 4 Hydrogen',
|
|
112
|
+
agyEffortTiers: ['low', 'medium', 'high', 'xhigh'],
|
|
89
113
|
},
|
|
90
114
|
'gemini-3.8-flash': {
|
|
91
115
|
modelName: 'gemini-3.8-flash',
|
|
@@ -111,10 +135,11 @@ const SUPPORTED_MODELS = {
|
|
|
111
135
|
'3.8-flash',
|
|
112
136
|
],
|
|
113
137
|
agyModelBase: 'Gemini 3.8 Flash',
|
|
138
|
+
agyEffortTiers: ['low', 'medium', 'high'],
|
|
114
139
|
},
|
|
115
140
|
};
|
|
116
141
|
|
|
117
|
-
const DEFAULT_MODEL = 'gemini-4-
|
|
142
|
+
const DEFAULT_MODEL = 'gemini-4-carbon';
|
|
118
143
|
|
|
119
144
|
/**
|
|
120
145
|
* Custom error class for Gemini CLI (agy) provider errors
|
|
@@ -185,22 +210,28 @@ export function findAgyBinary() {
|
|
|
185
210
|
return _cachedAgyPath;
|
|
186
211
|
}
|
|
187
212
|
|
|
188
|
-
// agy
|
|
189
|
-
//
|
|
190
|
-
const
|
|
213
|
+
// agy lists each catalog model as '<base> (Low)', '(Medium)', '(High)' and,
|
|
214
|
+
// where the model offers it, '(XHigh)'.
|
|
215
|
+
const AGY_TIER_LABELS = {
|
|
216
|
+
low: 'Low',
|
|
217
|
+
medium: 'Medium',
|
|
218
|
+
high: 'High',
|
|
219
|
+
xhigh: 'XHigh',
|
|
220
|
+
};
|
|
191
221
|
|
|
192
222
|
/**
|
|
193
223
|
* Map a reasoning_effort value to the agy parenthesized variant suffix.
|
|
194
224
|
* Unset effort selects High, agy's own default.
|
|
225
|
+
* @param {string[]} tiers - The model's agyEffortTiers
|
|
195
226
|
* @param {string} [reasoningEffort]
|
|
196
|
-
* @returns {string} e.g. '(Low)', '(Medium)', '(High)'
|
|
227
|
+
* @returns {string} e.g. '(Low)', '(Medium)', '(High)', '(XHigh)'
|
|
197
228
|
*/
|
|
198
|
-
function effortSuffix(reasoningEffort) {
|
|
229
|
+
function effortSuffix(tiers, reasoningEffort) {
|
|
199
230
|
if (!reasoningEffort) {
|
|
200
231
|
return '(High)';
|
|
201
232
|
}
|
|
202
|
-
const tier = clampReasoningEffort(reasoningEffort.toLowerCase(),
|
|
203
|
-
return `(${tier
|
|
233
|
+
const tier = clampReasoningEffort(reasoningEffort.toLowerCase(), tiers);
|
|
234
|
+
return `(${AGY_TIER_LABELS[tier]})`;
|
|
204
235
|
}
|
|
205
236
|
|
|
206
237
|
/**
|
|
@@ -221,7 +252,7 @@ export function resolveAgyModel(model, reasoningEffort) {
|
|
|
221
252
|
ErrorCodes.MODEL_NOT_FOUND,
|
|
222
253
|
);
|
|
223
254
|
}
|
|
224
|
-
return `${entry.agyModelBase} ${effortSuffix(reasoningEffort)}`;
|
|
255
|
+
return `${entry.agyModelBase} ${effortSuffix(entry.agyEffortTiers, reasoningEffort)}`;
|
|
225
256
|
}
|
|
226
257
|
|
|
227
258
|
/**
|
|
@@ -656,11 +687,11 @@ async function executeAgy(messages, options) {
|
|
|
656
687
|
const cleaned = cleanAgyOutput(output);
|
|
657
688
|
|
|
658
689
|
if (exitCode !== 0) {
|
|
659
|
-
// agy's model list is per-plan (Gemini 4
|
|
690
|
+
// agy's model list is per-plan (Gemini 4 Carbon is Ultra-only), so a
|
|
660
691
|
// catalog model can still be missing for the signed-in account.
|
|
661
692
|
if (/not recognized as a known model/i.test(cleaned)) {
|
|
662
693
|
throw new GeminiCliProviderError(
|
|
663
|
-
`Antigravity CLI (agy) does not offer "${agyModel}" to the signed-in account (Gemini 4
|
|
694
|
+
`Antigravity CLI (agy) does not offer "${agyModel}" to the signed-in account (Gemini 4 Carbon requires a Google AI Ultra plan). Use gemini:hydrogen, or set AGY_DEFAULT_MODEL to change the default. agy output: ${cleaned.slice(0, 800)}`,
|
|
664
695
|
ErrorCodes.MODEL_NOT_FOUND,
|
|
665
696
|
);
|
|
666
697
|
}
|
package/src/providers/google.js
CHANGED
|
@@ -100,10 +100,10 @@ const SUPPORTED_MODELS = {
|
|
|
100
100
|
'3.1-pro',
|
|
101
101
|
],
|
|
102
102
|
},
|
|
103
|
-
'gemini-4-
|
|
104
|
-
modelName: 'gemini-4-
|
|
105
|
-
friendlyName: 'Gemini (4
|
|
106
|
-
contextWindow: 1048576, // 1M tokens
|
|
103
|
+
'gemini-4-carbon': {
|
|
104
|
+
modelName: 'gemini-4-carbon',
|
|
105
|
+
friendlyName: 'Gemini (4 Carbon)',
|
|
106
|
+
contextWindow: 1048576, // 1M tokens, shared by input and output
|
|
107
107
|
maxOutputTokens: 65536,
|
|
108
108
|
supportsStreaming: true,
|
|
109
109
|
supportsImages: true,
|
|
@@ -113,20 +113,43 @@ const SUPPORTED_MODELS = {
|
|
|
113
113
|
thinkingLevels: ['low', 'medium', 'high'],
|
|
114
114
|
timeout: 900000,
|
|
115
115
|
description:
|
|
116
|
-
'Gemini 4
|
|
116
|
+
'Gemini 4 Carbon - Strongest Gemini model for long-horizon software engineering, scientific reasoning and agentic work (1M context)',
|
|
117
117
|
aliases: [
|
|
118
|
-
'
|
|
119
|
-
'gemini-
|
|
120
|
-
'gemini
|
|
118
|
+
'carbon',
|
|
119
|
+
'gemini-carbon',
|
|
120
|
+
'gemini carbon',
|
|
121
121
|
'gemini-4',
|
|
122
122
|
'gemini4',
|
|
123
|
-
'gemini 4
|
|
124
|
-
'4-
|
|
123
|
+
'gemini 4 carbon',
|
|
124
|
+
'4-carbon',
|
|
125
125
|
'gemini pro',
|
|
126
126
|
'gemini-pro',
|
|
127
127
|
'pro',
|
|
128
128
|
],
|
|
129
129
|
},
|
|
130
|
+
'gemini-4-hydrogen': {
|
|
131
|
+
modelName: 'gemini-4-hydrogen',
|
|
132
|
+
friendlyName: 'Gemini (4 Hydrogen)',
|
|
133
|
+
contextWindow: 1048576, // 1M tokens, shared by input and output
|
|
134
|
+
maxOutputTokens: 65536,
|
|
135
|
+
supportsStreaming: true,
|
|
136
|
+
supportsImages: true,
|
|
137
|
+
supportsThinking: true,
|
|
138
|
+
supportsWebSearch: true,
|
|
139
|
+
thinkingMode: 'level',
|
|
140
|
+
// Hydrogen adds an xhigh level above high (its default).
|
|
141
|
+
thinkingLevels: ['low', 'medium', 'high', 'xhigh'],
|
|
142
|
+
timeout: 900000,
|
|
143
|
+
description:
|
|
144
|
+
'Gemini 4 Hydrogen - Fast Gemini 4 model for everyday coding and agentic workflows, available on every API tier (1M context)',
|
|
145
|
+
aliases: [
|
|
146
|
+
'hydrogen',
|
|
147
|
+
'gemini-hydrogen',
|
|
148
|
+
'gemini hydrogen',
|
|
149
|
+
'gemini 4 hydrogen',
|
|
150
|
+
'4-hydrogen',
|
|
151
|
+
],
|
|
152
|
+
},
|
|
130
153
|
'gemini-3.5-flash': {
|
|
131
154
|
modelName: 'gemini-3.5-flash',
|
|
132
155
|
friendlyName: 'Gemini (Flash 3.5)',
|
|
@@ -458,7 +481,7 @@ async function retryWithBackoff(fn, maxRetries = 4) {
|
|
|
458
481
|
/**
|
|
459
482
|
* Main Google provider implementation
|
|
460
483
|
*/
|
|
461
|
-
const DEFAULT_MODEL = 'gemini-4-
|
|
484
|
+
const DEFAULT_MODEL = 'gemini-4-carbon';
|
|
462
485
|
|
|
463
486
|
export const googleProvider = {
|
|
464
487
|
defaultModel: DEFAULT_MODEL,
|
package/src/providers/openai.js
CHANGED
|
@@ -11,8 +11,8 @@ import { clampReasoningEffort } from '../utils/reasoningEffort.js';
|
|
|
11
11
|
|
|
12
12
|
// Values each family accepts for reasoning effort, per the model pages at
|
|
13
13
|
// developers.openai.com/api/docs/models. The GPT-6 Sol/Luna tiers and the
|
|
14
|
-
// GPT-5.6 family take the whole ladder; GPT-6 Astra
|
|
15
|
-
// 'none'; the GPT-5.4 tier stops at 'xhigh'; the original GPT-5 minis kept
|
|
14
|
+
// GPT-5.6 family take the whole ladder; GPT-6 Astra, GPT-6.1 Sol and the
|
|
15
|
+
// GPT-6.2 models have no 'none'; the GPT-5.4 tier stops at 'xhigh'; the original GPT-5 minis kept
|
|
16
16
|
// 'minimal' but never gained 'xhigh'; the o-series predates both ends of the
|
|
17
17
|
// ladder; GPT-5.4 Pro starts at 'medium'. Models without a list are passed the
|
|
18
18
|
// requested value unchanged, except uncatalogued GPT-5 Pro snapshots, which
|
|
@@ -26,13 +26,13 @@ const O_SERIES_EFFORT_TIERS = ['low', 'medium', 'high'];
|
|
|
26
26
|
const PRO_PASSTHROUGH_EFFORT_TIERS = ['high'];
|
|
27
27
|
|
|
28
28
|
// Define supported models with their capabilities.
|
|
29
|
-
// Bare tier names (sol, luna) and the bare generation (gpt-6, and the legacy
|
|
29
|
+
// Bare tier names (sol, astra, luna) and the bare generation (gpt-6, and the legacy
|
|
30
30
|
// gpt-5 shortcut) follow the current release of each tier; older tiers stay
|
|
31
31
|
// reachable by their versioned names.
|
|
32
32
|
const SUPPORTED_MODELS = {
|
|
33
|
-
'gpt-6.
|
|
34
|
-
modelName: 'gpt-6.
|
|
35
|
-
friendlyName: 'OpenAI (GPT-6.
|
|
33
|
+
'gpt-6.2-sol': {
|
|
34
|
+
modelName: 'gpt-6.2-sol',
|
|
35
|
+
friendlyName: 'OpenAI (GPT-6.2 Sol)',
|
|
36
36
|
contextWindow: 1050000,
|
|
37
37
|
maxOutputTokens: 128000,
|
|
38
38
|
supportsStreaming: true,
|
|
@@ -42,23 +42,53 @@ const SUPPORTED_MODELS = {
|
|
|
42
42
|
supportedEfforts: NO_NONE_EFFORT_TIERS,
|
|
43
43
|
timeout: 10800000, // 3 hours
|
|
44
44
|
description:
|
|
45
|
-
'Default GPT-6 model (1M context, 128K output) -
|
|
45
|
+
'Default GPT-6 model (1M context, 128K output) - Everyday coding, agentic workflows and professional work at a quarter of the Astra price',
|
|
46
46
|
aliases: [
|
|
47
47
|
'gpt-6',
|
|
48
48
|
'gpt6',
|
|
49
49
|
'gpt 6',
|
|
50
|
-
'gpt-6.
|
|
51
|
-
'gpt6.
|
|
52
|
-
'gpt 6.
|
|
50
|
+
'gpt-6.2',
|
|
51
|
+
'gpt6.2',
|
|
52
|
+
'gpt 6.2',
|
|
53
53
|
'gpt-5',
|
|
54
54
|
'gpt5',
|
|
55
55
|
'gpt 5',
|
|
56
56
|
'sol',
|
|
57
|
-
'gpt6.
|
|
58
|
-
'gpt-6.
|
|
59
|
-
'gpt 6.
|
|
57
|
+
'gpt6.2-sol',
|
|
58
|
+
'gpt-6.2sol',
|
|
59
|
+
'gpt 6.2 sol',
|
|
60
60
|
],
|
|
61
61
|
},
|
|
62
|
+
'gpt-6.2-astra': {
|
|
63
|
+
modelName: 'gpt-6.2-astra',
|
|
64
|
+
friendlyName: 'OpenAI (GPT-6.2 Astra)',
|
|
65
|
+
contextWindow: 1050000,
|
|
66
|
+
maxOutputTokens: 128000,
|
|
67
|
+
supportsStreaming: true,
|
|
68
|
+
supportsImages: true,
|
|
69
|
+
supportsWebSearch: true,
|
|
70
|
+
supportsResponsesAPI: true,
|
|
71
|
+
supportedEfforts: NO_NONE_EFFORT_TIERS,
|
|
72
|
+
timeout: 10800000, // 3 hours
|
|
73
|
+
description:
|
|
74
|
+
'Frontier GPT-6 flagship (1M context, 128K output) - Maximum intelligence for the hardest end-to-end work (EXPENSIVE: 4x Sol)',
|
|
75
|
+
aliases: ['astra', 'gpt6.2-astra', 'gpt-6.2astra', 'gpt 6.2 astra'],
|
|
76
|
+
},
|
|
77
|
+
'gpt-6.1-sol': {
|
|
78
|
+
modelName: 'gpt-6.1-sol',
|
|
79
|
+
friendlyName: 'OpenAI (GPT-6.1 Sol)',
|
|
80
|
+
contextWindow: 1050000,
|
|
81
|
+
maxOutputTokens: 128000,
|
|
82
|
+
supportsStreaming: true,
|
|
83
|
+
supportsImages: true,
|
|
84
|
+
supportsWebSearch: true,
|
|
85
|
+
supportsResponsesAPI: true,
|
|
86
|
+
supportedEfforts: NO_NONE_EFFORT_TIERS,
|
|
87
|
+
timeout: 10800000, // 3 hours
|
|
88
|
+
description:
|
|
89
|
+
'Previous GPT-6.1 Sol (1M context, 128K output) - Coding, computer use and professional work; reachable by versioned name only',
|
|
90
|
+
aliases: ['gpt-6.1', 'gpt6.1', 'gpt 6.1', 'gpt6.1-sol', 'gpt-6.1sol', 'gpt 6.1 sol'],
|
|
91
|
+
},
|
|
62
92
|
'gpt-6-sol': {
|
|
63
93
|
modelName: 'gpt-6-sol',
|
|
64
94
|
friendlyName: 'OpenAI (GPT-6 Sol)',
|
|
@@ -71,7 +101,7 @@ const SUPPORTED_MODELS = {
|
|
|
71
101
|
supportedEfforts: FULL_EFFORT_TIERS,
|
|
72
102
|
timeout: 10800000, // 3 hours
|
|
73
103
|
description:
|
|
74
|
-
'
|
|
104
|
+
'Original GPT-6 Sol (1M context, 128K output) - Complex coding and agentic workflows; the only GPT-6 Sol that accepts none effort',
|
|
75
105
|
aliases: ['gpt6-sol', 'gpt-6sol', 'gpt 6 sol'],
|
|
76
106
|
},
|
|
77
107
|
'gpt-6-luna': {
|
|
@@ -101,8 +131,8 @@ const SUPPORTED_MODELS = {
|
|
|
101
131
|
supportedEfforts: NO_NONE_EFFORT_TIERS,
|
|
102
132
|
timeout: 10800000, // 3 hours
|
|
103
133
|
description:
|
|
104
|
-
'
|
|
105
|
-
aliases: ['
|
|
134
|
+
'Previous GPT-6 Astra (1M context, 128K output) - Reachable by versioned name only (EXPENSIVE: 5x Sol)',
|
|
135
|
+
aliases: ['gpt6-astra', 'gpt-6astra', 'gpt 6 astra'],
|
|
106
136
|
},
|
|
107
137
|
'gpt-5.6-sol': {
|
|
108
138
|
modelName: 'gpt-5.6-sol',
|
|
@@ -440,7 +470,8 @@ function resolveReasoningEffort(resolvedModel, modelConfig, reasoningEffort) {
|
|
|
440
470
|
}
|
|
441
471
|
if (
|
|
442
472
|
resolvedModel.startsWith('gpt-6-astra') ||
|
|
443
|
-
resolvedModel.startsWith('gpt-6.1-sol')
|
|
473
|
+
resolvedModel.startsWith('gpt-6.1-sol') ||
|
|
474
|
+
resolvedModel.startsWith('gpt-6.2')
|
|
444
475
|
) {
|
|
445
476
|
return clampReasoningEffort(reasoningEffort, NO_NONE_EFFORT_TIERS);
|
|
446
477
|
}
|
|
@@ -568,7 +599,7 @@ function convertMessages(messages, useResponsesAPI = false) {
|
|
|
568
599
|
/**
|
|
569
600
|
* Main OpenAI provider implementation
|
|
570
601
|
*/
|
|
571
|
-
const DEFAULT_MODEL = 'gpt-6.
|
|
602
|
+
const DEFAULT_MODEL = 'gpt-6.2-sol';
|
|
572
603
|
|
|
573
604
|
export const openaiProvider = {
|
|
574
605
|
defaultModel: DEFAULT_MODEL,
|
package/src/tools/chat.js
CHANGED
|
@@ -1165,7 +1165,7 @@ chatTool.inputSchema = {
|
|
|
1165
1165
|
items: { type: 'string' },
|
|
1166
1166
|
minItems: 1,
|
|
1167
1167
|
description:
|
|
1168
|
-
'Models to use. Examples: ["auto"] (recommended), ["codex"], ["codex", "gemini", "claude"], ["codex:astra"], ["gpt-6-astra"]. Forms: "provider" (its default model), "provider:model" (that provider only), or a bare "model" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter, abliteration. Unknown names are rejected with suggestions. In mode "chat" each model answers independently; in "consensus" they refine after seeing each other; in "roundtable" they speak in the given ORDER, each seeing the transcript. Default: ["auto"].',
|
|
1168
|
+
'Models to use. Examples: ["auto"] (recommended), ["codex"], ["codex", "gemini", "claude"], ["codex:astra"], ["gpt-6.2-astra"]. Forms: "provider" (its default model), "provider:model" (that provider only), or a bare "model" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter, abliteration. Unknown names are rejected with suggestions. In mode "chat" each model answers independently; in "consensus" they refine after seeing each other; in "roundtable" they speak in the given ORDER, each seeing the transcript. Default: ["auto"].',
|
|
1169
1169
|
},
|
|
1170
1170
|
mode: {
|
|
1171
1171
|
type: 'string',
|