tachibot-mcp 2.33.0 → 2.34.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/CHANGELOG.md CHANGED
@@ -5,6 +5,32 @@ All notable changes to TachiBot MCP will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.34.0] - 2026-09-14
9
+
10
+ ### Changed
11
+ - **OpenAI default is now GPT-6 Astra (`gpt-6-astra`).** Released Sep 3, 2026: $10/$50 per 1M tokens (2x `gpt-5.6-sol`'s input price), 1.05M context, 128K output. Verified live against `/v1/models` and `/v1/responses` on Sep 14, 2026. Every `OPENAI_MODELS.DEFAULT` caller moves — `openai_reason`, `openai_brainstorm`, `openai_code_review`, `spec_writer`, `tachi`, the GPT reviewers in `diff_review` / `plan_critique` — along with the `PRO` / `THINKING` / `FULL` / `CODEX_MAX` aliases workflows use. Astra rolled out to a limited set of orgs first, so `callOpenAI` falls back astra → `gpt-5.6-sol` → `gpt-5.6-terra` on a 403/404. `openai_brainstorm` accepts `gpt-6-astra` alongside the three GPT-5.6 tiers.
12
+ - **`openai_explain` stays on `gpt-5.6-sol`.** Low-effort explanations don't need the flagship, so the tool is pinned to the previous default rather than doubling its per-call cost. `openai_search` (terra), the jury's GPT juror (luna) and the Gemini-down judge escalation (sol) are unchanged.
13
+ - **`qwq_reason` runs Qwen3.8-27B.** `qwen/qwq-32b` is gone from OpenRouter — every call returned 404 "No endpoints found", so the tool had been failing outright. The tool, its workflow mapping and the `openrouter_multi` `qwq-32b` option now call `qwen/qwen3.8-27b` (dense 27B, 1M context, $0.21/$2.55) with `reasoning_effort: medium`, falling back to `qwen3-235b-a22b-thinking-2507`. On a probability probe it answered correctly in 2.0s for $0.0007; the 235B thinking model took 16.3s. Tool name and parameters are unchanged.
14
+
15
+ ### Fixed
16
+ - **GPT-6 models could not be called at all.** `callOpenAI` used the Responses API only for model names starting with `gpt-5.`, so `gpt-6-astra` fell through to Chat Completions with `temperature: 0.7` and no reasoning effort. OpenAI answers that with 400 "'temperature' does not support 0.7 with this model". `gpt-6-*` now goes to the Responses API without temperature.
17
+ - **Astra rejects `reasoning_effort` `none` and `minimal`** — it accepts only low/medium/high/xhigh/max. Those values are now sent as `low` for GPT-6 models instead of burning the attempt on a 400; GPT-5.6 tiers still receive `none` unchanged.
18
+ - **Workflow steps ran a different OpenAI model than the tool of the same name.** `tool-mapper` reimplemented `openai_code_review`, `openai_explain` and `openai_reason` with its own prompts and model picks, so after the Astra bump a workflow `openai_code_review` step ran `gpt-5.6-luna` while the MCP tool ran `gpt-6-astra` (`openai_explain`: luna vs sol; `openai_reason`: `high` effort and a generic prompt vs `xhigh`). The three cases now delegate to the real tools, so model, effort and prompt match; a step's custom `systemPrompt` no longer applies to them. A second, unreachable `case "openai_reason"` was removed.
19
+ - **Stale model labels.** The `diff_review` and `plan_critique` panels labelled their GPT reviewer "GPT-5.6 Sol" and "GPT-5.5", and `doctor` / `tachibot init` still advertised "GPT-5.5".
20
+ - **Version drift.** 2.33.1 bumped only `package.json`; `manifest.json`, `server.json` and `package.mcpb.json` still said 2.33.0. All now carry 2.34.0.
21
+
22
+ ## [2.33.1] - 2026-08-29
23
+
24
+ ### Changed
25
+ - **Gemini flash tier bumped to `gemini-3.7-flash`** (GA Aug 13, 2026 — 1M ctx, $0.75/$3.75 intro pricing through Dec 31, 2026, then $1.50/$7.50). Powers `gemini_search` and the Pro-quota degradation path; `gemini-3.6-flash` stays wired as the fallback. Verified live against the Gemini API. No new Pro model exists as of Aug 29, 2026 (3.5 Pro missed its June window; still in partner testing), so the reasoning/judge default remains `gemini-3.1-pro-preview`.
26
+
27
+ ### Fixed
28
+ - **`grok_search` returned the model's plan instead of its answer.** xAI's `/v1/responses` agentic runs interleave several `message` items with `web_search_call` entries — a preamble ("I'll search official docs…"), the server-side searches, then the answer as a *later* message. Extraction used `.find(type === "message")`, i.e. first-message-wins, so any run where grok-4.6 narrated a plan returned the plan and silently dropped the answer (observed 3× on Aug 29; `grok_search_lite` dodged it because the cheaper model skips the preamble). Text and `url_citation` annotations are now collected from **every** message in order, and a response with no visible text at all (e.g. `status:"incomplete"` from reasoning exhausting `max_output_tokens`) throws a descriptive error instead of the fake-success `"No response from Grok"`.
29
+ - **OpenAI tools could return an empty response as success.** The Responses API returns HTTP 200 with `status: "incomplete"` (`incomplete_details.reason: "max_output_tokens"`) and a reasoning-only output array when reasoning consumes the whole token budget before any visible text. `callOpenAI` never read `status`, masked the miss with the placeholder "No response from OpenAI", and logged SUCCESS — billing the reasoning tokens for nothing and showing the caller no error. Empty visible text now records a per-attempt error and falls through the model fallback chain, so total failure surfaces as `[OpenAI request failed …]` naming the reason for every attempt.
30
+ - **GPT-5.x output budgets sat far below OpenAI's documented reserve.** `max_output_tokens` *includes* reasoning tokens, and the docs recommend reserving at least 25,000 for reasoning models — the tools passed 4,000–8,000, which high-effort reasoning exhausts before emitting a word (the empty-response trigger above). Responses-API calls with any `reasoning_effort` other than `none` now floor the budget at 25,000; the cap is an upper bound, so only tokens actually generated bill.
31
+ - **`npm test` ran sibling worktrees' suites.** `testPathIgnorePatterns` said "don't descend into agent worktrees" but never listed `.worktrees/`, so branches checked out there injected phantom failures into the main tree's run. Added `/.worktrees/` to the ignore list.
32
+ - **`focus` progress table printed `session_` as the session id.** Ids are `session_<timestamp>_<hex>`, so slicing the first 8 chars only ever showed the literal prefix; the distinctive hex tail is displayed instead. Emoji also left the table cells — terminal renderers count them as 1–2 columns inconsistently, skewing every border.
33
+
8
34
  ## [2.33.0] - 2026-08-27
9
35
 
10
36
  ### Added
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ### Multi-Model AI Orchestration Platform
6
6
 
7
- [![Version](https://img.shields.io/badge/version-2.33.0-blue.svg)](https://www.npmjs.com/package/tachibot-mcp)
7
+ [![Version](https://img.shields.io/badge/version-2.34.0-blue.svg)](https://www.npmjs.com/package/tachibot-mcp)
8
8
  [![Tools](https://img.shields.io/badge/tools-67_active-brightgreen.svg)](#-tool-ecosystem-67-tools)
9
9
  [![License](https://img.shields.io/badge/license-AGPL--3.0-green.svg)](LICENSE)
10
10
  [![Node](https://img.shields.io/badge/node-%3E%3D22.0.0-brightgreen.svg)](https://nodejs.org)
@@ -12,7 +12,7 @@
12
12
 
13
13
  **67 AI tools. 12 providers. One protocol.**
14
14
 
15
- Orchestrate Perplexity, Grok 4.6, GPT-5.6, Gemini, Qwen, Kimi K3, and MiniMax M3
15
+ Orchestrate Perplexity, Grok 4.6, GPT-6 Astra, Gemini, Qwen, Kimi K3, and MiniMax M3
16
16
  from Claude Code, Claude Desktop, Cursor, or any MCP client.
17
17
 
18
18
  [Get Started](#-quick-start) &#183; [View Tools](#-tool-ecosystem-67-tools) &#183; [Documentation](https://tachibot.com/docs)
@@ -30,6 +30,12 @@ from Claude Code, Claude Desktop, Cursor, or any MCP client.
30
30
 
31
31
  ## What's New
32
32
 
33
+ ### v2.34.0
34
+ - **GPT-6 Astra is the OpenAI default.** `gpt-6-astra` (Sep 3, 2026; $10/$50, 1.05M context) now backs `openai_reason`, `openai_brainstorm`, `openai_code_review`, `spec_writer`, `tachi` and the GPT reviewers in `diff_review` / `plan_critique`. Astra rolled out to a limited set of orgs first, so calls fall back to `gpt-5.6-sol`, then `gpt-5.6-terra`, when an org lacks access. `openai_explain` stays on sol — low-effort explanations don't need the flagship.
35
+ - **GPT-6 models could not be called at all.** `callOpenAI` only used the Responses API for names starting with `gpt-5.`, so Astra fell through to Chat Completions with `temperature: 0.7` and got a 400. `gpt-6-*` now goes to the Responses API without temperature, and the `none`/`minimal` reasoning efforts Astra rejects are sent as `low`.
36
+ - **`qwq_reason` works again.** `qwen/qwq-32b` was retired from OpenRouter (every call returned 404), so the tool now runs `qwen/qwen3.8-27b` at `reasoning_effort: medium` with the 235B thinking model as fallback — correct on a probe problem in 2.0s for $0.0007. Tool name and parameters are unchanged.
37
+ - Tool count unchanged at 67.
38
+
33
39
  ### v2.33.0
34
40
  - **The writing family (`storm`, `re3`, `de_generic`).** The library had creative *thinking* (`what_if`, `innovate`, `alt_view`, `creative_use`) and zero creative *writing*: against a 7-stage pipeline, stage 4 (structure) and stage 5 (draft) were empty, and stage 6 (revise) fell through to `reflexion` — which optimises toward *correct*, while prose revision is cutting, rhythm and specificity. **85 → 88 techniques.**
35
41
  - **`blog_writer`** — researched long-form in one call, composing `storm` and `re3` rather than carrying a private copy of their text. A copy would drift the moment either template was edited, and drift *silently*, because both paths still emit well-formed prose. `research: true` runs the persona interview first and feeds its 3 surprising answers into the four-pass write. **66 → 67 tools**; enabled in `full`, `balanced` and `research_power`.
@@ -77,7 +83,7 @@ from Claude Code, Claude Desktop, Cursor, or any MCP client.
77
83
 
78
84
  ### v2.27.1
79
85
  - **Kimi K3** (Jul 16, `moonshotai/kimi-k3`) now powers every Kimi tool, the `kimi` juror, and the Kimi seat on `diff_review`. 2.8T open-weight MoE — the largest open model shipped — with a **1M context (up from 262K)**, native multimodal input, and long-horizon agentic coding that beats Opus 4.8 and GPT-5.5 on coding/agent benchmarks. Note the price: **$3/$15 per M, 4x K2.7-Code** — K2.7-Code stays as the automatic fallback (K3 → K2.7-Code → K2.6).
80
- - **Gemini 3.6 Flash** (Jul 21, `gemini-3.6-flash`) is the new search/workhorse tier behind `gemini_search` — 1M context at **$1.50/$7.50, down from $9 output**, and ~17% fewer output tokens than 3.5 Flash. Flash-Lite moves to `gemini-3.5-flash-lite` ($0.30/$2.50).
86
+ - **Gemini 3.7 Flash** (GA Aug 13, `gemini-3.7-flash`) is the new search/workhorse tier behind `gemini_search` — 1M context at **$0.75/$3.75 intro pricing through Dec 31, 2026** (then $1.50/$7.50); `gemini-3.6-flash` stays as the fallback. Flash-Lite remains `gemini-3.5-flash-lite` ($0.30/$2.50).
81
87
  - **Everything else re-verified, unchanged** — a full provider audit (Jul 26) confirms GPT-5.6, Grok 4.5, DeepSeek V4 Pro, GLM-5.2, MiniMax M3, StepFun 3.7, ERNIE 4.5 VL, Qwen Coder-Next and Perplexity Sonar are all still the newest available. Gemini 3.1 Pro remains the reasoning/judge default: Google shipped three models on Jul 21 and **skipped 3.5 Pro**. xAI's staged rollout finished (EU access Jul 17), so the `grok-4.3` fallback is now quota/region insurance rather than a rollout workaround.
82
88
 
83
89
  ### v2.27.0
@@ -151,7 +157,7 @@ Skills automatically adapt to your configured API keys. Even with just 1-2 provi
151
157
 
152
158
  ### Multi-Model Intelligence
153
159
  - **65 AI Tools** across 12 providers &mdash; Perplexity, Grok, GPT-5, Gemini, Qwen, Kimi, MiniMax, DeepSeek, GLM (Zhipu), StepFun, ERNIE (Baidu), plus free local models (Ollama / LM Studio / llama.cpp / vLLM)
154
- - **Gemini 3.6 Flash** (`gemini-3.6-flash`, GA Jul 21 2026) &mdash; Flash/search tier; reasoning default stays `gemini-3.1-pro-preview` (Google has still not shipped a 3.5 Pro)
160
+ - **Gemini 3.7 Flash** (`gemini-3.7-flash`, GA Aug 13 2026) &mdash; Flash/search tier; reasoning default stays `gemini-3.1-pro-preview` (Google has still not shipped a 3.5 Pro)
155
161
  - **Multi-Model Council** &mdash; planner_maker synthesizes plans from 5+ models into bite-sized TDD steps
156
162
  - **Smart Routing** &mdash; Automatic model selection for optimal results
157
163
  - **OpenRouter Gateway** &mdash; Optional single API key for all providers
@@ -13,7 +13,7 @@ const KEYS = [
13
13
  { name: "OpenRouter", envVar: "OPENROUTER_API_KEY", unlocks: "DeepSeek/GLM/Kimi/Qwen/MiniMax/StepFun/ERNIE + planner (~30 tools)" },
14
14
  { name: "Perplexity", envVar: "PERPLEXITY_API_KEY", unlocks: "web research tools" },
15
15
  { name: "Gemini / Google", envVar: "GOOGLE_API_KEY", unlocks: "Gemini tools + jury judge + diff_review/plan_critique" },
16
- { name: "OpenAI", envVar: "OPENAI_API_KEY", unlocks: "GPT-5.5 tools + spec_writer" },
16
+ { name: "OpenAI", envVar: "OPENAI_API_KEY", unlocks: "OpenAI (GPT) tools + spec_writer" },
17
17
  { name: "Grok / xAI", envVar: "GROK_API_KEY", unlocks: "Grok tools + debug_triage" },
18
18
  ];
19
19
  function defaultProbe() {
@@ -6,35 +6,44 @@
6
6
  // =============================================================================
7
7
  // OPENAI MODELS (provider-based naming)
8
8
  // =============================================================================
9
- // GPT-5.6 released Jul 9, 2026 - CURRENT. Three durable tiers replace the pro/mini split:
9
+ // GPT-6 Astra released Sep 3, 2026 - CURRENT DEFAULT. `gpt-6-astra`: $10/$50 (cached $1),
10
+ // 1.05M ctx, 128K out. Verified live Sep 14, 2026 against /v1/models and /v1/responses:
11
+ // reasoning.effort accepts ONLY low|medium|high|xhigh|max ("none"/"minimal" are a 400, so
12
+ // callOpenAI maps them to "low"), and temperature must stay at the default — sending 0.7 is
13
+ // a 400. `gpt-6-astra-pro` / `gpt-astra-latest` exist on OpenRouter only (404 on the direct API).
14
+ // Rolled out to a limited set of orgs first, so callOpenAI falls back astra -> sol -> terra.
15
+ // GPT-5.6 (Jul 9, 2026) - three tiers kept as explicit picks and as Astra's runtime fallback:
10
16
  // sol (flagship $5/$30) / terra (balanced $2/$12) / luna (fast $0.20/$1.20). 1.05M ctx, 128K out.
11
17
  // Jul 30, 2026 price cut: luna -80%, terra -20%, sol unchanged. Verified Aug 12, 2026.
12
18
  // No Codex-specific API model exists (no gpt-5.6-codex / codex-max) — the CODEX* aliases
13
- // below are legacy names repointed onto the sol/terra/luna tiers.
14
- // "Pro" is no longer a model: sol + reasoning.effort (the $30/$180 gpt-5.5-pro tier is gone).
15
- // GPT-5.5 (Apr 23, 2026) kept as fallback. OpenRouter uses prefix: openai/gpt-5.6-sol etc.
19
+ // below are legacy names repointed onto current tiers.
20
+ // "Pro" is not an API model: flagship + reasoning.effort (the $30/$180 gpt-5.5-pro tier is gone).
21
+ // GPT-5.5 (Apr 23, 2026) kept as fallback. OpenRouter uses prefix: openai/gpt-6-astra etc.
16
22
  export const OPENAI_MODELS = {
17
- // GPT-5.6 tiers (Jul 9, 2026 - CURRENT)
18
- DEFAULT: "gpt-5.6-sol", // Flagship: coding/agentic SOTA, 54% more token-efficient than 5.5
19
- SOL: "gpt-5.6-sol", // Explicit tier alias (also aliased "gpt-5.6" server-side)
23
+ // GPT-6 Astra (Sep 3, 2026 - CURRENT)
24
+ DEFAULT: "gpt-6-astra", // Flagship: computer use, coding, science. $10/$50 (2x sol input)
25
+ ASTRA: "gpt-6-astra", // Explicit alias
26
+ // GPT-5.6 tiers (Jul 9, 2026)
27
+ SOL: "gpt-5.6-sol", // Previous flagship — Astra's first runtime fallback
20
28
  TERRA: "gpt-5.6-terra", // Balanced: gpt-5.5-level at $2/$12 (Jul 30, 2026 cut: -20%)
21
29
  LUNA: "gpt-5.6-luna", // Fast/cheap: $0.20/$1.20 after the Jul 30, 2026 -80% cut.
22
30
  // Now ~9x cheaper than terra, not 2.5x — worth routing to it
23
31
  // far more aggressively. (Weak long-context recall: avoid huge inputs.)
24
32
  MINI: "gpt-5.6-luna", // "mini" tier successor (was gpt-5.4-mini)
25
- PRO: "gpt-5.6-sol", // Pro tier eliminated in 5.6 — sol + reasoning.effort xhigh (was gpt-5.5-pro $30/$180)
33
+ PRO: "gpt-6-astra", // No pro API model — Astra + reasoning.effort xhigh/max (was gpt-5.5-pro $30/$180)
26
34
  // GPT-5.5 (Apr 2026) - fallback
27
35
  FALLBACK_5_5: "gpt-5.5",
28
36
  // Aliases for backward compatibility
29
- THINKING: "gpt-5.6-sol", // "Thinking" = sol with high reasoning effort
30
- FULL: "gpt-5.6-sol", // Map old FULL to DEFAULT
37
+ THINKING: "gpt-6-astra", // "Thinking" = flagship with high reasoning effort
38
+ FULL: "gpt-6-astra", // Map old FULL to DEFAULT
31
39
  CODEX: "gpt-5.6-terra", // Coding workhorse tier
32
40
  CODEX_MINI: "gpt-5.6-luna", // Cheapest tier
33
- CODEX_MAX: "gpt-5.6-sol", // Map old codex-max to flagship (use high effort)
41
+ CODEX_MAX: "gpt-6-astra", // Map old codex-max to flagship (use high effort)
34
42
  INSTANT: "gpt-5.6-luna", // Fast tier
35
43
  };
36
44
  // OpenRouter model ID mapping (add prefix when using OpenRouter gateway)
37
45
  export const OPENROUTER_PREFIX_MAP = {
46
+ "gpt-6-astra": "openai/",
38
47
  "gpt-5.6-sol": "openai/",
39
48
  "gpt-5.6-terra": "openai/",
40
49
  "gpt-5.6-luna": "openai/",
@@ -44,6 +53,7 @@ export const OPENROUTER_PREFIX_MAP = {
44
53
  };
45
54
  // OpenAI Reasoning Effort Levels (for models that support it)
46
55
  // All three GPT-5.6 tiers (sol/terra/luna) accept the full range; medium is the API default.
56
+ // gpt-6-astra rejects NONE (and "minimal") with a 400 — callOpenAI sends LOW instead.
47
57
  export const OPENAI_REASONING = {
48
58
  NONE: "none", // No extra reasoning (fastest, allows temperature)
49
59
  LOW: "low", // Light reasoning — right for grounded web-search lookups
@@ -58,24 +68,26 @@ export const OPENAI_REASONING = {
58
68
  // =============================================================================
59
69
  // GEMINI MODELS (Google)
60
70
  // =============================================================================
61
- // Gemini 3.6 Flash GA'd Jul 21, 2026 — workhorse tier, 1M ctx, $1.50/$7.50, ~17% fewer
62
- // output tokens than 3.5 Flash. It is the new FLASH/search tier. Gemini 3.5 Flash-Lite
71
+ // Gemini 3.7 Flash GA'd Aug 13, 2026 — the new workhorse/FLASH/search tier, 1M ctx,
72
+ // $0.75/$3.75 intro pricing through Dec 31, 2026 (then $1.50/$7.50). 3.6 Flash
73
+ // (Jul 21, 2026, $1.50/$7.50) stays live as the fallback. Gemini 3.5 Flash-Lite
63
74
  // shipped the same day ($0.30/$2.50) and replaces 3.1-flash-lite as the cheap tier.
64
- // Gemini 3.5 Pro STILL has not shipped (Google released three models on Jul 21 and
65
- // explicitly skipped Pro — internal perf goals unmet, "landing soon" + Gemini 4 pre-training
66
- // underway), so the reasoning DEFAULT stays on gemini-3.1-pro-preview.
75
+ // Gemini 3.5 Pro STILL has not shipped (missed its June window; "testing with partners",
76
+ // Gemini 4 pre-training underway — reverified via ai.google.dev Aug 29, 2026), so the
77
+ // reasoning DEFAULT stays on gemini-3.1-pro-preview.
67
78
  export const GEMINI_MODELS = {
68
- // Gemini 3.1 Pro - reasoning default (3.0 Pro retired Mar 9, 2026; no 3.5 Pro as of Jul 26, 2026)
79
+ // Gemini 3.1 Pro - reasoning default (3.0 Pro retired Mar 9, 2026; no 3.5 Pro as of Aug 29, 2026)
69
80
  GEMINI_3_PRO: "gemini-3.1-pro-preview", // Default: top reasoning model available
70
81
  GEMINI_3_1_PRO: "gemini-3.1-pro-preview", // Enhanced reasoning, 1M context
71
- GEMINI_3_6_FLASH: "gemini-3.6-flash", // GA Jul 21, 2026 - CURRENT flash/search tier, 1M ctx, $1.50/$7.50
82
+ GEMINI_3_7_FLASH: "gemini-3.7-flash", // GA Aug 13, 2026 - CURRENT flash/search tier, 1M ctx, $0.75/$3.75 intro
83
+ GEMINI_3_6_FLASH: "gemini-3.6-flash", // GA Jul 21, 2026 - previous flash tier (fallback), $1.50/$7.50
72
84
  GEMINI_3_5_FLASH: "gemini-3.5-flash", // GA May 19, 2026 - previous flash tier (fallback)
73
85
  GEMINI_3_FLASH: "gemini-3-flash-preview", // Legacy fast frontier (kept for model-router)
74
86
  GEMINI_3_5_FLASH_LITE: "gemini-3.5-flash-lite", // Jul 21, 2026 - cheapest tier, $0.30/$2.50
75
87
  GEMINI_3_1_FLASH_LITE: "gemini-3.1-flash-lite", // Mar 3, 2026 - previous cheap tier (legacy)
76
88
  // Aliases
77
89
  PRO: "gemini-3.1-pro-preview",
78
- FLASH: "gemini-3.6-flash", // Bumped: 3.5-flash -> 3.6-flash (Jul 21, 2026)
90
+ FLASH: "gemini-3.7-flash", // Bumped: 3.6-flash -> 3.7-flash (Aug 13, 2026 GA)
79
91
  FLASH_LITE: "gemini-3.5-flash-lite", // Bumped: 3.1-flash-lite -> 3.5-flash-lite (Jul 21, 2026)
80
92
  };
81
93
  // Perplexity Models
@@ -159,7 +171,8 @@ export const QWEN_MODELS = {
159
171
  CODER_NEXT: "qwen/qwen3-coder-next", // 80B/3B MoE, 262K ctx, SWE-Bench >70%, $0.14/$0.80 (still PRIMARY coder — no 3.6-coder yet)
160
172
  CODER_PLUS: "qwen/qwen3-coder-plus", // Code specialist (32K context)
161
173
  CODER: "qwen/qwen3-coder", // Legacy coder - 480B MoE, SWE-Bench 69.6%
162
- QWQ_32B: "qwen/qwq-32b", // Deep reasoning - CodeElo 1261
174
+ DENSE_3_8_27B: "qwen/qwen3.8-27b", // Aug 14, 2026: dense 27B reasoning, 1M ctx, reasoning_effort, $0.21/$2.55 — powers qwq_reason
175
+ QWQ_32B: "qwen/qwq-32b", // RETIRED from OpenRouter (404 "No endpoints found", Sep 14, 2026) — do NOT call
163
176
  MAX_THINKING: "qwen/qwen3-235b-a22b-thinking-2507", // 235B MoE (22B active) thinking mode - heavy reasoning
164
177
  };
165
178
  // =============================================================================
@@ -206,6 +219,8 @@ export const DEFAULT_WORKFLOW_SETTINGS = {
206
219
  // When new models release, update ONLY this section!
207
220
  // All tools automatically use the new models.
208
221
  // ============================================================================
222
+ // UPDATED Sep 14, 2026: OpenAI default gpt-5.6-sol -> gpt-6-astra (Sep 3);
223
+ // qwq_reason qwen/qwq-32b (retired from OpenRouter) -> qwen/qwen3.8-27b.
209
224
  // UPDATED Jul 26, 2026 (full provider audit):
210
225
  // Kimi K2.7-Code -> K3 (Jul 16) · Gemini Flash 3.5 -> 3.6 + Flash-Lite 3.1 -> 3.5 (Jul 21)
211
226
  // Re-verified as still-current, NOT bumped: GPT-5.6 tiers (Jul 9), Grok 4.5 (Jul 8),
@@ -213,16 +228,16 @@ export const DEFAULT_WORKFLOW_SETTINGS = {
213
228
  // StepFun 3.7, ERNIE 4.5 VL, Qwen Coder-Next, Perplexity Sonar.
214
229
  export const CURRENT_MODELS = {
215
230
  openai: {
216
- default: OPENAI_MODELS.DEFAULT, // gpt-5.6-sol - flagship, agentic/coding SOTA (Jul 2026)
217
- reason: OPENAI_MODELS.DEFAULT, // Deep reasoning (sol + effort=high)
218
- brainstorm: OPENAI_MODELS.DEFAULT, // Creative ideation (sol + effort=medium)
231
+ default: OPENAI_MODELS.DEFAULT, // gpt-6-astra - flagship (Sep 3, 2026), $10/$50
232
+ reason: OPENAI_MODELS.DEFAULT, // Deep reasoning (astra + effort=xhigh)
233
+ brainstorm: OPENAI_MODELS.DEFAULT, // Creative ideation (astra + effort=medium)
219
234
  code: OPENAI_MODELS.TERRA, // Code tasks (gpt-5.6-terra - 5.5-level at $2/$12)
220
235
  explain: OPENAI_MODELS.LUNA, // Explanations (gpt-5.6-luna - $0.20/$1.20, fast)
221
236
  search: OPENAI_MODELS.TERRA, // Web search: $10/1k call fee is flat across tiers,
222
237
  // so terra ($2/$12) does grounded lookup at 2.5x less
223
238
  // token cost than sol. All 5.6 tiers support web_search.
224
- // Premium: the 5.5-pro tier ($30/$180) is gone — sol + effort=max replaces it at $5/$30
225
- premium: OPENAI_MODELS.PRO, // Expert mode (gpt-5.6-sol + reasoning.effort=max)
239
+ // Premium: the 5.5-pro tier ($30/$180) is gone — astra + effort=max replaces it at $10/$50
240
+ premium: OPENAI_MODELS.PRO, // Expert mode (gpt-6-astra + reasoning.effort=max)
226
241
  },
227
242
  grok: {
228
243
  reason: GROK_MODELS._4_5, // grok-4.5 (Jul 2026 flagship, high reasoning effort)
@@ -405,6 +420,7 @@ export const DEFAULT_WORKFLOW_TOOL = "openai_brainstorm";
405
420
  // Used in tool outputs, usage stats, logs - keeps display consistent
406
421
  export const MODEL_DISPLAY_NAMES = {
407
422
  // OpenAI
423
+ "gpt-6-astra": "gpt-6-astra",
408
424
  "gpt-5.6-sol": "gpt-5.6-sol",
409
425
  "gpt-5.6-terra": "gpt-5.6-terra",
410
426
  "gpt-5.6-luna": "gpt-5.6-luna",
@@ -416,6 +432,7 @@ export const MODEL_DISPLAY_NAMES = {
416
432
  "gpt-5.4-pro": "gpt-5.4-pro",
417
433
  // Gemini
418
434
  "gemini-3.1-pro-preview": "gemini-3.1-pro",
435
+ "gemini-3.7-flash": "gemini-3.7-flash",
419
436
  "gemini-3.6-flash": "gemini-3.6-flash",
420
437
  "gemini-3.5-flash-lite": "gemini-3.5-flash-lite",
421
438
  "gemini-3.5-flash": "gemini-3.5-flash",
@@ -453,6 +470,7 @@ export const MODEL_DISPLAY_NAMES = {
453
470
  "qwen/qwen3-coder-plus": "qwen-coder",
454
471
  "qwen/qwen3-coder": "qwen-coder",
455
472
  "qwen/qwq-32b": "qwq-32b",
473
+ "qwen/qwen3.8-27b": "qwen3.8-27b",
456
474
  "qwen/qwen3-max-thinking": "qwen-max",
457
475
  "qwen/qwen3-235b-a22b-thinking-2507": "qwen-235b-thinking",
458
476
  // MiniMax
@@ -468,6 +486,7 @@ export function getModelDisplayName(modelId) {
468
486
  // Model pricing per 1K tokens (input/output average) for cost tracking
469
487
  export const MODEL_PRICING = {
470
488
  // OpenAI
489
+ "gpt-6-astra": 0.030, // ($10 + $50) / 2 / 1000 (Sep 3, 2026 - current default)
471
490
  "gpt-5.6-sol": 0.0175, // ($5 + $30) / 2 / 1000 (unchanged in the Jul 30 cut)
472
491
  "gpt-5.6-terra": 0.007, // ($2 + $12) / 2 / 1000 (Jul 30, 2026 cut: -20%)
473
492
  "gpt-5.6-luna": 0.0007, // ($0.20 + $1.20) / 2 / 1000 (Jul 30, 2026 cut: -80%)
@@ -478,7 +497,8 @@ export const MODEL_PRICING = {
478
497
  "gpt-5.4-pro": 0.105, // ($30 + $180) / 2 / 1000 (Mar 2026)
479
498
  // Gemini
480
499
  "gemini-3.1-pro-preview": 0.007, // ($2 + $12) / 2 / 1000
481
- "gemini-3.6-flash": 0.0045, // ($1.50 + $7.50) / 2 / 1000 (GA Jul 21, 2026)
500
+ "gemini-3.7-flash": 0.00225, // ($0.75 + $3.75) / 2 / 1000 intro through Dec 31, 2026 (then $1.50/$7.50)
501
+ "gemini-3.6-flash": 0.0045, // ($1.50 + $7.50) / 2 / 1000 (GA Jul 21, 2026 - fallback)
482
502
  "gemini-3.5-flash-lite": 0.0014, // ($0.30 + $2.50) / 2 / 1000 (Jul 21, 2026)
483
503
  "gemini-3.5-flash": 0.00525, // ($1.50 + $9) / 2 / 1000 (GA May 19, 2026 - fallback)
484
504
  "gemini-3-flash-preview": 0.00175, // ($0.50 + $3) / 2 / 1000 (legacy)
@@ -516,6 +536,7 @@ export const MODEL_PRICING = {
516
536
  "qwen/qwen3-coder-plus": 0.0005,
517
537
  "qwen/qwen3-coder": 0.0003,
518
538
  "qwen/qwq-32b": 0.001,
539
+ "qwen/qwen3.8-27b": 0.001382, // ($0.214 + $2.55) / 2 / 1000 (Aug 14, 2026)
519
540
  "qwen/qwen3-max-thinking": 0.005,
520
541
  "qwen/qwen3-235b-a22b-thinking-2507": 0.000822, // ($0.15 + $1.50) / 2 / 1000
521
542
  // OpenRouter models - MiniMax (VERY CHEAP!)
@@ -17,9 +17,9 @@ import { GEMINI_MODELS, OPENAI_MODELS, GROK_MODELS, PERPLEXITY_MODELS, KIMI_MODE
17
17
  const MODELS = {
18
18
  // Google Gemini
19
19
  GEMINI: GEMINI_MODELS.GEMINI_3_PRO, // gemini-3.1-pro-preview
20
- // OpenAI (GPT-5.5)
21
- OPENAI: OPENAI_MODELS.THINKING, // gpt-5.5 (default - most capable, agentic)
22
- OPENAI_REASON: OPENAI_MODELS.THINKING, // gpt-5.5 (deep reasoning)
20
+ // OpenAI (GPT-6 Astra)
21
+ OPENAI: OPENAI_MODELS.THINKING, // gpt-6-astra (default - most capable, agentic)
22
+ OPENAI_REASON: OPENAI_MODELS.THINKING, // gpt-6-astra (deep reasoning)
23
23
  // xAI Grok
24
24
  GROK: GROK_MODELS._4_3, // grok-4.3 (Apr 2026 flagship, 1M ctx, $1.25/$2.50)
25
25
  // Perplexity
@@ -11,7 +11,7 @@ export var ModelTier;
11
11
  // Tier 0: Cheapest — Gemini 3.5 Flash-Lite ($0.30/$2.50, Jul 21 2026)
12
12
  ModelTier["ULTRA_CHEAP"] = "gemini-3.5-flash-lite";
13
13
  // Tier 1: Fast & Efficient
14
- ModelTier["ULTRA_EFFICIENT"] = "gemini-3.6-flash";
14
+ ModelTier["ULTRA_EFFICIENT"] = "gemini-3.7-flash";
15
15
  ModelTier["EFFICIENT"] = "gpt-5.6-luna";
16
16
  // Tier 2: Balanced — gpt-5.6-terra is gpt-5.5-level at $2/$12
17
17
  ModelTier["STANDARD"] = "gpt-5.6-terra";
@@ -25,6 +25,8 @@ export var ModelTier;
25
25
  // falls through to estimateCost()'s flat $0.001 default, so every routable tier above
26
26
  // MUST have an entry.
27
27
  const MODEL_COSTS = {
28
+ // GPT-6 Astra (Sep 3, 2026) — current OpenAI default. Latency is an estimate, not measured.
29
+ "gpt-6-astra": { input: 0.010, output: 0.050, latency: 2400 },
28
30
  // GPT-5.6 family (Jul 9, 2026; terra/luna repriced Jul 30, 2026)
29
31
  "gpt-5.6-sol": { input: 0.005, output: 0.030, latency: 2200 }, // Flagship
30
32
  "gpt-5.6-terra": { input: 0.002, output: 0.012, latency: 1300 }, // Balanced (-20%)
@@ -36,6 +38,7 @@ const MODEL_COSTS = {
36
38
  "gpt-5.4-mini": { input: 0.00075, output: 0.0045, latency: 800 },
37
39
  "gpt-5.4-pro": { input: 0.030, output: 0.180, latency: 2500 },
38
40
  // Gemini
41
+ "gemini-3.7-flash": { input: 0.00075, output: 0.00375, latency: 600 }, // Aug 13, 2026 (intro pricing through Dec 31, 2026)
39
42
  "gemini-3.6-flash": { input: 0.0015, output: 0.0075, latency: 600 }, // Jul 21, 2026
40
43
  "gemini-3.5-flash-lite": { input: 0.0003, output: 0.0025, latency: 400 }, // Jul 21, 2026
41
44
  "gemini-3.5-flash": { input: 0.0015, output: 0.009, latency: 600 }, // May 19, 2026
@@ -58,18 +58,22 @@ export class VisualizationService {
58
58
  // same step list four times (cascade, flow, progress reel, table) plus a
59
59
  // metadata block and faux "gradient" boxes — a wall of duplicated scaffold.
60
60
  // MCP clients render markdown, so a single table IS the visualization.
61
+ // Ids look like "session_<timestamp>_<hex>", so slicing the front only ever
62
+ // showed the literal "session_" — display the distinctive hex tail instead.
63
+ const shortId = session.id.split('_').pop()?.slice(0, 8) ?? session.id;
61
64
  const lines = [];
62
65
  lines.push(`**Collaborative Reasoning** · ${session.objective}`);
63
66
  lines.push(`${session.domain} · ${this.modelTurnTaking ? 'sequential' : 'parallel'} · ` +
64
- `step ${Math.min(done + 1, steps.length)}/${steps.length} · \`${session.id.slice(0, 8)}\``);
67
+ `step ${Math.min(done + 1, steps.length)}/${steps.length} · \`${shortId}\``);
65
68
  lines.push('');
66
- // One table: status · mode · model, in order. The mode already conveys each
69
+ // One table: status+number · mode · model. The mode already conveys each
67
70
  // step's job, so no "Role" column (its half-filled "AI" fallback is the bit
68
- // that read as generic). Status marks done (✓) / current (▸) / pending (·).
71
+ // that read as generic). Status marks done (✓) / current (▸) / pending (·)
72
+ // and shares the # column. Cells stay emoji-free: terminal renderers count
73
+ // emoji as 1–2 columns inconsistently, which skews every table border.
69
74
  const tableData = steps.map((step, idx) => ({
70
- '#': String(idx + 1),
71
- '': idx < done ? '✓' : idx === done ? '▸' : '·',
72
- Step: `${this.getModeIcon(step.mode)} ${step.mode}`,
75
+ '#': `${idx < done ? '✓' : idx === done ? '▸' : '·'} ${idx + 1}`,
76
+ Step: step.mode,
73
77
  Model: step.model,
74
78
  }));
75
79
  lines.push(renderTable(tableData));
@@ -78,7 +78,7 @@ function buildPanel() {
78
78
  if (hasOpenAIApiKey()) {
79
79
  panel.push({
80
80
  key: "gpt",
81
- label: "GPT-5.6 Sol (intent & API-contract)",
81
+ label: "GPT-6 Astra (intent & API-contract)",
82
82
  call: (q) => callOpenAI([
83
83
  { role: "system", content: `You review diffs for intent mismatches and API-contract breaks (types, error paths, backward compatibility). ${FORMAT_INSTRUCTION}` },
84
84
  { role: "user", content: q },
@@ -63,7 +63,7 @@ function suggestFirstStep() {
63
63
  return ' deepseek_reason query="..." (frontier open-weight reasoning)';
64
64
  }
65
65
  if (openai) {
66
- return ' openai_reason query="..." (GPT-5.5 deep reasoning)';
66
+ return ' openai_reason query="..." (OpenAI deep reasoning)';
67
67
  }
68
68
  if (gemini) {
69
69
  return ' gemini_brainstorm query="..." (fast ideation)';
@@ -66,21 +66,22 @@ export async function callGrokEnhanced(messages, options = {}) {
66
66
  throw new Error(`Grok API error: ${response.statusText} - ${error}`);
67
67
  }
68
68
  const data = await response.json();
69
- // Responses API format: output[] contains web_search_call entries and a message entry
70
- // Structure: { output: [{ type: "web_search_call", ... }, { type: "message", content: [{ type: "output_text", text: "...", annotations: [...] }] }] }
71
- let content = "No response from Grok";
72
- let sources = [];
69
+ // Responses API format: output[] interleaves reasoning, web_search_call and
70
+ // MULTIPLE "message" entries — agentic runs emit a preamble message ("I'll
71
+ // search…"), run the searches, then emit the ANSWER as a later message.
72
+ // .find() took the first message, so any narrated run returned the plan and
73
+ // dropped the answer. Collect text + citations from EVERY message, in order.
74
+ const texts = [];
75
+ const sources = [];
73
76
  if (data.output && Array.isArray(data.output)) {
74
- // Find the message output (skip web_search_call entries)
75
- const messageOutput = data.output.find((o) => o.type === "message");
76
- if (messageOutput?.content && Array.isArray(messageOutput.content)) {
77
- // Extract text from output_text content
78
- content = messageOutput.content
79
- .filter((c) => c.type === "output_text")
80
- .map((c) => c.text)
81
- .join("\n");
82
- // Extract citations from annotations (NOT from top-level data.citations!)
77
+ for (const messageOutput of data.output) {
78
+ if (messageOutput?.type !== "message" || !Array.isArray(messageOutput.content))
79
+ continue;
83
80
  for (const contentItem of messageOutput.content) {
81
+ if (contentItem.type === "output_text" && contentItem.text) {
82
+ texts.push(contentItem.text);
83
+ }
84
+ // Extract citations from annotations (NOT from top-level data.citations!)
84
85
  if (contentItem.annotations && Array.isArray(contentItem.annotations)) {
85
86
  for (const annotation of contentItem.annotations) {
86
87
  if (annotation.type === "url_citation") {
@@ -94,6 +95,15 @@ export async function callGrokEnhanced(messages, options = {}) {
94
95
  }
95
96
  }
96
97
  }
98
+ // No visible text is a FAILURE (e.g. status:"incomplete" when reasoning
99
+ // exhausted max_output_tokens) — throw so the catch surfaces a real error
100
+ // instead of a fake "No response from Grok" success.
101
+ if (texts.length === 0) {
102
+ const reason = data.incomplete_details?.reason;
103
+ throw new Error(`${model} returned no visible text on /v1/responses ` +
104
+ `(status: ${data.status ?? 'unknown'}${reason ? `, reason: ${reason}` : ''})`);
105
+ }
106
+ const content = texts.join("\n\n");
97
107
  return {
98
108
  content,
99
109
  sources,