github-router 0.3.346 → 0.3.348
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/README.md +6 -6
- package/dist/{attribution-settings-DyzvcqWL.js → attribution-settings-P_vba-ri.js} +28 -18
- package/dist/attribution-settings-P_vba-ri.js.map +1 -0
- package/dist/{balanced-profile-contract-C6AgFJNp.js → balanced-profile-contract-XiIj4O1U.js} +7 -7
- package/dist/balanced-profile-contract-XiIj4O1U.js.map +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-Bc-4s27I.js → claude-D26fp1ih.js} +21 -20
- package/dist/claude-D26fp1ih.js.map +1 -0
- package/dist/{codex-D6ZfS7hJ.js → codex-DM97sCtu.js} +5 -5
- package/dist/{codex-D6ZfS7hJ.js.map → codex-DM97sCtu.js.map} +1 -1
- package/dist/copilot-discount-CilBhKQW.js.map +1 -1
- package/dist/engine-VTQo0qUy.js +2 -0
- package/dist/{gate-discovery-TC3k4dr1.js → gate-discovery-V-mslLHt.js} +4 -4
- package/dist/{gate-discovery-TC3k4dr1.js.map → gate-discovery-V-mslLHt.js.map} +1 -1
- package/dist/hooks.mjs +258 -10
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-artifact-open-lta2UPnE.js → internal-artifact-open-CXJbMXpq.js} +2 -2
- package/dist/{internal-artifact-open-lta2UPnE.js.map → internal-artifact-open-CXJbMXpq.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-7UiD_vM5.js → internal-fast-dispatch-guard-DRsZJ-Rg.js} +2 -2
- package/dist/{internal-fast-dispatch-guard-7UiD_vM5.js.map → internal-fast-dispatch-guard-DRsZJ-Rg.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-ByXUE5oO.js → internal-fast-dispatch-guard-DeZ6KilC.js} +1 -1
- package/dist/{internal-max-dispatch-guard-CioyE9wn.js → internal-max-dispatch-guard-DSjJwVH2.js} +3 -3
- package/dist/internal-max-dispatch-guard-DSjJwVH2.js.map +1 -0
- package/dist/{internal-max-dispatch-guard-BSRTtOit.js → internal-max-dispatch-guard-KmbYwh7h.js} +1 -1
- package/dist/{internal-plan-review-B4f0dpss.js → internal-plan-review-F-WbltsT.js} +3 -3
- package/dist/{internal-plan-review-B4f0dpss.js.map → internal-plan-review-F-WbltsT.js.map} +1 -1
- package/dist/{internal-prompt-submit-BMJ0A7vR.js → internal-prompt-submit-B1nd4y4V.js} +92 -6
- package/dist/internal-prompt-submit-B1nd4y4V.js.map +1 -0
- package/dist/{internal-session-bind-IpZ5hJzR.js → internal-session-bind-LrYEo-kg.js} +2 -2
- package/dist/{internal-session-bind-IpZ5hJzR.js.map → internal-session-bind-LrYEo-kg.js.map} +1 -1
- package/dist/{internal-stop-hook-BjdKy6On.js → internal-stop-hook-v5WF6Kc2.js} +5 -5
- package/dist/{internal-stop-hook-BjdKy6On.js.map → internal-stop-hook-v5WF6Kc2.js.map} +1 -1
- package/dist/{internal-stop-review-C7bOxX1q.js → internal-stop-review-nL003JIj.js} +2 -2
- package/dist/{internal-stop-review-C7bOxX1q.js.map → internal-stop-review-nL003JIj.js.map} +1 -1
- package/dist/main.js +13 -13
- package/dist/{max-profile-contract-LTJstj1e.js → max-profile-contract--dAYkEG1.js} +5 -4
- package/dist/max-profile-contract--dAYkEG1.js.map +1 -0
- package/dist/{orchestration-BMISq91N.js → orchestration-DjuJRhXn.js} +2 -2
- package/dist/{orchestration-BMISq91N.js.map → orchestration-DjuJRhXn.js.map} +1 -1
- package/dist/{peer-mcp-personas-CIV3aDP6.js → peer-mcp-personas-C200IycG.js} +107 -71
- package/dist/peer-mcp-personas-C200IycG.js.map +1 -0
- package/dist/{pi-CugyWYp7.js → pi-BWGfNpi7.js} +8 -5
- package/dist/pi-BWGfNpi7.js.map +1 -0
- package/dist/{plan-review-hook-BTvxvCCo.js → plan-review-hook-DMqPHBBN.js} +2 -2
- package/dist/{plan-review-hook-BTvxvCCo.js.map → plan-review-hook-DMqPHBBN.js.map} +1 -1
- package/dist/prompt-submit-hook-wjuHUrpS.js +352 -0
- package/dist/prompt-submit-hook-wjuHUrpS.js.map +1 -0
- package/dist/{provision-J68elA3c.js → provision-BFTONLfA.js} +3 -3
- package/dist/{provision-J68elA3c.js.map → provision-BFTONLfA.js.map} +1 -1
- package/dist/{serve-BEY7EjEv.js → serve-D9xQeGqi.js} +8 -8
- package/dist/{serve-BEY7EjEv.js.map → serve-D9xQeGqi.js.map} +1 -1
- package/dist/{server-setup-tNMUzFgE.js → server-setup-R1HQtpR9.js} +77 -35
- package/dist/server-setup-R1HQtpR9.js.map +1 -0
- package/dist/{start-BDxUhfDG.js → start-vg2n8UjI.js} +4 -4
- package/dist/{start-BDxUhfDG.js.map → start-vg2n8UjI.js.map} +1 -1
- package/dist/{stop-gate-hook-DBcxPgkF.js → stop-gate-hook-DRcYQAtf.js} +3 -3
- package/dist/{stop-gate-hook-DBcxPgkF.js.map → stop-gate-hook-DRcYQAtf.js.map} +1 -1
- package/dist/{stop-gate-policy-Gd_cNT9-.js → stop-gate-policy-CbLklfV2.js} +21 -2
- package/dist/{stop-gate-policy-Gd_cNT9-.js.map → stop-gate-policy-CbLklfV2.js.map} +1 -1
- package/package.json +1 -1
- package/dist/attribution-settings-DyzvcqWL.js.map +0 -1
- package/dist/balanced-profile-contract-C6AgFJNp.js.map +0 -1
- package/dist/claude-Bc-4s27I.js.map +0 -1
- package/dist/engine-PexAztE4.js +0 -2
- package/dist/internal-max-dispatch-guard-CioyE9wn.js.map +0 -1
- package/dist/internal-prompt-submit-BMJ0A7vR.js.map +0 -1
- package/dist/max-profile-contract-LTJstj1e.js.map +0 -1
- package/dist/peer-mcp-personas-CIV3aDP6.js.map +0 -1
- package/dist/pi-CugyWYp7.js.map +0 -1
- package/dist/prompt-submit-hook-BeLUDy_m.js +0 -173
- package/dist/prompt-submit-hook-BeLUDy_m.js.map +0 -1
- package/dist/server-setup-tNMUzFgE.js.map +0 -1
|
@@ -6,16 +6,16 @@ import { t as state } from "./state-CVp30CBF.js";
|
|
|
6
6
|
import { C as githubAgentGraphQLHeaders, S as copilotVersion, b as copilotBaseUrl, d as resolveModel, f as sleep$2, g as HTTPError, h as isAllowedCopilotHost, i as tryRefreshAndRetry, v as GITHUB_API_BASE_URL, w as githubAgentHeaders, x as copilotHeaders, y as GITHUB_GRAPHQL_URL } from "./token-s5Wd-Kwr.js";
|
|
7
7
|
import { a as withTransientRetry, i as sanitizeTransportText, n as classifyTransportError, r as fetchWithTransientRetry } from "./upstream-retry-i1k1Xai2.js";
|
|
8
8
|
import { a as parseIntEnv, i as parseBoolEnv, l as runManagedExeCapture, o as resolveExecutable } from "./exec-MCU1H-KZ.js";
|
|
9
|
-
import { S as FAST_PROFILE_ORACLE_MODEL, _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, c as BALANCED_PROFILE_ORACLE_MODEL, d as FAST_PROFILE_ADVISOR_EFFORT, f as FAST_PROFILE_ADVISOR_MODEL, m as FAST_PROFILE_ASTRA_MODEL, r as BALANCED_PROFILE_MODELS, x as FAST_PROFILE_ORACLE_EFFORT, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-
|
|
10
|
-
import { A as normalizeTrailingOneMSuffix, D as maxPeerInstructions, E as maxPeerDescription, O as fastEndpointForCatalogId, b as MAX_ADVISOR_SYSTEM_PROMPT, f as maxCodexReviewerModel, g as maxProReplacementModel, h as maxOpusModel, i as MAX_PROFILE_MODELS, k as fastEndpointForModel, m as maxGrokModel, p as maxGeminiModel, r as MAX_PROFILE_LEAD_MODEL, v as maxSonnetModel } from "./max-profile-contract
|
|
9
|
+
import { S as FAST_PROFILE_ORACLE_MODEL, _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, c as BALANCED_PROFILE_ORACLE_MODEL, d as FAST_PROFILE_ADVISOR_EFFORT, f as FAST_PROFILE_ADVISOR_MODEL, m as FAST_PROFILE_ASTRA_MODEL, r as BALANCED_PROFILE_MODELS, x as FAST_PROFILE_ORACLE_EFFORT, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-XiIj4O1U.js";
|
|
10
|
+
import { A as normalizeTrailingOneMSuffix, D as maxPeerInstructions, E as maxPeerDescription, O as fastEndpointForCatalogId, b as MAX_ADVISOR_SYSTEM_PROMPT, f as maxCodexReviewerModel, g as maxProReplacementModel, h as maxOpusModel, i as MAX_PROFILE_MODELS, k as fastEndpointForModel, m as maxGrokModel, p as maxGeminiModel, r as MAX_PROFILE_LEAD_MODEL, v as maxSonnetModel } from "./max-profile-contract--dAYkEG1.js";
|
|
11
11
|
import { i as registerExitHandlers$1, n as getInstanceUuid, r as recordWorkerRepo, t as WorktreeRegistry } from "./lifecycle-kpLzHUgD.js";
|
|
12
12
|
import { t as MCP_WORKSPACE_HEADER } from "./mcp-workspace-header-B77WqVFw.js";
|
|
13
13
|
import { n as ArtifactError, r as applyInsecureTls, t as ArtifactClient } from "./client-CQMfroGV.js";
|
|
14
14
|
import { a as extractAndRecordPricedAic, i as extractAndRecordAic, l as recordAic, p as extractCopilotUsage } from "./aic-ledger-D4oMcg7c.js";
|
|
15
15
|
import { a as BluebirdError, c as ensureBluebirdClient } from "./bluebird-client-DpYl1YmJ.js";
|
|
16
16
|
import { r as registerColbertExitHandlers } from "./lifecycle-BqWTXaeC.js";
|
|
17
|
-
import { h as runGateChecks, m as sealedGateIds, p as resolveSealedGate } from "./stop-gate-hook-
|
|
18
|
-
import { t as liveExec } from "./orchestration-
|
|
17
|
+
import { h as runGateChecks, m as sealedGateIds, p as resolveSealedGate } from "./stop-gate-hook-DRcYQAtf.js";
|
|
18
|
+
import { t as liveExec } from "./orchestration-DjuJRhXn.js";
|
|
19
19
|
import { createRequire } from "node:module";
|
|
20
20
|
import consola from "consola";
|
|
21
21
|
import { chmodSync, closeSync, constants, cpSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
|
|
@@ -63,10 +63,10 @@ import "diff";
|
|
|
63
63
|
const CHEAP_PROFILE_MODELS = Object.freeze({
|
|
64
64
|
lead: "gemini-3.8-flash",
|
|
65
65
|
explore: "gpt-6-luna",
|
|
66
|
-
plan: "gpt-6-sol",
|
|
66
|
+
plan: "gpt-5.6-sol",
|
|
67
67
|
"General-Purpose": "gemini-3.8-flash",
|
|
68
68
|
reviewer: "gpt-6-luna",
|
|
69
|
-
advisor: "gpt-6-sol",
|
|
69
|
+
advisor: "gpt-5.6-sol",
|
|
70
70
|
oracle: "grok-4.6",
|
|
71
71
|
astra: "gpt-6-astra"
|
|
72
72
|
});
|
|
@@ -127,7 +127,7 @@ Object.freeze({
|
|
|
127
127
|
*
|
|
128
128
|
* The cheapest all-200K tier: a `gpt-6-luna`/max LEAD at Claude Code's
|
|
129
129
|
* DEFAULT (bare-slug) 200K window, every subagent at the same 200K default,
|
|
130
|
-
* a `gpt-6-sol`/medium Advisor (bare slug), and a `gpt-6-sol`/high
|
|
130
|
+
* a `gpt-5.6-sol`/medium Advisor (bare slug), and a `gpt-5.6-sol`/high
|
|
131
131
|
* primary Oracle. Oracle-only peer set (no `astra`) and a three-agent
|
|
132
132
|
* surface (`Explore`/`General-Purpose`/`reviewer` — no `Plan`): the lead
|
|
133
133
|
* plans directly and reviews the final plan with the Advisor (advisory)
|
|
@@ -141,9 +141,9 @@ const CHEAPEST_PROFILE_MODELS = Object.freeze({
|
|
|
141
141
|
lead: "gpt-6-luna",
|
|
142
142
|
explore: "gpt-6-luna",
|
|
143
143
|
"General-Purpose": "gpt-6-luna",
|
|
144
|
-
reviewer: "gpt-6-
|
|
145
|
-
advisor: "gpt-6-sol",
|
|
146
|
-
oracle: "gpt-6-sol"
|
|
144
|
+
reviewer: "gpt-6-luna",
|
|
145
|
+
advisor: "gpt-5.6-sol",
|
|
146
|
+
oracle: "gpt-5.6-sol"
|
|
147
147
|
});
|
|
148
148
|
const CHEAPEST_PROFILE_NATIVE_AGENT_NAMES = [
|
|
149
149
|
"Explore",
|
|
@@ -158,7 +158,7 @@ const CHEAPEST_PROFILE_NATIVE_MODELS = Object.freeze({
|
|
|
158
158
|
const CHEAPEST_PROFILE_NATIVE_EFFORTS = Object.freeze({
|
|
159
159
|
Explore: "high",
|
|
160
160
|
"General-Purpose": "max",
|
|
161
|
-
reviewer: "
|
|
161
|
+
reviewer: "max"
|
|
162
162
|
});
|
|
163
163
|
/**
|
|
164
164
|
* Subagent/peer context window (tokens). Every non-lead role (and the lead
|
|
@@ -234,7 +234,7 @@ function oneMContextDisabled() {
|
|
|
234
234
|
* non-Claude gateway models exactly as it does for Opus — verified against the
|
|
235
235
|
* installed 2.1.222 build, where the window resolver returns `1e6` on a bracket
|
|
236
236
|
* match and otherwise falls through to a 200K default. Without the bracket a
|
|
237
|
-
* 1M-context model like `gpt-6-sol` (1,050,000) is budgeted at 200K and
|
|
237
|
+
* 1M-context model like `gpt-5.6-sol` (1,050,000) is budgeted at 200K and
|
|
238
238
|
* auto-compacts at roughly a fifth of its real window.
|
|
239
239
|
*
|
|
240
240
|
* The bracket never reaches Copilot: `resolveModel` (`./utils`) strips it before
|
|
@@ -679,16 +679,16 @@ function pickClaudeDefault(opusFamily = DEFAULT_OPUS_FAMILY) {
|
|
|
679
679
|
return bareSlug;
|
|
680
680
|
}
|
|
681
681
|
/**
|
|
682
|
-
* Default model for `github-router codex`. `gpt-6-sol` is the flagship
|
|
682
|
+
* Default model for `github-router codex`. `gpt-5.6-sol` is the flagship
|
|
683
683
|
* `/responses` model; the fallback chain (led by `gpt-6-sol` then `gpt-5.5`)
|
|
684
|
-
* handles older Copilot tiers or a rollout-lag window where sol hasn't
|
|
684
|
+
* handles older Copilot tiers or a rollout-lag window where 5.6-sol hasn't
|
|
685
685
|
* appeared yet.
|
|
686
686
|
* `resolveCodexModel` provides a final "best available `/responses` model"
|
|
687
687
|
* safety net beyond this list.
|
|
688
688
|
*/
|
|
689
|
-
const DEFAULT_CODEX_MODEL = "gpt-6-sol";
|
|
689
|
+
const DEFAULT_CODEX_MODEL = "gpt-5.6-sol";
|
|
690
690
|
const DEFAULT_CODEX_MODEL_FALLBACKS = [
|
|
691
|
-
"gpt-
|
|
691
|
+
"gpt-6-sol",
|
|
692
692
|
"gpt-5.5",
|
|
693
693
|
"gpt-5.4",
|
|
694
694
|
"gpt-5.3-codex",
|
|
@@ -5366,11 +5366,13 @@ const TIER_CHAINS = {
|
|
|
5366
5366
|
T1: [
|
|
5367
5367
|
"gpt-5.4-mini",
|
|
5368
5368
|
"gpt-5-mini",
|
|
5369
|
+
"gpt-5.6-sol",
|
|
5369
5370
|
"gpt-6-sol",
|
|
5370
5371
|
"gpt-5.5",
|
|
5371
5372
|
"gemini-3.1-pro-preview"
|
|
5372
5373
|
],
|
|
5373
5374
|
T2: [
|
|
5375
|
+
"gpt-5.6-sol",
|
|
5374
5376
|
"gpt-6-sol",
|
|
5375
5377
|
"gpt-5.5",
|
|
5376
5378
|
"claude-opus-4.8",
|
|
@@ -6273,7 +6275,7 @@ async function observeUnit(unit) {
|
|
|
6273
6275
|
* present — an explicitly-chosen model that Copilot can't serve THROWS rather
|
|
6274
6276
|
* than being silently swapped for a fallback (a silent class-switch could send
|
|
6275
6277
|
* the task to a weaker/wrong model the operator never asked for).
|
|
6276
|
-
* - `chosen` unset: default to {@link DEFAULT_CODEX_MODEL} (gpt-6-sol), walking
|
|
6278
|
+
* - `chosen` unset: default to {@link DEFAULT_CODEX_MODEL} (gpt-5.6-sol), walking
|
|
6277
6279
|
* {@link DEFAULT_CODEX_MODEL_FALLBACKS} only when a catalog says the preferred
|
|
6278
6280
|
* default is absent (older Copilot tiers).
|
|
6279
6281
|
*
|
|
@@ -9130,7 +9132,7 @@ function buildRoleAgent(role, maxProfileReviewModel) {
|
|
|
9130
9132
|
"Verification commands and outcomes",
|
|
9131
9133
|
"Risks and follow-ups"
|
|
9132
9134
|
],
|
|
9133
|
-
model: "gpt-6-sol"
|
|
9135
|
+
model: "gpt-5.6-sol"
|
|
9134
9136
|
},
|
|
9135
9137
|
reviewer: {
|
|
9136
9138
|
description: "Adversarial code reviewer for concrete diffs; reports real findings with severity and file:line.",
|
|
@@ -9210,7 +9212,7 @@ function buildRoleAgent(role, maxProfileReviewModel) {
|
|
|
9210
9212
|
"Commands run and outcomes",
|
|
9211
9213
|
"Failures that require implementation work"
|
|
9212
9214
|
],
|
|
9213
|
-
model: "gpt-6-sol"
|
|
9215
|
+
model: "gpt-5.6-sol"
|
|
9214
9216
|
},
|
|
9215
9217
|
ceo: {
|
|
9216
9218
|
description: "Operate the product strategy, growth, and launch loop; turn evidence into auditable bets and delegate execution.",
|
|
@@ -11216,7 +11218,7 @@ function createFirstMateTools(depsOverride = {}) {
|
|
|
11216
11218
|
acceptance_criteria: stringProp("User-blessed acceptance criteria for the mission."),
|
|
11217
11219
|
priority: numberProp("Optional numeric priority; higher values are handled by controller policy."),
|
|
11218
11220
|
house_rules: stringProp("Optional repository or operator constraints."),
|
|
11219
|
-
default_model: stringProp("Model the GitHub cloud coding agent uses for this mission's tasks; defaults to gpt-6-sol."),
|
|
11221
|
+
default_model: stringProp("Model the GitHub cloud coding agent uses for this mission's tasks; defaults to gpt-5.6-sol."),
|
|
11220
11222
|
plan_gate: enumProp(["hard", "soft"], "Plan-review gate. hard (default) requires the flow's review before build and re-plans on a rejecting review; soft auto-advances a passing plan review to build without human approval but escalates a rejecting review to a human."),
|
|
11221
11223
|
ci_required: boolProp("When true, refuse merge approval if the repository reports no CI for the PR head.")
|
|
11222
11224
|
}, [
|
|
@@ -22827,8 +22829,8 @@ async function countTokens(body, extraHeaders, callerSignal, retryTransient = fa
|
|
|
22827
22829
|
*/
|
|
22828
22830
|
/** Preference-ordered OpenAI frontier reasoning models (SELECTION list). */
|
|
22829
22831
|
const OPENAI_FRONTIER_MODELS = [
|
|
22830
|
-
"gpt-6-sol",
|
|
22831
22832
|
"gpt-5.6-sol",
|
|
22833
|
+
"gpt-6-sol",
|
|
22832
22834
|
"gpt-5.5"
|
|
22833
22835
|
];
|
|
22834
22836
|
/** Models whose shim reasoning effort becomes xhigh when the operator opts in
|
|
@@ -22878,7 +22880,7 @@ const REVIEW_FAST_DEFAULT_MODEL = "gemini-3.8-flash";
|
|
|
22878
22880
|
*
|
|
22879
22881
|
* Returns true iff Copilot's live catalog (`state.models?.data`) contains
|
|
22880
22882
|
* ALL THREE peer models the consensus protocol needs:
|
|
22881
|
-
* - an OpenAI frontier model (`gpt-6-sol`, else `gpt-6-sol`, else `gpt-5.5` — see
|
|
22883
|
+
* - an OpenAI frontier model (`gpt-5.6-sol`, else `gpt-6-sol`, else `gpt-5.5` — see
|
|
22882
22884
|
* `resolveOpenAiFrontier`)
|
|
22883
22885
|
* - `claude-opus-5.5` (stand_in's Anthropic slot)
|
|
22884
22886
|
* - standard/BYO: the preferred Gemini reviewer model
|
|
@@ -22967,7 +22969,7 @@ function firstPresentInCatalog(chain, opts) {
|
|
|
22967
22969
|
}
|
|
22968
22970
|
/**
|
|
22969
22971
|
* First available OpenAI frontier model in the live catalog (prefer
|
|
22970
|
-
* `gpt-6-sol`, fall back to `gpt-6-sol`, then `gpt-5.5`). Returns undefined when neither is
|
|
22972
|
+
* `gpt-5.6-sol`, fall back to `gpt-6-sol`, then `gpt-5.5`). Returns undefined when neither is
|
|
22971
22973
|
* present. With `requireToolCalls`, only returns a model whose catalog entry
|
|
22972
22974
|
* advertises `tool_calls`.
|
|
22973
22975
|
*/
|
|
@@ -22983,11 +22985,11 @@ function standInToolEnabled(opts = {}) {
|
|
|
22983
22985
|
return hasOpenAi && hasOpus && hasThirdLab;
|
|
22984
22986
|
}
|
|
22985
22987
|
/** Model for the native subagent that wants the OpenAI frontier coder
|
|
22986
|
-
* (`implementer`) iff it is live with tool calls. Prefers `gpt-6-sol`, falls
|
|
22987
|
-
* back to `gpt-5.5`. Absent → the agent omits its `model:` line and inherits
|
|
22988
|
+
* (`implementer`) iff it is live with tool calls. Prefers `gpt-5.6-sol`, falls
|
|
22989
|
+
* back to `gpt-6-sol` / `gpt-5.5`. Absent → the agent omits its `model:` line and inherits
|
|
22988
22990
|
* the lead's model.
|
|
22989
22991
|
*
|
|
22990
|
-
* Public web benchmarks put `gpt-6-sol` (and previously `gpt-6-sol`) ahead of both `gpt-5.6-terra` and
|
|
22992
|
+
* Public web benchmarks put `gpt-5.6-sol` (and previously `gpt-6-sol`) ahead of both `gpt-5.6-terra` and
|
|
22991
22993
|
* `gpt-5.3-codex` on coding (Terminal-Bench 2.1 88.8 vs 87.1; SWE-bench
|
|
22992
22994
|
* Verified 96.2 vs ~80 for 5.3-codex, which also trails gpt-5.5 on SWE-bench
|
|
22993
22995
|
* Pro). Terra is the cheaper tier at ~98% of the capability, so it is the right
|
|
@@ -23074,7 +23076,7 @@ function scoutModel() {
|
|
|
23074
23076
|
/** Model for `implementer-fast` — the cheaper implementation tier. Absent →
|
|
23075
23077
|
* the agent is dropped.
|
|
23076
23078
|
*
|
|
23077
|
-
* `gpt-6-sol` is deliberately NOT in this chain: changes needing frontier
|
|
23079
|
+
* `gpt-5.6-sol` is deliberately NOT in this chain: changes needing frontier
|
|
23078
23080
|
* judgment already belong to `implementer`, while this agent handles
|
|
23079
23081
|
* well-specified, mechanical changes at a lower tier. Both entries are 1M+;
|
|
23080
23082
|
* their different speed and effort properties stay out of shared claims. */
|
|
@@ -23271,7 +23273,7 @@ function cheapestOracleModel() {
|
|
|
23271
23273
|
if (fastEndpointForModel(found) !== "responses") return void 0;
|
|
23272
23274
|
return CHEAPEST_PROFILE_ORACLE_MODEL;
|
|
23273
23275
|
}
|
|
23274
|
-
/**
|
|
23276
|
+
/** Luna/max reviewer for the cheapest profile at the 200K default window. */
|
|
23275
23277
|
function cheapestReviewerModel() {
|
|
23276
23278
|
const reviewer = state.models?.data.find((m) => m.id === CHEAPEST_PROFILE_MODELS.reviewer);
|
|
23277
23279
|
if (!reviewer) return void 0;
|
|
@@ -24051,7 +24053,7 @@ async function predictedWindowOverflow(persona, prompt, context, opts) {
|
|
|
24051
24053
|
const criticModel = resolveOpusCriticModel();
|
|
24052
24054
|
const criticIs1M = criticModel === "claude-opus-5.5" || criticModel === "claude-opus-5.5" || OPUS_1M_RE.test(criticModel);
|
|
24053
24055
|
const opusHint = id === "claude-opus-5.5" || id === "claude-opus-5.5" || OPUS_1M_RE.test(id) || !criticIs1M ? "" : " / `opus_critic` (Opus 5, 1M context ≈ 1M tokens)";
|
|
24054
|
-
return `pre-flight rejected: this ${persona.toolNameHttp} brief is ≈${tokens} tokens, over the ${budget}-token budget for ${persona.model} (its ${maxPromptTokens}-token prompt window minus a ${PEER_PROMPT_TOKEN_RESERVE}-token framing reserve). Do NOT summarize or truncate the artifact to fit. Route the full artifact to a larger-window peer — \`codex_critic\` (gpt-6-sol ≈ 1M tokens)${opusHint} — or split it into focused sub-calls BY CONCERN and call them in parallel, then aggregate.`;
|
|
24056
|
+
return `pre-flight rejected: this ${persona.toolNameHttp} brief is ≈${tokens} tokens, over the ${budget}-token budget for ${persona.model} (its ${maxPromptTokens}-token prompt window minus a ${PEER_PROMPT_TOKEN_RESERVE}-token framing reserve). Do NOT summarize or truncate the artifact to fit. Route the full artifact to a larger-window peer — \`codex_critic\` (gpt-5.6-sol ≈ 1M tokens)${opusHint} — or split it into focused sub-calls BY CONCERN and call them in parallel, then aggregate.`;
|
|
24055
24057
|
}
|
|
24056
24058
|
/**
|
|
24057
24059
|
* JSON-path pre-flight predictedTooLong gate. Returns a JSON-RPC result
|
|
@@ -25423,7 +25425,7 @@ function rememberThinkingHistoryRepair(fingerprint) {
|
|
|
25423
25425
|
* SSE connection (no new message_start; the original one is
|
|
25424
25426
|
* still open). Loop up to ADVISOR_MAX_TURNS times.
|
|
25425
25427
|
* 4. Lead-aware model choice: route the advisor call to a different model
|
|
25426
|
-
* family than the main loop (gpt-6-sol) so the user gets a true "second
|
|
25428
|
+
* family than the main loop (gpt-5.6-sol) so the user gets a true "second
|
|
25427
25429
|
* set of eyes" instead of Opus reviewing Opus (gemini-critic finding). When
|
|
25428
25430
|
* the LEAD is a lighter Claude tier the choice inverts and the advisor
|
|
25429
25431
|
* escalates to `ADVISOR_ESCALATION_MODEL` instead — see that constant for
|
|
@@ -25446,7 +25448,7 @@ const ADVISOR_INTERNAL_TOOL_NAME = "__anthropic_advisor";
|
|
|
25446
25448
|
* this exact name to render the advisor spinner. */
|
|
25447
25449
|
const ADVISOR_CLIENT_TOOL_NAME = "advisor";
|
|
25448
25450
|
/** Default advisor model + reasoning effort. Per gemini-critic + user
|
|
25449
|
-
* direction: hardcode to a cross-lab model (gpt-6-sol — Copilot's
|
|
25451
|
+
* direction: hardcode to a cross-lab model (gpt-5.6-sol — Copilot's
|
|
25450
25452
|
* /responses-only flagship). The cross-lab choice gives a true "second set
|
|
25451
25453
|
* of eyes" instead of the main model reviewing itself.
|
|
25452
25454
|
*
|
|
@@ -25456,7 +25458,7 @@ const ADVISOR_CLIENT_TOOL_NAME = "advisor";
|
|
|
25456
25458
|
* expresses no preference — a deliberate, user-approved cost/depth trade
|
|
25457
25459
|
* applied uniformly across every advisor target (Sol, the Opus escalation,
|
|
25458
25460
|
* and the fast-profile Gemini advisor below all read this same constant). */
|
|
25459
|
-
const ADVISOR_DEFAULT_MODEL = "gpt-6-sol";
|
|
25461
|
+
const ADVISOR_DEFAULT_MODEL = "gpt-5.6-sol";
|
|
25460
25462
|
const ADVISOR_DEFAULT_EFFORT = "xhigh";
|
|
25461
25463
|
const ADVISOR_MIN_EFFORT = "high";
|
|
25462
25464
|
/** The Anthropic frontier model the advisor escalates to when the LEAD is a
|
|
@@ -25487,7 +25489,7 @@ function fastProfileAdvisorAvailable() {
|
|
|
25487
25489
|
return fastEndpointForCatalogId(ADVISOR_FAST_PROFILE_MODEL, state.models?.data) === "responses";
|
|
25488
25490
|
}
|
|
25489
25491
|
/** The Advisor model for an authenticated cheapest primary lead:
|
|
25490
|
-
* `gpt-6-sol` at medium effort over its Responses endpoint, transcript
|
|
25492
|
+
* `gpt-5.6-sol` at medium effort over its Responses endpoint, transcript
|
|
25491
25493
|
* capped at `CHEAPEST_PROFILE_ADVISOR_CONTEXT_TOKENS` (200K). */
|
|
25492
25494
|
const ADVISOR_CHEAPEST_PROFILE_MODEL = CHEAPEST_PROFILE_ADVISOR_MODEL;
|
|
25493
25495
|
/** True only when the live Sol entry satisfies the fixed cheapest
|
|
@@ -25741,6 +25743,38 @@ When NOT to consult advisor:
|
|
|
25741
25743
|
- As a ritual or mandatory gate before trivial edits or completion.
|
|
25742
25744
|
|
|
25743
25745
|
Treat the result as advisory guidance and direction, not dictation. Weigh it against verified repository evidence. You may consult again when materially new evidence creates a distinct question.`;
|
|
25746
|
+
/** Cheapest-lead tool description. FAST-shaped (optional, non-binding,
|
|
25747
|
+
* discriminator vs Oracle) plus weaker-model framing: the Luna lead leans on
|
|
25748
|
+
* Sol for what execution cannot settle, with latency honesty so the first
|
|
25749
|
+
* call carries a precise question. */
|
|
25750
|
+
const CHEAPEST_ADVISOR_TOOL_INSTRUCTIONS = `# Advisor Tool
|
|
25751
|
+
|
|
25752
|
+
You have access to an optional, transcript-aware \`advisor\` tool backed by Sol, a stronger model that sees your full conversation. It takes no parameters and returns non-binding counsel. You remain responsible for every decision — you are the faster, cheaper model; the advisor exists to fill gaps you cannot close by execution.
|
|
25753
|
+
|
|
25754
|
+
When to consult advisor:
|
|
25755
|
+
- Framing check on the final plan before presenting it (once).
|
|
25756
|
+
- Conflicting evidence you cannot resolve by running a check.
|
|
25757
|
+
- A judgment call where your knowledge may be stale (versions, APIs, security patterns) — ask for the fact plus how to verify it.
|
|
25758
|
+
|
|
25759
|
+
When NOT to consult advisor:
|
|
25760
|
+
- For anything a search, read, build, test, or run can settle — execution beats advice.
|
|
25761
|
+
- For routine progress, reassurance, or completion ritual.
|
|
25762
|
+
|
|
25763
|
+
Advisor exchanges cost latency: make the first call count — state the precise question, your evidence with file:line, and what would change your mind. Treat the result as direction, not dictation; weigh it against verified repository evidence. Consult again only when materially new evidence creates a distinct question.
|
|
25764
|
+
|
|
25765
|
+
Discriminator vs Oracle: session-trajectory questions go to Advisor; self-contained technical/architectural forks go to Oracle.`;
|
|
25766
|
+
/** Protege-facing tool description for the cheapest Luna/max reviewer.
|
|
25767
|
+
* Unlike the lead variants, this names the mentor relationship and the hard
|
|
25768
|
+
* consult budget so the weaker model spends its calls carefully. */
|
|
25769
|
+
const CHEAPEST_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS = `# Advisor Tool
|
|
25770
|
+
|
|
25771
|
+
You have access to an \`advisor\` tool backed by Sol, a stronger cross-lab model that sees your full transcript. It takes no parameters and returns non-binding counsel. You own the verdict; the advisor never approves, vetoes, or decides for you.
|
|
25772
|
+
|
|
25773
|
+
Budget: at most 5 advisor rounds per review (one round is one back-and-forth exchange; the cap is enforced in code, so a sixth round halts). Each one costs latency, so spend them only on consequential uncertainty that repository evidence, builds, or tests cannot settle — a changed assumption, conflicting evidence, an approach that will not converge, or a severity call with merge-blocking consequences.
|
|
25774
|
+
|
|
25775
|
+
Every consult must state: the precise question, your evidence so far with file:line citations, the credible alternatives, and what evidence would change your verdict.
|
|
25776
|
+
|
|
25777
|
+
Never consult for routine verification, progress narration, reassurance, or completion ritual — run the check yourself. If the advisor disagrees with you, evaluate on the merits: adopt what is right with a one-line reason, defend what is verified with evidence, and record the disagreement in your result.`;
|
|
25744
25778
|
const ADVISOR_OPT_OUT_ENV = "CLAUDE_CODE_DISABLE_ADVISOR_TOOL";
|
|
25745
25779
|
/**
|
|
25746
25780
|
* Detect whether the request asked for ADVISOR (incoming
|
|
@@ -25822,7 +25856,7 @@ const ADVISOR_FALLBACK_MAX_TOKENS = 24e4;
|
|
|
25822
25856
|
* budget is `max_prompt_tokens - reserve`. Generous on purpose: a 400
|
|
25823
25857
|
* `model_max_prompt_tokens_exceeded` degrades to a silent advisor
|
|
25824
25858
|
* fallback, and the window given up is marginal against either advisor
|
|
25825
|
-
* model's real prompt window (`claude-opus-5.5` 936k, `gpt-6-sol` ~1M off
|
|
25859
|
+
* model's real prompt window (`claude-opus-5.5` 936k, `gpt-5.6-sol` ~1M off
|
|
25826
25860
|
* the live catalog). Sized as a fraction of the smaller of the two, not as
|
|
25827
25861
|
* "irrelevant next to ~1M" — that framing assumed the advisor was always
|
|
25828
25862
|
* the cheap side of the pair, which stopped being true once a budget lead
|
|
@@ -25845,7 +25879,7 @@ function resolveAdvisorMaxTokens(advisorModel) {
|
|
|
25845
25879
|
/**
|
|
25846
25880
|
* Render an Anthropic-shape conversation (messages array with
|
|
25847
25881
|
* role/content blocks) as a single human-readable text blob. Used
|
|
25848
|
-
* as the input to the advisor model (gpt-6-sol via /v1/responses
|
|
25882
|
+
* as the input to the advisor model (gpt-5.6-sol via /v1/responses
|
|
25849
25883
|
* doesn't have a 1:1 mapping for Anthropic's tool_use/tool_result
|
|
25850
25884
|
* blocks; serializing to text preserves the semantics — the advisor
|
|
25851
25885
|
* just needs to READ the conversation, not produce more of it).
|
|
@@ -25959,7 +25993,7 @@ function truncateTailToUnits(text, maxUnits, measure) {
|
|
|
25959
25993
|
* Routes by model family:
|
|
25960
25994
|
* - gpt-5.x / codex / o-series (have `/responses` in supported_endpoints):
|
|
25961
25995
|
* use createResponses with `reasoning.effort` set. This is the
|
|
25962
|
-
* default path — gpt-6-sol at xhigh effort.
|
|
25996
|
+
* default path — gpt-5.6-sol at xhigh effort.
|
|
25963
25997
|
* - claude-* (no `/responses`): fall back to createMessages.
|
|
25964
25998
|
*
|
|
25965
25999
|
* The conversation is serialized to text via renderConversationAsText
|
|
@@ -25969,13 +26003,13 @@ function truncateTailToUnits(text, maxUnits, measure) {
|
|
|
25969
26003
|
* Anthropic's own ADVISOR ("see the whole task + every tool call +
|
|
25970
26004
|
* every result").
|
|
25971
26005
|
*/
|
|
25972
|
-
function advisorSystemPrompt(advisorEscalated = false, fastProfile = false, maxProfile = false) {
|
|
26006
|
+
function advisorSystemPrompt(advisorEscalated = false, fastProfile = false, maxProfile = false, reviewerProfile = false) {
|
|
25973
26007
|
if (maxProfile) return MAX_ADVISOR_SYSTEM_PROMPT;
|
|
25974
|
-
return "You are an expert advisor reviewing an in-progress Claude Code session. The transcript below is the work-in-progress (turns numbered, with tool calls and results inlined). Read carefully and provide concrete, actionable advice on the next step or course-correction. Be specific — cite the parts of the transcript you're responding to. If the assistant is on the right track, say so explicitly. If they're stuck or off-track, name the specific assumption or step to revisit. Aim for 2-5 paragraphs of substantive guidance." + (fastProfile ? " You are a non-binding consultant to the primary lead. Infer the most consequential unresolved uncertainty motivating this call from the transcript and state that interpretation briefly before advising. The primary lead is operating in a speed-oriented profile. Act as both advisor and guide: identify broader context, relevant world knowledge, forgotten earlier constraints, unstated assumptions, and system-level consequences the lead may have missed as the session evolved, keeping this guidance strictly relevant to the identified uncertainty. Distinguish verified repository facts from external world knowledge, and suggest concrete validation steps where external knowledge is consequential. Address the uncertainty with a concrete recommendation, its assumptions, material risks, credible alternatives, confidence, and any evidence gap that would change the recommendation. Do not approve, veto, dictate, or take ownership; the lead will weigh your advice against the user's intent and verified evidence." : "") + (advisorEscalated && !fastProfile && !maxProfile ? " The requesting agent is running a lighter, faster model than you. Give a directive recommendation and commit to the decision rather than laying out options for it to weigh." : "");
|
|
26008
|
+
return "You are an expert advisor reviewing an in-progress Claude Code session. The transcript below is the work-in-progress (turns numbered, with tool calls and results inlined). Read carefully and provide concrete, actionable advice on the next step or course-correction. Be specific — cite the parts of the transcript you're responding to. If the assistant is on the right track, say so explicitly. If they're stuck or off-track, name the specific assumption or step to revisit. Aim for 2-5 paragraphs of substantive guidance." + (reviewerProfile ? " You are the senior mentor to a weaker, faster executor model (Luna) performing adversarial code review. It is diligent but small: it cannot reliably verify facts, versions, or calculations from memory; its confidence is poorly calibrated and usually overstated; it rarely revises its own conclusions without an external push; and it does not recognize the limits of its own knowledge. You exist to fill exactly these gaps. Be directive — commit to decisions rather than laying out options it is ill-equipped to weigh. Supply frontier knowledge and intuition it lacks (API contracts, version facts, attack patterns, system-level consequences, forgotten constraints), labeling each item as external knowledge or verified repository fact, with a concrete validation step (exact command or check) wherever external knowledge is consequential. Distrust its stated confidence and re-grade severity yourself. Demand execution evidence — never accept that something passes without observed output. The reviewer may consult you in at most 5 rounds per review (code-enforced cap), so make every response self-contained: never answer with a request for more information when you can decide from the transcript plus your own knowledge. You are non-binding counsel; the reviewer owns the verdict. Structure every response as: Verdict (SHIP / FIX / BLOCK) with confidence; Evidence (transcript cites); Assumptions; Material risk it is underweighting; One credible alternative reading; The single evidence that would reverse your verdict." : "") + (fastProfile && !reviewerProfile ? " You are a non-binding consultant to the primary lead. Infer the most consequential unresolved uncertainty motivating this call from the transcript and state that interpretation briefly before advising. The primary lead is operating in a speed-oriented profile. Act as both advisor and guide: identify broader context, relevant world knowledge, forgotten earlier constraints, unstated assumptions, and system-level consequences the lead may have missed as the session evolved, keeping this guidance strictly relevant to the identified uncertainty. Distinguish verified repository facts from external world knowledge, and suggest concrete validation steps where external knowledge is consequential. Address the uncertainty with a concrete recommendation, its assumptions, material risks, credible alternatives, confidence, and any evidence gap that would change the recommendation. Do not approve, veto, dictate, or take ownership; the lead will weigh your advice against the user's intent and verified evidence." : "") + (advisorEscalated && !fastProfile && !maxProfile ? " The requesting agent is running a lighter, faster model than you. Give a directive recommendation and commit to the decision rather than laying out options for it to weigh." : "");
|
|
25975
26009
|
}
|
|
25976
|
-
async function runAdvisor(conversation, advisorModel, advisorEffort, signal, advisorEscalated = false, fastProfile = false, maxProfile = false, cheapProfile = false) {
|
|
26010
|
+
async function runAdvisor(conversation, advisorModel, advisorEffort, signal, advisorEscalated = false, fastProfile = false, maxProfile = false, cheapProfile = false, reviewerProfile = false) {
|
|
25977
26011
|
if (signal?.aborted) throw new Error("advisor call aborted before dispatch");
|
|
25978
|
-
const advisorSystem = advisorSystemPrompt(advisorEscalated, fastProfile, maxProfile);
|
|
26012
|
+
const advisorSystem = advisorSystemPrompt(advisorEscalated, fastProfile, maxProfile, reviewerProfile);
|
|
25979
26013
|
const resolvedAdvisorModel = resolveModel(advisorModel);
|
|
25980
26014
|
let measure;
|
|
25981
26015
|
let maxUnits;
|
|
@@ -25989,7 +26023,7 @@ async function runAdvisor(conversation, advisorModel, advisorEffort, signal, adv
|
|
|
25989
26023
|
measure = (s) => s.length;
|
|
25990
26024
|
maxUnits = ADVISOR_MAX_CONVERSATION_CHARS;
|
|
25991
26025
|
}
|
|
25992
|
-
const conversationText = renderConversationAsText(conversation, maxUnits, measure, fastProfile);
|
|
26026
|
+
const conversationText = renderConversationAsText(conversation, maxUnits, measure, fastProfile || reviewerProfile);
|
|
25993
26027
|
const transport = advisorTransport(resolvedAdvisorModel, fastProfile);
|
|
25994
26028
|
if (fastProfile) consola.warn(`fast Advisor dispatch: model=${resolvedAdvisorModel} transport=${transport} effort=${advisorEffort}`);
|
|
25995
26029
|
if (cheapProfile) consola.warn(`cheap Advisor dispatch: model=${resolvedAdvisorModel} transport=${transport} effort=${advisorEffort} transcriptCap=200K`);
|
|
@@ -26181,12 +26215,14 @@ async function defaultContinueTurn(body, signal, requestHeaders) {
|
|
|
26181
26215
|
* to ADVISOR_DEFAULT_MODEL (cross-lab).
|
|
26182
26216
|
*/
|
|
26183
26217
|
function buildAdvisorStream(opts) {
|
|
26184
|
-
const advisorModel = opts.advisorModel ?? "gpt-6-sol";
|
|
26218
|
+
const advisorModel = opts.advisorModel ?? "gpt-5.6-sol";
|
|
26185
26219
|
const advisorEffort = opts.advisorEffort ?? "xhigh";
|
|
26186
26220
|
const advisorEscalated = opts.advisorEscalated ?? false;
|
|
26187
26221
|
const advisorFastProfile = opts.advisorFastProfile ?? false;
|
|
26188
26222
|
const advisorMaxProfile = opts.advisorMaxProfile ?? false;
|
|
26189
26223
|
const advisorCheapProfile = opts.advisorCheapProfile ?? false;
|
|
26224
|
+
const advisorReviewerProfile = opts.advisorReviewerProfile ?? false;
|
|
26225
|
+
const advisorMaxTurns = opts.advisorMaxTurns ?? 16;
|
|
26190
26226
|
const continueTurn = opts.continueTurn ?? ((body, signal) => defaultContinueTurn(body, signal, opts.requestHeaders));
|
|
26191
26227
|
const aborter = opts.externalAborter ?? new AbortController();
|
|
26192
26228
|
let conversation = [...opts.initialConversation];
|
|
@@ -26432,7 +26468,7 @@ function buildAdvisorStream(opts) {
|
|
|
26432
26468
|
}
|
|
26433
26469
|
try {
|
|
26434
26470
|
let response = opts.firstResponse;
|
|
26435
|
-
for (turnsRun = 0; turnsRun <
|
|
26471
|
+
for (turnsRun = 0; turnsRun < advisorMaxTurns; turnsRun++) {
|
|
26436
26472
|
if (aborter.signal.aborted) return;
|
|
26437
26473
|
if (conversation === null) return;
|
|
26438
26474
|
const { capturedBlocks, advisorToolUses, clientToolUseCount } = await processOneTurn(response);
|
|
@@ -26461,7 +26497,7 @@ function buildAdvisorStream(opts) {
|
|
|
26461
26497
|
const advisorConversation = conversation;
|
|
26462
26498
|
const advisorTexts = await Promise.all(advisorToolUses.map(async () => {
|
|
26463
26499
|
try {
|
|
26464
|
-
return await runAdvisor(advisorConversation, advisorModel, advisorEffort, aborter.signal, advisorEscalated, advisorFastProfile, advisorMaxProfile, advisorCheapProfile);
|
|
26500
|
+
return await runAdvisor(advisorConversation, advisorModel, advisorEffort, aborter.signal, advisorEscalated, advisorFastProfile, advisorMaxProfile, advisorCheapProfile, advisorReviewerProfile);
|
|
26465
26501
|
} catch (err) {
|
|
26466
26502
|
if (aborter.signal.aborted) throw err;
|
|
26467
26503
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -26530,7 +26566,7 @@ function buildAdvisorStream(opts) {
|
|
|
26530
26566
|
index: finalIndex,
|
|
26531
26567
|
delta: {
|
|
26532
26568
|
type: "text_delta",
|
|
26533
|
-
text: `\n\n[Advisor loop exceeded
|
|
26569
|
+
text: `\n\n[Advisor loop exceeded ${advisorMaxTurns} turns; halting]`
|
|
26534
26570
|
}
|
|
26535
26571
|
});
|
|
26536
26572
|
safeEnqueueEvent("content_block_stop", {
|
|
@@ -28442,7 +28478,7 @@ function advisorTool(getMessages) {
|
|
|
28442
28478
|
return {
|
|
28443
28479
|
name: "advisor",
|
|
28444
28480
|
label: "Advisor",
|
|
28445
|
-
description: "Consult a stronger reviewer model (cross-lab: gpt-6-sol xhigh by default) on a specific concern. Use BEFORE substantive work, WHEN stuck, or WHEN considering a change of approach. The advisor automatically receives the recent conversation transcript as context — give it a focused `concern`, not background.",
|
|
28481
|
+
description: "Consult a stronger reviewer model (cross-lab: gpt-5.6-sol xhigh by default) on a specific concern. Use BEFORE substantive work, WHEN stuck, or WHEN considering a change of approach. The advisor automatically receives the recent conversation transcript as context — give it a focused `concern`, not background.",
|
|
28446
28482
|
parameters: ADVISOR_PARAMS,
|
|
28447
28483
|
async execute(_toolCallId, params, signal) {
|
|
28448
28484
|
if (networkDisabled()) throw new Error("rejected: network disabled");
|
|
@@ -29231,7 +29267,7 @@ function resolveDefaultModel() {
|
|
|
29231
29267
|
* former Gemini Flash default: lower token cost, faster generation and tool-call
|
|
29232
29268
|
* latency, a larger context window, and the full reasoning-effort ladder. `high`
|
|
29233
29269
|
* is therefore a real selected tier rather than a clamp. Like `implement`'s
|
|
29234
|
-
* gpt-6-sol this per-mode default is NOT a `workerToolsEnabled` gate input — if
|
|
29270
|
+
* gpt-5.6-sol this per-mode default is NOT a `workerToolsEnabled` gate input — if
|
|
29235
29271
|
* absent on a thin catalog, `explore` errors helpfully at call time rather than
|
|
29236
29272
|
* vanishing the whole worker surface. The caller can override model and thinking
|
|
29237
29273
|
* per call via the `model` / `thinking` args. */
|
|
@@ -29242,7 +29278,7 @@ const EXPLORE_DEFAULT_THINKING = "high";
|
|
|
29242
29278
|
/** Default model + thinking for the READ-ONLY `review` mode.
|
|
29243
29279
|
* `gemini-3.1-pro-preview` at `xhigh` (clamped to `high` at call time — gemini
|
|
29244
29280
|
* advertises no xhigh). DELIBERATELY DECORRELATED FROM THE IMPLEMENTER: bounded
|
|
29245
|
-
* implementation now defaults to gpt-6-sol (OpenAI) — both the `implement` worker
|
|
29281
|
+
* implementation now defaults to gpt-5.6-sol (OpenAI) — both the `implement` worker
|
|
29246
29282
|
* and the native `implementer` subagent — and the main orchestrator is Opus
|
|
29247
29283
|
* (Anthropic), so review runs on a THIRD lab (Google) to maximize blind-spot
|
|
29248
29284
|
* diversity. A reviewer sharing the implementer's lab catches a correlated slice
|
|
@@ -29253,18 +29289,18 @@ const EXPLORE_DEFAULT_THINKING = "high";
|
|
|
29253
29289
|
* `model` arg (e.g. `claude-opus-4.8` for an Anthropic-lab reviewer). */
|
|
29254
29290
|
const REVIEW_DEFAULT_MODEL = "gemini-3.1-pro-preview";
|
|
29255
29291
|
const REVIEW_DEFAULT_THINKING = "xhigh";
|
|
29256
|
-
/** Default model + thinking for the READ+WRITE `implement` mode. `gpt-6-sol`
|
|
29292
|
+
/** Default model + thinking for the READ+WRITE `implement` mode. `gpt-5.6-sol`
|
|
29257
29293
|
* at `high` — a time-to-outcome default for the 1M+ context model, routed
|
|
29258
29294
|
* through `/responses` by the stream-fn endpoint split. Any caller can restore
|
|
29259
29295
|
* a higher tier per call via `thinking` or per session via `worker_defaults`;
|
|
29260
29296
|
* precedence is per-call > session > built-in. */
|
|
29261
|
-
const IMPLEMENT_DEFAULT_MODEL = "gpt-6-sol";
|
|
29297
|
+
const IMPLEMENT_DEFAULT_MODEL = "gpt-5.6-sol";
|
|
29262
29298
|
const IMPLEMENT_DEFAULT_THINKING = "high";
|
|
29263
29299
|
/** `test` starts with the same time-to-outcome built-in pair as `implement`, but
|
|
29264
29300
|
* remains independent so either mode can restore a higher tier per call via
|
|
29265
29301
|
* `thinking` or per session via `worker_defaults`. Resolution precedence is
|
|
29266
29302
|
* per-call > session > built-in. */
|
|
29267
|
-
const TEST_DEFAULT_MODEL = "gpt-6-sol";
|
|
29303
|
+
const TEST_DEFAULT_MODEL = "gpt-5.6-sol";
|
|
29268
29304
|
const TEST_DEFAULT_THINKING = "high";
|
|
29269
29305
|
/** Default model for `browse` mode. `gpt-6-luna` has the same measured image
|
|
29270
29306
|
* ceiling as `gpt-5.4-mini`, so screenshot-heavy sessions retain their input
|
|
@@ -29294,7 +29330,7 @@ const BROWSE_DEFAULT_THINKING = "low";
|
|
|
29294
29330
|
* does NOT translate the Anthropic dashed slug; `claude-opus-5.5` dotted maps
|
|
29295
29331
|
* from dashed `claude-opus-5-5` via `resolveModel` normalization). Falls back to a helpful unknown-model
|
|
29296
29332
|
* error at call time if opus-5.5 isn't in the catalog (e.g. a non-enterprise tier),
|
|
29297
|
-
* exactly like `implement`'s `gpt-6-sol`. */
|
|
29333
|
+
* exactly like `implement`'s `gpt-5.6-sol`. */
|
|
29298
29334
|
const PLAN_DEFAULT_MODEL = "claude-opus-5.5";
|
|
29299
29335
|
const BUILT_IN_MODE_DEFAULTS = Object.freeze({
|
|
29300
29336
|
explore: {
|
|
@@ -29758,8 +29794,8 @@ function appendPlanReminder(messages, planState) {
|
|
|
29758
29794
|
*/
|
|
29759
29795
|
const STAND_IN_MODELS_BASE = Object.freeze([
|
|
29760
29796
|
{
|
|
29761
|
-
key: "gpt-6-sol",
|
|
29762
|
-
model: "gpt-6-sol",
|
|
29797
|
+
key: "gpt-5.6-sol",
|
|
29798
|
+
model: "gpt-5.6-sol",
|
|
29763
29799
|
endpoint: "/v1/responses",
|
|
29764
29800
|
effort: "xhigh"
|
|
29765
29801
|
},
|
|
@@ -29909,7 +29945,7 @@ async function runStandIn(input, signal, opts = {}) {
|
|
|
29909
29945
|
}, r1, r2, panel);
|
|
29910
29946
|
}
|
|
29911
29947
|
async function callAndParse(cfg, instructions, userText, validIds, signal) {
|
|
29912
|
-
const model = cfg.key === "gpt-6-sol" ? resolveOpenAiFrontier() ?? cfg.model : cfg.model;
|
|
29948
|
+
const model = cfg.key === "gpt-5.6-sol" ? resolveOpenAiFrontier() ?? cfg.model : cfg.model;
|
|
29913
29949
|
let raw;
|
|
29914
29950
|
try {
|
|
29915
29951
|
raw = await dispatchModelCall({
|
|
@@ -31012,7 +31048,7 @@ const CRITIC_INSTRUCTIONS = "You are a cross-lab code reviewer. Review the diff
|
|
|
31012
31048
|
function labPersona(lab) {
|
|
31013
31049
|
switch (lab.toLowerCase()) {
|
|
31014
31050
|
case "openai": return {
|
|
31015
|
-
model: "gpt-6-sol",
|
|
31051
|
+
model: "gpt-5.6-sol",
|
|
31016
31052
|
endpoint: "/v1/responses",
|
|
31017
31053
|
effort: "high"
|
|
31018
31054
|
};
|
|
@@ -31127,7 +31163,7 @@ async function runWorkflowLive(opts) {
|
|
|
31127
31163
|
* The github-router proxy hosts a `/mcp` endpoint that exposes these
|
|
31128
31164
|
* personas as MCP tools, and the `claude` subcommand wires them as
|
|
31129
31165
|
* Claude Code subagents via `--agents` so Opus 4.7 can delegate
|
|
31130
|
-
* blind-spot-busting work to gpt-6-sol, gpt-5.3-codex, and
|
|
31166
|
+
* blind-spot-busting work to gpt-5.6-sol, gpt-5.3-codex, and
|
|
31131
31167
|
* gemini-3.1-pro-preview without leaving the session.
|
|
31132
31168
|
*
|
|
31133
31169
|
* Design contract (from the approved plan):
|
|
@@ -31262,7 +31298,7 @@ Cold-start contract for the lead orchestrator (Opus):
|
|
|
31262
31298
|
(c) any prior decisions I should not relitigate.
|
|
31263
31299
|
If your brief lacks (a), I will reply with a one-line request for the artifact instead of speculating.
|
|
31264
31300
|
`.trim();
|
|
31265
|
-
const CRITIC_BASE = `You are codex-critic, an adversarial reviewer running on gpt-6-sol. Your single job is to overcome the lead orchestrator's blind spots — assumptions it didn't notice it was making, failure modes it didn't enumerate, alternatives it didn't consider.
|
|
31301
|
+
const CRITIC_BASE = `You are codex-critic, an adversarial reviewer running on gpt-5.6-sol. Your single job is to overcome the lead orchestrator's blind spots — assumptions it didn't notice it was making, failure modes it didn't enumerate, alternatives it didn't consider.
|
|
31266
31302
|
|
|
31267
31303
|
You are NOT a helpful assistant. You are NOT a coach. Sycophancy is the failure mode you exist to fight. Manufactured contrarianism is a different failure of the same shape — silence on good work is a valid and welcome answer.
|
|
31268
31304
|
|
|
@@ -31352,7 +31388,7 @@ Resilience reminder:
|
|
|
31352
31388
|
If your session terminates abnormally before "Status: complete", the lead will retry once. On recovery, ask the lead to confirm what's already been done before re-applying changes — duplicate edits are worse than a slow restart.`;
|
|
31353
31389
|
const OPUS_CRITIC_BASE = `You are opus-critic, a fresh-context same-lab adversarial reviewer running on Opus 5. The lead orchestrator that just delegated to you runs Opus-family context too, but you are NOT the lead. You did not see the lead's reasoning trace. You only see the brief.
|
|
31354
31390
|
|
|
31355
|
-
Your job is to spot what the lead missed because of cognitive momentum, sunk-cost on a plan, or motivated reasoning toward a particular fix. Your blind-spot diversification is LIMITED compared to codex-critic (gpt-6-sol) and gemini-critic (gemini-3.1-pro), same lab, adjacent model family, related priors. Use that honestly: don't pretend to find a different perspective when the obvious read is "the lead got it right." Silence on good work is a valid and welcome answer.
|
|
31391
|
+
Your job is to spot what the lead missed because of cognitive momentum, sunk-cost on a plan, or motivated reasoning toward a particular fix. Your blind-spot diversification is LIMITED compared to codex-critic (gpt-5.6-sol) and gemini-critic (gemini-3.1-pro), same lab, adjacent model family, related priors. Use that honestly: don't pretend to find a different perspective when the obvious read is "the lead got it right." Silence on good work is a valid and welcome answer.
|
|
31356
31392
|
|
|
31357
31393
|
Sycophancy is the failure mode you exist to fight. Manufactured contrarianism is a different failure of the same shape — do neither.
|
|
31358
31394
|
|
|
@@ -31363,9 +31399,9 @@ const PERSONAS_READ = Object.freeze([
|
|
|
31363
31399
|
{
|
|
31364
31400
|
agentName: "codex-critic",
|
|
31365
31401
|
toolNameHttp: "codex_critic",
|
|
31366
|
-
model: "gpt-6-sol",
|
|
31402
|
+
model: "gpt-5.6-sol",
|
|
31367
31403
|
endpoint: "/v1/responses",
|
|
31368
|
-
description: "Adversarial architecture and design critic backed by gpt-6-sol (OpenAI, ~1M-token input window), the strongest cross-lab reasoning critic in this surface. It reviews plans, designs, tradeoffs, and large code-change proposals for unsound assumptions, missing failure modes, and overlooked alternatives, then returns a calibrated objection or `no material objection`. Use when a decision or design needs a different-lab strategic challenge before implementation or merge. Not for line-level bug finding in a concrete diff or file, use codex_reviewer or gemini_reviewer; pass the artifact and constraints verbatim.",
|
|
31404
|
+
description: "Adversarial architecture and design critic backed by gpt-5.6-sol (OpenAI, ~1M-token input window), the strongest cross-lab reasoning critic in this surface. It reviews plans, designs, tradeoffs, and large code-change proposals for unsound assumptions, missing failure modes, and overlooked alternatives, then returns a calibrated objection or `no material objection`. Use when a decision or design needs a different-lab strategic challenge before implementation or merge. Not for line-level bug finding in a concrete diff or file, use codex_reviewer or gemini_reviewer; pass the artifact and constraints verbatim.",
|
|
31369
31405
|
baseInstructions: CRITIC_BASE,
|
|
31370
31406
|
agentPrompt: "",
|
|
31371
31407
|
writeCapable: false,
|
|
@@ -31633,7 +31669,7 @@ function buildPeerAwarenessSnippet(opts) {
|
|
|
31633
31669
|
const fleetKey = key("fleet");
|
|
31634
31670
|
const compoundBrowseAvailable = opts.browseAvailable && opts.compoundBrowseAvailable;
|
|
31635
31671
|
const powerBrowseAvailable = opts.browseAvailable && opts.powerBrowseAvailable === true;
|
|
31636
|
-
const criticList = ["`codex_critic` (gpt-6-sol)", "`codex_reviewer` (gpt-5.3-codex)"];
|
|
31672
|
+
const criticList = ["`codex_critic` (gpt-5.6-sol)", "`codex_reviewer` (gpt-5.3-codex)"];
|
|
31637
31673
|
if (opts.geminiAvailable) {
|
|
31638
31674
|
const geminiModel = opts.geminiModel ?? "gemini-3.1-pro-preview";
|
|
31639
31675
|
criticList.push(`\`gemini_reviewer\` (${geminiModel}, line-level code review)`);
|
|
@@ -32242,7 +32278,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
32242
32278
|
},
|
|
32243
32279
|
model: {
|
|
32244
32280
|
type: "string",
|
|
32245
|
-
description: "Optional Copilot catalog model id (defaults to gpt-6-luna). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
|
|
32281
|
+
description: "Optional Copilot catalog model id (defaults to gpt-6-luna). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-5.6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
|
|
32246
32282
|
},
|
|
32247
32283
|
thinking: {
|
|
32248
32284
|
type: "string",
|
|
@@ -32272,7 +32308,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
32272
32308
|
toolNameHttp: "implement",
|
|
32273
32309
|
group: "workers",
|
|
32274
32310
|
capability: "worker",
|
|
32275
|
-
description: "Runs as the background `worker-implement` agent. Dispatch via the Agent tool (subagent_type: worker-implement) so the turn is never blocked; the result arrives as a completion notification. Delegates a scoped coding task to an autonomous worker (Pi runtime; default model `gpt-6-sol` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the explore read-only tools plus edit, write, bash, and codex_review, and it returns its final text with any changed files or worktree diff. Use for bounded implementation work that may take a while or benefits from isolated worker context. Not for pure research, planning, review, or independent test authoring; use explore, plan, review, or test for those scopes. ALWAYS runs in an isolated git worktree and returns the diff via a saved patch file (a `--stat` summary + a bounded preview + the patch path; a small diff is inlined in full) — it never edits your working tree, and it HARD-ERRORS if the workspace is not a git repository. For in-place edits, use the native `implementer` subagent. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
|
|
32311
|
+
description: "Runs as the background `worker-implement` agent. Dispatch via the Agent tool (subagent_type: worker-implement) so the turn is never blocked; the result arrives as a completion notification. Delegates a scoped coding task to an autonomous worker (Pi runtime; default model `gpt-5.6-sol` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the explore read-only tools plus edit, write, bash, and codex_review, and it returns its final text with any changed files or worktree diff. Use for bounded implementation work that may take a while or benefits from isolated worker context. Not for pure research, planning, review, or independent test authoring; use explore, plan, review, or test for those scopes. ALWAYS runs in an isolated git worktree and returns the diff via a saved patch file (a `--stat` summary + a bounded preview + the patch path; a small diff is inlined in full) — it never edits your working tree, and it HARD-ERRORS if the workspace is not a git repository. For in-place edits, use the native `implementer` subagent. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
|
|
32276
32312
|
inputSchema: {
|
|
32277
32313
|
type: "object",
|
|
32278
32314
|
required: ["prompt"],
|
|
@@ -32288,7 +32324,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
32288
32324
|
},
|
|
32289
32325
|
model: {
|
|
32290
32326
|
type: "string",
|
|
32291
|
-
description: "Optional Copilot catalog model id (defaults to gpt-6-sol). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
|
|
32327
|
+
description: "Optional Copilot catalog model id (defaults to gpt-5.6-sol). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-5.6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
|
|
32292
32328
|
},
|
|
32293
32329
|
thinking: {
|
|
32294
32330
|
type: "string",
|
|
@@ -32330,7 +32366,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
32330
32366
|
},
|
|
32331
32367
|
model: {
|
|
32332
32368
|
type: "string",
|
|
32333
|
-
description: "Optional Copilot catalog model id (defaults to gemini-3.1-pro-preview). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
|
|
32369
|
+
description: "Optional Copilot catalog model id (defaults to gemini-3.1-pro-preview). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-5.6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
|
|
32334
32370
|
},
|
|
32335
32371
|
thinking: {
|
|
32336
32372
|
type: "string",
|
|
@@ -32406,7 +32442,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
32406
32442
|
toolNameHttp: "test",
|
|
32407
32443
|
group: "workers",
|
|
32408
32444
|
capability: "worker",
|
|
32409
|
-
description: "Runs as the background `worker-test` agent. Dispatch via the Agent tool (subagent_type: worker-test) so the turn is never blocked; the result arrives as a completion notification. Independent adversarial test authoring by an autonomous worker (Pi runtime; default model `gpt-6-sol` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the same read/write toolset as implement and writes tests that try to break the implementation through edge cases, error paths, and acceptance criteria, then runs them and reports pass/fail. Use when a separate test author should challenge an implementation without modifying the production code to make tests pass. Not for implementing fixes, broad research, or code review; use implement, explore, or review for those scopes. ALWAYS runs in an isolated git worktree and returns the test diff via a saved patch file (a `--stat` summary + a bounded preview + the patch path; a small diff is inlined in full) — it never edits your working tree, and it HARD-ERRORS if the workspace is not a git repository. For in-place test authoring, use the native `implementer` subagent. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
|
|
32445
|
+
description: "Runs as the background `worker-test` agent. Dispatch via the Agent tool (subagent_type: worker-test) so the turn is never blocked; the result arrives as a completion notification. Independent adversarial test authoring by an autonomous worker (Pi runtime; default model `gpt-5.6-sol` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the same read/write toolset as implement and writes tests that try to break the implementation through edge cases, error paths, and acceptance criteria, then runs them and reports pass/fail. Use when a separate test author should challenge an implementation without modifying the production code to make tests pass. Not for implementing fixes, broad research, or code review; use implement, explore, or review for those scopes. ALWAYS runs in an isolated git worktree and returns the test diff via a saved patch file (a `--stat` summary + a bounded preview + the patch path; a small diff is inlined in full) — it never edits your working tree, and it HARD-ERRORS if the workspace is not a git repository. For in-place test authoring, use the native `implementer` subagent. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
|
|
32410
32446
|
inputSchema: {
|
|
32411
32447
|
type: "object",
|
|
32412
32448
|
required: ["prompt"],
|
|
@@ -32422,7 +32458,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
32422
32458
|
},
|
|
32423
32459
|
model: {
|
|
32424
32460
|
type: "string",
|
|
32425
|
-
description: "Optional Copilot catalog model id (defaults to gpt-6-sol). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
|
|
32461
|
+
description: "Optional Copilot catalog model id (defaults to gpt-5.6-sol). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
|
|
32426
32462
|
},
|
|
32427
32463
|
thinking: {
|
|
32428
32464
|
type: "string",
|
|
@@ -32682,7 +32718,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
|
|
|
32682
32718
|
toolNameHttp: "stand_in",
|
|
32683
32719
|
group: "decide",
|
|
32684
32720
|
capability: "stand_in",
|
|
32685
|
-
description: "Three-lab away-mode decision tiebreak advisor for moments when the user is unavailable and the agent is stuck between two or more concrete options. It polls gpt-6-sol, Opus 5.5, and gemini-3.1-pro-preview across blind and informed voting rounds, then returns a ranked-choice verdict such as consensus, majority, no_consensus, or need_more_info. Use when work would otherwise halt on a bounded choice the user would normally make. If every provided option is inadequate, the panel may flag a concrete better unlisted option in `notes` so you can re-invoke with a revised set. The three panel models are cold-start — no repo, transcript, or memory access — and see only your decision, options, and context, so the `context` argument must carry all the background they need to judge. Not for code review, open-ended exploration, single-model second opinions, or bypassing confirmation on irreversible actions such as push, delete, drop, or deploy; use peer-review-coordinator or the individual critics for review and still ask the user for destructive actions.",
|
|
32721
|
+
description: "Three-lab away-mode decision tiebreak advisor for moments when the user is unavailable and the agent is stuck between two or more concrete options. It polls gpt-5.6-sol, Opus 5.5, and gemini-3.1-pro-preview across blind and informed voting rounds, then returns a ranked-choice verdict such as consensus, majority, no_consensus, or need_more_info. Use when work would otherwise halt on a bounded choice the user would normally make. If every provided option is inadequate, the panel may flag a concrete better unlisted option in `notes` so you can re-invoke with a revised set. The three panel models are cold-start — no repo, transcript, or memory access — and see only your decision, options, and context, so the `context` argument must carry all the background they need to judge. Not for code review, open-ended exploration, single-model second opinions, or bypassing confirmation on irreversible actions such as push, delete, drop, or deploy; use peer-review-coordinator or the individual critics for review and still ask the user for destructive actions.",
|
|
32686
32722
|
inputSchema: {
|
|
32687
32723
|
type: "object",
|
|
32688
32724
|
required: [
|
|
@@ -33129,6 +33165,6 @@ function enumerateInjectedMcpToolNames(groupKeys, opts = {}) {
|
|
|
33129
33165
|
return [...new Set(names)];
|
|
33130
33166
|
}
|
|
33131
33167
|
//#endregion
|
|
33132
|
-
export {
|
|
33168
|
+
export { readIteratorWithTimeout as $, createChatCompletions as $t, TOOLBELT_TOOLS$1 as A, oneMContextDisabled as An, generalPurposeFastModel as At, injectAdvisorTool as B, CHEAPEST_PROFILE_ORACLE_EFFORT as Bn, shimDefaultsToXhigh as Bt, runWorkerAgent as C, isBudgetClaudeLead as Cn, fastGeneralPurposeModel as Ct, toolbeltEnabled as D, upstreamMaxConnections as Dn, fastScoutModel as Dt, buildToolbeltAwareness as E, upstreamAllowH2 as En, fastReviewerModel as Et, ADVISOR_TOOL_INSTRUCTIONS as F, CHEAPEST_PROFILE_ADVISOR_MODEL as Fn, reviewerModel as Ft, formatThinkingRepairDecline as G, CHEAP_PROFILE_NATIVE_AGENT_NAMES as Gn, getTokenizerFromModel as Gt, resolveAdvisorEffort as H, CHEAPEST_PROFILE_SUBAGENT_CONTEXT_TOKENS as Hn, createMessages as Ht, CHEAPEST_ADVISOR_TOOL_INSTRUCTIONS as I, CHEAPEST_PROFILE_MODELS as In, scoutModel as It, repairRejectedThinkingHistory as J, CHEAP_PROFILE_SUBAGENT_CONTEXT_TOKENS as Jn, unregisterLaunch as Jt, rememberThinkingHistoryRepair as K, CHEAP_PROFILE_NATIVE_EFFORTS as Kn, findLaunchBySecret as Kt, CHEAPEST_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS as L, CHEAPEST_PROFILE_NATIVE_AGENT_NAMES as Ln, scribeModel as Lt, satisfiesMinVersion as M, withOneMSuffixForLead as Mn, nativeSubagentModel as Mt, searchWeb as N, CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL as Nn, resolveGeminiReviewModel as Nt, toolbeltSkipSet as O, classifyMessagesRoute as On, fleetToolsEnabled as Ot, ADVISOR_INTERNAL_TOOL_NAME as P, CHEAPEST_PROFILE_ADVISOR_EFFORT as Pn, reviewerFastModel as Pt, logStreamError as Q, createResponses as Qt, FAST_ADVISOR_TOOL_INSTRUCTIONS as R, CHEAPEST_PROFILE_NATIVE_EFFORTS as Rn, standInToolEnabled as Rt, resolveWorkerRunOpts as S, generateRandomPort as Sn, fastAstraModel as St, availableToolCommands as T, resolveLeadSlugArg as Tn, fastPlanModel as Tt, resolveAdvisorModel as U, CHEAP_PROFILE_ADVISOR_CLIENT_MODEL as Un, getTextTokenCount as Ut, isAdvisorRequested as V, CHEAPEST_PROFILE_ORACLE_MODEL as Vn, countTokens as Vt, resolveCheapestAdvisorModel as W, CHEAP_PROFILE_MODELS as Wn, getTokenCount as Wt, buildOpenAIErrorEvent as X, warnOnTokenPriceDrift as Xt, buildAnthropicErrorEvent as Y, assembleResponsesPayload as Yt, isControllerClosedError as Z, resolveMcpToolTimeoutMs as Zt, REVIEW_DEFAULT_MODEL as _, DEFAULT_CODEX_MODEL as _n, cheapReviewerModel as _t, buildAgentPrompt as a, hasSupportedBrowserInstalled as an, handleMcpDelete as at, resolveDefaultModel as b, UPSTREAM_FETCH_TIMEOUT_MS as bn, cheapestReviewerModel as bt, enumerateInjectedMcpToolNames as c, semanticSearchOptedIn as cn, artifactToolsEnabled as ct, BROWSE_DEFAULT_MODEL as d, shouldUseInsecureTls as dn, brainstormModel as dt, MAX_RESPONSE_BODY_BYTES as en, relayAnthropicStream as et, DEFAULT_MODEL_CHAIN as f, collapsePathKeys as fn, browseAgentEnabled as ft, PLAN_DEFAULT_MODEL as g, DEFAULT_CLAUDE_MODEL_FALLBACKS as gn, cheapOracleModel as gt, IMPLEMENT_DEFAULT_MODEL as h, BUDGET_SMALL_FAST_SLUG as hn, cheapAdvisorModel as ht, assertMcpToolSurfaceConsistent as i, provisionBrowserAssets as in, clampEffort as it, assetFor as j, withOneMSuffix as jn, implementerFastModel as jt, vscodeRipgrepPath as k, catalogAdvertises1M as kn, geminiAvailable as kt, maxPersonasFor as l, CONDENSED_OPERATING_SEQUENCE as ln, balancedOracleModel as lt, EXPLORE_DEFAULT_THINKING as m, BUDGET_SMALL_FAST_CATALOG_ID as mn, browserToolsEnabled as mt, MCP_GROUPS as n, parseJsonOrDiagnose as nn, UNKNOWN_EFFORT_ANCHOR as nt, buildPeerAwarenessSnippet as o, colbertDegradedWarning as on, handleMcpPost as ot, EXPLORE_DEFAULT_MODEL as p, toolbeltPathOverride as pn, browserCompoundToolsEnabled as pt, repairKnownThinkingHistory as q, CHEAP_PROFILE_NATIVE_MODELS as qn, registerLaunch as qt, agentNamesForToolAllowlist as r, normalizeOpenAIUsage as rn, bucketEffort as rt, buildPeerAwarenessSummary as s, provisionAndIndexColbert as sn, agentToolsEnabled as st, GROUP_META as t, readResponseBodyCapped as tn, EFFORT_ORDER as tt, personasFor as u, DEFINITION_OF_GREATNESS as un, balancedReviewerModel as ut, TEST_DEFAULT_MODEL as v, DEFAULT_CODEX_MODEL_FALLBACKS as vn, cheapestAdvisorModel as vt, buildEnv as w, pickClaudeDefault as wn, fastOracleModel as wt, resolveModeDefaults as x, UPSTREAM_INACTIVITY_TIMEOUT_MS as xn, fastAdvisorModel as xt, appendPlanReminder as y, DEFAULT_PORT as yn, cheapestOracleModel as yt, buildAdvisorStream as z, CHEAPEST_PROFILE_NATIVE_MODELS as zn, workerToolsEnabled as zt };
|
|
33133
33169
|
|
|
33134
|
-
//# sourceMappingURL=peer-mcp-personas-
|
|
33170
|
+
//# sourceMappingURL=peer-mcp-personas-C200IycG.js.map
|