tachibot-mcp 2.27.0 → 2.28.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 +49 -0
- package/README.md +16 -4
- package/dist/src/config/model-constants.js +52 -25
- package/dist/src/config/model-defaults.js +1 -1
- package/dist/src/config/timeout-config.js +4 -3
- package/dist/src/tools/diff-review-tool.js +6 -6
- package/dist/src/tools/jury-tool.js +7 -4
- package/dist/src/tools/openai-tools.js +39 -11
- package/dist/src/tools/openrouter-tools.js +36 -23
- package/dist/src/tools/provider-catalog.js +1 -1
- package/dist/src/tools/registry.js +1 -1
- package/dist/src/utils/ansi-styles.js +24 -16
- package/docs/TOOLS_REFERENCE.md +6 -6
- package/docs/TOOL_PARAMETERS.md +1 -1
- package/package.json +1 -1
- package/skills/lens/SKILL.md +3 -3
- package/skills/review/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,55 @@ 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.28.0] - 2026-08-03
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Qwen3.8 Max** (`qwen/qwen3.8-max`) registered in `OpenRouterModel` and `QWEN_MODELS`. Alibaba's flagship 3.8-series model, general-availability on OpenRouter as of today (Aug 3, 2026). 1M context (up from the 262K of the model it replaces), multimodal input (text+image+video), 131K max completion, $2/$6 per M with cache reads at $0.25/M. It is the **first Qwen model exposing `reasoning_effort`**.
|
|
12
|
+
- **`reasoning_effort` option on `callOpenRouter`** (`"low" | "medium" | "high"`) — forwarded to the OpenRouter request body only when set. OpenRouter drops the parameter for models that don't list it in `supported_parameters`, so the quota-fallback chain stays safe.
|
|
13
|
+
- **`qwen/qwen3.7-max`** registered as the intermediate fallback tier.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- **`qwen_algo` and `qwen_reason` move to Qwen3.8 Max** (from `qwen/qwen3-235b-a22b-thinking-2507`). Verified live against a range-query algorithm problem (offline BIT / persistent segment tree): 3.8 Max produced the most complete answer of the five Qwen candidates tested — the only one to flag both the offline-vs-online tradeoff and the strict-inequality-with-duplicates edge case. The outgoing 235B Thinking model was correct but shallow; `qwen3.7-max` cost 1.6x for twice the wall time. `qwen/qwen3-max-thinking` was rejected outright: it returns 0 reasoning tokens, so its fast/cheap result is not a thinking pass.
|
|
17
|
+
- **`reasoning_effort` is pinned to `"medium"` on every Qwen3.8 call site — never left unset.** Measured on one `qwen_algo` call with the full tool prompt: default effort 302s / 14991 completion tokens / $0.091, `high` 353s / 17521 tokens / $0.106, `medium` 48s / $0.018, `low` 38s / $0.014. On the quality probe, `medium` (18s, $0.006) hit both depth markers that `high` did, while `low` dropped the online-alternative discussion. For reference the outgoing 235B model took 169s and $0.036 on the same prompt for a *shorter* answer — so `medium` is faster, cheaper, and deeper than what it replaces, while the default would have been a 6x latency and 2.5x cost regression.
|
|
18
|
+
- **Output budget for both tools raised 8000 → 12000 tokens** — headroom for the visible answer. Note that reasoning tokens are billed as completion tokens but are *not* charged against `max_tokens` by this provider (a 12000-cap call returned 17521 completion tokens).
|
|
19
|
+
- **`qwen_reason` juror** (`jury-tool.ts`) also moves to Qwen3.8 Max, likewise pinned to `"medium"` — the panel waits on its slowest juror, and default effort would have parked it at ~5 minutes.
|
|
20
|
+
- **`MODEL_FALLBACKS`**: `qwen3.8-max` → `qwen3.7-max` → `qwen3-235b-a22b-thinking-2507`.
|
|
21
|
+
- **`getOpenRouterModelTimeout()`** now routes `qwen3.8` and `qwen3.7-max` to the 600s extended bucket — neither ID contains `thinking`/`reasoning`, so they would otherwise have inherited the 180s default despite being reasoning models.
|
|
22
|
+
- **`TOOL_DEFAULTS.qwen_algo` / `.qwen_reason`** and `CURRENT_MODELS.openrouter.qwen_reason` updated to match the wired values.
|
|
23
|
+
- Tool description and system prompt for `qwen_reason` renamed from "Qwen3-Max-Thinking (>1T params, 98% HMMT)" to Qwen3.8 Max; golden tool-contract snapshot regenerated (this description is the only contract change — tool count stays 65).
|
|
24
|
+
|
|
25
|
+
### Unchanged
|
|
26
|
+
- **`qwen_coder`, `qwen_competitive`, and `testgen` stay on `qwen3-coder-next`** — it is coding-specialized and ~16x cheaper ($0.12/$0.80 vs $2/$6). Qwen3.8 Max is the reasoning tier, not the codegen tier.
|
|
27
|
+
- `deepseek_algo` (DeepSeek V4 Pro) remains the primary recommendation for algorithmic review; `qwen_algo` is now a stronger runner-up.
|
|
28
|
+
|
|
29
|
+
## [2.27.1] - 2026-07-26
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- **Kimi K2.7-Code → K3** (`moonshotai/kimi-k3`, released Jul 16 on OpenRouter, verified via WebSearch + grok_search against OpenRouter/Moonshot docs): 2.8T-parameter open-weight MoE — the largest open model shipped — built for long-horizon coding, reasoning, and agent workflows. 1M-token context (up from 262K), native multimodal, tool calls, structured outputs. Beats Claude Opus 4.8 and GPT-5.5 on coding and general-agent benchmarks. List price **$3/$15 per M (4x K2.7-Code's $0.75/$3.50)** — accepted per the repo's quality-over-cost model strategy. Now powers all Kimi tools — `kimi_thinking`, `kimi_code`, `kimi_decompose`, `kimi_long_context` (`openrouter-tools.ts`), the `kimi` juror (`jury-tool.ts`), and the Kimi seat on the `diff_review` panel. K2.7-Code kept as quota fallback via `MODEL_FALLBACKS` (K3 → K2.7-Code → K2.6 → K2-Thinking); the `kimi` substring already routes K3 to the 600s reasoning timeout (regression test extended).
|
|
33
|
+
- **Gemini Flash 3.5 → 3.6** (`gemini-3.6-flash`, GA Jul 21): the new workhorse/search tier — 1M ctx, **$1.50/$7.50 (down from $9 output)**, ~17% fewer output tokens than 3.5 Flash. Powers `gemini_search` and the `"flash"` choice in the workflow tool-mapper. 3.5 Flash kept as the previous tier.
|
|
34
|
+
- **Gemini Flash-Lite 3.1 → 3.5** (`gemini-3.5-flash-lite`, Jul 21, $0.30/$2.50) — catalog/pricing entry only; no tool calls this tier today.
|
|
35
|
+
- **Qwen general-purpose constant 3.6-Plus → 3.7-Plus** (`qwen/qwen3.7-plus`, Jun 3, 1M ctx, multimodal, $0.32/$1.28) — catalog/pricing entry only; `QWEN_MODELS.PLUS_*` is not wired to any tool (the Qwen tools use `CODER_NEXT` and `MAX_THINKING`).
|
|
36
|
+
- **`diff_review` panel label corrected** — the OpenAI seat was labelled "GPT-5.5" while already calling `OPENAI_MODELS.DEFAULT` (`gpt-5.6-sol`). Label and tool description now say GPT-5.6 Sol; no model change.
|
|
37
|
+
|
|
38
|
+
### Notes
|
|
39
|
+
Full provider audit run Jul 26, 2026 — every model in `model-constants.ts` checked against live provider docs/OpenRouter. Verified current, **no bump needed**:
|
|
40
|
+
- **GPT-5.6** (sol/terra/luna, Jul 9) — no GPT-5.7. Only `gpt-realtime-2.1` (specialized voice) shipped since.
|
|
41
|
+
- **Grok 4.5** (Jul 8) — no Grok 4.6/5; Grok 5 has no confirmed date. xAI's staged rollout completed (EU access Jul 17), so the `grok-4.3` fallback is now quota/region insurance rather than a rollout workaround.
|
|
42
|
+
- **Gemini 3.1 Pro** stays the reasoning/judge default — Google shipped three models on Jul 21 (3.6 Flash, 3.5 Flash-Lite, 3.5 Flash Cyber) and **explicitly skipped 3.5 Pro**; it missed internal perf goals, with Gemini 4 pre-training already underway.
|
|
43
|
+
- **DeepSeek V4 Pro/Flash** — V4 went GA Jul 20; `deepseek/deepseek-v4-pro` is unchanged and no V5/R2 is announced. DeepSeek's Jul 24 alias retirement only affects direct-API `deepseek-chat`/`deepseek-reasoner`, which this repo never calls (all DeepSeek traffic goes through OpenRouter).
|
|
44
|
+
- **GLM-5.2** — current; GLM-5.5 is an unconfirmed August target with no published endpoint.
|
|
45
|
+
- **MiniMax M3**, **StepFun Step 3.7 Flash**, **ERNIE 4.5 VL** — all still the newest available on OpenRouter (no ERNIE 5.x listing).
|
|
46
|
+
- **Perplexity** `sonar` / `sonar-pro` / `sonar-reasoning-pro` — naming unchanged.
|
|
47
|
+
- **Qwen coder** stays `qwen3-coder-next`; no `qwen4-coder` exists on OpenRouter. `qwen_reason`/`qwen_algo` deliberately stay on `qwen3-235b-a22b-thinking-2507` — Qwen3.7-Max is newer and agent-tuned, but publishes no thinking/reasoning mode, so swapping a dedicated reasoning model for it would risk a regression on the math/CP workloads those tools serve.
|
|
48
|
+
|
|
49
|
+
Second-pass sweep of the remaining constants (Jul 27) — all confirmed already-newest, nothing bumpable:
|
|
50
|
+
- **Qwen 4 Coder** (Jun 2, 32B-A3B, ~82% SWE-Verified) is real but is **not listed on OpenRouter** — no callable ID across its 76-model Qwen catalog — so it is unreachable on the gateway every Qwen tool uses. `qwen3-coder-next` remains the newest dedicated Qwen coder.
|
|
51
|
+
- **QwQ line** has no successor: only `qwen/qwq-32b` and the older `qwq-32b-preview` exist; Qwen3+ superseded the line for reasoning.
|
|
52
|
+
- **Grok specialists** verified against docs.x.ai: `grok-build-0.1` is still the only Grok Build model string (the "v0.2.73" in release notes is the *agent product*, not the model), and `grok-code-fast-2` is unannounced.
|
|
53
|
+
- **ERNIE 5.1** still has no published weights, no Hugging Face repo, and no OpenRouter listing — it is Qianfan-API-only, so `baidu/ernie-4.5-vl-424b-a47b` stays.
|
|
54
|
+
- **Grok 4.6** is the next expected bump: 2T params, confirmed by Musk Jul 18, pre-training finished the week of Jul 20, ETA "~2 weeks" (early Aug), with 4.7 ~2 weeks behind. No ID/pricing/context published yet — a watch note now sits in `GROK_MODELS`.
|
|
55
|
+
- K3's weights were due under a Modified MIT license by Jul 27; the API is live regardless, so this bump does not depend on the weight drop.
|
|
56
|
+
|
|
8
57
|
## [2.23.3] - 2026-06-17
|
|
9
58
|
|
|
10
59
|
### Changed
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
### Multi-Model AI Orchestration Platform
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/tachibot-mcp)
|
|
8
8
|
[](#-tool-ecosystem-65-tools)
|
|
9
9
|
[](LICENSE)
|
|
10
10
|
[](https://nodejs.org)
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
**65 AI tools. 12 providers. One protocol.**
|
|
14
14
|
|
|
15
|
-
Orchestrate Perplexity, Grok, GPT-5.
|
|
15
|
+
Orchestrate Perplexity, Grok 4.5, GPT-5.6, 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) · [View Tools](#-tool-ecosystem-65-tools) · [Documentation](https://tachibot.com/docs)
|
|
@@ -30,6 +30,18 @@ from Claude Code, Claude Desktop, Cursor, or any MCP client.
|
|
|
30
30
|
|
|
31
31
|
## What's New
|
|
32
32
|
|
|
33
|
+
### v2.28.0
|
|
34
|
+
- **Qwen3.8 Max** (Aug 3, `qwen/qwen3.8-max`) — Alibaba's new flagship, GA the same day, now powers `qwen_algo`, `qwen_reason`, and the `qwen_reason` juror. **1M context (up from 262K)**, multimodal (text+image+video in), and the first Qwen exposing **configurable reasoning effort**. $2/$6 per M.
|
|
35
|
+
- **Measured on a range-query algorithm problem**, 3.8 Max was the only one of five Qwen candidates to surface both the offline-vs-online tradeoff and the strict-inequality-with-duplicates edge case. The outgoing `qwen3-235b-a22b-thinking-2507` was correct but shallow; `qwen3.7-max` cost 1.6x for twice the wall time; `qwen3-max-thinking` was rejected outright — it returns zero reasoning tokens.
|
|
36
|
+
- **Effort is pinned to `medium`, deliberately.** This model's *default* effort behaves like `high`: 302s and $0.09 on a single `qwen_algo` call. At `medium` the same call answers at equal depth in 18–48s for $0.006–0.018 — cheaper *and* 3.5x faster than the model it replaces, which took 169s and $0.036 for a shorter answer. `low` starts dropping alternatives and is not used.
|
|
37
|
+
- **`reasoning_effort` pass-through for OpenRouter** — `callOpenRouter` now forwards the parameter; OpenRouter drops it for models that don't list it, so the quota fallback chain (3.8 Max → 3.7 Max → 235B Thinking) stays safe. Qwen3.8/3.7-Max also join the 600s extended-timeout bucket.
|
|
38
|
+
- **`qwen_coder`, `qwen_competitive`, `testgen` stay on Qwen3-Coder-Next** — it is coding-specialized and ~16x cheaper ($0.12/$0.80); 3.8 Max is the reasoning tier, not the codegen tier.
|
|
39
|
+
|
|
40
|
+
### v2.27.1
|
|
41
|
+
- **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).
|
|
42
|
+
- **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).
|
|
43
|
+
- **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.
|
|
44
|
+
|
|
33
45
|
### v2.27.0
|
|
34
46
|
- **Grok 4.5** (Jul 8 flagship, "Opus-class") now powers all Grok tools, with automatic fallback to `grok-4.3` while xAI's region-staged rollout completes (EU mid-July) — tools keep working everywhere, and 4.5 activates by itself.
|
|
35
47
|
- **`grok_search_lite`** (new tool, 65 total) — the same Grok live search on `grok-4-1-fast` ($0.20/$0.50, 2M ctx), ~10x cheaper than `grok_search`. Use it for high-volume lookups and jury/council fan-outs.
|
|
@@ -81,7 +93,7 @@ TachiBot ships with 19 slash commands for Claude Code. These orchestrate the too
|
|
|
81
93
|
| `/decompose` | Split into sub-problems, deep-dive each one | `/decompose implement collaborative editor` |
|
|
82
94
|
| `/prompt` | Recommend the right thinking technique (31 available) | `/prompt why do users churn` |
|
|
83
95
|
| `/algo` | Algorithm analysis with 4 specialized models (DeepSeek lead) | `/algo optimize LRU cache O(1)` |
|
|
84
|
-
| `/lens` | Long-context analysis over Kimi's
|
|
96
|
+
| `/lens` | Long-context analysis over Kimi's 1M window | `/lens find inconsistencies in this spec` |
|
|
85
97
|
| `/reflect` | Grounded reflexion loop — critique vs external evidence | `/reflect harden this auth middleware` |
|
|
86
98
|
| `/tot` | Tree-of-Thought: branch → jury-prune → synthesize | `/tot design a rate limiter` |
|
|
87
99
|
| `/review` | Multi-model diff review — panel + Gemini judge verdict | `/review` (or paste a diff) |
|
|
@@ -101,7 +113,7 @@ Skills automatically adapt to your configured API keys. Even with just 1-2 provi
|
|
|
101
113
|
|
|
102
114
|
### Multi-Model Intelligence
|
|
103
115
|
- **65 AI Tools** across 12 providers — Perplexity, Grok, GPT-5, Gemini, Qwen, Kimi, MiniMax, DeepSeek, GLM (Zhipu), StepFun, ERNIE (Baidu), plus free local models (Ollama / LM Studio / llama.cpp / vLLM)
|
|
104
|
-
- **Gemini 3.
|
|
116
|
+
- **Gemini 3.6 Flash** (`gemini-3.6-flash`, GA Jul 21 2026) — Flash/search tier; reasoning default stays `gemini-3.1-pro-preview` (Google has still not shipped a 3.5 Pro)
|
|
105
117
|
- **Multi-Model Council** — planner_maker synthesizes plans from 5+ models into bite-sized TDD steps
|
|
106
118
|
- **Smart Routing** — Automatic model selection for optimal results
|
|
107
119
|
- **OpenRouter Gateway** — Optional single API key for all providers
|
|
@@ -49,20 +49,25 @@ export const OPENAI_REASONING = {
|
|
|
49
49
|
// =============================================================================
|
|
50
50
|
// GEMINI MODELS (Google)
|
|
51
51
|
// =============================================================================
|
|
52
|
-
// Gemini 3.
|
|
53
|
-
// It is the new FLASH/search tier. Gemini 3.5
|
|
54
|
-
//
|
|
52
|
+
// Gemini 3.6 Flash GA'd Jul 21, 2026 — workhorse tier, 1M ctx, $1.50/$7.50, ~17% fewer
|
|
53
|
+
// output tokens than 3.5 Flash. It is the new FLASH/search tier. Gemini 3.5 Flash-Lite
|
|
54
|
+
// shipped the same day ($0.30/$2.50) and replaces 3.1-flash-lite as the cheap tier.
|
|
55
|
+
// Gemini 3.5 Pro STILL has not shipped (Google released three models on Jul 21 and
|
|
56
|
+
// explicitly skipped Pro — internal perf goals unmet, "landing soon" + Gemini 4 pre-training
|
|
57
|
+
// underway), so the reasoning DEFAULT stays on gemini-3.1-pro-preview.
|
|
55
58
|
export const GEMINI_MODELS = {
|
|
56
|
-
// Gemini 3.1 Pro - reasoning default (3.0 Pro retired Mar 9, 2026)
|
|
59
|
+
// Gemini 3.1 Pro - reasoning default (3.0 Pro retired Mar 9, 2026; no 3.5 Pro as of Jul 26, 2026)
|
|
57
60
|
GEMINI_3_PRO: "gemini-3.1-pro-preview", // Default: top reasoning model available
|
|
58
61
|
GEMINI_3_1_PRO: "gemini-3.1-pro-preview", // Enhanced reasoning, 1M context
|
|
59
|
-
|
|
62
|
+
GEMINI_3_6_FLASH: "gemini-3.6-flash", // GA Jul 21, 2026 - CURRENT flash/search tier, 1M ctx, $1.50/$7.50
|
|
63
|
+
GEMINI_3_5_FLASH: "gemini-3.5-flash", // GA May 19, 2026 - previous flash tier (fallback)
|
|
60
64
|
GEMINI_3_FLASH: "gemini-3-flash-preview", // Legacy fast frontier (kept for model-router)
|
|
61
|
-
|
|
65
|
+
GEMINI_3_5_FLASH_LITE: "gemini-3.5-flash-lite", // Jul 21, 2026 - cheapest tier, $0.30/$2.50
|
|
66
|
+
GEMINI_3_1_FLASH_LITE: "gemini-3.1-flash-lite", // Mar 3, 2026 - previous cheap tier (legacy)
|
|
62
67
|
// Aliases
|
|
63
68
|
PRO: "gemini-3.1-pro-preview",
|
|
64
|
-
FLASH: "gemini-3.
|
|
65
|
-
FLASH_LITE: "gemini-3.
|
|
69
|
+
FLASH: "gemini-3.6-flash", // Bumped: 3.5-flash -> 3.6-flash (Jul 21, 2026)
|
|
70
|
+
FLASH_LITE: "gemini-3.5-flash-lite", // Bumped: 3.1-flash-lite -> 3.5-flash-lite (Jul 21, 2026)
|
|
66
71
|
};
|
|
67
72
|
// Perplexity Models
|
|
68
73
|
export const PERPLEXITY_MODELS = {
|
|
@@ -70,11 +75,15 @@ export const PERPLEXITY_MODELS = {
|
|
|
70
75
|
SONAR_PRO: "sonar-pro", // Advanced search
|
|
71
76
|
SONAR_REASONING: "sonar-reasoning-pro", // Reasoning model (expensive - avoid)
|
|
72
77
|
};
|
|
73
|
-
// Grok Models (xAI) -
|
|
78
|
+
// Grok Models (xAI) - Re-verified 2026-07-27 against docs.x.ai: Grok 4.5 is still the flagship.
|
|
79
|
+
// NEXT BUMP CANDIDATE: Grok 4.6 (2T params) was confirmed by Musk on Jul 18, finished pre-training
|
|
80
|
+
// the week of Jul 20, and was given a "~2 weeks" ETA — so expect it early Aug 2026, with 4.7 ~2 weeks
|
|
81
|
+
// behind it. Nothing is official yet (no ID, pricing, or context window). Check before bumping.
|
|
82
|
+
// Also verified absent: grok-code-fast-2 (unannounced) and grok-build-0.2 (docs still list 0.1 only).
|
|
74
83
|
export const GROK_MODELS = {
|
|
75
84
|
// Grok 4.5 (Jul 8, 2026) - CURRENT FLAGSHIP ("Opus-class")
|
|
76
85
|
// 500K context (SMALLER than 4.3's 1M — fine for tools, mind huge inputs), $2/$6,
|
|
77
|
-
// configurable reasoning effort. EU API
|
|
86
|
+
// configurable reasoning effort. EU API access landed Jul 17, 2026 — 4.3 kept as quota/region fallback.
|
|
78
87
|
_4_5: "grok-4.5", // Flagship: 500K ctx, $2/$6, reasoning.effort low|high
|
|
79
88
|
// Grok 4.3 (Apr 30, 2026) - previous flagship, kept as FALLBACK
|
|
80
89
|
// 1M context, $1.25/$2.50, lowest verified hallucination rate.
|
|
@@ -97,13 +106,17 @@ export const GROK_MODELS = {
|
|
|
97
106
|
_3: "grok-3", // Legacy with search: 256K→2M
|
|
98
107
|
};
|
|
99
108
|
// Kimi Models (Moonshot AI via OpenRouter)
|
|
100
|
-
//
|
|
109
|
+
// K3 released Jul 16, 2026 - 2.8T open-weight MoE, largest open model shipped; 1M ctx, native multimodal,
|
|
110
|
+
// long-horizon agentic coding (beats Opus 4.8 / GPT-5.5 on coding+agent benchmarks). $3/$15 per M.
|
|
111
|
+
// NOTE: 4x the price of K2.7-Code — quality-over-cost per repo strategy, but mind cheap/bulk call sites.
|
|
112
|
+
// K2.7-Code released Jun 12, 2026 - coding-specialized (built on K2.6), 262K ctx, $0.75/$3.50 (fallback)
|
|
101
113
|
// K2.6 released Apr 20, 2026 - 1T MoE, leads SWE-bench Pro for long-horizon coding (fallback)
|
|
102
114
|
// K2.5 released Jan 27, 2026 - kept as legacy
|
|
103
115
|
export const KIMI_MODELS = {
|
|
116
|
+
K3: "moonshotai/kimi-k3", // CURRENT (Jul 16, 2026): 2.8T MoE, 1M ctx, multimodal, $3/$15
|
|
104
117
|
K2_THINKING: "moonshotai/kimi-k2-thinking", // 1T MoE, 32B active - agentic reasoning (256k context)
|
|
105
|
-
K2_7_CODE: "moonshotai/kimi-k2.7-code", //
|
|
106
|
-
K2_6: "moonshotai/kimi-k2.6", //
|
|
118
|
+
K2_7_CODE: "moonshotai/kimi-k2.7-code", // Previous (Jun 12, 2026): coding-specialized, 262K ctx, $0.75/$3.50 (fallback)
|
|
119
|
+
K2_6: "moonshotai/kimi-k2.6", // Older (Apr 2026): 1T MoE, SWE-Pro leader (fallback)
|
|
107
120
|
K2_5: "moonshotai/kimi-k2.5", // Legacy: multimodal + agent swarm
|
|
108
121
|
};
|
|
109
122
|
// MiniMax Models (MiniMax via OpenRouter)
|
|
@@ -118,7 +131,10 @@ export const MINIMAX_MODELS = {
|
|
|
118
131
|
// Qwen3 235B Thinking (July 2025) - Largest reasoning model available
|
|
119
132
|
// Qwen3-Coder-Next (Feb 2026) - Agentic coding specialist, 80B/3B MoE, 262K context
|
|
120
133
|
export const QWEN_MODELS = {
|
|
121
|
-
|
|
134
|
+
MAX_3_8: "qwen/qwen3.8-max", // Aug 3, 2026: CURRENT flagship reasoning model — 1M ctx, multimodal (text+image+video), reasoning_effort, $2/$6
|
|
135
|
+
MAX_3_7: "qwen/qwen3.7-max", // May 21, 2026: previous flagship, 1M ctx, agent-centric, $1.475/$4.425 (fallback)
|
|
136
|
+
PLUS_3_7: "qwen/qwen3.7-plus", // Jun 3, 2026: general-purpose flagship, 1M ctx, multimodal, $0.32/$1.28
|
|
137
|
+
PLUS_3_6: "qwen/qwen3.6-plus", // Apr 2026: previous general-purpose flagship (legacy)
|
|
122
138
|
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)
|
|
123
139
|
CODER_PLUS: "qwen/qwen3-coder-plus", // Code specialist (32K context)
|
|
124
140
|
CODER: "qwen/qwen3-coder", // Legacy coder - 480B MoE, SWE-Bench 69.6%
|
|
@@ -169,8 +185,11 @@ export const DEFAULT_WORKFLOW_SETTINGS = {
|
|
|
169
185
|
// When new models release, update ONLY this section!
|
|
170
186
|
// All tools automatically use the new models.
|
|
171
187
|
// ============================================================================
|
|
172
|
-
// UPDATED Jul
|
|
173
|
-
//
|
|
188
|
+
// UPDATED Jul 26, 2026 (full provider audit):
|
|
189
|
+
// Kimi K2.7-Code -> K3 (Jul 16) · Gemini Flash 3.5 -> 3.6 + Flash-Lite 3.1 -> 3.5 (Jul 21)
|
|
190
|
+
// Re-verified as still-current, NOT bumped: GPT-5.6 tiers (Jul 9), Grok 4.5 (Jul 8),
|
|
191
|
+
// Gemini 3.1 Pro (no 3.5 Pro shipped), DeepSeek V4 Pro (GA Jul 20), GLM-5.2, MiniMax M3,
|
|
192
|
+
// StepFun 3.7, ERNIE 4.5 VL, Qwen Coder-Next, Perplexity Sonar.
|
|
174
193
|
export const CURRENT_MODELS = {
|
|
175
194
|
openai: {
|
|
176
195
|
default: OPENAI_MODELS.DEFAULT, // gpt-5.6-sol - flagship, agentic/coding SOTA (Jul 2026)
|
|
@@ -199,9 +218,9 @@ export const CURRENT_MODELS = {
|
|
|
199
218
|
reason: PERPLEXITY_MODELS.SONAR_REASONING, // sonar-reasoning-pro $2/$8 per M
|
|
200
219
|
},
|
|
201
220
|
openrouter: {
|
|
202
|
-
kimi: KIMI_MODELS.
|
|
221
|
+
kimi: KIMI_MODELS.K3, // K3 (Jul 16, 2026): 2.8T MoE, 1M ctx, multimodal, agentic coding
|
|
203
222
|
qwen: QWEN_MODELS.CODER_NEXT, // Qwen3-Coder-Next: 80B/3B MoE, 262K ctx, SWE >70% (no 3.6-coder yet)
|
|
204
|
-
qwen_reason: QWEN_MODELS.
|
|
223
|
+
qwen_reason: QWEN_MODELS.MAX_3_8, // Qwen3.8 Max (Aug 3, 2026): flagship reasoning, 1M ctx, high reasoning effort
|
|
205
224
|
minimax: MINIMAX_MODELS.M3, // M3: 1M ctx, MSA sparse attention, agentic/coding
|
|
206
225
|
}
|
|
207
226
|
};
|
|
@@ -312,17 +331,17 @@ export const TOOL_DEFAULTS = {
|
|
|
312
331
|
temperature: 0.5,
|
|
313
332
|
},
|
|
314
333
|
qwen_algo: {
|
|
315
|
-
model: QWEN_MODELS.
|
|
316
|
-
maxTokens: 8000
|
|
334
|
+
model: QWEN_MODELS.MAX_3_8, // Qwen3.8 Max at reasoning_effort "medium" (default effort ≈ high ≈ 5min)
|
|
335
|
+
maxTokens: 12000, // Raised from 8000 — headroom for the visible answer
|
|
317
336
|
temperature: 0.2,
|
|
318
337
|
},
|
|
319
338
|
qwen_reason: {
|
|
320
|
-
model: QWEN_MODELS.
|
|
321
|
-
maxTokens: 8000
|
|
339
|
+
model: QWEN_MODELS.MAX_3_8, // Qwen3.8 Max at reasoning_effort "medium" (default effort ≈ high ≈ 5min)
|
|
340
|
+
maxTokens: 12000, // Raised from 8000 — headroom for the visible answer
|
|
322
341
|
temperature: 0.3, // Lower for precise reasoning
|
|
323
342
|
},
|
|
324
343
|
kimi_thinking: {
|
|
325
|
-
model: KIMI_MODELS.
|
|
344
|
+
model: KIMI_MODELS.K3, // K3 (Jul 2026): 2.8T MoE, 1M ctx, long-horizon agentic reasoning
|
|
326
345
|
maxTokens: 16000,
|
|
327
346
|
temperature: 0.7,
|
|
328
347
|
},
|
|
@@ -370,6 +389,8 @@ export const MODEL_DISPLAY_NAMES = {
|
|
|
370
389
|
"gpt-5.4-pro": "gpt-5.4-pro",
|
|
371
390
|
// Gemini
|
|
372
391
|
"gemini-3.1-pro-preview": "gemini-3.1-pro",
|
|
392
|
+
"gemini-3.6-flash": "gemini-3.6-flash",
|
|
393
|
+
"gemini-3.5-flash-lite": "gemini-3.5-flash-lite",
|
|
373
394
|
"gemini-3.5-flash": "gemini-3.5-flash",
|
|
374
395
|
"gemini-3-flash-preview": "gemini-3-flash",
|
|
375
396
|
"gemini-3.1-flash-lite": "gemini-3.1-flash-lite",
|
|
@@ -392,12 +413,14 @@ export const MODEL_DISPLAY_NAMES = {
|
|
|
392
413
|
"sonar-pro": "perplexity",
|
|
393
414
|
"sonar-reasoning-pro": "perplexity-reason",
|
|
394
415
|
// Kimi (Moonshot)
|
|
416
|
+
"moonshotai/kimi-k3": "kimi-k3",
|
|
395
417
|
"moonshotai/kimi-k2-thinking": "kimi-k2",
|
|
396
418
|
"moonshotai/kimi-k2.7-code": "kimi-k2.7-code",
|
|
397
419
|
"moonshotai/kimi-k2.6": "kimi-k2.6",
|
|
398
420
|
"moonshotai/kimi-k2.5": "kimi-k2.5",
|
|
399
421
|
"moonshotai/kimi-k2.5-thinking": "kimi-k2.5",
|
|
400
422
|
// Qwen (Alibaba)
|
|
423
|
+
"qwen/qwen3.7-plus": "qwen3.7-plus",
|
|
401
424
|
"qwen/qwen3.6-plus": "qwen3.6-plus",
|
|
402
425
|
"qwen/qwen3-coder-next": "qwen-coder-next",
|
|
403
426
|
"qwen/qwen3-coder-plus": "qwen-coder",
|
|
@@ -428,7 +451,9 @@ export const MODEL_PRICING = {
|
|
|
428
451
|
"gpt-5.4-pro": 0.105, // ($30 + $180) / 2 / 1000 (Mar 2026)
|
|
429
452
|
// Gemini
|
|
430
453
|
"gemini-3.1-pro-preview": 0.007, // ($2 + $12) / 2 / 1000
|
|
431
|
-
"gemini-3.
|
|
454
|
+
"gemini-3.6-flash": 0.0045, // ($1.50 + $7.50) / 2 / 1000 (GA Jul 21, 2026)
|
|
455
|
+
"gemini-3.5-flash-lite": 0.0014, // ($0.30 + $2.50) / 2 / 1000 (Jul 21, 2026)
|
|
456
|
+
"gemini-3.5-flash": 0.00525, // ($1.50 + $9) / 2 / 1000 (GA May 19, 2026 - fallback)
|
|
432
457
|
"gemini-3-flash-preview": 0.00175, // ($0.50 + $3) / 2 / 1000 (legacy)
|
|
433
458
|
"gemini-3.1-flash-lite": 0.001, // Cheapest/fastest in 3.1 series (Mar 2026)
|
|
434
459
|
// Grok
|
|
@@ -451,13 +476,15 @@ export const MODEL_PRICING = {
|
|
|
451
476
|
"sonar-pro": 0.006,
|
|
452
477
|
"sonar-reasoning-pro": 0.006, // avoid - expensive reasoning tokens
|
|
453
478
|
// OpenRouter models - Kimi
|
|
479
|
+
"moonshotai/kimi-k3": 0.009, // ($3 + $15) / 2 / 1000 (Jul 16, 2026)
|
|
454
480
|
"moonshotai/kimi-k2-thinking": 0.002,
|
|
455
481
|
"moonshotai/kimi-k2.7-code": 0.002125, // ($0.75 + $3.50) / 2 / 1000 (Jun 12, 2026)
|
|
456
482
|
"moonshotai/kimi-k2.6": 0.0027, // ($0.74 + $4.65) / 2 / 1000 (Apr 2026)
|
|
457
483
|
"moonshotai/kimi-k2.5": 0.003,
|
|
458
484
|
"moonshotai/kimi-k2.5-thinking": 0.003,
|
|
459
485
|
// OpenRouter models - Qwen
|
|
460
|
-
"qwen/qwen3.
|
|
486
|
+
"qwen/qwen3.7-plus": 0.0008, // ($0.32 + $1.28) / 2 / 1000 (Jun 3, 2026 - promo pricing)
|
|
487
|
+
"qwen/qwen3.6-plus": 0.001138, // ($0.325 + $1.95) / 2 / 1000 (Apr 2026 - legacy)
|
|
461
488
|
"qwen/qwen3-coder-next": 0.00047, // ($0.14 + $0.80) / 2 / 1000 (verified via OpenRouter Apr 2026)
|
|
462
489
|
"qwen/qwen3-coder-plus": 0.0005,
|
|
463
490
|
"qwen/qwen3-coder": 0.0003,
|
|
@@ -28,7 +28,7 @@ const MODELS = {
|
|
|
28
28
|
// OpenRouter
|
|
29
29
|
QWEN: QWEN_MODELS.CODER_NEXT, // qwen/qwen3-coder-next (80B/3B MoE, 262K ctx)
|
|
30
30
|
QWEN_REASON: QWEN_MODELS.MAX_THINKING, // qwen/qwen3-235b-a22b-thinking (235B MoE)
|
|
31
|
-
KIMI: KIMI_MODELS.
|
|
31
|
+
KIMI: KIMI_MODELS.K3, // moonshotai/kimi-k3 (Jul 16, 2026 - 2.8T MoE, 1M ctx, multimodal)
|
|
32
32
|
MINIMAX: MINIMAX_MODELS.M3, // minimax/minimax-m3 (May 2026 - 1M ctx, MSA sparse attention)
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
@@ -36,8 +36,8 @@ export function getTimeoutConfig() {
|
|
|
36
36
|
* Thinking/reasoning/swarm models get extended timeout (600s default).
|
|
37
37
|
* Standard models get 180s default.
|
|
38
38
|
*
|
|
39
|
-
* NOTE: All Kimi
|
|
40
|
-
*
|
|
39
|
+
* NOTE: All Kimi variants (incl. 'moonshotai/kimi-k3' and 'moonshotai/kimi-k2.7-code', which
|
|
40
|
+
* reason by default) need the extended timeout — but their model IDs don't contain 'thinking',
|
|
41
41
|
* so we match 'kimi' explicitly. Same applies to DeepSeek V4 and Zhipu GLM, whose
|
|
42
42
|
* reasoning passes are slow but whose IDs lack the 'thinking'/'reasoning' marker.
|
|
43
43
|
* This keeps primary and fallback consistent and lets these tools inherit 600s
|
|
@@ -48,7 +48,8 @@ export function getOpenRouterModelTimeout(modelId) {
|
|
|
48
48
|
const id = modelId.toLowerCase();
|
|
49
49
|
if (id.includes('thinking') || id.includes('reasoning') ||
|
|
50
50
|
id.includes('kimi') || id.includes('deepseek') || id.includes('glm') ||
|
|
51
|
-
id.includes('stepfun') || id.includes('ernie')
|
|
51
|
+
id.includes('stepfun') || id.includes('ernie') ||
|
|
52
|
+
id.includes('qwen3.8') || id.includes('qwen3.7-max')) {
|
|
52
53
|
return config.openrouterThinking;
|
|
53
54
|
}
|
|
54
55
|
return config.openrouter;
|
|
@@ -58,11 +58,11 @@ function buildPanel() {
|
|
|
58
58
|
if (hasOpenRouterApiKey()) {
|
|
59
59
|
panel.push({
|
|
60
60
|
key: "kimi",
|
|
61
|
-
label: "Kimi
|
|
61
|
+
label: "Kimi K3 (SWE regressions)",
|
|
62
62
|
call: (q) => callOpenRouter([
|
|
63
|
-
{ role: "system", content: `You are Kimi
|
|
63
|
+
{ role: "system", content: `You are Kimi K3, an SWE-specialized reviewer. Hunt regressions and missed edge cases in diffs. ${FORMAT_INSTRUCTION}` },
|
|
64
64
|
{ role: "user", content: q },
|
|
65
|
-
], OpenRouterModel.
|
|
65
|
+
], OpenRouterModel.KIMI_K3, 0.3, PANELIST_MAX_TOKENS),
|
|
66
66
|
});
|
|
67
67
|
panel.push({
|
|
68
68
|
key: "deepseek",
|
|
@@ -76,11 +76,11 @@ function buildPanel() {
|
|
|
76
76
|
if (hasOpenAIApiKey()) {
|
|
77
77
|
panel.push({
|
|
78
78
|
key: "gpt",
|
|
79
|
-
label: "GPT-5.
|
|
79
|
+
label: "GPT-5.6 Sol (intent & API-contract)",
|
|
80
80
|
call: (q) => callOpenAI([
|
|
81
81
|
{ role: "system", content: `You review diffs for intent mismatches and API-contract breaks (types, error paths, backward compatibility). ${FORMAT_INSTRUCTION}` },
|
|
82
82
|
{ role: "user", content: q },
|
|
83
|
-
], OPENAI_MODELS.DEFAULT, // explicit: undefined falls back to INSTANT (
|
|
83
|
+
], OPENAI_MODELS.DEFAULT, // explicit: undefined falls back to INSTANT (cheapest tier), contradicting the flagship label
|
|
84
84
|
0.3, PANELIST_MAX_TOKENS, "high"),
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -88,7 +88,7 @@ function buildPanel() {
|
|
|
88
88
|
}
|
|
89
89
|
export const diffReviewTool = defineModelTool({
|
|
90
90
|
name: "diff_review",
|
|
91
|
-
description: "Multi-model diff-aware code review: 2-3 lab-diverse reviewers (Kimi
|
|
91
|
+
description: "Multi-model diff-aware code review: 2-3 lab-diverse reviewers (Kimi K3, DeepSeek V4 Pro, GPT-5.6 Sol) scoped to the changed lines, deduplicated and severity-ranked by a Gemini judge. Provide the unified diff in 'diff'.",
|
|
92
92
|
parameters: z.object({
|
|
93
93
|
diff: z.string().describe("Unified diff to review (git diff output) — REQUIRED"),
|
|
94
94
|
intent: z.string().optional().describe("What the change is SUPPOSED to do (enables intent-mismatch detection)"),
|
|
@@ -51,17 +51,20 @@ export const JUROR_REGISTRY = {
|
|
|
51
51
|
label: "Qwen Reason (Mathematical)",
|
|
52
52
|
role: "Apply rigorous mathematical and formal reasoning.",
|
|
53
53
|
call: async (q) => callOpenRouter([
|
|
54
|
-
{ role: "system", content: `You are Qwen3-Max
|
|
54
|
+
{ role: "system", content: `You are Qwen3.8-Max, Alibaba's flagship reasoning model. Apply rigorous formal reasoning. ${FORMAT_INSTRUCTION}` },
|
|
55
55
|
{ role: "user", content: q }
|
|
56
|
-
|
|
56
|
+
// Effort MUST be set explicitly: Qwen3.8-Max's default behaves like "high"
|
|
57
|
+
// (~5 min/call), and the panel waits on its slowest juror. "medium" answers
|
|
58
|
+
// at the same depth in well under a minute.
|
|
59
|
+
], OpenRouterModel.QWEN3_8_MAX, 0.3, JUROR_MAX_TOKENS, { reasoning_effort: "medium" }),
|
|
57
60
|
},
|
|
58
61
|
kimi: {
|
|
59
62
|
label: "Kimi (Step-by-Step)",
|
|
60
63
|
role: "Think step-by-step. Decompose the problem. Find edge cases others miss.",
|
|
61
64
|
call: async (q) => callOpenRouter([
|
|
62
|
-
{ role: "system", content: `You are Kimi
|
|
65
|
+
{ role: "system", content: `You are Kimi K3. Think step-by-step. Decompose problems. Find edge cases. ${FORMAT_INSTRUCTION}` },
|
|
63
66
|
{ role: "user", content: q }
|
|
64
|
-
], OpenRouterModel.
|
|
67
|
+
], OpenRouterModel.KIMI_K3, 0.4, JUROR_MAX_TOKENS, { top_p: 0.9 }, 240000),
|
|
65
68
|
},
|
|
66
69
|
perplexity: {
|
|
67
70
|
label: "Perplexity (Research)",
|
|
@@ -93,13 +93,31 @@ function isPartialResponsesAPI(data) {
|
|
|
93
93
|
const obj = data;
|
|
94
94
|
return Array.isArray(obj.output);
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Pull the human-readable message out of an OpenAI JSON error body so the
|
|
98
|
+
* per-attempt log stays one line instead of an embedded JSON blob.
|
|
99
|
+
* Falls back to the raw (truncated) body when it isn't the expected shape.
|
|
100
|
+
*/
|
|
101
|
+
function extractApiErrorMessage(body) {
|
|
102
|
+
try {
|
|
103
|
+
const parsed = JSON.parse(body);
|
|
104
|
+
const message = parsed?.error?.message;
|
|
105
|
+
if (typeof message === 'string' && message.length > 0)
|
|
106
|
+
return message;
|
|
107
|
+
}
|
|
108
|
+
catch {
|
|
109
|
+
// Not JSON — fall through to the raw body.
|
|
110
|
+
}
|
|
111
|
+
const flat = body.replace(/\s+/g, ' ').trim();
|
|
112
|
+
return flat.length > 200 ? `${flat.slice(0, 200)}…` : flat;
|
|
113
|
+
}
|
|
96
114
|
// Re-export for backward compatibility
|
|
97
|
-
// "Thinking" mode =
|
|
115
|
+
// "Thinking" mode = the flagship tier with reasoning.effort="high"/"xhigh"
|
|
98
116
|
export const OpenAIModel5 = {
|
|
99
|
-
DEFAULT: OPENAI_MODELS.DEFAULT, // gpt-5.
|
|
100
|
-
THINKING: OPENAI_MODELS.DEFAULT, // gpt-5.
|
|
101
|
-
PRO: OPENAI_MODELS.PRO, // gpt-5.
|
|
102
|
-
INSTANT: OPENAI_MODELS.DEFAULT, // gpt-5.
|
|
117
|
+
DEFAULT: OPENAI_MODELS.DEFAULT, // gpt-5.6-sol (use with reasoning.effort)
|
|
118
|
+
THINKING: OPENAI_MODELS.DEFAULT, // gpt-5.6-sol + high effort = "thinking"
|
|
119
|
+
PRO: OPENAI_MODELS.PRO, // gpt-5.6-sol + xhigh effort (no separate pro model in 5.6)
|
|
120
|
+
INSTANT: OPENAI_MODELS.DEFAULT, // gpt-5.6-sol + low effort = fast
|
|
103
121
|
// Legacy aliases
|
|
104
122
|
FULL: OPENAI_MODELS.DEFAULT,
|
|
105
123
|
CODEX_MINI: OPENAI_MODELS.DEFAULT,
|
|
@@ -150,12 +168,17 @@ reasoningEffort = "low", requireConfirmation = false, skipValidation = false) {
|
|
|
150
168
|
"gpt-5.6-sol": ["gpt-5.6-terra", "gpt-5.5"],
|
|
151
169
|
"gpt-5.6-terra": ["gpt-5.5"],
|
|
152
170
|
"gpt-5.6-luna": ["gpt-5.6-terra"],
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
"gpt-5.4
|
|
171
|
+
// Legacy 5.4 names (retired) — route to the equivalent current tier so old
|
|
172
|
+
// callers/configs degrade to a live model instead of 404ing on a dead one.
|
|
173
|
+
"gpt-5.4": ["gpt-5.6-terra", "gpt-5.5"],
|
|
174
|
+
"gpt-5.4-mini": ["gpt-5.6-luna", "gpt-5.6-terra"],
|
|
175
|
+
"gpt-5.4-pro": ["gpt-5.6-sol", "gpt-5.6-terra"]
|
|
156
176
|
};
|
|
157
177
|
const modelsToTry = [model, ...(modelFallbacks[model] || [])];
|
|
158
178
|
console.error(`🔍 TRACE: Models to try: ${modelsToTry.join(', ')}`);
|
|
179
|
+
// Every attempt is recorded — reporting only the LAST one hides why the
|
|
180
|
+
// requested model was skipped (e.g. sol 403-gated, then terra/5.5 out of quota).
|
|
181
|
+
const attemptErrors = [];
|
|
159
182
|
let lastError = '';
|
|
160
183
|
for (const currentModel of modelsToTry) {
|
|
161
184
|
console.error(`🔍 TRACE: Trying model: ${currentModel}`);
|
|
@@ -208,6 +231,7 @@ reasoningEffort = "low", requireConfirmation = false, skipValidation = false) {
|
|
|
208
231
|
if (!response.ok) {
|
|
209
232
|
const error = await response.text();
|
|
210
233
|
lastError = `${currentModel}: ${response.statusText} - ${error}`;
|
|
234
|
+
attemptErrors.push(`${currentModel} → ${response.status} ${response.statusText}: ${extractApiErrorMessage(error)}`);
|
|
211
235
|
console.error(`🔍 TRACE: ${currentModel} failed - Status: ${response.status}, Error: ${error}`);
|
|
212
236
|
// Check if it's a model not found / not-yet-unlocked error
|
|
213
237
|
// (403 "insufficient permissions" = org-verification-gated tier, e.g. gpt-5.6-sol)
|
|
@@ -277,11 +301,15 @@ reasoningEffort = "low", requireConfirmation = false, skipValidation = false) {
|
|
|
277
301
|
lastError = `${currentModel}: ${error instanceof Error ? error.message : String(error)}`;
|
|
278
302
|
console.error(`🔍 TRACE: ${currentModel} EXCEPTION - ${lastError}`);
|
|
279
303
|
}
|
|
304
|
+
attemptErrors.push(lastError);
|
|
280
305
|
continue; // Try next model
|
|
281
306
|
}
|
|
282
307
|
}
|
|
283
308
|
console.error(`🔍 TRACE: ALL MODELS FAILED - Last error: ${lastError}`);
|
|
284
|
-
|
|
309
|
+
const attemptLog = attemptErrors.length
|
|
310
|
+
? attemptErrors.map((e) => ` - ${e}`).join('\n')
|
|
311
|
+
: ` - ${lastError}`;
|
|
312
|
+
return `[OpenAI request failed. Requested "${model}"; tried ${modelsToTry.join(' → ')}.\n${attemptLog}]`;
|
|
285
313
|
}
|
|
286
314
|
/**
|
|
287
315
|
* GPT-5 Reasoning Tool - Most advanced reasoning with confirmation
|
|
@@ -411,9 +439,9 @@ export const openAIBrainstormTool = defineModelTool({
|
|
|
411
439
|
constraints: z.string().optional().describe("Technical constraints: language, framework, performance requirements, team size"),
|
|
412
440
|
...filesField,
|
|
413
441
|
quantity: z.number().optional().describe("Number of approaches to generate (default: 5)"),
|
|
414
|
-
model: z.enum(["gpt-5.
|
|
442
|
+
model: z.enum(["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"])
|
|
415
443
|
.optional()
|
|
416
|
-
.describe("Model to use - gpt-5.
|
|
444
|
+
.describe("Model to use - gpt-5.6-sol (default, flagship), gpt-5.6-terra (balanced), gpt-5.6-luna (fast/cheap)"),
|
|
417
445
|
reasoning_effort: z.enum(["none", "low", "medium", "high", "xhigh"])
|
|
418
446
|
.optional()
|
|
419
447
|
.describe("Reasoning effort level - must be one of: none, low, medium, high, xhigh"),
|
|
@@ -26,8 +26,11 @@ export var OpenRouterModel;
|
|
|
26
26
|
OpenRouterModel["QWEN3_30B"] = "qwen/qwen3-30b-a3b-instruct-2507";
|
|
27
27
|
OpenRouterModel["QWEN3_235B_THINKING"] = "qwen/qwen3-235b-a22b-thinking-2507";
|
|
28
28
|
OpenRouterModel["QWQ_32B"] = "qwen/qwq-32b";
|
|
29
|
+
OpenRouterModel["QWEN3_8_MAX"] = "qwen/qwen3.8-max";
|
|
30
|
+
OpenRouterModel["QWEN3_7_MAX"] = "qwen/qwen3.7-max";
|
|
29
31
|
OpenRouterModel["QWEN3_MAX_THINKING"] = "qwen/qwen3-235b-a22b-thinking-2507";
|
|
30
32
|
// Moonshot AI models (Kimi)
|
|
33
|
+
OpenRouterModel["KIMI_K3"] = "moonshotai/kimi-k3";
|
|
31
34
|
OpenRouterModel["KIMI_K2_THINKING"] = "moonshotai/kimi-k2-thinking";
|
|
32
35
|
OpenRouterModel["KIMI_K2_7_CODE"] = "moonshotai/kimi-k2.7-code";
|
|
33
36
|
OpenRouterModel["KIMI_K2_6"] = "moonshotai/kimi-k2.6";
|
|
@@ -55,6 +58,9 @@ export var OpenRouterModel;
|
|
|
55
58
|
const MODEL_FALLBACKS = {
|
|
56
59
|
[OpenRouterModel.QWEN3_CODER_NEXT]: OpenRouterModel.QWEN3_CODER, // Fall back to 480B if Coder-Next fails
|
|
57
60
|
[OpenRouterModel.QWEN3_CODER]: OpenRouterModel.QWEN3_CODER,
|
|
61
|
+
[OpenRouterModel.QWEN3_8_MAX]: OpenRouterModel.QWEN3_7_MAX, // Fall back to the 3.7 flagship if 3.8 Max is quota-blocked
|
|
62
|
+
[OpenRouterModel.QWEN3_7_MAX]: OpenRouterModel.QWEN3_MAX_THINKING, // Then to the open-weight 235B thinking model
|
|
63
|
+
[OpenRouterModel.KIMI_K3]: OpenRouterModel.KIMI_K2_7_CODE, // Fall back to K2.7-Code if K3 fails (also 4x cheaper)
|
|
58
64
|
[OpenRouterModel.KIMI_K2_7_CODE]: OpenRouterModel.KIMI_K2_6, // Fall back to K2.6 if K2.7-Code fails
|
|
59
65
|
[OpenRouterModel.KIMI_K2_6]: OpenRouterModel.KIMI_K2_THINKING, // Fall back to k2-thinking if K2.6 fails (k2.5 retired from OpenRouter)
|
|
60
66
|
[OpenRouterModel.DEEPSEEK_V4_PRO]: OpenRouterModel.DEEPSEEK_V4_FLASH, // Fall back to V4 Flash if Pro is rate-limited
|
|
@@ -90,6 +96,7 @@ export async function callOpenRouter(messages, model = OpenRouterModel.QWEN3_COD
|
|
|
90
96
|
...(options.top_k !== undefined && { top_k: options.top_k }),
|
|
91
97
|
...(options.presence_penalty !== undefined && { presence_penalty: options.presence_penalty }),
|
|
92
98
|
...(options.frequency_penalty !== undefined && { frequency_penalty: options.frequency_penalty }),
|
|
99
|
+
...(options.reasoning_effort !== undefined && { reasoning_effort: options.reasoning_effort }),
|
|
93
100
|
};
|
|
94
101
|
const response = await fetch(OPENROUTER_API_URL, {
|
|
95
102
|
method: "POST",
|
|
@@ -495,7 +502,11 @@ ${FORMAT_INSTRUCTION}`;
|
|
|
495
502
|
];
|
|
496
503
|
// Use heartbeat to prevent MCP timeout
|
|
497
504
|
const reportFn = reportProgress ?? (async () => { });
|
|
498
|
-
return await withHeartbeat(
|
|
505
|
+
return await withHeartbeat(
|
|
506
|
+
// Qwen3.8-Max. Effort is set EXPLICITLY: this model's default effort behaves like
|
|
507
|
+
// "high" — measured 302s/$0.09 on a single algo call, vs 18-48s/$0.006-0.018 at
|
|
508
|
+
// "medium" for answers of equal depth. Never leave it unset.
|
|
509
|
+
() => callOpenRouter(messages, OpenRouterModel.QWEN3_8_MAX, 0.25, 12000, { reasoning_effort: "medium" }), reportFn);
|
|
499
510
|
}
|
|
500
511
|
});
|
|
501
512
|
/**
|
|
@@ -542,13 +553,13 @@ ${FORMAT_INSTRUCTION}`
|
|
|
542
553
|
}
|
|
543
554
|
});
|
|
544
555
|
/**
|
|
545
|
-
* Kimi
|
|
546
|
-
*
|
|
547
|
-
* $
|
|
556
|
+
* Kimi K3 Thinking Tool
|
|
557
|
+
* 2.8T open-weight MoE, native multimodal, reasons by default
|
|
558
|
+
* $3/$15 per M tokens, 1M context
|
|
548
559
|
*/
|
|
549
560
|
export const kimiThinkingTool = defineModelTool({
|
|
550
561
|
name: "kimi_thinking",
|
|
551
|
-
description: "Kimi
|
|
562
|
+
description: "Kimi K3 multimodal reasoning (2.8T MoE, 1M context). Put your PROBLEM in the 'problem' parameter.",
|
|
552
563
|
parameters: z.object({
|
|
553
564
|
problem: z.string().describe("The problem to reason about (REQUIRED - put your question here)"),
|
|
554
565
|
...reasoningContextField,
|
|
@@ -572,7 +583,7 @@ export const kimiThinkingTool = defineModelTool({
|
|
|
572
583
|
const messages = [
|
|
573
584
|
{
|
|
574
585
|
role: "system",
|
|
575
|
-
content: `You are Kimi
|
|
586
|
+
content: `You are Kimi K3, an expert reasoning model. Be concise and direct.
|
|
576
587
|
${approachPrompts[args.approach || 'step-by-step']}.
|
|
577
588
|
Use ${args.maxSteps} reasoning steps max. ${args.context ? `Context: ${args.context}` : ''}
|
|
578
589
|
${FORMAT_INSTRUCTION}`
|
|
@@ -586,7 +597,7 @@ ${FORMAT_INSTRUCTION}`
|
|
|
586
597
|
// Timeout inherited from getOpenRouterModelTimeout() — Kimi → 600s (Agent Swarm
|
|
587
598
|
// needs the headroom; 180s/240s previously caused timeouts).
|
|
588
599
|
const reportFn = reportProgress ?? (async () => { });
|
|
589
|
-
return await withHeartbeat(() => callOpenRouter(messages, OpenRouterModel.
|
|
600
|
+
return await withHeartbeat(() => callOpenRouter(messages, OpenRouterModel.KIMI_K3, 0.4, 3000, {
|
|
590
601
|
top_p: 0.9,
|
|
591
602
|
presence_penalty: 0.1,
|
|
592
603
|
frequency_penalty: 0.2
|
|
@@ -595,12 +606,12 @@ ${FORMAT_INSTRUCTION}`
|
|
|
595
606
|
});
|
|
596
607
|
/**
|
|
597
608
|
* Kimi Code Tool
|
|
598
|
-
* SWE-focused code generation/fixing with Kimi
|
|
609
|
+
* SWE-focused code generation/fixing with Kimi K3 (2.8T MoE — strong at repo navigation, tools, debugging)
|
|
599
610
|
* Best for: code generation, bug fixing, refactoring, repo-level understanding
|
|
600
611
|
*/
|
|
601
612
|
export const kimiCodeTool = defineModelTool({
|
|
602
613
|
name: "kimi_code",
|
|
603
|
-
description: "SWE-focused code generation/fixing with Kimi
|
|
614
|
+
description: "SWE-focused code generation/fixing with Kimi K3 (long-horizon agentic coding). Put your REQUEST in the 'query' parameter.",
|
|
604
615
|
parameters: z.object({
|
|
605
616
|
query: z.string().describe("Your request or question (REQUIRED - put your main request here)"),
|
|
606
617
|
task: z.enum(["generate", "fix", "review", "optimize", "debug", "refactor"])
|
|
@@ -620,7 +631,7 @@ export const kimiCodeTool = defineModelTool({
|
|
|
620
631
|
debug: "Debug and identify root causes",
|
|
621
632
|
refactor: "Refactor for better structure and maintainability"
|
|
622
633
|
};
|
|
623
|
-
const systemPrompt = `You are Kimi
|
|
634
|
+
const systemPrompt = `You are Kimi K3, a coding-specialized SWE model. You excel at repo-level code understanding and changes.
|
|
624
635
|
Task: ${taskPrompts[args.task || "review"]}
|
|
625
636
|
${args.language ? `Language: ${args.language}` : ''}
|
|
626
637
|
Focus: Clean code, correct solutions, minimal changes for fixes. Understand the full repo context when reviewing.
|
|
@@ -636,7 +647,7 @@ ${FORMAT_INSTRUCTION}`;
|
|
|
636
647
|
{ role: "user", content: userPrompt + fileContext }
|
|
637
648
|
];
|
|
638
649
|
const reportFn = reportProgress ?? (async () => { });
|
|
639
|
-
return await withHeartbeat(() => callOpenRouter(messages, OpenRouterModel.
|
|
650
|
+
return await withHeartbeat(() => callOpenRouter(messages, OpenRouterModel.KIMI_K3, 0.3, 4000), reportFn, 240000);
|
|
640
651
|
}
|
|
641
652
|
});
|
|
642
653
|
// kimi_decompose configuration
|
|
@@ -645,12 +656,12 @@ const DECOMPOSE_MAX_TOKENS = 4500;
|
|
|
645
656
|
// Timeout inherited from getOpenRouterModelTimeout() — Kimi → 600s (Agent Swarm).
|
|
646
657
|
/**
|
|
647
658
|
* Kimi Decompose Tool
|
|
648
|
-
* Structured task decomposition using Kimi
|
|
659
|
+
* Structured task decomposition using Kimi K3's extended reasoning
|
|
649
660
|
* Best for: breaking complex tasks into subtasks with dependencies and acceptance criteria
|
|
650
661
|
*/
|
|
651
662
|
export const kimiDecomposeTool = defineModelTool({
|
|
652
663
|
name: "kimi_decompose",
|
|
653
|
-
description: "Structured task decomposition with Kimi
|
|
664
|
+
description: "Structured task decomposition with Kimi K3 extended reasoning. Breaks tasks into subtasks with IDs, dependencies, and acceptance criteria.",
|
|
654
665
|
parameters: z.object({
|
|
655
666
|
task: z.string().describe("The task to decompose (REQUIRED - describe the complex task)"),
|
|
656
667
|
context: z.string().optional().describe("Additional context about the project, codebase, or constraints"),
|
|
@@ -759,7 +770,7 @@ TASK REQUIREMENTS (one block per task)
|
|
|
759
770
|
RISKS
|
|
760
771
|
- [risk] > Mitigation: [approach]`
|
|
761
772
|
};
|
|
762
|
-
const systemPrompt = `You are Kimi
|
|
773
|
+
const systemPrompt = `You are Kimi K3, expert at structured task decomposition using extended reasoning.
|
|
763
774
|
|
|
764
775
|
Your job is to produce SMART decompositions — not mechanical ID/deps lists, but context-aware plans that a developer can act on immediately.
|
|
765
776
|
|
|
@@ -797,7 +808,7 @@ Wrap your final output in <output> tags. Everything outside <output> is discarde
|
|
|
797
808
|
{ role: "user", content: userPrompt }
|
|
798
809
|
];
|
|
799
810
|
const reportFn = reportProgress ?? (async () => { });
|
|
800
|
-
const raw = await withHeartbeat(() => callOpenRouter(messages, OpenRouterModel.
|
|
811
|
+
const raw = await withHeartbeat(() => callOpenRouter(messages, OpenRouterModel.KIMI_K3, DECOMPOSE_TEMPERATURE, DECOMPOSE_MAX_TOKENS, {}), reportFn);
|
|
801
812
|
// Strip reasoning leak from Kimi K2.6 (dumps CoT into message.content)
|
|
802
813
|
// Strategy: try <output> tags first, then find first section header
|
|
803
814
|
const outputMatch = raw.match(/<output>([\s\S]*?)<\/output>/);
|
|
@@ -812,12 +823,12 @@ Wrap your final output in <output> tags. Everything outside <output> is discarde
|
|
|
812
823
|
});
|
|
813
824
|
/**
|
|
814
825
|
* Kimi Long Context Tool
|
|
815
|
-
* Long-context analysis leveraging Kimi
|
|
826
|
+
* Long-context analysis leveraging Kimi K3's 1M context window
|
|
816
827
|
* Best for: analyzing large documents, codebases, or text bodies
|
|
817
828
|
*/
|
|
818
829
|
export const kimiLongContextTool = defineModelTool({
|
|
819
830
|
name: "kimi_long_context",
|
|
820
|
-
description: "Long-context analysis with Kimi
|
|
831
|
+
description: "Long-context analysis with Kimi K3 (1M context window). Put CONTENT in the 'content' parameter.",
|
|
821
832
|
parameters: z.object({
|
|
822
833
|
content: z.string().describe("The long text/document to analyze (REQUIRED - put your content here)"),
|
|
823
834
|
task: z.enum(["summarize", "extract", "analyze", "compare", "find"])
|
|
@@ -842,7 +853,7 @@ export const kimiLongContextTool = defineModelTool({
|
|
|
842
853
|
detailed: "Provide thorough analysis with supporting evidence and examples",
|
|
843
854
|
structured: "Use clear sections with headers, bullet points, and structured formatting"
|
|
844
855
|
};
|
|
845
|
-
const systemPrompt = `You are Kimi
|
|
856
|
+
const systemPrompt = `You are Kimi K3, expert at processing and analyzing large documents (best-effort 1M context window).
|
|
846
857
|
Task: ${taskPrompts[args.task || "analyze"]}
|
|
847
858
|
Format: ${formatPrompts[args.outputFormat || "detailed"]}
|
|
848
859
|
${args.query ? `Specific query: ${args.query}` : ''}
|
|
@@ -857,7 +868,7 @@ ${FORMAT_INSTRUCTION}`;
|
|
|
857
868
|
{ role: "user", content: args.content + fileContext }
|
|
858
869
|
];
|
|
859
870
|
const reportFn = reportProgress ?? (async () => { });
|
|
860
|
-
return await withHeartbeat(() => callOpenRouter(messages, OpenRouterModel.
|
|
871
|
+
return await withHeartbeat(() => callOpenRouter(messages, OpenRouterModel.KIMI_K3, 0.2, 8000), reportFn, 300000);
|
|
861
872
|
}
|
|
862
873
|
});
|
|
863
874
|
/**
|
|
@@ -867,7 +878,7 @@ ${FORMAT_INSTRUCTION}`;
|
|
|
867
878
|
*/
|
|
868
879
|
export const qwenReasonTool = defineModelTool({
|
|
869
880
|
name: "qwen_reason",
|
|
870
|
-
description: "Heavy mathematical reasoning with Qwen3-Max
|
|
881
|
+
description: "Heavy mathematical reasoning with Qwen3.8-Max (flagship Qwen reasoning model, 1M context). Put your PROBLEM in the 'problem' parameter.",
|
|
871
882
|
parameters: z.object({
|
|
872
883
|
problem: z.string().describe("The problem to reason about (REQUIRED - put your question here)"),
|
|
873
884
|
...reasoningContextField,
|
|
@@ -890,7 +901,7 @@ export const qwenReasonTool = defineModelTool({
|
|
|
890
901
|
const messages = [
|
|
891
902
|
{
|
|
892
903
|
role: "system",
|
|
893
|
-
content: `You are Qwen3-Max
|
|
904
|
+
content: `You are Qwen3.8-Max, Alibaba's flagship reasoning model.
|
|
894
905
|
${approachPrompts[args.approach || 'mathematical']}.
|
|
895
906
|
Show your complete reasoning process.
|
|
896
907
|
${args.context ? `Context: ${args.context}` : ''}
|
|
@@ -902,7 +913,9 @@ ${FORMAT_INSTRUCTION}`
|
|
|
902
913
|
}
|
|
903
914
|
];
|
|
904
915
|
const reportFn = reportProgress ?? (async () => { });
|
|
905
|
-
return await withHeartbeat(
|
|
916
|
+
return await withHeartbeat(
|
|
917
|
+
// Effort set explicitly — see the note in qwen_algo: unset behaves like "high" (~5min).
|
|
918
|
+
() => callOpenRouter(messages, OpenRouterModel.QWEN3_8_MAX, 0.3, 12000, { reasoning_effort: "medium" }), reportFn);
|
|
906
919
|
}
|
|
907
920
|
});
|
|
908
921
|
/**
|
|
@@ -1304,7 +1317,7 @@ export function getAllOpenRouterTools() {
|
|
|
1304
1317
|
kimiThinkingTool,
|
|
1305
1318
|
kimiCodeTool, // Kimi K2.6 - SWE-focused code (76.8%)
|
|
1306
1319
|
kimiDecomposeTool, // Kimi K2.6 - task decomposition
|
|
1307
|
-
kimiLongContextTool, // Kimi
|
|
1320
|
+
kimiLongContextTool, // Kimi K3 - long-context analysis (1M)
|
|
1308
1321
|
// NEW tools (Jan 2026)
|
|
1309
1322
|
qwenReasonTool, // Qwen3-Max-Thinking - heavy reasoning
|
|
1310
1323
|
minimaxCodeTool, // MiniMax M3 - 1M ctx, MSA sparse attention, agentic/coding
|
|
@@ -137,7 +137,7 @@ export const SKILLS = [
|
|
|
137
137
|
{ name: "decompose", desc: "Split into sub-problems, deep-dive each (depth-first)" },
|
|
138
138
|
{ name: "prompt", desc: "Recommends the right thinking technique" },
|
|
139
139
|
{ name: "algo", desc: "Algorithm analysis with 4 models (deepseek_algo lead)" },
|
|
140
|
-
{ name: "lens", desc: "Long-context analysis via active retrieval (
|
|
140
|
+
{ name: "lens", desc: "Long-context analysis via active retrieval (1M)" },
|
|
141
141
|
{ name: "reflect", desc: "Grounded reflexion loop vs external evidence" },
|
|
142
142
|
{ name: "tot", desc: "Tree-of-Thought: branch, prune via jury, synthesize" },
|
|
143
143
|
{ name: "review", desc: "Multi-model diff review + Gemini judge verdict" },
|
|
@@ -126,7 +126,7 @@ export async function getAllTools(inlineTools = []) {
|
|
|
126
126
|
kimiThinkingTool,
|
|
127
127
|
kimiCodeTool, // SWE-focused code (Kimi K2.5 - 76.8% SWE-Bench)
|
|
128
128
|
kimiDecomposeTool, // Task decomposition (Kimi K2.5 Agent Swarm)
|
|
129
|
-
kimiLongContextTool, // Long-context analysis (Kimi
|
|
129
|
+
kimiLongContextTool, // Long-context analysis (Kimi K3 - 1M)
|
|
130
130
|
qwenReasonTool, // Heavy reasoning (Qwen3-Max-Thinking >1T params)
|
|
131
131
|
minimaxCodeTool, // MiniMax M3 - 1M ctx, agentic/coding
|
|
132
132
|
minimaxAgentTool, // MiniMax M3 - agentic workflows
|
|
@@ -24,13 +24,15 @@ const nebulaTheme = {
|
|
|
24
24
|
description: 'Modern SaaS look with soft pastels (default)',
|
|
25
25
|
modelBadges: {
|
|
26
26
|
// OpenAI - Emerald green (brand color)
|
|
27
|
-
openai: { bg: 'bgGreen', fg: 'black', label: '
|
|
28
|
-
'gpt-5.
|
|
29
|
-
'gpt-5.
|
|
30
|
-
'gpt-5.
|
|
27
|
+
openai: { bg: 'bgGreen', fg: 'black', label: ' openai ' },
|
|
28
|
+
'gpt-5.6-sol': { bg: 'bgGreenBright', fg: 'black', label: ' gpt-5.6-sol ' },
|
|
29
|
+
'gpt-5.6-terra': { bg: 'bgGreen', fg: 'black', label: ' gpt-5.6-terra ' },
|
|
30
|
+
'gpt-5.6-luna': { bg: 'bgGreen', fg: 'black', label: ' gpt-5.6-luna ' },
|
|
31
|
+
'gpt-5.5': { bg: 'bgGreen', fg: 'black', label: ' gpt-5.5 ' },
|
|
31
32
|
// Gemini - Google blue
|
|
32
33
|
gemini: { bg: 'bgBlueBright', fg: 'black', label: ' gemini ' },
|
|
33
34
|
'gemini-3.1-pro-preview': { bg: 'bgBlueBright', fg: 'black', label: ' gemini-3.1-pro ' },
|
|
35
|
+
'gemini-3.6-flash': { bg: 'bgCyanBright', fg: 'black', label: ' gemini-3.6-flash ' },
|
|
34
36
|
'gemini-3.5-flash': { bg: 'bgCyanBright', fg: 'black', label: ' gemini-3.5-flash ' },
|
|
35
37
|
'gemini-3-flash-preview': { bg: 'bgCyanBright', fg: 'black', label: ' gemini-flash ' },
|
|
36
38
|
// Grok - Magenta/purple
|
|
@@ -107,13 +109,15 @@ const cyberpunkTheme = {
|
|
|
107
109
|
description: 'High contrast neon on black - Blade Runner vibes',
|
|
108
110
|
modelBadges: {
|
|
109
111
|
// OpenAI - Electric green
|
|
110
|
-
openai: { bg: 'bgGreenBright', fg: 'black', label: ' ⚡
|
|
111
|
-
'gpt-5.
|
|
112
|
-
'gpt-5.
|
|
113
|
-
'gpt-5.
|
|
112
|
+
openai: { bg: 'bgGreenBright', fg: 'black', label: ' ⚡ OPENAI ' },
|
|
113
|
+
'gpt-5.6-sol': { bg: 'bgGreenBright', fg: 'black', label: ' ⚡ GPT-5.6-SOL ' },
|
|
114
|
+
'gpt-5.6-terra': { bg: 'bgGreenBright', fg: 'black', label: ' ⚡ GPT-5.6-TERRA ' },
|
|
115
|
+
'gpt-5.6-luna': { bg: 'bgGreenBright', fg: 'black', label: ' ⚡ GPT-5.6-LUNA ' },
|
|
116
|
+
'gpt-5.5': { bg: 'bgGreen', fg: 'black', label: ' ⚡ GPT-5.5 ' },
|
|
114
117
|
// Gemini - Electric blue
|
|
115
118
|
gemini: { bg: 'bgBlueBright', fg: 'black', label: ' ◈ GEMINI ' },
|
|
116
119
|
'gemini-3.1-pro-preview': { bg: 'bgBlueBright', fg: 'black', label: ' ◈ GEMINI-3 ' },
|
|
120
|
+
'gemini-3.6-flash': { bg: 'bgCyanBright', fg: 'black', label: ' ◈ GEMINI-3.6-FLASH ' },
|
|
117
121
|
'gemini-3.5-flash': { bg: 'bgCyanBright', fg: 'black', label: ' ◈ GEMINI-3.5-FLASH ' },
|
|
118
122
|
'gemini-3-flash-preview': { bg: 'bgCyanBright', fg: 'black', label: ' ◈ GEMINI-FLASH ' },
|
|
119
123
|
// Grok - Hot magenta
|
|
@@ -190,12 +194,14 @@ const minimalTheme = {
|
|
|
190
194
|
description: 'Clean Swiss typography, minimal color usage',
|
|
191
195
|
modelBadges: {
|
|
192
196
|
// All badges are simple, dark bg with white text
|
|
193
|
-
openai: { bg: 'bgBlack', fg: 'green', label: '
|
|
194
|
-
'gpt-5.
|
|
195
|
-
'gpt-5.
|
|
196
|
-
'gpt-5.
|
|
197
|
+
openai: { bg: 'bgBlack', fg: 'green', label: ' openai ' },
|
|
198
|
+
'gpt-5.6-sol': { bg: 'bgBlack', fg: 'greenBright', label: ' gpt-5.6-sol ' },
|
|
199
|
+
'gpt-5.6-terra': { bg: 'bgBlack', fg: 'green', label: ' gpt-5.6-terra ' },
|
|
200
|
+
'gpt-5.6-luna': { bg: 'bgBlack', fg: 'green', label: ' gpt-5.6-luna ' },
|
|
201
|
+
'gpt-5.5': { bg: 'bgBlack', fg: 'green', label: ' gpt-5.5 ' },
|
|
197
202
|
gemini: { bg: 'bgBlack', fg: 'blue', label: ' gemini ' },
|
|
198
203
|
'gemini-3.1-pro-preview': { bg: 'bgBlack', fg: 'blue', label: ' gemini-3 ' },
|
|
204
|
+
'gemini-3.6-flash': { bg: 'bgBlack', fg: 'blueBright', label: ' gemini-3.6-flash ' },
|
|
199
205
|
'gemini-3.5-flash': { bg: 'bgBlack', fg: 'blueBright', label: ' gemini-3.5-flash ' },
|
|
200
206
|
'gemini-3-flash-preview': { bg: 'bgBlack', fg: 'blueBright', label: ' gemini-flash ' },
|
|
201
207
|
grok: { bg: 'bgBlack', fg: 'magenta', label: ' grok ' },
|
|
@@ -266,12 +272,14 @@ const oceanTheme = {
|
|
|
266
272
|
name: 'ocean',
|
|
267
273
|
description: 'Cool blues and teals - calm and professional',
|
|
268
274
|
modelBadges: {
|
|
269
|
-
openai: { bg: 'bgGreen', fg: 'black', label: '
|
|
270
|
-
'gpt-5.
|
|
271
|
-
'gpt-5.
|
|
272
|
-
'gpt-5.
|
|
275
|
+
openai: { bg: 'bgGreen', fg: 'black', label: ' openai ' },
|
|
276
|
+
'gpt-5.6-sol': { bg: 'bgGreenBright', fg: 'black', label: ' gpt-5.6-sol ' },
|
|
277
|
+
'gpt-5.6-terra': { bg: 'bgGreen', fg: 'black', label: ' gpt-5.6-terra ' },
|
|
278
|
+
'gpt-5.6-luna': { bg: 'bgGreen', fg: 'black', label: ' gpt-5.6-luna ' },
|
|
279
|
+
'gpt-5.5': { bg: 'bgGreen', fg: 'black', label: ' gpt-5.5 ' },
|
|
273
280
|
gemini: { bg: 'bgBlueBright', fg: 'black', label: ' gemini ' },
|
|
274
281
|
'gemini-3.1-pro-preview': { bg: 'bgBlueBright', fg: 'black', label: ' gemini-3 ' },
|
|
282
|
+
'gemini-3.6-flash': { bg: 'bgBlue', fg: 'white', label: ' gemini-3.6-flash ' },
|
|
275
283
|
'gemini-3.5-flash': { bg: 'bgBlue', fg: 'white', label: ' gemini-3.5-flash ' },
|
|
276
284
|
'gemini-3-flash-preview': { bg: 'bgBlue', fg: 'white', label: ' gemini-flash ' },
|
|
277
285
|
grok: { bg: 'bgMagenta', fg: 'white', label: ' grok ' },
|
package/docs/TOOLS_REFERENCE.md
CHANGED
|
@@ -222,7 +222,7 @@ openai_reason({
|
|
|
222
222
|
|
|
223
223
|
### qwen_reason
|
|
224
224
|
|
|
225
|
-
Heavy mathematical reasoning with Qwen3-Max
|
|
225
|
+
Heavy mathematical reasoning with Qwen3.8-Max (flagship Qwen reasoning model, 1M context). Put your PROBLEM in the `problem` parameter.
|
|
226
226
|
|
|
227
227
|
#### Parameters
|
|
228
228
|
|
|
@@ -271,7 +271,7 @@ qwq_reason({
|
|
|
271
271
|
|
|
272
272
|
### kimi_thinking
|
|
273
273
|
|
|
274
|
-
Kimi
|
|
274
|
+
Kimi K3 multimodal reasoning (2.8T MoE, 1M context). Put your PROBLEM in the `problem` parameter.
|
|
275
275
|
|
|
276
276
|
#### Parameters
|
|
277
277
|
|
|
@@ -296,7 +296,7 @@ kimi_thinking({
|
|
|
296
296
|
|
|
297
297
|
### kimi_decompose
|
|
298
298
|
|
|
299
|
-
Structured task decomposition with Kimi
|
|
299
|
+
Structured task decomposition with Kimi K3 extended reasoning. Breaks tasks into subtasks with IDs, dependencies, and acceptance criteria.
|
|
300
300
|
|
|
301
301
|
#### Parameters
|
|
302
302
|
|
|
@@ -544,7 +544,7 @@ spec_writer({
|
|
|
544
544
|
|
|
545
545
|
### kimi_code
|
|
546
546
|
|
|
547
|
-
SWE-focused code generation/fixing with Kimi
|
|
547
|
+
SWE-focused code generation/fixing with Kimi K3 (long-horizon agentic coding). Put your REQUEST in the `query` parameter.
|
|
548
548
|
|
|
549
549
|
#### Parameters
|
|
550
550
|
|
|
@@ -937,7 +937,7 @@ jury({
|
|
|
937
937
|
|
|
938
938
|
### diff_review
|
|
939
939
|
|
|
940
|
-
Multi-model diff-aware code review: 2-3 lab-diverse reviewers (Kimi
|
|
940
|
+
Multi-model diff-aware code review: 2-3 lab-diverse reviewers (Kimi K3, DeepSeek V4 Pro, GPT-5.6 Sol) scoped to the changed lines, deduplicated and severity-ranked by a Gemini judge. Provide the unified diff in `diff`.
|
|
941
941
|
|
|
942
942
|
#### Parameters
|
|
943
943
|
|
|
@@ -1168,7 +1168,7 @@ security_review({
|
|
|
1168
1168
|
|
|
1169
1169
|
### kimi_long_context
|
|
1170
1170
|
|
|
1171
|
-
Long-context analysis with Kimi
|
|
1171
|
+
Long-context analysis with Kimi K3 (1M context window). Put CONTENT in the `content` parameter.
|
|
1172
1172
|
|
|
1173
1173
|
#### Parameters
|
|
1174
1174
|
|
package/docs/TOOL_PARAMETERS.md
CHANGED
|
@@ -59,7 +59,7 @@ The single-model reasoning tools (`grok_reason`, `deepseek_reason`, `glm_reason`
|
|
|
59
59
|
|
|
60
60
|
Model-specific extras: `grok_reason` has `useHeavy: boolean` (Grok 4 Heavy, $3/$15, for hard problems); `kimi_thinking` has `maxSteps: integer (1-10, default 3)`.
|
|
61
61
|
|
|
62
|
-
**Choosing among the reasoning tools** — see CLAUDE.md's Model Configuration table for current model IDs/pricing. As a rule of thumb: `deepseek_reason` for open-weight frontier math/reasoning, `qwen_reason` for the heaviest math (
|
|
62
|
+
**Choosing among the reasoning tools** — see CLAUDE.md's Model Configuration table for current model IDs/pricing. As a rule of thumb: `deepseek_reason` for open-weight frontier math/reasoning, `qwen_reason` for the heaviest math (Qwen3.8 Max, 1M context), `qwq_reason` when you want 4-perspective debate instead of a single answer, `kimi_thinking`/`glm_reason` for agentic/tool-use planning, `stepfun_reason` for cheaper-but-strong AIME/SWE reasoning, `ernie_reason` for broad-knowledge/arena-style answers.
|
|
63
63
|
|
|
64
64
|
---
|
|
65
65
|
|
package/package.json
CHANGED
package/skills/lens/SKILL.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lens
|
|
3
|
-
description: Long-context analysis — examine a large document or codebase under a focused lens using active retrieval over Kimi's
|
|
3
|
+
description: Long-context analysis — examine a large document or codebase under a focused lens using active retrieval over Kimi's 1M window, surfacing insights, relations, and inconsistencies
|
|
4
4
|
user-invocable: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Lens - Long-Context Analysis
|
|
8
8
|
|
|
9
|
-
Deeply analyze a large document, codebase, or transcript that's too big to reason about by skimming. Uses ACTIVE RETRIEVAL (map → query → synthesize) over Kimi
|
|
9
|
+
Deeply analyze a large document, codebase, or transcript that's too big to reason about by skimming. Uses ACTIVE RETRIEVAL (map → query → synthesize) over Kimi K3's 1M window instead of dumping everything in at once — which avoids the "lost in the middle" failure mode of naive long-context prompting.
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
```
|
|
@@ -25,7 +25,7 @@ Deeply analyze a large document, codebase, or transcript that's too big to reaso
|
|
|
25
25
|
|
|
26
26
|
| | `/lens` | `/decompose` | `gemini_analyze_text` |
|
|
27
27
|
|---|---|---|---|
|
|
28
|
-
| Input | Large existing content (≤
|
|
28
|
+
| Input | Large existing content (≤1M) | A problem to split | A single argument/text |
|
|
29
29
|
| Strategy | Map → query sections → synthesize | Split into sub-problems | Rhetoric/bias dissection |
|
|
30
30
|
| Use when | "Understand this big thing" | "Break this problem down" | "Analyze this claim" |
|
|
31
31
|
|
package/skills/review/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review
|
|
3
|
-
description: Use when code changes are ready for review — a diff exists, the user says "review my changes/PR", or a commit is about to happen. Multi-model diff review (Kimi, DeepSeek, GPT-5.
|
|
3
|
+
description: Use when code changes are ready for review — a diff exists, the user says "review my changes/PR", or a commit is about to happen. Multi-model diff review (Kimi K3, DeepSeek, GPT-5.6 panel + Gemini judge) with a MERGEABLE verdict
|
|
4
4
|
user-invocable: true
|
|
5
5
|
---
|
|
6
6
|
|