tachibot-mcp 2.35.0 → 2.35.1
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 +15 -0
- package/README.md +11 -1
- package/dist/src/tools/jury-tool.js +9 -1
- package/dist/src/tools/openai-tools.js +5 -2
- package/dist/src/tools/planner-tools.js +66 -28
- package/dist/src/workflows/tool-mapper.js +4 -4
- package/docs/TOOLS_REFERENCE.md +2 -1
- package/package.json +1 -1
- package/workflows/jev-gated-answer.yaml +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ 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.35.1] - 2026-10-15
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- **The planner's code-analysis step now runs on DeepSeek V4 Pro** (`deepseek_reason`) instead of Qwen3-Coder-Next (`qwen_coder`, an 80B/3B-active MoE at $0.14/$0.80). That step was the one small model in a council of flagships (Grok 4.7, Kimi K3, GPT-6 Astra, Qwen3.8 Max, Gemini 4 Argon), and it adds a sixth lab to the plan. In a live check, DeepSeek V4 Pro scored a sample Express handler on quality, security and performance in about 29s. Set `TACHI_PLANNER_TIER=standard` to switch back to the cheaper lineup. The variable is read at call time.
|
|
12
|
+
- **The jury's GPT juror is pinned to `gpt-6.1-sol`** ($2/$10). Since v2.14.7 it had passed no model, so it silently got `callOpenAI`'s cheap default, which is now `gpt-6-luna` ($0.10/$0.50, weak recall on long inputs). Override it with `TACHI_JURY_OPENAI_MODEL`, for example `gpt-6-astra`.
|
|
13
|
+
- **Planner prompts call the analysis "CODE ANALYSIS"** instead of "QWEN'S ANALYSIS", so later models aren't told the wrong author. The prior key stays `analyze_qwen` for compatibility.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- **The planner no longer hands the agent a tool that its profile doesn't register.** `code_focus` includes `planner_maker` but not `qwen_reason`, so the draft-synthesis step and the `planner_runner` 50% gate pointed at a missing tool. Both now fall back to `deepseek_reason`, and the analysis step falls back to `qwen_coder`.
|
|
17
|
+
- **The `planner_runner` 50% gate now sends `{problem, approach}`**, matching the reasoning tools' schema, instead of `{query}`.
|
|
18
|
+
- **The `kimi_decompose` step description said "Kimi K2.5".** It now says Kimi K3, the model it actually calls.
|
|
19
|
+
|
|
20
|
+
### Security
|
|
21
|
+
- **The workflow step guard now validates paths with the file reader's own parsing.** In 2.35.0 the guard parsed `files` separately from the reader, so `foo:5` could open a symlink out of the repo and `.` could expand to `credentials.json`. Every file the reader would open is now checked, and hidden path segments (`.env`, `.git`, `.ssh`…) are refused.
|
|
22
|
+
|
|
8
23
|
## [2.35.0] - 2026-10-14
|
|
9
24
|
|
|
10
25
|
Every model ID below was verified on 2026-10-14 against the provider's live model listing and with real calls through the built tools (16/16 tool paths pass).
|
package/README.md
CHANGED
|
@@ -30,6 +30,15 @@ from Claude Code, Claude Desktop, Cursor, or any MCP client.
|
|
|
30
30
|
|
|
31
31
|
## What's New
|
|
32
32
|
|
|
33
|
+
### v2.35.1
|
|
34
|
+
- **The planner's code analysis runs on DeepSeek V4 Pro** instead of Qwen3-Coder-Next, the one small model in the council. That adds a sixth lab. Set `TACHI_PLANNER_TIER=standard` for the cheaper lineup.
|
|
35
|
+
- **The jury's GPT juror is pinned to `gpt-6.1-sol`.** It had been silently getting the cheap `gpt-6-luna` default. Override with `TACHI_JURY_OPENAI_MODEL`.
|
|
36
|
+
- **Fixes:**
|
|
37
|
+
- The planner no longer points at tools its profile doesn't register (`code_focus` lacks `qwen_reason`).
|
|
38
|
+
- The `planner_runner` 50% gate now sends the right params.
|
|
39
|
+
- The workflow step guard now checks paths with the file reader's own parsing.
|
|
40
|
+
- Tool count unchanged at 67.
|
|
41
|
+
|
|
33
42
|
### v2.35.0
|
|
34
43
|
- **Gemini 4 Argon is the reasoning/judge default** (GA Oct 13). In our judge tests it was faster and cheaper than 3.1 Pro even at its Dec 1 price ($4/$20), and on a real diff it caught defects that 3.1 Pro passed as "no defects, 5/5". Switch back without a code change with `TACHI_GEMINI_PRO_MODEL=gemini-3.1-pro-preview`.
|
|
35
44
|
- **Model refresh, every ID verified live:**
|
|
@@ -175,7 +184,8 @@ Skills automatically adapt to your configured API keys. Even with just 1-2 provi
|
|
|
175
184
|
### Multi-Model Intelligence
|
|
176
185
|
- **67 AI Tools** across 11 providers — Perplexity, Grok, GPT-6, Gemini, Qwen, Kimi, MiniMax, DeepSeek, GLM (Zhipu), StepFun, TypeSafe Jev, plus free local models (Ollama / LM Studio / llama.cpp / vLLM)
|
|
177
186
|
- **Gemini 4 Argon** (`gemini-4-argon`, GA Oct 13 2026) — reasoning/judge default; set `TACHI_GEMINI_PRO_MODEL=gemini-3.1-pro-preview` to roll back. Flash/search tier is `gemini-3.8-flash`
|
|
178
|
-
- **Multi-Model Council** — planner_maker synthesizes plans from
|
|
187
|
+
- **Multi-Model Council** — planner_maker synthesizes plans from six labs into bite-sized TDD steps. Code analysis runs on DeepSeek V4 Pro; set `TACHI_PLANNER_TIER=standard` for the cheaper Qwen3-Coder-Next lineup
|
|
188
|
+
- **Jury** — the GPT juror runs on `gpt-6.1-sol`; override with `TACHI_JURY_OPENAI_MODEL` (e.g. `gpt-6-astra`)
|
|
179
189
|
- **Smart Routing** — Automatic model selection for optimal results
|
|
180
190
|
- **OpenRouter Gateway** — Optional single API key for all providers
|
|
181
191
|
|
|
@@ -11,12 +11,20 @@ import { callGrok } from "./grok-tools.js";
|
|
|
11
11
|
import { callOpenAI } from "./openai-tools.js";
|
|
12
12
|
import { callOpenRouter, OpenRouterModel } from "./openrouter-tools.js";
|
|
13
13
|
import { callLocal } from "./local-tools.js";
|
|
14
|
+
import { OPENAI_MODELS } from "../config/model-constants.js";
|
|
14
15
|
import { FORMAT_INSTRUCTION } from "../utils/format-constants.js";
|
|
15
16
|
import { isProviderFailure } from "../utils/provider-failure.js";
|
|
16
17
|
import { runJudge, judgeAttribution } from "../utils/judge-runner.js";
|
|
17
18
|
import { JUDGE_MODE_INSTRUCTIONS, JUDGE_METHOD, JUDGE_EPISTEMIC_LIMIT, JUDGE_BIAS_CONTROLS, JUDGE_FORMAT_EXCEPTION, } from "../utils/judge-constants.js";
|
|
18
19
|
import { stripFormatting } from "../utils/format-stripper.js";
|
|
19
20
|
import { withHeartbeat } from "../utils/streaming-helper.js";
|
|
21
|
+
// GPT juror model. Was implicit (callOpenAI's cheap default, now gpt-6-luna)
|
|
22
|
+
// since v2.14.7 — never a deliberate choice. Pinned to the GPT-6.1 sol mid
|
|
23
|
+
// tier ($2/$10); TACHI_JURY_OPENAI_MODEL overrides (e.g. gpt-6-astra, gpt-6-luna).
|
|
24
|
+
// Read at call time so .env (loaded after this module) is honoured.
|
|
25
|
+
export function getJuryOpenAIModel() {
|
|
26
|
+
return process.env.TACHI_JURY_OPENAI_MODEL?.trim() || OPENAI_MODELS.SOL;
|
|
27
|
+
}
|
|
20
28
|
// Per-juror output budget. Reasoning-heavy jurors (GLM, Kimi, DeepSeek,
|
|
21
29
|
// GPT-5.5 high-effort) spend much of their token budget on internal reasoning
|
|
22
30
|
// BEFORE the visible answer, so a tight cap truncates the verdict mid-sentence
|
|
@@ -41,7 +49,7 @@ export const JUROR_REGISTRY = {
|
|
|
41
49
|
call: async (q) => callOpenAI([
|
|
42
50
|
{ role: "system", content: `You are an analytical reasoner. Consider tradeoffs, edge cases, and nuance. ${FORMAT_INSTRUCTION}` },
|
|
43
51
|
{ role: "user", content: q }
|
|
44
|
-
],
|
|
52
|
+
], getJuryOpenAIModel(), 0.7, JUROR_MAX_TOKENS, "high"),
|
|
45
53
|
},
|
|
46
54
|
qwen: {
|
|
47
55
|
label: "Qwen (Code & Logic)",
|
|
@@ -458,7 +458,10 @@ export const openaiGpt5ReasonTool = defineModelTool({
|
|
|
458
458
|
mode: z.string()
|
|
459
459
|
.optional()
|
|
460
460
|
.default("analytical")
|
|
461
|
-
.describe("Reasoning mode (e.g., mathematical, scientific, logical, analytical)")
|
|
461
|
+
.describe("Reasoning mode (e.g., mathematical, scientific, logical, analytical)"),
|
|
462
|
+
model: z.enum(["gpt-6-astra", "gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"])
|
|
463
|
+
.optional()
|
|
464
|
+
.describe("Model to use - gpt-6-astra (default, flagship), gpt-6.1-sol (mid tier), gpt-6-sol (previous mid tier), gpt-6-luna (fast/cheap), gpt-5.6-sol/terra/luna (previous generation)")
|
|
462
465
|
}),
|
|
463
466
|
execute: async (args, { log, reportProgress, skipValidation }) => {
|
|
464
467
|
const modePrompts = {
|
|
@@ -490,7 +493,7 @@ ${FORMAT_INSTRUCTION}`
|
|
|
490
493
|
// recommends reserving it for the hardest quality-first work and comparing it against
|
|
491
494
|
// xhigh first, and it costs latency on every call. Both land in the 180s timeout branch.
|
|
492
495
|
const reportFn = reportProgress ?? (async () => { });
|
|
493
|
-
return await withHeartbeat(() => callOpenAI(messages, OPENAI_MODELS.DEFAULT, 0.7, 8000, OPENAI_REASONING.XHIGH, false, skipValidation || false), reportFn);
|
|
496
|
+
return await withHeartbeat(() => callOpenAI(messages, args.model ?? OPENAI_MODELS.DEFAULT, 0.7, 8000, OPENAI_REASONING.XHIGH, false, skipValidation || false), reportFn);
|
|
494
497
|
}
|
|
495
498
|
});
|
|
496
499
|
/**
|
|
@@ -15,6 +15,8 @@ import * as path from "path";
|
|
|
15
15
|
import { readFilesIntoContext } from "../utils/file-reader.js";
|
|
16
16
|
import { defineModelTool } from "./factory/define-model-tool.js";
|
|
17
17
|
import { filesField } from "./factory/base-schemas.js";
|
|
18
|
+
import { isToolEnabled } from "../utils/tool-config.js";
|
|
19
|
+
import { OPENAI_MODELS } from "../config/model-constants.js";
|
|
18
20
|
// ═══════════════════════════════════════════════════════════════════
|
|
19
21
|
// CONTEXT LIMITS
|
|
20
22
|
// ═══════════════════════════════════════════════════════════════════
|
|
@@ -98,6 +100,7 @@ const TOOL_MAX_TOKENS = {
|
|
|
98
100
|
gemini_search: 3000,
|
|
99
101
|
// Analysis tools - medium verbosity
|
|
100
102
|
qwen_coder: 2500,
|
|
103
|
+
deepseek_reason: 3000,
|
|
101
104
|
minimax_code: 2500,
|
|
102
105
|
kimi_thinking: 2500,
|
|
103
106
|
kimi_decompose: 3000,
|
|
@@ -345,6 +348,32 @@ function listRecentPlans(days = 7) {
|
|
|
345
348
|
.sort((a, b) => b.created.getTime() - a.created.getTime());
|
|
346
349
|
return files;
|
|
347
350
|
}
|
|
351
|
+
export function getPlannerTier() {
|
|
352
|
+
return process.env.TACHI_PLANNER_TIER?.trim().toLowerCase() === "standard" ? "standard" : "quality";
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* First candidate the active profile actually exposes. Without this the
|
|
356
|
+
* planner could hand the agent a tool its profile never registered (e.g.
|
|
357
|
+
* code_focus has planner_maker but not qwen_reason). Falls back to the first
|
|
358
|
+
* candidate when none is enabled, so the instruction still names a real tool.
|
|
359
|
+
*/
|
|
360
|
+
export function pickEnabledTool(candidates) {
|
|
361
|
+
return candidates.find(t => isToolEnabled(t)) ?? candidates[0];
|
|
362
|
+
}
|
|
363
|
+
function codeAnalysisTool() {
|
|
364
|
+
return getPlannerTier() === "standard"
|
|
365
|
+
? pickEnabledTool(["qwen_coder", "deepseek_reason"])
|
|
366
|
+
: pickEnabledTool(["deepseek_reason", "qwen_coder"]);
|
|
367
|
+
}
|
|
368
|
+
/** Draft-synthesis + 50% gate model: Qwen3.8 Max, else DeepSeek V4 Pro (same {problem, approach} params). */
|
|
369
|
+
function synthesisReasonTool() {
|
|
370
|
+
return pickEnabledTool(["qwen_reason", "deepseek_reason"]);
|
|
371
|
+
}
|
|
372
|
+
const TOOL_MODEL_LABEL = {
|
|
373
|
+
qwen_coder: "Qwen3-Coder-Next",
|
|
374
|
+
deepseek_reason: "DeepSeek V4 Pro",
|
|
375
|
+
qwen_reason: "Qwen3.8 Max",
|
|
376
|
+
};
|
|
348
377
|
/**
|
|
349
378
|
* Get context limit for a step. Synthesis steps get more context.
|
|
350
379
|
*/
|
|
@@ -425,16 +454,12 @@ export const ALL_WORKFLOW_STEPS = [
|
|
|
425
454
|
},
|
|
426
455
|
// Phase 2: Analysis (2 tools - WITH actual code review when provided)
|
|
427
456
|
{
|
|
428
|
-
id: "analyze_qwen",
|
|
457
|
+
id: "analyze_qwen", // id kept: callers pass prior.analyze_qwen back
|
|
429
458
|
phase: "Analysis",
|
|
430
|
-
tool
|
|
431
|
-
thinking: "Code-focused analysis.
|
|
432
|
-
buildParams: (task, context, codeContext, answers, prior) =>
|
|
433
|
-
|
|
434
|
-
...(codeContext ? { code: codeContext } : {}),
|
|
435
|
-
// qwen_coder's schema requires `query` (there is no `requirements`
|
|
436
|
-
// field, and it's not a recognized alias — see param-aliases.ts)
|
|
437
|
-
query: `Task: ${task}
|
|
459
|
+
get tool() { return codeAnalysisTool(); },
|
|
460
|
+
thinking: "Code-focused analysis. Technical feasibility — APIs, dependencies, data structures. When codeContext is provided, it reviews ACTUAL code to score quality and identify specific changes needed. Quality tier: DeepSeek V4 Pro; standard tier: Qwen3-Coder-Next.",
|
|
461
|
+
buildParams: (task, context, codeContext, answers, prior) => {
|
|
462
|
+
const prompt = `Task: ${task}
|
|
438
463
|
${context ? `Context: ${context}` : ""}
|
|
439
464
|
${answers ? `User Clarifications:\n${answers}` : ""}
|
|
440
465
|
${prior.search ? `Research:\n${extractSummary(prior.search, PRIOR_CONTEXT_LIMIT_INTERMEDIATE)}` : ""}
|
|
@@ -448,9 +473,19 @@ Analyze this code and provide:
|
|
|
448
473
|
3. Performance score /10 (complexity, bottlenecks)
|
|
449
474
|
4. Specific issues found with line references
|
|
450
475
|
5. Implementation approach for the task` : "Analyze feasibility and provide implementation approach."}
|
|
451
|
-
${DISTILL_SUFFIX}
|
|
452
|
-
|
|
453
|
-
|
|
476
|
+
${DISTILL_SUFFIX}`;
|
|
477
|
+
if (codeAnalysisTool() === "deepseek_reason") {
|
|
478
|
+
return { problem: prompt, approach: "analytical" };
|
|
479
|
+
}
|
|
480
|
+
// qwen_coder's schema requires `query` (there is no `requirements`
|
|
481
|
+
// field, and it's not a recognized alias — see param-aliases.ts)
|
|
482
|
+
return {
|
|
483
|
+
task: codeContext ? "review" : "analyze",
|
|
484
|
+
...(codeContext ? { code: codeContext } : {}),
|
|
485
|
+
query: prompt,
|
|
486
|
+
};
|
|
487
|
+
},
|
|
488
|
+
get description() { return `Analyze code feasibility + quality (${TOOL_MODEL_LABEL[codeAnalysisTool()]})`; },
|
|
454
489
|
},
|
|
455
490
|
{
|
|
456
491
|
id: "analyze_kimi",
|
|
@@ -480,7 +515,7 @@ ${DISTILL_SUFFIX}`,
|
|
|
480
515
|
id: "decompose_kimi",
|
|
481
516
|
phase: "Decomposition",
|
|
482
517
|
tool: "kimi_decompose",
|
|
483
|
-
thinking: "Structured decomposition. Kimi
|
|
518
|
+
thinking: "Structured decomposition. Kimi K3 uses Agent Swarm reasoning to break the task into parallel subtasks with IDs, dependencies, and acceptance criteria. This dependency graph feeds into the synthesis phase for a more actionable, ordered plan.",
|
|
484
519
|
buildParams: (task, context, _codeContext, answers, prior) => ({
|
|
485
520
|
task: `${task}${answers ? `\n\nUser clarifications:\n${answers}` : ""}`,
|
|
486
521
|
context: [
|
|
@@ -492,7 +527,7 @@ ${DISTILL_SUFFIX}`,
|
|
|
492
527
|
depth: 3,
|
|
493
528
|
outputFormat: "dependencies",
|
|
494
529
|
}),
|
|
495
|
-
description: "Task decomposition with dependencies (Kimi
|
|
530
|
+
description: "Task decomposition with dependencies (Kimi K3)",
|
|
496
531
|
dokoroType: "progress",
|
|
497
532
|
},
|
|
498
533
|
// Phase 2b: Debate (CONDITIONAL - lightweight pro/con, main points only)
|
|
@@ -508,7 +543,7 @@ ${DISTILL_SUFFIX}`,
|
|
|
508
543
|
TASK: ${task}
|
|
509
544
|
${context ? `CONTEXT: ${context}` : ""}
|
|
510
545
|
|
|
511
|
-
|
|
546
|
+
CODE ANALYSIS: ${distilledPrior("analyze_qwen", prior) || "N/A"}
|
|
512
547
|
KIMI'S ANALYSIS: ${distilledPrior("analyze_kimi", prior) || "N/A"}
|
|
513
548
|
|
|
514
549
|
Argue the TOP 5 reasons this approach is correct:
|
|
@@ -539,7 +574,7 @@ ${context ? `CONTEXT: ${context}` : ""}
|
|
|
539
574
|
PRO ARGUMENTS (Grok):
|
|
540
575
|
${distilledPrior("debate_pro", prior) || "N/A"}
|
|
541
576
|
|
|
542
|
-
|
|
577
|
+
CODE ANALYSIS: ${distilledPrior("analyze_qwen", prior) || "N/A"}
|
|
543
578
|
|
|
544
579
|
PART 1 - AGAINST (TOP 5 risks):
|
|
545
580
|
1. Architecture/design weaknesses
|
|
@@ -563,14 +598,14 @@ ${DISTILL_SUFFIX}`,
|
|
|
563
598
|
id: "critique",
|
|
564
599
|
phase: "Critique",
|
|
565
600
|
tool: "openai_reason",
|
|
566
|
-
thinking: "Pre-mortem + adversarial review. GPT assumes this implementation has FAILED in production, then works backward to find why. Combines pre-mortem analysis (Klein 2007) with devil's advocate critique. When code is provided, it hunts for security vulnerabilities and performance issues in the actual implementation.",
|
|
601
|
+
thinking: "Pre-mortem + adversarial review. GPT-6.1 Sol assumes this implementation has FAILED in production, then works backward to find why. Combines pre-mortem analysis (Klein 2007) with devil's advocate critique. When code is provided, it hunts for security vulnerabilities and performance issues in the actual implementation.",
|
|
567
602
|
buildParams: (task, _context, codeContext, answers, prior) => ({
|
|
568
603
|
query: `PRE-MORTEM + CRITIQUE: Assume this implementation FAILED in production 3 months from now. Work backward to find why.
|
|
569
604
|
|
|
570
605
|
TASK: ${task}
|
|
571
606
|
${answers ? `USER CLARIFICATIONS:\n${answers}` : ""}
|
|
572
607
|
|
|
573
|
-
|
|
608
|
+
CODE ANALYSIS: ${distilledPrior("analyze_qwen", prior) || "N/A"}
|
|
574
609
|
KIMI ANALYSIS: ${distilledPrior("analyze_kimi", prior) || "N/A"}
|
|
575
610
|
${prior.debate_con ? `
|
|
576
611
|
DEBATE SYNTHESIS (key tensions to address):
|
|
@@ -592,8 +627,10 @@ ${prior.debate_con ? "6. Unresolved tensions from the debate" : ""}
|
|
|
592
627
|
8. Score the proposed approach /10
|
|
593
628
|
${DISTILL_SUFFIX}`,
|
|
594
629
|
mode: "analytical",
|
|
630
|
+
// GPT-6.1 Sol: same xhigh effort as Astra at 1/5 the price ($2/$10 vs $10/$50)
|
|
631
|
+
model: OPENAI_MODELS.SOL,
|
|
595
632
|
}),
|
|
596
|
-
description: "Find holes and gaps (GPT)",
|
|
633
|
+
description: "Find holes and gaps (GPT-6.1 Sol)",
|
|
597
634
|
dokoroType: "progress",
|
|
598
635
|
},
|
|
599
636
|
// Phase 3b: UX Analysis (CONDITIONAL - Kimi systematic breakdown)
|
|
@@ -724,8 +761,8 @@ ${DISTILL_SUFFIX}`,
|
|
|
724
761
|
{
|
|
725
762
|
id: "judge_draft",
|
|
726
763
|
phase: "Judgment",
|
|
727
|
-
tool
|
|
728
|
-
thinking: "First synthesis pass. Now we merge:
|
|
764
|
+
get tool() { return synthesisReasonTool(); },
|
|
765
|
+
thinking: "First synthesis pass. Now we merge: the code analysis + Kimi's steps + GPT's critiques. Creates a coherent draft that addresses all findings and includes quality scores.",
|
|
729
766
|
buildParams: (task, _context, codeContext, answers, prior) => ({
|
|
730
767
|
problem: `Synthesize a coherent implementation plan:
|
|
731
768
|
|
|
@@ -733,7 +770,7 @@ TASK: ${task}
|
|
|
733
770
|
${answers ? `USER REQUIREMENTS:\n${answers}` : ""}
|
|
734
771
|
|
|
735
772
|
ANALYSES:
|
|
736
|
-
-
|
|
773
|
+
- Code analysis: ${distilledPrior("analyze_qwen", prior) || "N/A"}
|
|
737
774
|
- Kimi: ${distilledPrior("analyze_kimi", prior) || "N/A"}
|
|
738
775
|
${prior.decompose_kimi ? `\nTASK DECOMPOSITION (subtasks + dependencies):\n${truncateSmart(prior.decompose_kimi, PRIOR_CONTEXT_LIMIT_SYNTHESIS)}` : ""}
|
|
739
776
|
|
|
@@ -752,7 +789,7 @@ ${prior.responsive_judge ? "Include responsive design requirements and breakpoin
|
|
|
752
789
|
Include overall confidence score /10.`,
|
|
753
790
|
approach: "logical",
|
|
754
791
|
}),
|
|
755
|
-
description
|
|
792
|
+
get description() { return `Draft plan synthesis (${TOOL_MODEL_LABEL[synthesisReasonTool()]})`; },
|
|
756
793
|
isSynthesis: true,
|
|
757
794
|
},
|
|
758
795
|
{
|
|
@@ -831,7 +868,7 @@ Example:
|
|
|
831
868
|
[Execute grok_search]
|
|
832
869
|
|
|
833
870
|
planner_maker({ task: "Add auth", mode: "continue", step: 2, prior: { search: "..." } })
|
|
834
|
-
→ { nextTool: { tool: "
|
|
871
|
+
→ { nextTool: { tool: "deepseek_reason", params: {...} }, step: 2 }
|
|
835
872
|
|
|
836
873
|
... continue until isComplete: true`,
|
|
837
874
|
parameters: z.object({
|
|
@@ -1528,18 +1565,19 @@ VERDICT: ON_TRACK, AMEND_PLAN (with proposal), or WRONG_APPROACH`;
|
|
|
1528
1565
|
}
|
|
1529
1566
|
else if (checkpoint === "50%") {
|
|
1530
1567
|
const verifyPrompt = `50% CHECKPOINT — Progress & Goal Alignment Review\n\nCOMPLETED STEPS:\n${completedSteps.map(s => `${s.stepNum}. ${s.title}`).join('\n')}\n\nREMAINING STEPS:\n${remainingSteps.map(s => `${s.stepNum}. ${s.title}`).join('\n')}${goalPrompt}${evidence}\n\nRESPOND WITH:\n1. Progress assessment — are completed steps implemented correctly?\n2. Goal alignment — does current work serve the stated goal? Any drift?\n3. Remaining plan — should we adjust remaining steps to better serve the goal?\n4. Verdict: ON_TRACK or DRIFTING (with explanation)`;
|
|
1531
|
-
|
|
1568
|
+
const gateTool = synthesisReasonTool();
|
|
1569
|
+
lines.push(`### 🔍 50% — Progress Check (${TOOL_MODEL_LABEL[gateTool]})`);
|
|
1532
1570
|
lines.push("");
|
|
1533
1571
|
lines.push("Execute this verification tool:");
|
|
1534
1572
|
lines.push("");
|
|
1535
1573
|
lines.push("```json");
|
|
1536
1574
|
lines.push(JSON.stringify({
|
|
1537
|
-
tool:
|
|
1538
|
-
params: {
|
|
1575
|
+
tool: gateTool,
|
|
1576
|
+
params: { problem: verifyPrompt, approach: "logical" },
|
|
1539
1577
|
}, null, 2));
|
|
1540
1578
|
lines.push("```");
|
|
1541
1579
|
lines.push("");
|
|
1542
|
-
lines.push("After
|
|
1580
|
+
lines.push("After the 50% judge, continue to next step or adjust plan based on verdict.");
|
|
1543
1581
|
}
|
|
1544
1582
|
else if (checkpoint === "80%") {
|
|
1545
1583
|
const decomposeContext = `Remaining steps:\n${remainingSteps.map(s => `${s.stepNum}. ${s.title}${s.details ? ': ' + s.details.substring(0, 100) : ''}`).join('\n')}\n\nCompleted: ${completedSteps.map(s => `[${s.stepNum}] ${s.title}`).join(', ')}${goal ? `\n\nGOAL: ${goal}\nEnsure all remaining subtasks serve this goal. Flag any that don't.` : ""}`;
|
|
@@ -303,10 +303,10 @@ export async function executeWorkflowTool(toolName, input, options = {}) {
|
|
|
303
303
|
case "grok":
|
|
304
304
|
case "grok_reason":
|
|
305
305
|
case "grok_brainstorm":
|
|
306
|
-
case
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
306
|
+
// grok_search has NO case here on purpose: the old one ran a plain chat call
|
|
307
|
+
// (no live search, stale grok-4.20), so workflow "searches" answered from
|
|
308
|
+
// training data and reported real events as unverifiable. It now falls to
|
|
309
|
+
// `default` → the real registered grok_search tool.
|
|
310
310
|
case "grok_code":
|
|
311
311
|
case "grok_debug":
|
|
312
312
|
// Use non-reasoning model for code/debug (tool-calling optimized)
|
package/docs/TOOLS_REFERENCE.md
CHANGED
|
@@ -198,7 +198,7 @@ grok_reason({
|
|
|
198
198
|
|
|
199
199
|
### openai_reason
|
|
200
200
|
|
|
201
|
-
Mathematical reasoning
|
|
201
|
+
Mathematical reasoning with OpenAI's thinking tier (GPT-6 Astra by default, xhigh effort). Put your QUERY in the `query` parameter.
|
|
202
202
|
|
|
203
203
|
#### Parameters
|
|
204
204
|
|
|
@@ -208,6 +208,7 @@ Mathematical reasoning using GPT-5.2-thinking. Put your QUERY in the `query` par
|
|
|
208
208
|
| `mode` | `string` | No | `"analytical"` | Reasoning mode (e.g. mathematical, scientific, logical, analytical) |
|
|
209
209
|
| `context` | `string` | No | - | Additional context |
|
|
210
210
|
| `files` | `string[]` | No | - | File paths to read as code context |
|
|
211
|
+
| `model` | `string` | No | `gpt-6-astra` | Override: `gpt-6.1-sol`, `gpt-6-sol`, `gpt-6-luna`, `gpt-5.6-sol`/`terra`/`luna` (the planner's critique step pins `gpt-6.1-sol`) |
|
|
211
212
|
|
|
212
213
|
#### Example
|
|
213
214
|
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ steps:
|
|
|
53
53
|
condition:
|
|
54
54
|
if: "gate.answers.grounded.noul < 0.6"
|
|
55
55
|
input:
|
|
56
|
-
text: "Revise this answer using the new evidence.
|
|
56
|
+
text: "Revise this answer using the new evidence. Correct or cut a claim ONLY if the new evidence CONTRADICTS it. A claim the new evidence merely does not mention stays, marked [unconfirmed by second search]. If the new evidence found nothing at all, return the original answer unchanged with a one-line note saying so — absence of evidence is not contradiction.\n\nQUESTION:\n${query}\n\nORIGINAL ANSWER:\n${first_answer}\n\nNEW EVIDENCE:\n${extra_evidence}"
|
|
57
57
|
maxTokens: 3000
|
|
58
58
|
output:
|
|
59
59
|
variable: revised_answer
|