converse-mcp-server 4.11.0 → 4.13.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 +32 -28
- package/package.json +6 -6
- package/src/prompts/helpPrompt.js +2 -2
- package/src/providers/codex.js +17 -7
- package/src/providers/copilot.js +42 -4
- package/src/providers/gemini-cli.js +41 -16
- package/src/providers/google.js +29 -6
- 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-3.8-flash # Antigravity CLI: gemini-4-neon (default, paid Google AI Pro/Ultra), gemini-4-carbon (Ultra), gemini-4-hydrogen (paid Pro/Ultra), 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-neon
|
|
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-neon** (default; aliases: `neon`, `pro`, `gemini-pro`): Frontier-level reasoning with fast task completion for complex coding, knowledge work and science; thinking levels low/medium/high/xhigh (default high); paid API tier only (1M unified context, 65K output)
|
|
265
|
+
- **gemini-4-carbon** (alias: `carbon`): 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)
|
|
263
266
|
- **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)
|
|
264
267
|
- **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)
|
|
265
268
|
- **gemini-3.5-flash** (aliases: `gemini-3.5`, `flash-3.5`): Frontier-level agentic and coding performance at Flash speed (1M context, 65K output)
|
|
@@ -268,7 +271,7 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
268
271
|
- **gemini-2.5-flash** (alias: `flash`): Ultra-fast (1M context, 65K output)
|
|
269
272
|
- **gemini-2.5-flash-lite** (alias: `flash-lite`): Lightweight fast model (1M context, 65K output)
|
|
270
273
|
|
|
271
|
-
**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
|
|
274
|
+
**Note**: The Antigravity CLI provider serves `gemini-4-neon`, `gemini-4-carbon`, `gemini-4-hydrogen` and `gemini-3.8-flash`. Bare `pro` and `gemini-pro` resolve to Gemini 4 Neon 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.
|
|
272
275
|
|
|
273
276
|
### X.AI/Grok Models
|
|
274
277
|
|
|
@@ -324,11 +327,11 @@ All models reason by default and return reasoning traces (`reasoning_content`),
|
|
|
324
327
|
|
|
325
328
|
### Codex Models
|
|
326
329
|
|
|
327
|
-
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`):
|
|
330
|
+
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`):
|
|
328
331
|
|
|
329
|
-
- **gpt-6.
|
|
332
|
+
- **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**
|
|
330
333
|
- **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`)
|
|
331
|
-
- `reasoning_effort` maps onto the tiers the chosen backend accepts (
|
|
334
|
+
- `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`)
|
|
332
335
|
- Thread-based sessions with persistent context
|
|
333
336
|
- Direct filesystem access from working directory
|
|
334
337
|
- Typical response time: 6-20 seconds (longer for complex tasks)
|
|
@@ -348,11 +351,11 @@ Claude via the Claude Agent SDK. `claude` uses its default model (Fable 5.2, or
|
|
|
348
351
|
|
|
349
352
|
### GitHub Copilot SDK Models
|
|
350
353
|
|
|
351
|
-
Reach these only with the `copilot:` namespace (e.g. `copilot:gpt-6.
|
|
354
|
+
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:
|
|
352
355
|
|
|
353
|
-
- **OpenAI**: `gpt-6.
|
|
356
|
+
- **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`)
|
|
354
357
|
- **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`
|
|
355
|
-
- **Google**: `gemini-4-
|
|
358
|
+
- **Google**: `gemini-4-neon` (aliases: `gemini`, `neon`, `gemini-4`), `gemini-4-carbon` (alias: `carbon`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
356
359
|
|
|
357
360
|
## 📚 Help & Documentation
|
|
358
361
|
|
|
@@ -411,12 +414,12 @@ CODEX_APPROVAL_POLICY=never # never (default), untrusted, on-fa
|
|
|
411
414
|
# Optional: per-provider default model, used for a bare provider name (`codex`,
|
|
412
415
|
# `openai`, ...) and for "auto". Must be a model or alias from that provider's
|
|
413
416
|
# list; startup fails with suggestions otherwise.
|
|
414
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
417
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL still works as a fallback
|
|
415
418
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
416
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
417
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
418
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
419
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
419
|
+
AGY_DEFAULT_MODEL=gemini-4-neon # Requires a paid Google AI Pro or Ultra plan; Free and Plus plans can use gemini:flash or set AGY_DEFAULT_MODEL=gemini-3.8-flash
|
|
420
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL still works as a fallback
|
|
421
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
422
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-neon
|
|
420
423
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
421
424
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
422
425
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -483,30 +486,30 @@ Every entry in `models` takes one of four forms:
|
|
|
483
486
|
"auto";
|
|
484
487
|
|
|
485
488
|
// A provider: its default model (hardcoded, or <PROVIDER>_DEFAULT_MODEL)
|
|
486
|
-
"codex"; // -> Codex (GPT-6 Astra)
|
|
489
|
+
"codex"; // -> Codex (GPT-6.2 Astra)
|
|
487
490
|
"claude"; // -> Claude Agent SDK (Claude Fable 5.2)
|
|
488
|
-
"gemini"; // -> Antigravity CLI (Gemini 4
|
|
489
|
-
"openai"; // -> OpenAI API (GPT-6.
|
|
491
|
+
"gemini"; // -> Antigravity CLI (Gemini 4 Neon)
|
|
492
|
+
"openai"; // -> OpenAI API (GPT-6.2 Sol)
|
|
490
493
|
|
|
491
494
|
// provider:model — that model on that provider only
|
|
492
|
-
"codex:astra"; // -> Codex (GPT-6 Astra)
|
|
493
|
-
"openai:gpt-6-astra"; // -> OpenAI API, even when Codex is available
|
|
494
|
-
"gemini:pro"; // -> Antigravity CLI (Gemini 4
|
|
495
|
+
"codex:astra"; // -> Codex (GPT-6.2 Astra)
|
|
496
|
+
"openai:gpt-6.2-astra"; // -> OpenAI API, even when Codex is available
|
|
497
|
+
"gemini:pro"; // -> Antigravity CLI (Gemini 4 Neon)
|
|
495
498
|
"google:gemini-3.1-pro-preview"; // -> Google API
|
|
496
499
|
"copilot:sonnet"; // -> GitHub Copilot (Claude Sonnet 5.5)
|
|
497
500
|
"openrouter:z-ai/glm-5.2:online"; // -> OpenRouter with web search opt-in
|
|
498
501
|
|
|
499
502
|
// A bare model ID or alias — the first configured provider that offers it
|
|
500
|
-
"gpt-6-astra"; // -> Codex, else OpenAI API
|
|
503
|
+
"gpt-6.2-astra"; // -> Codex, else OpenAI API
|
|
501
504
|
"opus"; // -> Claude Agent SDK, else Anthropic API
|
|
502
|
-
"pro"; // -> Antigravity CLI (gemini-4-
|
|
505
|
+
"pro"; // -> Antigravity CLI (gemini-4-neon), else Google API
|
|
503
506
|
"grok"; // -> grok-4.5 (XAI)
|
|
504
507
|
"z-ai/glm-5.2"; // -> OpenRouter (any vendor/model slug)
|
|
505
508
|
```
|
|
506
509
|
|
|
507
510
|
**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>`.
|
|
508
511
|
|
|
509
|
-
**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-
|
|
512
|
+
**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.
|
|
510
513
|
|
|
511
514
|
**Auto Model Behavior:**
|
|
512
515
|
|
|
@@ -516,12 +519,12 @@ Every entry in `models` takes one of four forms:
|
|
|
516
519
|
|
|
517
520
|
Provider priority order (subscription-based local providers first, then API-key providers), used by both `auto` and bare model names:
|
|
518
521
|
|
|
519
|
-
1. Codex (`codex` → GPT-6 Astra)
|
|
520
|
-
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini 4
|
|
522
|
+
1. Codex (`codex` → GPT-6.2 Astra)
|
|
523
|
+
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini 4 Neon)
|
|
521
524
|
3. Claude Agent SDK (`claude` → Claude Fable 5.2)
|
|
522
|
-
4. Copilot (`copilot` → GPT-6.
|
|
523
|
-
5. OpenAI (`openai` → GPT-6.
|
|
524
|
-
6. Google (`google` → Gemini 4
|
|
525
|
+
4. Copilot (`copilot` → GPT-6.2 Sol; `auto` only, never bare names)
|
|
526
|
+
5. OpenAI (`openai` → GPT-6.2 Sol)
|
|
527
|
+
6. Google (`google` → Gemini 4 Neon)
|
|
525
528
|
7. XAI (`xai` → Grok 4.5)
|
|
526
529
|
8. Anthropic (`anthropic` → Claude Opus 5.5)
|
|
527
530
|
9. Mistral (`mistral` → Mistral Medium 3.5)
|
|
@@ -529,7 +532,7 @@ Provider priority order (subscription-based local providers first, then API-key
|
|
|
529
532
|
11. OpenRouter (`openrouter` → GLM 5.2)
|
|
530
533
|
12. Abliteration (`abliteration` / `ablit` → `abliterated-model-large-v2`)
|
|
531
534
|
|
|
532
|
-
**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`.
|
|
535
|
+
**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`.
|
|
533
536
|
|
|
534
537
|
### Advanced Configuration
|
|
535
538
|
|
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-neon` | `neon`, `pro`, `gemini-pro` | 1M | 65K | Default; frontier-level reasoning with fast task completion for coding, knowledge work and science; thinking low/medium/high/xhigh; paid API tier only |
|
|
534
|
+
| `gemini-4-carbon` | `carbon` | 1M | 65K | Strongest Gemini for long-horizon software engineering and scientific reasoning; thinking low/medium/high; paid API tier only |
|
|
532
535
|
| `gemini-4-hydrogen` | `hydrogen` | 1M | 65K | Fast Gemini 4 for everyday coding and agentic work; thinking low/medium/high/xhigh; every API tier |
|
|
533
536
|
| `gemini-3.1-pro-preview` | `gemini-3.1-pro`, `gemini-3` | 1M | 64K | Gemini 3.1 Pro reasoning, expanded thinking levels |
|
|
534
537
|
| `gemini-3.5-flash` | `gemini-3.5`, `flash-3.5` | 1M | 65K | Frontier agentic/coding at Flash speed |
|
|
@@ -537,7 +540,7 @@ Provide models as plain name strings in the `models` array. Each entry is `auto`
|
|
|
537
540
|
| `gemini-2.5-flash` | `flash` | 1M | 65K | Ultra-fast |
|
|
538
541
|
| `gemini-2.5-flash-lite` | `flash-lite` | 1M | 65K | Lightweight fast model |
|
|
539
542
|
|
|
540
|
-
**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
|
|
543
|
+
**Note:** The **Antigravity CLI** provider (`agy`, OAuth-based) serves `gemini-4-neon`, `gemini-4-carbon`, `gemini-4-hydrogen` and `gemini-3.8-flash`. Bare `pro` and `gemini-pro` resolve to Gemini 4 Neon 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.
|
|
541
544
|
|
|
542
545
|
### X.AI / Grok Models
|
|
543
546
|
|
|
@@ -611,14 +614,14 @@ All three are uncensored ("abliterated") reasoning models using Abliteration's O
|
|
|
611
614
|
|
|
612
615
|
**Codex** is an agentic coding assistant with direct filesystem access:
|
|
613
616
|
|
|
614
|
-
- **Model**: `codex` (underlying model: GPT-6 Astra by default, or `CODEX_DEFAULT_MODEL`)
|
|
615
|
-
- **Backend selection**: `codex:<model>` per request (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`) from the Codex catalog: `gpt-6.
|
|
617
|
+
- **Model**: `codex` (underlying model: GPT-6.2 Astra by default, or `CODEX_DEFAULT_MODEL`)
|
|
618
|
+
- **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.
|
|
616
619
|
- **Availability**: the Codex SDK is installed and `~/.codex/auth.json` exists (`$CODEX_HOME/auth.json` when set) or `CODEX_API_KEY` is set
|
|
617
620
|
- **Thread-based sessions**: persistent conversation history via `continuation_id` in `chat` mode
|
|
618
621
|
- **Direct file access**: reads files from the working directory (paths relative to `CLIENT_CWD`)
|
|
619
622
|
- **Response times**: 6-20 seconds typical (complex tasks may take minutes)
|
|
620
623
|
- **Authentication**: ChatGPT login OR `CODEX_API_KEY` (NOT `OPENAI_API_KEY`)
|
|
621
|
-
- `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
|
|
624
|
+
- `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
|
|
622
625
|
|
|
623
626
|
### Claude Agent SDK (subscription)
|
|
624
627
|
|
|
@@ -638,7 +641,7 @@ All three are uncensored ("abliterated") reasoning models using Abliteration's O
|
|
|
638
641
|
|
|
639
642
|
The **Antigravity CLI** (`agy`) provides subscription-based access to Gemini models through Google OAuth:
|
|
640
643
|
|
|
641
|
-
- **Models** (text-only): `gemini-4-
|
|
644
|
+
- **Models** (text-only): `gemini-4-neon` (default; `neon`, `pro`, `gemini-pro`, ...; `gemini:pro`; 512K context on Antigravity), `gemini-4-carbon` (`carbon`, ...; `gemini:carbon`), `gemini-4-hydrogen` (`hydrogen`, ...; `gemini:hydrogen`), `gemini-3.8-flash` (`flash`, `gemini-3.8`, `flash-3.8`, ...; `gemini:flash`). `reasoning_effort: "xhigh"` selects the XHigh variant of Neon and Hydrogen. Neon and Hydrogen require a paid Google AI Pro or Ultra plan and Carbon requires Ultra; Free and Plus plans can use `gemini:flash` or set `AGY_DEFAULT_MODEL=gemini-3.8-flash`. Default override: `AGY_DEFAULT_MODEL`.
|
|
642
645
|
- **Namespaces**: `gemini`, `agy`, `antigravity`, `gemini-cli`
|
|
643
646
|
- **Availability**: the `agy` binary is found on PATH or at the platform install location
|
|
644
647
|
- **Permissions**: `agy` runs with `--dangerously-skip-permissions`, so every tool request is auto-approved
|
|
@@ -663,11 +666,11 @@ agy
|
|
|
663
666
|
|
|
664
667
|
### GitHub Copilot SDK (subscription)
|
|
665
668
|
|
|
666
|
-
Reach these only with the `copilot:` namespace (also `github-copilot:`, `copilot-sdk:`; e.g. `copilot:gpt-6.
|
|
669
|
+
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:
|
|
667
670
|
|
|
668
|
-
- **OpenAI**: `gpt-6.
|
|
671
|
+
- **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`)
|
|
669
672
|
- **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`
|
|
670
|
-
- **Google**: `gemini-4-
|
|
673
|
+
- **Google**: `gemini-4-neon` (aliases: `gemini`, `neon`, `gemini-4`), `gemini-4-carbon` (alias: `carbon`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
671
674
|
- Any other `copilot:<id>` is rejected with suggestions
|
|
672
675
|
|
|
673
676
|
### Model Selection
|
|
@@ -679,14 +682,14 @@ Every entry in `models` takes one of four forms:
|
|
|
679
682
|
- **`provider:model`** — that model on that provider only; the model must be in that provider's list.
|
|
680
683
|
- **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.
|
|
681
684
|
|
|
682
|
-
**Unknown names are rejected**, never forwarded: the error lists up to three close matches, e.g. `Unknown model "gtp-6-
|
|
685
|
+
**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.
|
|
683
686
|
|
|
684
687
|
```text
|
|
685
688
|
"auto" // First available provider (chat); first 3 (consensus)
|
|
686
|
-
"gpt-6" // Codex (-> gpt-6.
|
|
689
|
+
"gpt-6" // Codex (-> gpt-6.2-sol), else OpenAI API
|
|
687
690
|
"openai:gpt-6" // OpenAI API only
|
|
688
691
|
"gemini-2.5-flash" // Google API
|
|
689
|
-
"pro" // Antigravity CLI (-> gemini-4-
|
|
692
|
+
"pro" // Antigravity CLI (-> gemini-4-neon), else Google API
|
|
690
693
|
"google:pro" // Google API only
|
|
691
694
|
"grok-4.5" // X.AI
|
|
692
695
|
"deepseek" // DeepSeek (-> deepseek-v4-pro)
|
|
@@ -700,11 +703,11 @@ Every entry in `models` takes one of four forms:
|
|
|
700
703
|
"claude" // Claude Agent SDK (-> Claude Fable 5.2)
|
|
701
704
|
"claude:opus" // Claude Agent SDK (Claude Opus 5.5)
|
|
702
705
|
"codex:luna" // Codex (GPT-6 Luna)
|
|
703
|
-
"gemini" // Antigravity CLI (Gemini 4
|
|
704
|
-
"copilot:gpt-6.
|
|
706
|
+
"gemini" // Antigravity CLI (Gemini 4 Neon)
|
|
707
|
+
"copilot:gpt-6.2-sol" // GitHub Copilot SDK
|
|
705
708
|
```
|
|
706
709
|
|
|
707
|
-
**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.
|
|
710
|
+
**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.
|
|
708
711
|
|
|
709
712
|
**Auto behavior:**
|
|
710
713
|
- **chat mode**: `["auto"]` selects the first available provider and uses its default model, with failover to the next provider on error.
|
|
@@ -730,7 +733,7 @@ Control Codex behavior through environment variables:
|
|
|
730
733
|
- **`CODEX_SANDBOX_MODE`** — filesystem access: `read-only` (default), `workspace-write`, `danger-full-access` (containers only)
|
|
731
734
|
- **`CODEX_SKIP_GIT_CHECK`** — `true` (default) works in any directory; `false` requires a Git repository
|
|
732
735
|
- **`CODEX_APPROVAL_POLICY`** — `never` (default, recommended for servers), `untrusted`, `on-failure`, `on-request`
|
|
733
|
-
- **`CODEX_DEFAULT_MODEL`** — model used for `codex` and `auto` (default: `gpt-6-astra`); the legacy name `CODEX_MODEL` is honored when it is unset
|
|
736
|
+
- **`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
|
|
734
737
|
- **`CODEX_API_KEY`** — optional API key for headless deployments (alternative to ChatGPT login)
|
|
735
738
|
|
|
736
739
|
**Example (.env):**
|
|
@@ -739,7 +742,7 @@ CODEX_API_KEY=your_codex_api_key_here
|
|
|
739
742
|
CODEX_SANDBOX_MODE=read-only
|
|
740
743
|
CODEX_SKIP_GIT_CHECK=true
|
|
741
744
|
CODEX_APPROVAL_POLICY=never
|
|
742
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
745
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra
|
|
743
746
|
```
|
|
744
747
|
|
|
745
748
|
### Default Models
|
|
@@ -747,12 +750,12 @@ CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
|
747
750
|
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).
|
|
748
751
|
|
|
749
752
|
```bash
|
|
750
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
753
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL is honored as a legacy fallback
|
|
751
754
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
752
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
753
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
754
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
755
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
755
|
+
AGY_DEFAULT_MODEL=gemini-4-neon # Antigravity CLI (gemini)
|
|
756
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
757
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
758
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-neon
|
|
756
759
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
757
760
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
758
761
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -881,7 +884,7 @@ Set `async: true` on a chat request for long-running work:
|
|
|
881
884
|
|
|
882
885
|
**Invalid model** (unknown names are rejected with up to three suggestions):
|
|
883
886
|
```json
|
|
884
|
-
{ "error": "Unknown model \"gtp-6-
|
|
887
|
+
{ "error": "Unknown model \"gtp-6-luna\". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?" }
|
|
885
888
|
```
|
|
886
889
|
|
|
887
890
|
**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,7 +28,8 @@ 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-neon` (default; aliases: `neon`, `pro`, `gemini-pro`) - Frontier-level reasoning with fast task completion for complex coding, knowledge work and science; thinking levels low/medium/high/xhigh (default high); paid API tier only (1M unified context, 65K output)
|
|
32
|
+
- `gemini-4-carbon` (alias: `carbon`) - 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)
|
|
30
33
|
- `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)
|
|
31
34
|
- `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)
|
|
32
35
|
- `gemini-3.5-flash` (aliases: `gemini-3.5`, `flash-3.5`) - Frontier-level agentic and coding performance at Flash speed (1M context, 65K output)
|
|
@@ -34,7 +37,7 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
34
37
|
- `gemini-2.5-pro` (alias: `pro 2.5`) - Deep reasoning with thinking budget (1M context, 65K output)
|
|
35
38
|
- `gemini-2.5-flash` (alias: `flash`) - Ultra-fast model with thinking budget (1M context, 65K output)
|
|
36
39
|
- `gemini-2.5-flash-lite` (alias: `flash-lite`) - Lightweight fast model (1M context, 65K output)
|
|
37
|
-
- **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
|
|
40
|
+
- **Note**: The **Antigravity CLI** provider (`agy`, OAuth-based access) serves `gemini-4-neon`, `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 Neon 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.
|
|
38
41
|
|
|
39
42
|
### X.AI (Grok)
|
|
40
43
|
- **API Key Format**: `xai-...` (starts with `xai-`)
|
|
@@ -123,15 +126,15 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
123
126
|
- `CODEX_SANDBOX_MODE` - Filesystem access control (default: read-only)
|
|
124
127
|
- `CODEX_SKIP_GIT_CHECK` - Skip Git repository validation (default: true)
|
|
125
128
|
- `CODEX_APPROVAL_POLICY` - Command approval behavior (default: never)
|
|
126
|
-
- `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.
|
|
129
|
+
- `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.
|
|
127
130
|
- **Supported Models**:
|
|
128
|
-
- `codex` - OpenAI Codex agentic coding assistant (GPT-6 Astra by default)
|
|
131
|
+
- `codex` - OpenAI Codex agentic coding assistant (GPT-6.2 Astra by default)
|
|
129
132
|
- `codex:<model>` - Same, with an explicit backend from the Codex catalog:
|
|
130
|
-
- `gpt-6.
|
|
133
|
+
- `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`
|
|
131
134
|
- `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`)
|
|
132
135
|
- Names outside this catalog are rejected with suggestions
|
|
133
|
-
- 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))
|
|
134
|
-
- `reasoning_effort` is clamped onto what the backend accepts (
|
|
136
|
+
- 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))
|
|
137
|
+
- `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`)
|
|
135
138
|
- Thread-based sessions with persistent context
|
|
136
139
|
- Direct filesystem access from working directory
|
|
137
140
|
- Typical response time: 6-20 seconds (longer for complex tasks)
|
|
@@ -158,11 +161,12 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
158
161
|
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`).
|
|
159
162
|
- **Availability**: The `agy` binary is found on PATH or at the platform install location
|
|
160
163
|
- **Environment Variables**:
|
|
161
|
-
- `AGY_DEFAULT_MODEL` - Model used for bare `gemini` and `auto` (default: `gemini-4-
|
|
164
|
+
- `AGY_DEFAULT_MODEL` - Model used for bare `gemini` and `auto` (default: `gemini-4-neon`, requires a paid Google AI Pro or Ultra plan; Free and Plus plans can use `gemini:flash` or set `AGY_DEFAULT_MODEL=gemini-3.8-flash`)
|
|
162
165
|
- **Namespaces**: `gemini`, `agy`, `antigravity`, `gemini-cli` (all equivalent, e.g. `agy:pro`)
|
|
163
166
|
- **Supported Models** (text-only — print mode has no image input channel):
|
|
164
|
-
- `gemini-4-
|
|
165
|
-
- `gemini-4-
|
|
167
|
+
- `gemini-4-neon` (aliases: `neon`, `pro`, `gemini-pro`, ...) - Gemini 4 Neon, paid Pro and Ultra plans, 512K context on Antigravity (default; `gemini` alone = `gemini:gemini-4-neon`; `gemini:pro`); `reasoning_effort: "xhigh"` selects its XHigh variant
|
|
168
|
+
- `gemini-4-carbon` (aliases: `carbon`, `gemini-carbon`, ...) - Gemini 4 Carbon, Ultra only (`gemini:carbon`)
|
|
169
|
+
- `gemini-4-hydrogen` (aliases: `hydrogen`, `gemini-hydrogen`, ...) - Gemini 4 Hydrogen, paid Pro and Ultra plans (`gemini:hydrogen`); `reasoning_effort: "xhigh"` selects its XHigh variant
|
|
166
170
|
- `gemini-3.8-flash` (aliases: `flash`, `gemini-3.8`, `flash-3.8`, ...) - Gemini 3.8 Flash (`gemini:flash`)
|
|
167
171
|
- Every model has Low, Medium, and High variants selected by `reasoning_effort`.
|
|
168
172
|
|
|
@@ -217,7 +221,7 @@ agy
|
|
|
217
221
|
**Differences from Google API Provider:**
|
|
218
222
|
- **Authentication**: Google OAuth via `agy` vs API Key (Google API)
|
|
219
223
|
- **Billing**: Antigravity subscription/compute allowance vs pay-per-use API
|
|
220
|
-
- **Model Routing**: `gemini` / `gemini:<model>` / `agy:<model>` → Antigravity CLI provider; `google:<model>` → Google API provider; bare `pro` and `gemini-pro` resolve to Gemini 4
|
|
224
|
+
- **Model Routing**: `gemini` / `gemini:<model>` / `agy:<model>` → Antigravity CLI provider; `google:<model>` → Google API provider; bare `pro` and `gemini-pro` resolve to Gemini 4 Neon 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.
|
|
221
225
|
- **Images**: Not supported (text-only) vs full multimodal on the Google API provider
|
|
222
226
|
- **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.
|
|
223
227
|
|
|
@@ -257,12 +261,12 @@ agy
|
|
|
257
261
|
- **Setup Required**: Authenticate the GitHub CLI and ensure your account has an active Copilot subscription
|
|
258
262
|
- **Availability**: The Copilot SDK (`@github/copilot-sdk`) is installed
|
|
259
263
|
- **Environment Variables**:
|
|
260
|
-
- `COPILOT_DEFAULT_MODEL` - Model used for bare `copilot` and `auto` (default: `gpt-6.
|
|
261
|
-
- **Supported Models** (namespace-only: reach them with `copilot:`, `github-copilot:` or `copilot-sdk:`, e.g. `copilot:gpt-6.
|
|
262
|
-
- `copilot` - GPT-6.
|
|
263
|
-
- OpenAI: `gpt-6.
|
|
264
|
+
- `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.
|
|
265
|
+
- **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):
|
|
266
|
+
- `copilot` - GPT-6.2 Sol, or `COPILOT_DEFAULT_MODEL`
|
|
267
|
+
- 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`
|
|
264
268
|
- 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`
|
|
265
|
-
- Google: `gemini-4-
|
|
269
|
+
- Google: `gemini-4-neon` (aliases: `gemini`, `neon`, `gemini-4`), `gemini-4-carbon` (alias: `carbon`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
266
270
|
- **Reasoning**: The GPT-6 and GPT-5.6 tiers accept `reasoning_effort` (clamped onto Copilot's `low`–`xhigh`).
|
|
267
271
|
- **Unknown IDs**: Any other `copilot:<id>` is rejected with suggestions; only the IDs and aliases above are accepted.
|
|
268
272
|
|
|
@@ -300,12 +304,12 @@ CODEX_APPROVAL_POLICY=never # never (default), untrusted, on-fa
|
|
|
300
304
|
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.
|
|
301
305
|
|
|
302
306
|
```bash
|
|
303
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
307
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL is honored as a legacy fallback
|
|
304
308
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
305
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
306
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
307
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
308
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
309
|
+
AGY_DEFAULT_MODEL=gemini-4-neon # Antigravity CLI (gemini)
|
|
310
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
311
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
312
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-neon
|
|
309
313
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
310
314
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
311
315
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -396,16 +400,16 @@ Routing is derived entirely from each provider's model list (canonical IDs plus
|
|
|
396
400
|
|
|
397
401
|
4. **`auto`** — the first available provider's default model, in the priority order above with Copilot between the Claude Agent SDK and OpenAI.
|
|
398
402
|
|
|
399
|
-
**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-
|
|
403
|
+
**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?`.
|
|
400
404
|
|
|
401
405
|
**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.
|
|
402
406
|
|
|
403
|
-
**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.
|
|
407
|
+
**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.
|
|
404
408
|
|
|
405
409
|
Examples:
|
|
406
410
|
|
|
407
411
|
```text
|
|
408
|
-
"gpt-6" // Codex (gpt-6.
|
|
412
|
+
"gpt-6" // Codex (gpt-6.2-sol), else OpenAI API
|
|
409
413
|
"openai:gpt-6" // OpenAI API only
|
|
410
414
|
"fable" // Claude Agent SDK (claude-fable-5-2), else Anthropic API
|
|
411
415
|
"opus" // Claude Agent SDK (claude-opus-5-5), else Anthropic API
|
|
@@ -413,7 +417,7 @@ Examples:
|
|
|
413
417
|
"sonnet" // Claude Agent SDK (claude-sonnet-5-5), else Anthropic API
|
|
414
418
|
"claude" // Claude Agent SDK (defaults to Claude Fable 5.2)
|
|
415
419
|
"claude:opus" // Claude Agent SDK (Claude Opus 5.5)
|
|
416
|
-
"pro" // Antigravity CLI (gemini-4-
|
|
420
|
+
"pro" // Antigravity CLI (gemini-4-neon), else Google API
|
|
417
421
|
"google:pro" // Google API only
|
|
418
422
|
"gemini-2.5-pro" // Google API
|
|
419
423
|
"grok-4.5" // X.AI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "converse-mcp-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "Converse MCP Server - Converse with other LLMs with chat and consensus tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -93,21 +93,21 @@
|
|
|
93
93
|
".env.example"
|
|
94
94
|
],
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@anthropic-ai/claude-agent-sdk": "^0.3.
|
|
97
|
-
"@anthropic-ai/sdk": "^1.
|
|
96
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.327",
|
|
97
|
+
"@anthropic-ai/sdk": "^1.10.0",
|
|
98
98
|
"@github/copilot-sdk": "^1.0.34",
|
|
99
|
-
"@google/genai": "^3.
|
|
99
|
+
"@google/genai": "^3.5.0",
|
|
100
100
|
"@lydell/node-pty": "1.2.0-beta.18",
|
|
101
101
|
"@mistralai/mistralai": "^3.5.0",
|
|
102
102
|
"@modelcontextprotocol/node": "^2.1.2",
|
|
103
103
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
104
|
-
"@openai/codex-sdk": "^0.
|
|
104
|
+
"@openai/codex-sdk": "^0.170.0",
|
|
105
105
|
"cors": "^2.8.6",
|
|
106
106
|
"dotenv": "^18.0.10",
|
|
107
107
|
"express": "^5.3.0",
|
|
108
108
|
"lru-cache": "^11.5.3",
|
|
109
109
|
"nanoid": "^6.0.2",
|
|
110
|
-
"openai": "^7.
|
|
110
|
+
"openai": "^7.59.0",
|
|
111
111
|
"p-limit": "^7.3.3",
|
|
112
112
|
"vite": "^8.3.8",
|
|
113
113
|
"zod": "^4.6.7"
|
|
@@ -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,6 +249,18 @@ const SUPPORTED_MODELS = {
|
|
|
223
249
|
},
|
|
224
250
|
|
|
225
251
|
// Google models
|
|
252
|
+
'gemini-4-neon': {
|
|
253
|
+
modelName: 'gemini-4-neon',
|
|
254
|
+
friendlyName: 'Gemini 4 Neon (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 Neon via Copilot subscription',
|
|
262
|
+
aliases: ['gemini', 'neon', 'gemini-4'],
|
|
263
|
+
},
|
|
226
264
|
'gemini-4-carbon': {
|
|
227
265
|
modelName: 'gemini-4-carbon',
|
|
228
266
|
friendlyName: 'Gemini 4 Carbon (via Copilot)',
|
|
@@ -233,7 +271,7 @@ const SUPPORTED_MODELS = {
|
|
|
233
271
|
supportsWebSearch: false,
|
|
234
272
|
timeout: 1800000,
|
|
235
273
|
description: 'Google Gemini 4 Carbon via Copilot subscription',
|
|
236
|
-
aliases: ['
|
|
274
|
+
aliases: ['carbon'],
|
|
237
275
|
},
|
|
238
276
|
'gemini-4-hydrogen': {
|
|
239
277
|
modelName: 'gemini-4-hydrogen',
|
|
@@ -19,9 +19,10 @@
|
|
|
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
|
|
24
|
-
* AGY_DEFAULT_MODEL). Antigravity no longer
|
|
22
|
+
* and `agy:`. Gemini 4 Neon is the default; Antigravity serves it on paid
|
|
23
|
+
* Google AI Pro and Ultra plans (Carbon only on Ultra), so Free and Plus plans
|
|
24
|
+
* select `gemini:flash` (or set AGY_DEFAULT_MODEL). Antigravity no longer
|
|
25
|
+
* offers Gemini 3.1 Pro.
|
|
25
26
|
*/
|
|
26
27
|
|
|
27
28
|
import { existsSync, mkdirSync, writeFileSync, rmSync } from 'node:fs';
|
|
@@ -60,6 +61,36 @@ const PTY_COLS = 1000;
|
|
|
60
61
|
* channel).
|
|
61
62
|
*/
|
|
62
63
|
const SUPPORTED_MODELS = {
|
|
64
|
+
'gemini-4-neon': {
|
|
65
|
+
modelName: 'gemini-4-neon',
|
|
66
|
+
friendlyName: 'Gemini 4 Neon (via Antigravity CLI)',
|
|
67
|
+
// Antigravity caps Neon at 512K, half of the Gemini API window.
|
|
68
|
+
contextWindow: 524288,
|
|
69
|
+
maxOutputTokens: 65536,
|
|
70
|
+
supportsStreaming: true,
|
|
71
|
+
supportsImages: false,
|
|
72
|
+
supportsWebSearch: false,
|
|
73
|
+
supportsThinking: true,
|
|
74
|
+
timeout: DEFAULT_TIMEOUT_MS,
|
|
75
|
+
description:
|
|
76
|
+
'Gemini 4 Neon via Antigravity CLI (agy, default) - requires Antigravity Google OAuth login on a paid Google AI Pro or Ultra plan',
|
|
77
|
+
aliases: [
|
|
78
|
+
'neon',
|
|
79
|
+
'gemini-neon',
|
|
80
|
+
'gemini neon',
|
|
81
|
+
'gemini-4',
|
|
82
|
+
'gemini4',
|
|
83
|
+
'gemini 4 neon',
|
|
84
|
+
'4-neon',
|
|
85
|
+
'pro',
|
|
86
|
+
'gemini-pro',
|
|
87
|
+
'gemini pro',
|
|
88
|
+
],
|
|
89
|
+
// agy display-name base; reasoning_effort selects one of agyEffortTiers
|
|
90
|
+
// as the parenthesized variant
|
|
91
|
+
agyModelBase: 'Gemini 4 Neon',
|
|
92
|
+
agyEffortTiers: ['low', 'medium', 'high', 'xhigh'],
|
|
93
|
+
},
|
|
63
94
|
'gemini-4-carbon': {
|
|
64
95
|
modelName: 'gemini-4-carbon',
|
|
65
96
|
friendlyName: 'Gemini 4 Carbon (via Antigravity CLI)',
|
|
@@ -71,21 +102,14 @@ const SUPPORTED_MODELS = {
|
|
|
71
102
|
supportsThinking: true,
|
|
72
103
|
timeout: DEFAULT_TIMEOUT_MS,
|
|
73
104
|
description:
|
|
74
|
-
'Gemini 4 Carbon via Antigravity CLI (agy
|
|
105
|
+
'Gemini 4 Carbon via Antigravity CLI (agy) - requires Antigravity Google OAuth login on a Google AI Ultra plan',
|
|
75
106
|
aliases: [
|
|
76
107
|
'carbon',
|
|
77
108
|
'gemini-carbon',
|
|
78
109
|
'gemini carbon',
|
|
79
|
-
'gemini-4',
|
|
80
|
-
'gemini4',
|
|
81
110
|
'gemini 4 carbon',
|
|
82
111
|
'4-carbon',
|
|
83
|
-
'pro',
|
|
84
|
-
'gemini-pro',
|
|
85
|
-
'gemini pro',
|
|
86
112
|
],
|
|
87
|
-
// agy display-name base; reasoning_effort selects one of agyEffortTiers
|
|
88
|
-
// as the parenthesized variant
|
|
89
113
|
agyModelBase: 'Gemini 4 Carbon',
|
|
90
114
|
agyEffortTiers: ['low', 'medium', 'high'],
|
|
91
115
|
},
|
|
@@ -100,7 +124,7 @@ const SUPPORTED_MODELS = {
|
|
|
100
124
|
supportsThinking: true,
|
|
101
125
|
timeout: DEFAULT_TIMEOUT_MS,
|
|
102
126
|
description:
|
|
103
|
-
'Gemini 4 Hydrogen via Antigravity CLI (agy) - requires Antigravity Google OAuth login
|
|
127
|
+
'Gemini 4 Hydrogen via Antigravity CLI (agy) - requires Antigravity Google OAuth login on a paid Google AI Pro or Ultra plan',
|
|
104
128
|
aliases: [
|
|
105
129
|
'hydrogen',
|
|
106
130
|
'gemini-hydrogen',
|
|
@@ -139,7 +163,7 @@ const SUPPORTED_MODELS = {
|
|
|
139
163
|
},
|
|
140
164
|
};
|
|
141
165
|
|
|
142
|
-
const DEFAULT_MODEL = 'gemini-4-
|
|
166
|
+
const DEFAULT_MODEL = 'gemini-4-neon';
|
|
143
167
|
|
|
144
168
|
/**
|
|
145
169
|
* Custom error class for Gemini CLI (agy) provider errors
|
|
@@ -687,11 +711,12 @@ async function executeAgy(messages, options) {
|
|
|
687
711
|
const cleaned = cleanAgyOutput(output);
|
|
688
712
|
|
|
689
713
|
if (exitCode !== 0) {
|
|
690
|
-
// agy's model list is per-plan (
|
|
691
|
-
// catalog model can still be missing for the
|
|
714
|
+
// agy's model list is per-plan (Neon and Hydrogen need a paid plan,
|
|
715
|
+
// Carbon needs Ultra), so a catalog model can still be missing for the
|
|
716
|
+
// signed-in account.
|
|
692
717
|
if (/not recognized as a known model/i.test(cleaned)) {
|
|
693
718
|
throw new GeminiCliProviderError(
|
|
694
|
-
`Antigravity CLI (agy) does not offer "${agyModel}" to the signed-in account (Gemini 4
|
|
719
|
+
`Antigravity CLI (agy) does not offer "${agyModel}" to the signed-in account (Gemini 4 Neon and Hydrogen require a paid Google AI Pro or Ultra plan; Gemini 4 Carbon requires Ultra). Use gemini:flash, which every plan offers, or set AGY_DEFAULT_MODEL to change the default. agy output: ${cleaned.slice(0, 800)}`,
|
|
695
720
|
ErrorCodes.MODEL_NOT_FOUND,
|
|
696
721
|
);
|
|
697
722
|
}
|
package/src/providers/google.js
CHANGED
|
@@ -100,6 +100,34 @@ const SUPPORTED_MODELS = {
|
|
|
100
100
|
'3.1-pro',
|
|
101
101
|
],
|
|
102
102
|
},
|
|
103
|
+
'gemini-4-neon': {
|
|
104
|
+
modelName: 'gemini-4-neon',
|
|
105
|
+
friendlyName: 'Gemini (4 Neon)',
|
|
106
|
+
contextWindow: 1048576, // 1M tokens, shared by input and output
|
|
107
|
+
maxOutputTokens: 65536,
|
|
108
|
+
supportsStreaming: true,
|
|
109
|
+
supportsImages: true,
|
|
110
|
+
supportsThinking: true,
|
|
111
|
+
supportsWebSearch: true,
|
|
112
|
+
thinkingMode: 'level',
|
|
113
|
+
// Like Hydrogen, Neon adds an xhigh level above high (its default).
|
|
114
|
+
thinkingLevels: ['low', 'medium', 'high', 'xhigh'],
|
|
115
|
+
timeout: 900000,
|
|
116
|
+
description:
|
|
117
|
+
'Gemini 4 Neon - Frontier-level reasoning with fast task completion for complex coding, knowledge work and science; paid API tier only (1M context)',
|
|
118
|
+
aliases: [
|
|
119
|
+
'neon',
|
|
120
|
+
'gemini-neon',
|
|
121
|
+
'gemini neon',
|
|
122
|
+
'gemini-4',
|
|
123
|
+
'gemini4',
|
|
124
|
+
'gemini 4 neon',
|
|
125
|
+
'4-neon',
|
|
126
|
+
'gemini pro',
|
|
127
|
+
'gemini-pro',
|
|
128
|
+
'pro',
|
|
129
|
+
],
|
|
130
|
+
},
|
|
103
131
|
'gemini-4-carbon': {
|
|
104
132
|
modelName: 'gemini-4-carbon',
|
|
105
133
|
friendlyName: 'Gemini (4 Carbon)',
|
|
@@ -118,13 +146,8 @@ const SUPPORTED_MODELS = {
|
|
|
118
146
|
'carbon',
|
|
119
147
|
'gemini-carbon',
|
|
120
148
|
'gemini carbon',
|
|
121
|
-
'gemini-4',
|
|
122
|
-
'gemini4',
|
|
123
149
|
'gemini 4 carbon',
|
|
124
150
|
'4-carbon',
|
|
125
|
-
'gemini pro',
|
|
126
|
-
'gemini-pro',
|
|
127
|
-
'pro',
|
|
128
151
|
],
|
|
129
152
|
},
|
|
130
153
|
'gemini-4-hydrogen': {
|
|
@@ -481,7 +504,7 @@ async function retryWithBackoff(fn, maxRetries = 4) {
|
|
|
481
504
|
/**
|
|
482
505
|
* Main Google provider implementation
|
|
483
506
|
*/
|
|
484
|
-
const DEFAULT_MODEL = 'gemini-4-
|
|
507
|
+
const DEFAULT_MODEL = 'gemini-4-neon';
|
|
485
508
|
|
|
486
509
|
export const googleProvider = {
|
|
487
510
|
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',
|