@anthonyhaussman/opencode-agy-auth 1.5.6 → 1.5.8
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/dist/index.js +955 -41
- package/dist/index.js.map +1 -1
- package/dist/src/plugin/tier.d.ts +1 -0
- package/dist/src/sdk/agy-cli-version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -268,7 +268,7 @@ function createAgyActivityRequestId() {
|
|
|
268
268
|
import os from "os";
|
|
269
269
|
|
|
270
270
|
// src/sdk/agy-cli-version.ts
|
|
271
|
-
var AGY_CLI_VERSION = "1.5.
|
|
271
|
+
var AGY_CLI_VERSION = "1.5.8";
|
|
272
272
|
|
|
273
273
|
// src/sdk/user-agent.ts
|
|
274
274
|
var cachedUserAgent = null;
|
|
@@ -16114,6 +16114,10 @@ var models_default = {
|
|
|
16114
16114
|
"gemini-4-argon-medium",
|
|
16115
16115
|
"gemini-4-argon-high",
|
|
16116
16116
|
"gemini-4-argon-low",
|
|
16117
|
+
"gemini-4-hydrogen-high",
|
|
16118
|
+
"gemini-4-hydrogen-xhigh",
|
|
16119
|
+
"gemini-4-hydrogen-medium",
|
|
16120
|
+
"gemini-4-hydrogen-low",
|
|
16117
16121
|
"gemini-3.8-flash-high",
|
|
16118
16122
|
"gemini-3.8-flash-medium",
|
|
16119
16123
|
"gemini-3.8-flash-low",
|
|
@@ -16156,7 +16160,7 @@ var models_default = {
|
|
|
16156
16160
|
106828854,
|
|
16157
16161
|
1714252,
|
|
16158
16162
|
106140402,
|
|
16159
|
-
|
|
16163
|
+
106815069,
|
|
16160
16164
|
106805272,
|
|
16161
16165
|
105979552,
|
|
16162
16166
|
105979574,
|
|
@@ -16165,6 +16169,7 @@ var models_default = {
|
|
|
16165
16169
|
105867471,
|
|
16166
16170
|
106749607,
|
|
16167
16171
|
106123599,
|
|
16172
|
+
107042622,
|
|
16168
16173
|
106121401,
|
|
16169
16174
|
106100625,
|
|
16170
16175
|
106754391,
|
|
@@ -16182,6 +16187,8 @@ var models_default = {
|
|
|
16182
16187
|
106793266,
|
|
16183
16188
|
106798730,
|
|
16184
16189
|
106833630,
|
|
16190
|
+
107032102,
|
|
16191
|
+
107032122,
|
|
16185
16192
|
107002418,
|
|
16186
16193
|
106380926,
|
|
16187
16194
|
106281951,
|
|
@@ -16204,6 +16211,8 @@ var models_default = {
|
|
|
16204
16211
|
106100654,
|
|
16205
16212
|
106064028,
|
|
16206
16213
|
106640124,
|
|
16214
|
+
107032004,
|
|
16215
|
+
107032006,
|
|
16207
16216
|
107002400,
|
|
16208
16217
|
106032301,
|
|
16209
16218
|
106825242,
|
|
@@ -16269,8 +16278,8 @@ var models_default = {
|
|
|
16269
16278
|
},
|
|
16270
16279
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16271
16280
|
quotaInfo: {
|
|
16272
|
-
remainingFraction:
|
|
16273
|
-
resetTime: "2026-11-
|
|
16281
|
+
remainingFraction: 0.4823316,
|
|
16282
|
+
resetTime: "2026-11-19T13:17:30Z"
|
|
16274
16283
|
},
|
|
16275
16284
|
recommended: true,
|
|
16276
16285
|
supportedMimeTypes: {
|
|
@@ -16310,8 +16319,8 @@ var models_default = {
|
|
|
16310
16319
|
},
|
|
16311
16320
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16312
16321
|
quotaInfo: {
|
|
16313
|
-
remainingFraction:
|
|
16314
|
-
resetTime: "2026-11-
|
|
16322
|
+
remainingFraction: 0.4823316,
|
|
16323
|
+
resetTime: "2026-11-19T13:17:30Z"
|
|
16315
16324
|
},
|
|
16316
16325
|
recommended: true,
|
|
16317
16326
|
supportedMimeTypes: {
|
|
@@ -16351,8 +16360,8 @@ var models_default = {
|
|
|
16351
16360
|
},
|
|
16352
16361
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16353
16362
|
quotaInfo: {
|
|
16354
|
-
remainingFraction:
|
|
16355
|
-
resetTime: "2026-11-
|
|
16363
|
+
remainingFraction: 0.4823316,
|
|
16364
|
+
resetTime: "2026-11-19T13:17:30Z"
|
|
16356
16365
|
},
|
|
16357
16366
|
recommended: true,
|
|
16358
16367
|
supportedMimeTypes: {
|
|
@@ -16392,8 +16401,8 @@ var models_default = {
|
|
|
16392
16401
|
},
|
|
16393
16402
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16394
16403
|
quotaInfo: {
|
|
16395
|
-
remainingFraction:
|
|
16396
|
-
resetTime: "2026-11-
|
|
16404
|
+
remainingFraction: 0.4823316,
|
|
16405
|
+
resetTime: "2026-11-19T13:17:30Z"
|
|
16397
16406
|
},
|
|
16398
16407
|
recommended: true,
|
|
16399
16408
|
supportedMimeTypes: {
|
|
@@ -16433,8 +16442,8 @@ var models_default = {
|
|
|
16433
16442
|
},
|
|
16434
16443
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16435
16444
|
quotaInfo: {
|
|
16436
|
-
remainingFraction:
|
|
16437
|
-
resetTime: "2026-11-
|
|
16445
|
+
remainingFraction: 0.4823316,
|
|
16446
|
+
resetTime: "2026-11-19T13:17:30Z"
|
|
16438
16447
|
},
|
|
16439
16448
|
recommended: true,
|
|
16440
16449
|
supportedMimeTypes: {
|
|
@@ -16474,8 +16483,8 @@ var models_default = {
|
|
|
16474
16483
|
},
|
|
16475
16484
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16476
16485
|
quotaInfo: {
|
|
16477
|
-
remainingFraction:
|
|
16478
|
-
resetTime: "2026-11-
|
|
16486
|
+
remainingFraction: 0.4823316,
|
|
16487
|
+
resetTime: "2026-11-19T13:17:30Z"
|
|
16479
16488
|
},
|
|
16480
16489
|
recommended: true,
|
|
16481
16490
|
supportedMimeTypes: {
|
|
@@ -16513,8 +16522,8 @@ var models_default = {
|
|
|
16513
16522
|
},
|
|
16514
16523
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16515
16524
|
quotaInfo: {
|
|
16516
|
-
remainingFraction: 0.
|
|
16517
|
-
resetTime: "2026-11-
|
|
16525
|
+
remainingFraction: 0.9757339,
|
|
16526
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
16518
16527
|
},
|
|
16519
16528
|
recommended: true,
|
|
16520
16529
|
supportedMimeTypes: {
|
|
@@ -16598,8 +16607,8 @@ var models_default = {
|
|
|
16598
16607
|
},
|
|
16599
16608
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16600
16609
|
quotaInfo: {
|
|
16601
|
-
remainingFraction: 0.
|
|
16602
|
-
resetTime: "2026-11-
|
|
16610
|
+
remainingFraction: 0.9757339,
|
|
16611
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
16603
16612
|
},
|
|
16604
16613
|
recommended: true,
|
|
16605
16614
|
supportedMimeTypes: {
|
|
@@ -16683,8 +16692,8 @@ var models_default = {
|
|
|
16683
16692
|
},
|
|
16684
16693
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16685
16694
|
quotaInfo: {
|
|
16686
|
-
remainingFraction: 0.
|
|
16687
|
-
resetTime: "2026-11-
|
|
16695
|
+
remainingFraction: 0.9757339,
|
|
16696
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
16688
16697
|
},
|
|
16689
16698
|
recommended: true,
|
|
16690
16699
|
supportedMimeTypes: {
|
|
@@ -16765,8 +16774,8 @@ var models_default = {
|
|
|
16765
16774
|
},
|
|
16766
16775
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16767
16776
|
quotaInfo: {
|
|
16768
|
-
remainingFraction: 0.
|
|
16769
|
-
resetTime: "2026-11-
|
|
16777
|
+
remainingFraction: 0.9757339,
|
|
16778
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
16770
16779
|
},
|
|
16771
16780
|
recommended: true,
|
|
16772
16781
|
requiresImageOutputOutsideFunctionResponses: true,
|
|
@@ -16847,8 +16856,8 @@ var models_default = {
|
|
|
16847
16856
|
},
|
|
16848
16857
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16849
16858
|
quotaInfo: {
|
|
16850
|
-
remainingFraction: 0.
|
|
16851
|
-
resetTime: "2026-11-
|
|
16859
|
+
remainingFraction: 0.9757339,
|
|
16860
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
16852
16861
|
},
|
|
16853
16862
|
recommended: true,
|
|
16854
16863
|
supportedMimeTypes: {
|
|
@@ -16921,8 +16930,8 @@ var models_default = {
|
|
|
16921
16930
|
model: "MODEL_PLACEHOLDER_M21",
|
|
16922
16931
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16923
16932
|
quotaInfo: {
|
|
16924
|
-
remainingFraction: 0.
|
|
16925
|
-
resetTime: "2026-11-
|
|
16933
|
+
remainingFraction: 0.9757339,
|
|
16934
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
16926
16935
|
},
|
|
16927
16936
|
supportedMimeTypes: {
|
|
16928
16937
|
"application/json": true,
|
|
@@ -16972,8 +16981,8 @@ var models_default = {
|
|
|
16972
16981
|
},
|
|
16973
16982
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16974
16983
|
quotaInfo: {
|
|
16975
|
-
remainingFraction: 0.
|
|
16976
|
-
resetTime: "2026-11-
|
|
16984
|
+
remainingFraction: 0.9757339,
|
|
16985
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
16977
16986
|
},
|
|
16978
16987
|
recommended: true,
|
|
16979
16988
|
supportedMimeTypes: {
|
|
@@ -17057,8 +17066,8 @@ var models_default = {
|
|
|
17057
17066
|
},
|
|
17058
17067
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17059
17068
|
quotaInfo: {
|
|
17060
|
-
remainingFraction: 0.
|
|
17061
|
-
resetTime: "2026-11-
|
|
17069
|
+
remainingFraction: 0.9757339,
|
|
17070
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
17062
17071
|
},
|
|
17063
17072
|
recommended: true,
|
|
17064
17073
|
supportedMimeTypes: {
|
|
@@ -17172,8 +17181,8 @@ var models_default = {
|
|
|
17172
17181
|
},
|
|
17173
17182
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17174
17183
|
quotaInfo: {
|
|
17175
|
-
remainingFraction: 0.
|
|
17176
|
-
resetTime: "2026-11-
|
|
17184
|
+
remainingFraction: 0.9757339,
|
|
17185
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
17177
17186
|
},
|
|
17178
17187
|
recommended: true,
|
|
17179
17188
|
supportedMimeTypes: {
|
|
@@ -17287,8 +17296,8 @@ var models_default = {
|
|
|
17287
17296
|
},
|
|
17288
17297
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17289
17298
|
quotaInfo: {
|
|
17290
|
-
remainingFraction: 0.
|
|
17291
|
-
resetTime: "2026-11-
|
|
17299
|
+
remainingFraction: 0.9757339,
|
|
17300
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
17292
17301
|
},
|
|
17293
17302
|
recommended: true,
|
|
17294
17303
|
supportedMimeTypes: {
|
|
@@ -17402,8 +17411,8 @@ var models_default = {
|
|
|
17402
17411
|
},
|
|
17403
17412
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17404
17413
|
quotaInfo: {
|
|
17405
|
-
remainingFraction: 0.
|
|
17406
|
-
resetTime: "2026-11-
|
|
17414
|
+
remainingFraction: 0.9757339,
|
|
17415
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
17407
17416
|
},
|
|
17408
17417
|
recommended: true,
|
|
17409
17418
|
supportedMimeTypes: {
|
|
@@ -17516,8 +17525,8 @@ var models_default = {
|
|
|
17516
17525
|
},
|
|
17517
17526
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17518
17527
|
quotaInfo: {
|
|
17519
|
-
remainingFraction: 0.
|
|
17520
|
-
resetTime: "2026-11-
|
|
17528
|
+
remainingFraction: 0.9757339,
|
|
17529
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
17521
17530
|
},
|
|
17522
17531
|
recommended: true,
|
|
17523
17532
|
supportedMimeTypes: {
|
|
@@ -18068,6 +18077,894 @@ var models_default = {
|
|
|
18068
18077
|
tagTitle: "Unavailable",
|
|
18069
18078
|
thinkingLevel: 2
|
|
18070
18079
|
},
|
|
18080
|
+
"gemini-4-hydrogen-high": {
|
|
18081
|
+
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
18082
|
+
displayName: "Gemini 4 Hydrogen (High)",
|
|
18083
|
+
maxOutputTokens: 262144,
|
|
18084
|
+
maxTokens: 1048576,
|
|
18085
|
+
minThinkingBudget: 32,
|
|
18086
|
+
model: "MODEL_PLACEHOLDER_M525",
|
|
18087
|
+
modelExperimentIds: [
|
|
18088
|
+
"sonar"
|
|
18089
|
+
],
|
|
18090
|
+
modelExperiments: {
|
|
18091
|
+
experiments: {
|
|
18092
|
+
CASCADE_USE_EXPERIMENT_CHECKPOINTER: {
|
|
18093
|
+
stringValue: `{
|
|
18094
|
+
"strategy": "CHECKPOINT_STRATEGY_SAME_MODEL",
|
|
18095
|
+
"max_token_limit": "256000",
|
|
18096
|
+
"token_threshold": "50000",
|
|
18097
|
+
"max_overhead_ratio": "0.15",
|
|
18098
|
+
"enabled": true,
|
|
18099
|
+
"max_output_tokens": "32768",
|
|
18100
|
+
"checkpoint_model": "MODEL_PLACEHOLDER_M50",
|
|
18101
|
+
"use_last_planner_model": true,
|
|
18102
|
+
"is_sync": true,
|
|
18103
|
+
"max_user_requests": 10,
|
|
18104
|
+
"include_last_user_message": true,
|
|
18105
|
+
"include_conversation_log": false,
|
|
18106
|
+
"include_running_task_snapshots": true,
|
|
18107
|
+
"include_subagent_snapshots": true,
|
|
18108
|
+
"include_artifact_snapshots": true,
|
|
18109
|
+
"retry_config": {
|
|
18110
|
+
"max_retries": 4,
|
|
18111
|
+
"initial_sleep_duration_ms": 1000,
|
|
18112
|
+
"exponential_multiplier": 2,
|
|
18113
|
+
"include_error_feedback": false
|
|
18114
|
+
},
|
|
18115
|
+
"session_summary_prompt_override": "You have been working on the task described above but have not yet completed\\nit. Write a continuation summary that will allow you (or another instance of\\nyourself) to resume work efficiently in a future context window where the\\nfull conversation history will NOT be available\\u2014only this summary.\\n\\nThis summary is all that will be available to you going forward in the future\\ncontext window. Do not call any tools, simply just provide the summary based on\\nthe information available in the current context window.\\n\\nYour summary must be structured, concise, and actionable. Optimize for enabling immediate resumption with zero redundant work.\\n\\nInclude the following sections, in this order:\\n\\n1. **Task Overview**\\n - The user's core request and success criteria\\n - Constraints, preferences, or scope boundaries they specified\\n - Any ambiguities that were resolved (and how)\\n\\n2. **Done**\\n A checklist of every change already made, one line each: the file, what\\n changed, and its status, either \\"verified: <exact command> -> <result>\\"\\n or \\"not yet verified\\". Include investigations that are finished, with\\n their conclusion (for example, the root cause). Nothing here needs to be\\n redone.\\n\\n3. **Files Already Read**\\n One line per file you have read: its absolute path, the line ranges you\\n read, and what they contain that matters for the task. These files and\\n ranges must not be opened again; record here whatever you would need from\\n them.\\n\\n4. **Code Map**\\n - For the code you will edit next: its exact current text, copied\\n verbatim from the latest view or edit of that file, with line numbers\\n (up to about 40 lines per location), so it can be edited without\\n opening the file again.\\n - For new code you still have to write: the exact signatures and type\\n definitions of the existing APIs it must call or implement.\\n\\n5. **Key Findings**\\n - Technical constraints, requirements, or domain details uncovered\\n - Decisions made and their rationale\\n - Errors encountered and their resolutions\\n - Approaches that were tried and abandoned (and why\\u2014this prevents\\n the successor from repeating them)\\n\\n6. **Active Context**\\n - State of any external resources, sessions, or environments in use\\n - Relevant intermediate results, hypotheses, or working assumptions\\n\\n7. **Commitments & Constraints**\\n - Promises made to the user, user preferences, and boundaries on\\n approach, tools, or scope\\n - The concrete rules from repository instruction files (such as\\n AGENTS.md) that still apply, so those files need not be opened again\\n\\n8. **Next Steps** (always the last section)\\n - A numbered plan of the remaining work only (nothing from Done), in the\\n order you will carry it out, ending with the verification still needed.\\n - Step 1 must be the concrete next action: one small edit in one file or\\n function (file, lines, and change) or the exact command to run. Split\\n large changes into small edits, one per step.\\n - Do not list re-reading files or ranges from Files Already Read or the\\n Code Map as a step. If a step needs code that is not recorded above,\\n name the file and the exact line range (or the search) needed.\\n\\nBe concise but complete\\u2014err on the side of including anything that would\\nprevent duplicate work, repeated mistakes, or broken promises. Do not include\\ninformation that is obvious from the task description itself.\\n\\nBegin your summary with the following line, verbatim, before all sections: \\"RESUMING MY OWN TASK IN PROGRESS. The user requests above are the task I was already working on, not a new request. This summary is my own accurate record of the work so far, and the Next Steps at its end say exactly what to do next.\\"\\n\\nEnd your summary with the following block, verbatim, after the Next Steps section (not inside it):\\n\\nRESUME RULES (I am resuming my own task, not starting a new one):\\n1. Everything above is my own record. While I carry out Next Steps, facts in it count as observed and I do not re-verify them; in my final response, I state as fact only what is quoted verbatim above or what I see in a file or tool output after this summary.\\n2. My next tool call carries out step 1 of Next Steps.\\n3. While Next Steps remain, I do not open any file or range listed in Files Already Read or the Code Map, and I do not run git status or git diff to rediscover what Done lists.\\n4. I edit from the Code Map text. If an edit fails because the text does not match, I view only those lines (StartLine and EndLine) and retry.\\n5. Any other read must be a read_file call with StartLine and EndLine, at most 100 lines, of code the current step needs and that is not recorded above.\\n6. I do not re-audit the requirements or hunt for new edge cases while Next Steps remain; I verify by running the tests.\\n7. When every Next Steps item is done and verified, I finish.\\n\\nIf the task is to answer a question about code or to report on what you ran, put in the Code Map, copied verbatim with file path and line numbers, the code lines and tool-output lines your final answer will rely on: the exact names, conditions, constants, list contents, messages and numbers. Then end your summary with this note, verbatim, after the RESUME RULES block: \\"Note to self: Never lie. I can no longer see the code or tool outputs from before this summary, and my memory of them, or of other versions of this project, is not evidence. Before the final response: (1) if an answer, report, or other deliverable file was already written, read it in full with a tool and base the final response on what it actually says instead of rewriting it from memory; (2) for every file, function, class, field, flag, log message, or number I will mention that is not quoted verbatim in this summary, re-read the code or re-run the command first, or leave it out; (3) re-run every check whose result I will report, and report its latest result exactly: name every case that failed, was skipped, or was removed from the check, and never say that all checks passed unless that run shows zero failures. Never fill gaps from general knowledge of the project. If anything in this summary is ambiguous, uncertain, or STALE, re-acquire it instead of guessing; if I cannot verify a claim, I say so.\\"\\n\\nWrap your response in <summary></summary> tags.\\n",
|
|
18116
|
+
"use_model_reported_token_count": true
|
|
18117
|
+
}`
|
|
18118
|
+
},
|
|
18119
|
+
"allow-experimental-monitors": {
|
|
18120
|
+
boolValue: true
|
|
18121
|
+
},
|
|
18122
|
+
"cascade-include-ephemeral-message": {
|
|
18123
|
+
stringValue: '{\n "enabled": false,\n "disabledHeuristics": ["planning_mode", "bash_command_reminder", "running_tasks_reminder"],\n "staticMessages": [],\n "useAllowlist": false,\n "enabledHeuristics": []\n}'
|
|
18124
|
+
},
|
|
18125
|
+
retry_model_capacity_exhausted: {
|
|
18126
|
+
boolValue: true
|
|
18127
|
+
},
|
|
18128
|
+
"task-details-suffix": {
|
|
18129
|
+
stringValue: "\nYOU MUST TAKE ONE OF THE FOLLOWING TWO ACTIONS: A) either proceed to other relevant work (if any) or, B) simply update the user with a short message (that you have launched the command and will wait for it to finish) and end the turn.\n DO NOTHING ELSE."
|
|
18130
|
+
},
|
|
18131
|
+
template__system_prompts__guidelines: {
|
|
18132
|
+
stringValue: `{{- $decl := .CascadeConfig.GetPlannerConfig.GetDeclarativeMixinConfig -}}
|
|
18133
|
+
{{- $hasNativeSection := false -}}
|
|
18134
|
+
{{- $hasCodeQuality := false -}}
|
|
18135
|
+
{{- $hasFinalAnswerAccuracy := false -}}
|
|
18136
|
+
{{- $hasGoogleInfra := false -}}
|
|
18137
|
+
{{- if $decl -}}
|
|
18138
|
+
{{- range $decl.GetPromptSections -}}
|
|
18139
|
+
{{- $b := .GetBuiltinName -}}
|
|
18140
|
+
{{- $t := .GetCustom.GetTitle -}}
|
|
18141
|
+
{{- if or (eq $b "efficient_code_reading") (eq (printf "%.23s" $b) "efficient_code_reading@") (eq $t "efficient_code_reading") -}}
|
|
18142
|
+
{{- $hasNativeSection = true -}}
|
|
18143
|
+
{{- end -}}
|
|
18144
|
+
{{- if or (eq $b "code_quality") (eq $t "code_quality") -}}
|
|
18145
|
+
{{- $hasCodeQuality = true -}}
|
|
18146
|
+
{{- end -}}
|
|
18147
|
+
{{- if or (eq $b "final_answer_accuracy") (eq $t "final_answer_accuracy") -}}
|
|
18148
|
+
{{- $hasFinalAnswerAccuracy = true -}}
|
|
18149
|
+
{{- end -}}
|
|
18150
|
+
{{- if or (eq $b "google_infrastructure") (eq (printf "%.22s" $b) "google_infrastructure@") (eq $b "google3_infrastructure") (eq (printf "%.23s" $b) "google3_infrastructure@") -}}
|
|
18151
|
+
{{- $hasGoogleInfra = true -}}
|
|
18152
|
+
{{- end -}}
|
|
18153
|
+
{{- end -}}
|
|
18154
|
+
{{- end -}}
|
|
18155
|
+
{{- $includeECR := false -}}
|
|
18156
|
+
{{- $readTool := "read_file" -}}
|
|
18157
|
+
{{- $hasCodeSearch := false -}}
|
|
18158
|
+
{{- if $decl -}}
|
|
18159
|
+
{{- $hasReadFile := false -}}
|
|
18160
|
+
{{- $hasViewFile := false -}}
|
|
18161
|
+
{{- range $decl.GetTools -}}
|
|
18162
|
+
{{- $t := .GetName -}}
|
|
18163
|
+
{{- if or (eq $t "read_file") (eq (printf "%.10s" $t) "read_file@") -}}
|
|
18164
|
+
{{- $hasReadFile = true -}}
|
|
18165
|
+
{{- end -}}
|
|
18166
|
+
{{- if or (eq $t "view_file") (eq (printf "%.10s" $t) "view_file@") -}}
|
|
18167
|
+
{{- $hasViewFile = true -}}
|
|
18168
|
+
{{- end -}}
|
|
18169
|
+
{{- if or (eq $t "code_search") (eq (printf "%.12s" $t) "code_search@") -}}
|
|
18170
|
+
{{- $hasCodeSearch = true -}}
|
|
18171
|
+
{{- end -}}
|
|
18172
|
+
{{- end -}}
|
|
18173
|
+
{{- if or $hasReadFile $hasViewFile -}}
|
|
18174
|
+
{{- $includeECR = true -}}
|
|
18175
|
+
{{- if and (not $hasReadFile) $hasViewFile -}}
|
|
18176
|
+
{{- $readTool = "view_file" -}}
|
|
18177
|
+
{{- end -}}
|
|
18178
|
+
{{- end -}}
|
|
18179
|
+
{{- else -}}
|
|
18180
|
+
{{- if not .CascadeConfig.GetPlannerConfig.GetToolConfig.GetViewFile.GetForceDisable -}}
|
|
18181
|
+
{{- $includeECR = true -}}
|
|
18182
|
+
{{- $readTool = "view_file" -}}
|
|
18183
|
+
{{- end -}}
|
|
18184
|
+
{{- if not .CascadeConfig.GetPlannerConfig.GetToolConfig.GetCodeSearch.GetForceDisable -}}
|
|
18185
|
+
{{- $hasCodeSearch = true -}}
|
|
18186
|
+
{{- end -}}
|
|
18187
|
+
{{- end -}}
|
|
18188
|
+
{{- $cmdCfg := .CascadeConfig.GetPlannerConfig.GetToolConfig.GetRunCommand -}}
|
|
18189
|
+
{{- $usesGoogleCS := or $hasCodeSearch $hasGoogleInfra (and $cmdCfg.GetForbidSearchCommands (eq (printf "%v" $cmdCfg.GetSearchFallbackMode) "SEARCH_FALLBACK_CODE_SEARCH")) -}}
|
|
18190
|
+
{{- $searchMeans := "run_command (for example \`rg -n\` or \`grep -rn\`)" -}}
|
|
18191
|
+
{{- if $usesGoogleCS -}}
|
|
18192
|
+
{{- if $hasCodeSearch -}}
|
|
18193
|
+
{{- $searchMeans = "code_search" -}}
|
|
18194
|
+
{{- else -}}
|
|
18195
|
+
{{- $searchMeans = "the \`cs\` CLI via run_command" -}}
|
|
18196
|
+
{{- end -}}
|
|
18197
|
+
{{- end -}}
|
|
18198
|
+
Follow these behavioral guidelines at all times:
|
|
18199
|
+
- Maintain documentation integrity. Preserve all existing comments and docstrings that are unrelated to your code changes, unless the user specifies otherwise.
|
|
18200
|
+
- Never defeat or bypass an access control, permission check, credential requirement, network/proxy restriction, or sandbox/environment boundary - including writing to the state or processes such a check reads, spoofing identity, intercepting the check, probing undocumented local/host services, or modifying host, harness, or test infrastructure outside your task scope. Use documented, sanctioned paths only; if none of them work, you are blocked - report the error and stop.
|
|
18201
|
+
- Never solve, click through, wait out, compute, or bypass a CAPTCHA, "verify you are human" or anti-bot challenge, or proof-of-work gate (e.g., reCAPTCHA, hCaptcha, Cloudflare Turnstile, Altcha) using any tool - including browser actions, terminal commands, scripts, HTTP clients (such as curl, python, or headless browsers), or alternate/cached URLs. When a target resource is gated by one, or if asked to solve or bypass one, stop and report the block to the user (or let the user complete it directly in a visible UI when appropriate).
|
|
18202
|
+
{{- if and $includeECR (not $hasNativeSection) }}
|
|
18203
|
+
|
|
18204
|
+
<efficient_code_reading>
|
|
18205
|
+
Your context window is limited. When it fills up, the conversation is compacted into a summary and details are lost, so read code economically:
|
|
18206
|
+
1. Locate before reading: search with {{$searchMeans}} for the functions, classes, and call sites you need, then view only those.
|
|
18207
|
+
2. Call {{$readTool}} with StartLine and EndLine covering the relevant function or block (usually under 150 lines). Do not view whole files unless they are small (under about 200 lines).
|
|
18208
|
+
3. Do not re-read lines you have already seen unless the file has changed since.
|
|
18209
|
+
4. Once you know where the change goes and what it should be, start editing instead of exploring the rest of the repository first, and verify by running the relevant tests.
|
|
18210
|
+
</efficient_code_reading>
|
|
18211
|
+
{{- end }}
|
|
18212
|
+
{{- if not $hasCodeQuality }}
|
|
18213
|
+
|
|
18214
|
+
<code_quality>
|
|
18215
|
+
CODE QUALITY: A senior reviewer will read your final diff; write code they would approve without comments. Correctness comes first.
|
|
18216
|
+
- Never duplicate logic. If two blocks in your patch (or in your patch and the existing code) look alike, extract one shared helper or loop over data and parameterize the differences.
|
|
18217
|
+
- Keep functions small and single-purpose with shallow nesting; split long functions into well-named helpers and use early returns.
|
|
18218
|
+
- Handle variants uniformly (a mapping, table or shared code path) instead of adding if/elif special cases for particular values, types or formats.
|
|
18219
|
+
- Reuse the repo's existing helpers, base classes and patterns instead of reimplementing them.
|
|
18220
|
+
- Give each new function and class a concise docstring; comment the non-obvious why, not the what.
|
|
18221
|
+
- Keep refactors local to your change: don't share test helpers across files or edit shared test harnesses unless required, and keep edge-case guards when unifying variants.
|
|
18222
|
+
</code_quality>
|
|
18223
|
+
{{- end }}
|
|
18224
|
+
{{- if not $hasFinalAnswerAccuracy }}
|
|
18225
|
+
|
|
18226
|
+
<final_answer_accuracy>
|
|
18227
|
+
Never lie in your final answer: never state as fact anything you did not see in this session's files or tool output, and if you are very sure that a task is not possible, inform the user where the gaps that you've found are. In your final response, only state file paths, symbol names, implemented behaviour, and test or command results that you directly observed in files you read or wrote or in tool output; if something wasn't checked, don't claim it. When you explain how code works, include only the names, conditions, limits and numbers you actually saw; don't fill gaps with plausible details, and mark anything you inferred as inferred. A search match or snippet shows where a name appears, not what the code does: describe behaviour only of code you actually viewed. Do not cite symbol names, file paths, or earlier implementations from memory without verifying their exact spelling and presence in the current files, and only report tests or checks as passing if you ran them after your final edit and observed all reported cases pass without skipped or relaxed assertions. Do not extrapolate, edit, or fill in unprinted fields, counts, or timings as observed tool output, and state the exact scope and any failures of mocked or filtered runs rather than reporting them as full passes.
|
|
18228
|
+
</final_answer_accuracy>
|
|
18229
|
+
{{- end }}`
|
|
18230
|
+
}
|
|
18231
|
+
}
|
|
18232
|
+
},
|
|
18233
|
+
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
18234
|
+
quotaInfo: {
|
|
18235
|
+
remainingFraction: 0.9757339,
|
|
18236
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
18237
|
+
},
|
|
18238
|
+
recommended: true,
|
|
18239
|
+
supportedMimeTypes: {
|
|
18240
|
+
"application/json": true,
|
|
18241
|
+
"application/msword": true,
|
|
18242
|
+
"application/pdf": true,
|
|
18243
|
+
"application/rtf": true,
|
|
18244
|
+
"application/vnd.ms-excel": true,
|
|
18245
|
+
"application/vnd.ms-powerpoint": true,
|
|
18246
|
+
"application/vnd.oasis.opendocument.presentation": true,
|
|
18247
|
+
"application/vnd.oasis.opendocument.spreadsheet": true,
|
|
18248
|
+
"application/vnd.oasis.opendocument.text": true,
|
|
18249
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": true,
|
|
18250
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": true,
|
|
18251
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": true,
|
|
18252
|
+
"application/x-ipynb+json": true,
|
|
18253
|
+
"application/x-javascript": true,
|
|
18254
|
+
"application/x-python-code": true,
|
|
18255
|
+
"application/x-typescript": true,
|
|
18256
|
+
"audio/aac": true,
|
|
18257
|
+
"audio/flac": true,
|
|
18258
|
+
"audio/l16": true,
|
|
18259
|
+
"audio/m4a": true,
|
|
18260
|
+
"audio/mp3": true,
|
|
18261
|
+
"audio/mp4": true,
|
|
18262
|
+
"audio/mpeg": true,
|
|
18263
|
+
"audio/ogg": true,
|
|
18264
|
+
"audio/opus": true,
|
|
18265
|
+
"audio/vnd.wave": true,
|
|
18266
|
+
"audio/wav": true,
|
|
18267
|
+
"audio/wave": true,
|
|
18268
|
+
"audio/webm": true,
|
|
18269
|
+
"audio/webm;codecs=opus": true,
|
|
18270
|
+
"audio/x-m4a": true,
|
|
18271
|
+
"audio/x-wav": true,
|
|
18272
|
+
"image/heic": true,
|
|
18273
|
+
"image/heif": true,
|
|
18274
|
+
"image/jpeg": true,
|
|
18275
|
+
"image/png": true,
|
|
18276
|
+
"image/webp": true,
|
|
18277
|
+
"text/css": true,
|
|
18278
|
+
"text/csv": true,
|
|
18279
|
+
"text/html": true,
|
|
18280
|
+
"text/javascript": true,
|
|
18281
|
+
"text/markdown": true,
|
|
18282
|
+
"text/plain": true,
|
|
18283
|
+
"text/rtf": true,
|
|
18284
|
+
"text/x-python": true,
|
|
18285
|
+
"text/x-python-script": true,
|
|
18286
|
+
"text/x-typescript": true,
|
|
18287
|
+
"text/xml": true,
|
|
18288
|
+
"video/audio/s16le": true,
|
|
18289
|
+
"video/audio/wav": true,
|
|
18290
|
+
"video/jpeg2000": true,
|
|
18291
|
+
"video/mp4": true,
|
|
18292
|
+
"video/text/timestamp": true,
|
|
18293
|
+
"video/videoframe/jpeg2000": true,
|
|
18294
|
+
"video/webm": true
|
|
18295
|
+
},
|
|
18296
|
+
supportsImages: true,
|
|
18297
|
+
supportsThinking: true,
|
|
18298
|
+
supportsVideo: true,
|
|
18299
|
+
tagTitle: "New",
|
|
18300
|
+
thinkingLevel: 3
|
|
18301
|
+
},
|
|
18302
|
+
"gemini-4-hydrogen-low": {
|
|
18303
|
+
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
18304
|
+
displayName: "Gemini 4 Hydrogen (Low)",
|
|
18305
|
+
maxOutputTokens: 262144,
|
|
18306
|
+
maxTokens: 1048576,
|
|
18307
|
+
minThinkingBudget: 32,
|
|
18308
|
+
model: "MODEL_PLACEHOLDER_M527",
|
|
18309
|
+
modelExperimentIds: [
|
|
18310
|
+
"sonar"
|
|
18311
|
+
],
|
|
18312
|
+
modelExperiments: {
|
|
18313
|
+
experiments: {
|
|
18314
|
+
CASCADE_USE_EXPERIMENT_CHECKPOINTER: {
|
|
18315
|
+
stringValue: `{
|
|
18316
|
+
"strategy": "CHECKPOINT_STRATEGY_SAME_MODEL",
|
|
18317
|
+
"max_token_limit": "256000",
|
|
18318
|
+
"token_threshold": "50000",
|
|
18319
|
+
"max_overhead_ratio": "0.15",
|
|
18320
|
+
"enabled": true,
|
|
18321
|
+
"max_output_tokens": "32768",
|
|
18322
|
+
"checkpoint_model": "MODEL_PLACEHOLDER_M50",
|
|
18323
|
+
"use_last_planner_model": true,
|
|
18324
|
+
"is_sync": true,
|
|
18325
|
+
"max_user_requests": 10,
|
|
18326
|
+
"include_last_user_message": true,
|
|
18327
|
+
"include_conversation_log": false,
|
|
18328
|
+
"include_running_task_snapshots": true,
|
|
18329
|
+
"include_subagent_snapshots": true,
|
|
18330
|
+
"include_artifact_snapshots": true,
|
|
18331
|
+
"retry_config": {
|
|
18332
|
+
"max_retries": 4,
|
|
18333
|
+
"initial_sleep_duration_ms": 1000,
|
|
18334
|
+
"exponential_multiplier": 2,
|
|
18335
|
+
"include_error_feedback": false
|
|
18336
|
+
},
|
|
18337
|
+
"session_summary_prompt_override": "You have been working on the task described above but have not yet completed\\nit. Write a continuation summary that will allow you (or another instance of\\nyourself) to resume work efficiently in a future context window where the\\nfull conversation history will NOT be available\\u2014only this summary.\\n\\nThis summary is all that will be available to you going forward in the future\\ncontext window. Do not call any tools, simply just provide the summary based on\\nthe information available in the current context window.\\n\\nYour summary must be structured, concise, and actionable. Optimize for enabling immediate resumption with zero redundant work.\\n\\nInclude the following sections, in this order:\\n\\n1. **Task Overview**\\n - The user's core request and success criteria\\n - Constraints, preferences, or scope boundaries they specified\\n - Any ambiguities that were resolved (and how)\\n\\n2. **Done**\\n A checklist of every change already made, one line each: the file, what\\n changed, and its status, either \\"verified: <exact command> -> <result>\\"\\n or \\"not yet verified\\". Include investigations that are finished, with\\n their conclusion (for example, the root cause). Nothing here needs to be\\n redone.\\n\\n3. **Files Already Read**\\n One line per file you have read: its absolute path, the line ranges you\\n read, and what they contain that matters for the task. These files and\\n ranges must not be opened again; record here whatever you would need from\\n them.\\n\\n4. **Code Map**\\n - For the code you will edit next: its exact current text, copied\\n verbatim from the latest view or edit of that file, with line numbers\\n (up to about 40 lines per location), so it can be edited without\\n opening the file again.\\n - For new code you still have to write: the exact signatures and type\\n definitions of the existing APIs it must call or implement.\\n\\n5. **Key Findings**\\n - Technical constraints, requirements, or domain details uncovered\\n - Decisions made and their rationale\\n - Errors encountered and their resolutions\\n - Approaches that were tried and abandoned (and why\\u2014this prevents\\n the successor from repeating them)\\n\\n6. **Active Context**\\n - State of any external resources, sessions, or environments in use\\n - Relevant intermediate results, hypotheses, or working assumptions\\n\\n7. **Commitments & Constraints**\\n - Promises made to the user, user preferences, and boundaries on\\n approach, tools, or scope\\n - The concrete rules from repository instruction files (such as\\n AGENTS.md) that still apply, so those files need not be opened again\\n\\n8. **Next Steps** (always the last section)\\n - A numbered plan of the remaining work only (nothing from Done), in the\\n order you will carry it out, ending with the verification still needed.\\n - Step 1 must be the concrete next action: one small edit in one file or\\n function (file, lines, and change) or the exact command to run. Split\\n large changes into small edits, one per step.\\n - Do not list re-reading files or ranges from Files Already Read or the\\n Code Map as a step. If a step needs code that is not recorded above,\\n name the file and the exact line range (or the search) needed.\\n\\nBe concise but complete\\u2014err on the side of including anything that would\\nprevent duplicate work, repeated mistakes, or broken promises. Do not include\\ninformation that is obvious from the task description itself.\\n\\nBegin your summary with the following line, verbatim, before all sections: \\"RESUMING MY OWN TASK IN PROGRESS. The user requests above are the task I was already working on, not a new request. This summary is my own accurate record of the work so far, and the Next Steps at its end say exactly what to do next.\\"\\n\\nEnd your summary with the following block, verbatim, after the Next Steps section (not inside it):\\n\\nRESUME RULES (I am resuming my own task, not starting a new one):\\n1. Everything above is my own record. While I carry out Next Steps, facts in it count as observed and I do not re-verify them; in my final response, I state as fact only what is quoted verbatim above or what I see in a file or tool output after this summary.\\n2. My next tool call carries out step 1 of Next Steps.\\n3. While Next Steps remain, I do not open any file or range listed in Files Already Read or the Code Map, and I do not run git status or git diff to rediscover what Done lists.\\n4. I edit from the Code Map text. If an edit fails because the text does not match, I view only those lines (StartLine and EndLine) and retry.\\n5. Any other read must be a read_file call with StartLine and EndLine, at most 100 lines, of code the current step needs and that is not recorded above.\\n6. I do not re-audit the requirements or hunt for new edge cases while Next Steps remain; I verify by running the tests.\\n7. When every Next Steps item is done and verified, I finish.\\n\\nIf the task is to answer a question about code or to report on what you ran, put in the Code Map, copied verbatim with file path and line numbers, the code lines and tool-output lines your final answer will rely on: the exact names, conditions, constants, list contents, messages and numbers. Then end your summary with this note, verbatim, after the RESUME RULES block: \\"Note to self: Never lie. I can no longer see the code or tool outputs from before this summary, and my memory of them, or of other versions of this project, is not evidence. Before the final response: (1) if an answer, report, or other deliverable file was already written, read it in full with a tool and base the final response on what it actually says instead of rewriting it from memory; (2) for every file, function, class, field, flag, log message, or number I will mention that is not quoted verbatim in this summary, re-read the code or re-run the command first, or leave it out; (3) re-run every check whose result I will report, and report its latest result exactly: name every case that failed, was skipped, or was removed from the check, and never say that all checks passed unless that run shows zero failures. Never fill gaps from general knowledge of the project. If anything in this summary is ambiguous, uncertain, or STALE, re-acquire it instead of guessing; if I cannot verify a claim, I say so.\\"\\n\\nWrap your response in <summary></summary> tags.\\n",
|
|
18338
|
+
"use_model_reported_token_count": true
|
|
18339
|
+
}`
|
|
18340
|
+
},
|
|
18341
|
+
"allow-experimental-monitors": {
|
|
18342
|
+
boolValue: true
|
|
18343
|
+
},
|
|
18344
|
+
"cascade-include-ephemeral-message": {
|
|
18345
|
+
stringValue: '{\n "enabled": false,\n "disabledHeuristics": ["planning_mode", "bash_command_reminder", "running_tasks_reminder"],\n "staticMessages": [],\n "useAllowlist": false,\n "enabledHeuristics": []\n}'
|
|
18346
|
+
},
|
|
18347
|
+
retry_model_capacity_exhausted: {
|
|
18348
|
+
boolValue: true
|
|
18349
|
+
},
|
|
18350
|
+
"task-details-suffix": {
|
|
18351
|
+
stringValue: "\nYOU MUST TAKE ONE OF THE FOLLOWING TWO ACTIONS: A) either proceed to other relevant work (if any) or, B) simply update the user with a short message (that you have launched the command and will wait for it to finish) and end the turn.\n DO NOTHING ELSE."
|
|
18352
|
+
},
|
|
18353
|
+
template__system_prompts__guidelines: {
|
|
18354
|
+
stringValue: `{{- $decl := .CascadeConfig.GetPlannerConfig.GetDeclarativeMixinConfig -}}
|
|
18355
|
+
{{- $hasNativeSection := false -}}
|
|
18356
|
+
{{- $hasCodeQuality := false -}}
|
|
18357
|
+
{{- $hasFinalAnswerAccuracy := false -}}
|
|
18358
|
+
{{- $hasGoogleInfra := false -}}
|
|
18359
|
+
{{- if $decl -}}
|
|
18360
|
+
{{- range $decl.GetPromptSections -}}
|
|
18361
|
+
{{- $b := .GetBuiltinName -}}
|
|
18362
|
+
{{- $t := .GetCustom.GetTitle -}}
|
|
18363
|
+
{{- if or (eq $b "efficient_code_reading") (eq (printf "%.23s" $b) "efficient_code_reading@") (eq $t "efficient_code_reading") -}}
|
|
18364
|
+
{{- $hasNativeSection = true -}}
|
|
18365
|
+
{{- end -}}
|
|
18366
|
+
{{- if or (eq $b "code_quality") (eq $t "code_quality") -}}
|
|
18367
|
+
{{- $hasCodeQuality = true -}}
|
|
18368
|
+
{{- end -}}
|
|
18369
|
+
{{- if or (eq $b "final_answer_accuracy") (eq $t "final_answer_accuracy") -}}
|
|
18370
|
+
{{- $hasFinalAnswerAccuracy = true -}}
|
|
18371
|
+
{{- end -}}
|
|
18372
|
+
{{- if or (eq $b "google_infrastructure") (eq (printf "%.22s" $b) "google_infrastructure@") (eq $b "google3_infrastructure") (eq (printf "%.23s" $b) "google3_infrastructure@") -}}
|
|
18373
|
+
{{- $hasGoogleInfra = true -}}
|
|
18374
|
+
{{- end -}}
|
|
18375
|
+
{{- end -}}
|
|
18376
|
+
{{- end -}}
|
|
18377
|
+
{{- $includeECR := false -}}
|
|
18378
|
+
{{- $readTool := "read_file" -}}
|
|
18379
|
+
{{- $hasCodeSearch := false -}}
|
|
18380
|
+
{{- if $decl -}}
|
|
18381
|
+
{{- $hasReadFile := false -}}
|
|
18382
|
+
{{- $hasViewFile := false -}}
|
|
18383
|
+
{{- range $decl.GetTools -}}
|
|
18384
|
+
{{- $t := .GetName -}}
|
|
18385
|
+
{{- if or (eq $t "read_file") (eq (printf "%.10s" $t) "read_file@") -}}
|
|
18386
|
+
{{- $hasReadFile = true -}}
|
|
18387
|
+
{{- end -}}
|
|
18388
|
+
{{- if or (eq $t "view_file") (eq (printf "%.10s" $t) "view_file@") -}}
|
|
18389
|
+
{{- $hasViewFile = true -}}
|
|
18390
|
+
{{- end -}}
|
|
18391
|
+
{{- if or (eq $t "code_search") (eq (printf "%.12s" $t) "code_search@") -}}
|
|
18392
|
+
{{- $hasCodeSearch = true -}}
|
|
18393
|
+
{{- end -}}
|
|
18394
|
+
{{- end -}}
|
|
18395
|
+
{{- if or $hasReadFile $hasViewFile -}}
|
|
18396
|
+
{{- $includeECR = true -}}
|
|
18397
|
+
{{- if and (not $hasReadFile) $hasViewFile -}}
|
|
18398
|
+
{{- $readTool = "view_file" -}}
|
|
18399
|
+
{{- end -}}
|
|
18400
|
+
{{- end -}}
|
|
18401
|
+
{{- else -}}
|
|
18402
|
+
{{- if not .CascadeConfig.GetPlannerConfig.GetToolConfig.GetViewFile.GetForceDisable -}}
|
|
18403
|
+
{{- $includeECR = true -}}
|
|
18404
|
+
{{- $readTool = "view_file" -}}
|
|
18405
|
+
{{- end -}}
|
|
18406
|
+
{{- if not .CascadeConfig.GetPlannerConfig.GetToolConfig.GetCodeSearch.GetForceDisable -}}
|
|
18407
|
+
{{- $hasCodeSearch = true -}}
|
|
18408
|
+
{{- end -}}
|
|
18409
|
+
{{- end -}}
|
|
18410
|
+
{{- $cmdCfg := .CascadeConfig.GetPlannerConfig.GetToolConfig.GetRunCommand -}}
|
|
18411
|
+
{{- $usesGoogleCS := or $hasCodeSearch $hasGoogleInfra (and $cmdCfg.GetForbidSearchCommands (eq (printf "%v" $cmdCfg.GetSearchFallbackMode) "SEARCH_FALLBACK_CODE_SEARCH")) -}}
|
|
18412
|
+
{{- $searchMeans := "run_command (for example \`rg -n\` or \`grep -rn\`)" -}}
|
|
18413
|
+
{{- if $usesGoogleCS -}}
|
|
18414
|
+
{{- if $hasCodeSearch -}}
|
|
18415
|
+
{{- $searchMeans = "code_search" -}}
|
|
18416
|
+
{{- else -}}
|
|
18417
|
+
{{- $searchMeans = "the \`cs\` CLI via run_command" -}}
|
|
18418
|
+
{{- end -}}
|
|
18419
|
+
{{- end -}}
|
|
18420
|
+
Follow these behavioral guidelines at all times:
|
|
18421
|
+
- Maintain documentation integrity. Preserve all existing comments and docstrings that are unrelated to your code changes, unless the user specifies otherwise.
|
|
18422
|
+
- Never defeat or bypass an access control, permission check, credential requirement, network/proxy restriction, or sandbox/environment boundary - including writing to the state or processes such a check reads, spoofing identity, intercepting the check, probing undocumented local/host services, or modifying host, harness, or test infrastructure outside your task scope. Use documented, sanctioned paths only; if none of them work, you are blocked - report the error and stop.
|
|
18423
|
+
- Never solve, click through, wait out, compute, or bypass a CAPTCHA, "verify you are human" or anti-bot challenge, or proof-of-work gate (e.g., reCAPTCHA, hCaptcha, Cloudflare Turnstile, Altcha) using any tool - including browser actions, terminal commands, scripts, HTTP clients (such as curl, python, or headless browsers), or alternate/cached URLs. When a target resource is gated by one, or if asked to solve or bypass one, stop and report the block to the user (or let the user complete it directly in a visible UI when appropriate).
|
|
18424
|
+
{{- if and $includeECR (not $hasNativeSection) }}
|
|
18425
|
+
|
|
18426
|
+
<efficient_code_reading>
|
|
18427
|
+
Your context window is limited. When it fills up, the conversation is compacted into a summary and details are lost, so read code economically:
|
|
18428
|
+
1. Locate before reading: search with {{$searchMeans}} for the functions, classes, and call sites you need, then view only those.
|
|
18429
|
+
2. Call {{$readTool}} with StartLine and EndLine covering the relevant function or block (usually under 150 lines). Do not view whole files unless they are small (under about 200 lines).
|
|
18430
|
+
3. Do not re-read lines you have already seen unless the file has changed since.
|
|
18431
|
+
4. Once you know where the change goes and what it should be, start editing instead of exploring the rest of the repository first, and verify by running the relevant tests.
|
|
18432
|
+
</efficient_code_reading>
|
|
18433
|
+
{{- end }}
|
|
18434
|
+
{{- if not $hasCodeQuality }}
|
|
18435
|
+
|
|
18436
|
+
<code_quality>
|
|
18437
|
+
CODE QUALITY: A senior reviewer will read your final diff; write code they would approve without comments. Correctness comes first.
|
|
18438
|
+
- Never duplicate logic. If two blocks in your patch (or in your patch and the existing code) look alike, extract one shared helper or loop over data and parameterize the differences.
|
|
18439
|
+
- Keep functions small and single-purpose with shallow nesting; split long functions into well-named helpers and use early returns.
|
|
18440
|
+
- Handle variants uniformly (a mapping, table or shared code path) instead of adding if/elif special cases for particular values, types or formats.
|
|
18441
|
+
- Reuse the repo's existing helpers, base classes and patterns instead of reimplementing them.
|
|
18442
|
+
- Give each new function and class a concise docstring; comment the non-obvious why, not the what.
|
|
18443
|
+
- Keep refactors local to your change: don't share test helpers across files or edit shared test harnesses unless required, and keep edge-case guards when unifying variants.
|
|
18444
|
+
</code_quality>
|
|
18445
|
+
{{- end }}
|
|
18446
|
+
{{- if not $hasFinalAnswerAccuracy }}
|
|
18447
|
+
|
|
18448
|
+
<final_answer_accuracy>
|
|
18449
|
+
Never lie in your final answer: never state as fact anything you did not see in this session's files or tool output, and if you are very sure that a task is not possible, inform the user where the gaps that you've found are. In your final response, only state file paths, symbol names, implemented behaviour, and test or command results that you directly observed in files you read or wrote or in tool output; if something wasn't checked, don't claim it. When you explain how code works, include only the names, conditions, limits and numbers you actually saw; don't fill gaps with plausible details, and mark anything you inferred as inferred. A search match or snippet shows where a name appears, not what the code does: describe behaviour only of code you actually viewed. Do not cite symbol names, file paths, or earlier implementations from memory without verifying their exact spelling and presence in the current files, and only report tests or checks as passing if you ran them after your final edit and observed all reported cases pass without skipped or relaxed assertions. Do not extrapolate, edit, or fill in unprinted fields, counts, or timings as observed tool output, and state the exact scope and any failures of mocked or filtered runs rather than reporting them as full passes.
|
|
18450
|
+
</final_answer_accuracy>
|
|
18451
|
+
{{- end }}`
|
|
18452
|
+
}
|
|
18453
|
+
}
|
|
18454
|
+
},
|
|
18455
|
+
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
18456
|
+
quotaInfo: {
|
|
18457
|
+
remainingFraction: 0.9757339,
|
|
18458
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
18459
|
+
},
|
|
18460
|
+
recommended: true,
|
|
18461
|
+
supportedMimeTypes: {
|
|
18462
|
+
"application/json": true,
|
|
18463
|
+
"application/msword": true,
|
|
18464
|
+
"application/pdf": true,
|
|
18465
|
+
"application/rtf": true,
|
|
18466
|
+
"application/vnd.ms-excel": true,
|
|
18467
|
+
"application/vnd.ms-powerpoint": true,
|
|
18468
|
+
"application/vnd.oasis.opendocument.presentation": true,
|
|
18469
|
+
"application/vnd.oasis.opendocument.spreadsheet": true,
|
|
18470
|
+
"application/vnd.oasis.opendocument.text": true,
|
|
18471
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": true,
|
|
18472
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": true,
|
|
18473
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": true,
|
|
18474
|
+
"application/x-ipynb+json": true,
|
|
18475
|
+
"application/x-javascript": true,
|
|
18476
|
+
"application/x-python-code": true,
|
|
18477
|
+
"application/x-typescript": true,
|
|
18478
|
+
"audio/aac": true,
|
|
18479
|
+
"audio/flac": true,
|
|
18480
|
+
"audio/l16": true,
|
|
18481
|
+
"audio/m4a": true,
|
|
18482
|
+
"audio/mp3": true,
|
|
18483
|
+
"audio/mp4": true,
|
|
18484
|
+
"audio/mpeg": true,
|
|
18485
|
+
"audio/ogg": true,
|
|
18486
|
+
"audio/opus": true,
|
|
18487
|
+
"audio/vnd.wave": true,
|
|
18488
|
+
"audio/wav": true,
|
|
18489
|
+
"audio/wave": true,
|
|
18490
|
+
"audio/webm": true,
|
|
18491
|
+
"audio/webm;codecs=opus": true,
|
|
18492
|
+
"audio/x-m4a": true,
|
|
18493
|
+
"audio/x-wav": true,
|
|
18494
|
+
"image/heic": true,
|
|
18495
|
+
"image/heif": true,
|
|
18496
|
+
"image/jpeg": true,
|
|
18497
|
+
"image/png": true,
|
|
18498
|
+
"image/webp": true,
|
|
18499
|
+
"text/css": true,
|
|
18500
|
+
"text/csv": true,
|
|
18501
|
+
"text/html": true,
|
|
18502
|
+
"text/javascript": true,
|
|
18503
|
+
"text/markdown": true,
|
|
18504
|
+
"text/plain": true,
|
|
18505
|
+
"text/rtf": true,
|
|
18506
|
+
"text/x-python": true,
|
|
18507
|
+
"text/x-python-script": true,
|
|
18508
|
+
"text/x-typescript": true,
|
|
18509
|
+
"text/xml": true,
|
|
18510
|
+
"video/audio/s16le": true,
|
|
18511
|
+
"video/audio/wav": true,
|
|
18512
|
+
"video/jpeg2000": true,
|
|
18513
|
+
"video/mp4": true,
|
|
18514
|
+
"video/text/timestamp": true,
|
|
18515
|
+
"video/videoframe/jpeg2000": true,
|
|
18516
|
+
"video/webm": true
|
|
18517
|
+
},
|
|
18518
|
+
supportsImages: true,
|
|
18519
|
+
supportsThinking: true,
|
|
18520
|
+
supportsVideo: true,
|
|
18521
|
+
tagTitle: "New",
|
|
18522
|
+
thinkingLevel: 1
|
|
18523
|
+
},
|
|
18524
|
+
"gemini-4-hydrogen-medium": {
|
|
18525
|
+
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
18526
|
+
displayName: "Gemini 4 Hydrogen (Medium)",
|
|
18527
|
+
maxOutputTokens: 262144,
|
|
18528
|
+
maxTokens: 1048576,
|
|
18529
|
+
minThinkingBudget: 32,
|
|
18530
|
+
model: "MODEL_PLACEHOLDER_M526",
|
|
18531
|
+
modelExperimentIds: [
|
|
18532
|
+
"sonar"
|
|
18533
|
+
],
|
|
18534
|
+
modelExperiments: {
|
|
18535
|
+
experiments: {
|
|
18536
|
+
CASCADE_USE_EXPERIMENT_CHECKPOINTER: {
|
|
18537
|
+
stringValue: `{
|
|
18538
|
+
"strategy": "CHECKPOINT_STRATEGY_SAME_MODEL",
|
|
18539
|
+
"max_token_limit": "256000",
|
|
18540
|
+
"token_threshold": "50000",
|
|
18541
|
+
"max_overhead_ratio": "0.15",
|
|
18542
|
+
"enabled": true,
|
|
18543
|
+
"max_output_tokens": "32768",
|
|
18544
|
+
"checkpoint_model": "MODEL_PLACEHOLDER_M50",
|
|
18545
|
+
"use_last_planner_model": true,
|
|
18546
|
+
"is_sync": true,
|
|
18547
|
+
"max_user_requests": 10,
|
|
18548
|
+
"include_last_user_message": true,
|
|
18549
|
+
"include_conversation_log": false,
|
|
18550
|
+
"include_running_task_snapshots": true,
|
|
18551
|
+
"include_subagent_snapshots": true,
|
|
18552
|
+
"include_artifact_snapshots": true,
|
|
18553
|
+
"retry_config": {
|
|
18554
|
+
"max_retries": 4,
|
|
18555
|
+
"initial_sleep_duration_ms": 1000,
|
|
18556
|
+
"exponential_multiplier": 2,
|
|
18557
|
+
"include_error_feedback": false
|
|
18558
|
+
},
|
|
18559
|
+
"session_summary_prompt_override": "You have been working on the task described above but have not yet completed\\nit. Write a continuation summary that will allow you (or another instance of\\nyourself) to resume work efficiently in a future context window where the\\nfull conversation history will NOT be available\\u2014only this summary.\\n\\nThis summary is all that will be available to you going forward in the future\\ncontext window. Do not call any tools, simply just provide the summary based on\\nthe information available in the current context window.\\n\\nYour summary must be structured, concise, and actionable. Optimize for enabling immediate resumption with zero redundant work.\\n\\nInclude the following sections, in this order:\\n\\n1. **Task Overview**\\n - The user's core request and success criteria\\n - Constraints, preferences, or scope boundaries they specified\\n - Any ambiguities that were resolved (and how)\\n\\n2. **Done**\\n A checklist of every change already made, one line each: the file, what\\n changed, and its status, either \\"verified: <exact command> -> <result>\\"\\n or \\"not yet verified\\". Include investigations that are finished, with\\n their conclusion (for example, the root cause). Nothing here needs to be\\n redone.\\n\\n3. **Files Already Read**\\n One line per file you have read: its absolute path, the line ranges you\\n read, and what they contain that matters for the task. These files and\\n ranges must not be opened again; record here whatever you would need from\\n them.\\n\\n4. **Code Map**\\n - For the code you will edit next: its exact current text, copied\\n verbatim from the latest view or edit of that file, with line numbers\\n (up to about 40 lines per location), so it can be edited without\\n opening the file again.\\n - For new code you still have to write: the exact signatures and type\\n definitions of the existing APIs it must call or implement.\\n\\n5. **Key Findings**\\n - Technical constraints, requirements, or domain details uncovered\\n - Decisions made and their rationale\\n - Errors encountered and their resolutions\\n - Approaches that were tried and abandoned (and why\\u2014this prevents\\n the successor from repeating them)\\n\\n6. **Active Context**\\n - State of any external resources, sessions, or environments in use\\n - Relevant intermediate results, hypotheses, or working assumptions\\n\\n7. **Commitments & Constraints**\\n - Promises made to the user, user preferences, and boundaries on\\n approach, tools, or scope\\n - The concrete rules from repository instruction files (such as\\n AGENTS.md) that still apply, so those files need not be opened again\\n\\n8. **Next Steps** (always the last section)\\n - A numbered plan of the remaining work only (nothing from Done), in the\\n order you will carry it out, ending with the verification still needed.\\n - Step 1 must be the concrete next action: one small edit in one file or\\n function (file, lines, and change) or the exact command to run. Split\\n large changes into small edits, one per step.\\n - Do not list re-reading files or ranges from Files Already Read or the\\n Code Map as a step. If a step needs code that is not recorded above,\\n name the file and the exact line range (or the search) needed.\\n\\nBe concise but complete\\u2014err on the side of including anything that would\\nprevent duplicate work, repeated mistakes, or broken promises. Do not include\\ninformation that is obvious from the task description itself.\\n\\nBegin your summary with the following line, verbatim, before all sections: \\"RESUMING MY OWN TASK IN PROGRESS. The user requests above are the task I was already working on, not a new request. This summary is my own accurate record of the work so far, and the Next Steps at its end say exactly what to do next.\\"\\n\\nEnd your summary with the following block, verbatim, after the Next Steps section (not inside it):\\n\\nRESUME RULES (I am resuming my own task, not starting a new one):\\n1. Everything above is my own record. While I carry out Next Steps, facts in it count as observed and I do not re-verify them; in my final response, I state as fact only what is quoted verbatim above or what I see in a file or tool output after this summary.\\n2. My next tool call carries out step 1 of Next Steps.\\n3. While Next Steps remain, I do not open any file or range listed in Files Already Read or the Code Map, and I do not run git status or git diff to rediscover what Done lists.\\n4. I edit from the Code Map text. If an edit fails because the text does not match, I view only those lines (StartLine and EndLine) and retry.\\n5. Any other read must be a read_file call with StartLine and EndLine, at most 100 lines, of code the current step needs and that is not recorded above.\\n6. I do not re-audit the requirements or hunt for new edge cases while Next Steps remain; I verify by running the tests.\\n7. When every Next Steps item is done and verified, I finish.\\n\\nIf the task is to answer a question about code or to report on what you ran, put in the Code Map, copied verbatim with file path and line numbers, the code lines and tool-output lines your final answer will rely on: the exact names, conditions, constants, list contents, messages and numbers. Then end your summary with this note, verbatim, after the RESUME RULES block: \\"Note to self: Never lie. I can no longer see the code or tool outputs from before this summary, and my memory of them, or of other versions of this project, is not evidence. Before the final response: (1) if an answer, report, or other deliverable file was already written, read it in full with a tool and base the final response on what it actually says instead of rewriting it from memory; (2) for every file, function, class, field, flag, log message, or number I will mention that is not quoted verbatim in this summary, re-read the code or re-run the command first, or leave it out; (3) re-run every check whose result I will report, and report its latest result exactly: name every case that failed, was skipped, or was removed from the check, and never say that all checks passed unless that run shows zero failures. Never fill gaps from general knowledge of the project. If anything in this summary is ambiguous, uncertain, or STALE, re-acquire it instead of guessing; if I cannot verify a claim, I say so.\\"\\n\\nWrap your response in <summary></summary> tags.\\n",
|
|
18560
|
+
"use_model_reported_token_count": true
|
|
18561
|
+
}`
|
|
18562
|
+
},
|
|
18563
|
+
"allow-experimental-monitors": {
|
|
18564
|
+
boolValue: true
|
|
18565
|
+
},
|
|
18566
|
+
"cascade-include-ephemeral-message": {
|
|
18567
|
+
stringValue: '{\n "enabled": false,\n "disabledHeuristics": ["planning_mode", "bash_command_reminder", "running_tasks_reminder"],\n "staticMessages": [],\n "useAllowlist": false,\n "enabledHeuristics": []\n}'
|
|
18568
|
+
},
|
|
18569
|
+
retry_model_capacity_exhausted: {
|
|
18570
|
+
boolValue: true
|
|
18571
|
+
},
|
|
18572
|
+
"task-details-suffix": {
|
|
18573
|
+
stringValue: "\nYOU MUST TAKE ONE OF THE FOLLOWING TWO ACTIONS: A) either proceed to other relevant work (if any) or, B) simply update the user with a short message (that you have launched the command and will wait for it to finish) and end the turn.\n DO NOTHING ELSE."
|
|
18574
|
+
},
|
|
18575
|
+
template__system_prompts__guidelines: {
|
|
18576
|
+
stringValue: `{{- $decl := .CascadeConfig.GetPlannerConfig.GetDeclarativeMixinConfig -}}
|
|
18577
|
+
{{- $hasNativeSection := false -}}
|
|
18578
|
+
{{- $hasCodeQuality := false -}}
|
|
18579
|
+
{{- $hasFinalAnswerAccuracy := false -}}
|
|
18580
|
+
{{- $hasGoogleInfra := false -}}
|
|
18581
|
+
{{- if $decl -}}
|
|
18582
|
+
{{- range $decl.GetPromptSections -}}
|
|
18583
|
+
{{- $b := .GetBuiltinName -}}
|
|
18584
|
+
{{- $t := .GetCustom.GetTitle -}}
|
|
18585
|
+
{{- if or (eq $b "efficient_code_reading") (eq (printf "%.23s" $b) "efficient_code_reading@") (eq $t "efficient_code_reading") -}}
|
|
18586
|
+
{{- $hasNativeSection = true -}}
|
|
18587
|
+
{{- end -}}
|
|
18588
|
+
{{- if or (eq $b "code_quality") (eq $t "code_quality") -}}
|
|
18589
|
+
{{- $hasCodeQuality = true -}}
|
|
18590
|
+
{{- end -}}
|
|
18591
|
+
{{- if or (eq $b "final_answer_accuracy") (eq $t "final_answer_accuracy") -}}
|
|
18592
|
+
{{- $hasFinalAnswerAccuracy = true -}}
|
|
18593
|
+
{{- end -}}
|
|
18594
|
+
{{- if or (eq $b "google_infrastructure") (eq (printf "%.22s" $b) "google_infrastructure@") (eq $b "google3_infrastructure") (eq (printf "%.23s" $b) "google3_infrastructure@") -}}
|
|
18595
|
+
{{- $hasGoogleInfra = true -}}
|
|
18596
|
+
{{- end -}}
|
|
18597
|
+
{{- end -}}
|
|
18598
|
+
{{- end -}}
|
|
18599
|
+
{{- $includeECR := false -}}
|
|
18600
|
+
{{- $readTool := "read_file" -}}
|
|
18601
|
+
{{- $hasCodeSearch := false -}}
|
|
18602
|
+
{{- if $decl -}}
|
|
18603
|
+
{{- $hasReadFile := false -}}
|
|
18604
|
+
{{- $hasViewFile := false -}}
|
|
18605
|
+
{{- range $decl.GetTools -}}
|
|
18606
|
+
{{- $t := .GetName -}}
|
|
18607
|
+
{{- if or (eq $t "read_file") (eq (printf "%.10s" $t) "read_file@") -}}
|
|
18608
|
+
{{- $hasReadFile = true -}}
|
|
18609
|
+
{{- end -}}
|
|
18610
|
+
{{- if or (eq $t "view_file") (eq (printf "%.10s" $t) "view_file@") -}}
|
|
18611
|
+
{{- $hasViewFile = true -}}
|
|
18612
|
+
{{- end -}}
|
|
18613
|
+
{{- if or (eq $t "code_search") (eq (printf "%.12s" $t) "code_search@") -}}
|
|
18614
|
+
{{- $hasCodeSearch = true -}}
|
|
18615
|
+
{{- end -}}
|
|
18616
|
+
{{- end -}}
|
|
18617
|
+
{{- if or $hasReadFile $hasViewFile -}}
|
|
18618
|
+
{{- $includeECR = true -}}
|
|
18619
|
+
{{- if and (not $hasReadFile) $hasViewFile -}}
|
|
18620
|
+
{{- $readTool = "view_file" -}}
|
|
18621
|
+
{{- end -}}
|
|
18622
|
+
{{- end -}}
|
|
18623
|
+
{{- else -}}
|
|
18624
|
+
{{- if not .CascadeConfig.GetPlannerConfig.GetToolConfig.GetViewFile.GetForceDisable -}}
|
|
18625
|
+
{{- $includeECR = true -}}
|
|
18626
|
+
{{- $readTool = "view_file" -}}
|
|
18627
|
+
{{- end -}}
|
|
18628
|
+
{{- if not .CascadeConfig.GetPlannerConfig.GetToolConfig.GetCodeSearch.GetForceDisable -}}
|
|
18629
|
+
{{- $hasCodeSearch = true -}}
|
|
18630
|
+
{{- end -}}
|
|
18631
|
+
{{- end -}}
|
|
18632
|
+
{{- $cmdCfg := .CascadeConfig.GetPlannerConfig.GetToolConfig.GetRunCommand -}}
|
|
18633
|
+
{{- $usesGoogleCS := or $hasCodeSearch $hasGoogleInfra (and $cmdCfg.GetForbidSearchCommands (eq (printf "%v" $cmdCfg.GetSearchFallbackMode) "SEARCH_FALLBACK_CODE_SEARCH")) -}}
|
|
18634
|
+
{{- $searchMeans := "run_command (for example \`rg -n\` or \`grep -rn\`)" -}}
|
|
18635
|
+
{{- if $usesGoogleCS -}}
|
|
18636
|
+
{{- if $hasCodeSearch -}}
|
|
18637
|
+
{{- $searchMeans = "code_search" -}}
|
|
18638
|
+
{{- else -}}
|
|
18639
|
+
{{- $searchMeans = "the \`cs\` CLI via run_command" -}}
|
|
18640
|
+
{{- end -}}
|
|
18641
|
+
{{- end -}}
|
|
18642
|
+
Follow these behavioral guidelines at all times:
|
|
18643
|
+
- Maintain documentation integrity. Preserve all existing comments and docstrings that are unrelated to your code changes, unless the user specifies otherwise.
|
|
18644
|
+
- Never defeat or bypass an access control, permission check, credential requirement, network/proxy restriction, or sandbox/environment boundary - including writing to the state or processes such a check reads, spoofing identity, intercepting the check, probing undocumented local/host services, or modifying host, harness, or test infrastructure outside your task scope. Use documented, sanctioned paths only; if none of them work, you are blocked - report the error and stop.
|
|
18645
|
+
- Never solve, click through, wait out, compute, or bypass a CAPTCHA, "verify you are human" or anti-bot challenge, or proof-of-work gate (e.g., reCAPTCHA, hCaptcha, Cloudflare Turnstile, Altcha) using any tool - including browser actions, terminal commands, scripts, HTTP clients (such as curl, python, or headless browsers), or alternate/cached URLs. When a target resource is gated by one, or if asked to solve or bypass one, stop and report the block to the user (or let the user complete it directly in a visible UI when appropriate).
|
|
18646
|
+
{{- if and $includeECR (not $hasNativeSection) }}
|
|
18647
|
+
|
|
18648
|
+
<efficient_code_reading>
|
|
18649
|
+
Your context window is limited. When it fills up, the conversation is compacted into a summary and details are lost, so read code economically:
|
|
18650
|
+
1. Locate before reading: search with {{$searchMeans}} for the functions, classes, and call sites you need, then view only those.
|
|
18651
|
+
2. Call {{$readTool}} with StartLine and EndLine covering the relevant function or block (usually under 150 lines). Do not view whole files unless they are small (under about 200 lines).
|
|
18652
|
+
3. Do not re-read lines you have already seen unless the file has changed since.
|
|
18653
|
+
4. Once you know where the change goes and what it should be, start editing instead of exploring the rest of the repository first, and verify by running the relevant tests.
|
|
18654
|
+
</efficient_code_reading>
|
|
18655
|
+
{{- end }}
|
|
18656
|
+
{{- if not $hasCodeQuality }}
|
|
18657
|
+
|
|
18658
|
+
<code_quality>
|
|
18659
|
+
CODE QUALITY: A senior reviewer will read your final diff; write code they would approve without comments. Correctness comes first.
|
|
18660
|
+
- Never duplicate logic. If two blocks in your patch (or in your patch and the existing code) look alike, extract one shared helper or loop over data and parameterize the differences.
|
|
18661
|
+
- Keep functions small and single-purpose with shallow nesting; split long functions into well-named helpers and use early returns.
|
|
18662
|
+
- Handle variants uniformly (a mapping, table or shared code path) instead of adding if/elif special cases for particular values, types or formats.
|
|
18663
|
+
- Reuse the repo's existing helpers, base classes and patterns instead of reimplementing them.
|
|
18664
|
+
- Give each new function and class a concise docstring; comment the non-obvious why, not the what.
|
|
18665
|
+
- Keep refactors local to your change: don't share test helpers across files or edit shared test harnesses unless required, and keep edge-case guards when unifying variants.
|
|
18666
|
+
</code_quality>
|
|
18667
|
+
{{- end }}
|
|
18668
|
+
{{- if not $hasFinalAnswerAccuracy }}
|
|
18669
|
+
|
|
18670
|
+
<final_answer_accuracy>
|
|
18671
|
+
Never lie in your final answer: never state as fact anything you did not see in this session's files or tool output, and if you are very sure that a task is not possible, inform the user where the gaps that you've found are. In your final response, only state file paths, symbol names, implemented behaviour, and test or command results that you directly observed in files you read or wrote or in tool output; if something wasn't checked, don't claim it. When you explain how code works, include only the names, conditions, limits and numbers you actually saw; don't fill gaps with plausible details, and mark anything you inferred as inferred. A search match or snippet shows where a name appears, not what the code does: describe behaviour only of code you actually viewed. Do not cite symbol names, file paths, or earlier implementations from memory without verifying their exact spelling and presence in the current files, and only report tests or checks as passing if you ran them after your final edit and observed all reported cases pass without skipped or relaxed assertions. Do not extrapolate, edit, or fill in unprinted fields, counts, or timings as observed tool output, and state the exact scope and any failures of mocked or filtered runs rather than reporting them as full passes.
|
|
18672
|
+
</final_answer_accuracy>
|
|
18673
|
+
{{- end }}`
|
|
18674
|
+
}
|
|
18675
|
+
}
|
|
18676
|
+
},
|
|
18677
|
+
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
18678
|
+
quotaInfo: {
|
|
18679
|
+
remainingFraction: 0.9757339,
|
|
18680
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
18681
|
+
},
|
|
18682
|
+
recommended: true,
|
|
18683
|
+
supportedMimeTypes: {
|
|
18684
|
+
"application/json": true,
|
|
18685
|
+
"application/msword": true,
|
|
18686
|
+
"application/pdf": true,
|
|
18687
|
+
"application/rtf": true,
|
|
18688
|
+
"application/vnd.ms-excel": true,
|
|
18689
|
+
"application/vnd.ms-powerpoint": true,
|
|
18690
|
+
"application/vnd.oasis.opendocument.presentation": true,
|
|
18691
|
+
"application/vnd.oasis.opendocument.spreadsheet": true,
|
|
18692
|
+
"application/vnd.oasis.opendocument.text": true,
|
|
18693
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": true,
|
|
18694
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": true,
|
|
18695
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": true,
|
|
18696
|
+
"application/x-ipynb+json": true,
|
|
18697
|
+
"application/x-javascript": true,
|
|
18698
|
+
"application/x-python-code": true,
|
|
18699
|
+
"application/x-typescript": true,
|
|
18700
|
+
"audio/aac": true,
|
|
18701
|
+
"audio/flac": true,
|
|
18702
|
+
"audio/l16": true,
|
|
18703
|
+
"audio/m4a": true,
|
|
18704
|
+
"audio/mp3": true,
|
|
18705
|
+
"audio/mp4": true,
|
|
18706
|
+
"audio/mpeg": true,
|
|
18707
|
+
"audio/ogg": true,
|
|
18708
|
+
"audio/opus": true,
|
|
18709
|
+
"audio/vnd.wave": true,
|
|
18710
|
+
"audio/wav": true,
|
|
18711
|
+
"audio/wave": true,
|
|
18712
|
+
"audio/webm": true,
|
|
18713
|
+
"audio/webm;codecs=opus": true,
|
|
18714
|
+
"audio/x-m4a": true,
|
|
18715
|
+
"audio/x-wav": true,
|
|
18716
|
+
"image/heic": true,
|
|
18717
|
+
"image/heif": true,
|
|
18718
|
+
"image/jpeg": true,
|
|
18719
|
+
"image/png": true,
|
|
18720
|
+
"image/webp": true,
|
|
18721
|
+
"text/css": true,
|
|
18722
|
+
"text/csv": true,
|
|
18723
|
+
"text/html": true,
|
|
18724
|
+
"text/javascript": true,
|
|
18725
|
+
"text/markdown": true,
|
|
18726
|
+
"text/plain": true,
|
|
18727
|
+
"text/rtf": true,
|
|
18728
|
+
"text/x-python": true,
|
|
18729
|
+
"text/x-python-script": true,
|
|
18730
|
+
"text/x-typescript": true,
|
|
18731
|
+
"text/xml": true,
|
|
18732
|
+
"video/audio/s16le": true,
|
|
18733
|
+
"video/audio/wav": true,
|
|
18734
|
+
"video/jpeg2000": true,
|
|
18735
|
+
"video/mp4": true,
|
|
18736
|
+
"video/text/timestamp": true,
|
|
18737
|
+
"video/videoframe/jpeg2000": true,
|
|
18738
|
+
"video/webm": true
|
|
18739
|
+
},
|
|
18740
|
+
supportsImages: true,
|
|
18741
|
+
supportsThinking: true,
|
|
18742
|
+
supportsVideo: true,
|
|
18743
|
+
tagTitle: "New",
|
|
18744
|
+
thinkingLevel: 2
|
|
18745
|
+
},
|
|
18746
|
+
"gemini-4-hydrogen-xhigh": {
|
|
18747
|
+
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
18748
|
+
displayName: "Gemini 4 Hydrogen (XHigh)",
|
|
18749
|
+
maxOutputTokens: 262144,
|
|
18750
|
+
maxTokens: 1048576,
|
|
18751
|
+
minThinkingBudget: 32,
|
|
18752
|
+
model: "MODEL_PLACEHOLDER_M528",
|
|
18753
|
+
modelExperimentIds: [
|
|
18754
|
+
"sonar"
|
|
18755
|
+
],
|
|
18756
|
+
modelExperiments: {
|
|
18757
|
+
experiments: {
|
|
18758
|
+
CASCADE_USE_EXPERIMENT_CHECKPOINTER: {
|
|
18759
|
+
stringValue: `{
|
|
18760
|
+
"strategy": "CHECKPOINT_STRATEGY_SAME_MODEL",
|
|
18761
|
+
"max_token_limit": "256000",
|
|
18762
|
+
"token_threshold": "50000",
|
|
18763
|
+
"max_overhead_ratio": "0.15",
|
|
18764
|
+
"enabled": true,
|
|
18765
|
+
"max_output_tokens": "32768",
|
|
18766
|
+
"checkpoint_model": "MODEL_PLACEHOLDER_M50",
|
|
18767
|
+
"use_last_planner_model": true,
|
|
18768
|
+
"is_sync": true,
|
|
18769
|
+
"max_user_requests": 10,
|
|
18770
|
+
"include_last_user_message": true,
|
|
18771
|
+
"include_conversation_log": false,
|
|
18772
|
+
"include_running_task_snapshots": true,
|
|
18773
|
+
"include_subagent_snapshots": true,
|
|
18774
|
+
"include_artifact_snapshots": true,
|
|
18775
|
+
"retry_config": {
|
|
18776
|
+
"max_retries": 4,
|
|
18777
|
+
"initial_sleep_duration_ms": 1000,
|
|
18778
|
+
"exponential_multiplier": 2,
|
|
18779
|
+
"include_error_feedback": false
|
|
18780
|
+
},
|
|
18781
|
+
"session_summary_prompt_override": "You have been working on the task described above but have not yet completed\\nit. Write a continuation summary that will allow you (or another instance of\\nyourself) to resume work efficiently in a future context window where the\\nfull conversation history will NOT be available\\u2014only this summary.\\n\\nThis summary is all that will be available to you going forward in the future\\ncontext window. Do not call any tools, simply just provide the summary based on\\nthe information available in the current context window.\\n\\nYour summary must be structured, concise, and actionable. Optimize for enabling immediate resumption with zero redundant work.\\n\\nInclude the following sections, in this order:\\n\\n1. **Task Overview**\\n - The user's core request and success criteria\\n - Constraints, preferences, or scope boundaries they specified\\n - Any ambiguities that were resolved (and how)\\n\\n2. **Done**\\n A checklist of every change already made, one line each: the file, what\\n changed, and its status, either \\"verified: <exact command> -> <result>\\"\\n or \\"not yet verified\\". Include investigations that are finished, with\\n their conclusion (for example, the root cause). Nothing here needs to be\\n redone.\\n\\n3. **Files Already Read**\\n One line per file you have read: its absolute path, the line ranges you\\n read, and what they contain that matters for the task. These files and\\n ranges must not be opened again; record here whatever you would need from\\n them.\\n\\n4. **Code Map**\\n - For the code you will edit next: its exact current text, copied\\n verbatim from the latest view or edit of that file, with line numbers\\n (up to about 40 lines per location), so it can be edited without\\n opening the file again.\\n - For new code you still have to write: the exact signatures and type\\n definitions of the existing APIs it must call or implement.\\n\\n5. **Key Findings**\\n - Technical constraints, requirements, or domain details uncovered\\n - Decisions made and their rationale\\n - Errors encountered and their resolutions\\n - Approaches that were tried and abandoned (and why\\u2014this prevents\\n the successor from repeating them)\\n\\n6. **Active Context**\\n - State of any external resources, sessions, or environments in use\\n - Relevant intermediate results, hypotheses, or working assumptions\\n\\n7. **Commitments & Constraints**\\n - Promises made to the user, user preferences, and boundaries on\\n approach, tools, or scope\\n - The concrete rules from repository instruction files (such as\\n AGENTS.md) that still apply, so those files need not be opened again\\n\\n8. **Next Steps** (always the last section)\\n - A numbered plan of the remaining work only (nothing from Done), in the\\n order you will carry it out, ending with the verification still needed.\\n - Step 1 must be the concrete next action: one small edit in one file or\\n function (file, lines, and change) or the exact command to run. Split\\n large changes into small edits, one per step.\\n - Do not list re-reading files or ranges from Files Already Read or the\\n Code Map as a step. If a step needs code that is not recorded above,\\n name the file and the exact line range (or the search) needed.\\n\\nBe concise but complete\\u2014err on the side of including anything that would\\nprevent duplicate work, repeated mistakes, or broken promises. Do not include\\ninformation that is obvious from the task description itself.\\n\\nBegin your summary with the following line, verbatim, before all sections: \\"RESUMING MY OWN TASK IN PROGRESS. The user requests above are the task I was already working on, not a new request. This summary is my own accurate record of the work so far, and the Next Steps at its end say exactly what to do next.\\"\\n\\nEnd your summary with the following block, verbatim, after the Next Steps section (not inside it):\\n\\nRESUME RULES (I am resuming my own task, not starting a new one):\\n1. Everything above is my own record. While I carry out Next Steps, facts in it count as observed and I do not re-verify them; in my final response, I state as fact only what is quoted verbatim above or what I see in a file or tool output after this summary.\\n2. My next tool call carries out step 1 of Next Steps.\\n3. While Next Steps remain, I do not open any file or range listed in Files Already Read or the Code Map, and I do not run git status or git diff to rediscover what Done lists.\\n4. I edit from the Code Map text. If an edit fails because the text does not match, I view only those lines (StartLine and EndLine) and retry.\\n5. Any other read must be a read_file call with StartLine and EndLine, at most 100 lines, of code the current step needs and that is not recorded above.\\n6. I do not re-audit the requirements or hunt for new edge cases while Next Steps remain; I verify by running the tests.\\n7. When every Next Steps item is done and verified, I finish.\\n\\nIf the task is to answer a question about code or to report on what you ran, put in the Code Map, copied verbatim with file path and line numbers, the code lines and tool-output lines your final answer will rely on: the exact names, conditions, constants, list contents, messages and numbers. Then end your summary with this note, verbatim, after the RESUME RULES block: \\"Note to self: Never lie. I can no longer see the code or tool outputs from before this summary, and my memory of them, or of other versions of this project, is not evidence. Before the final response: (1) if an answer, report, or other deliverable file was already written, read it in full with a tool and base the final response on what it actually says instead of rewriting it from memory; (2) for every file, function, class, field, flag, log message, or number I will mention that is not quoted verbatim in this summary, re-read the code or re-run the command first, or leave it out; (3) re-run every check whose result I will report, and report its latest result exactly: name every case that failed, was skipped, or was removed from the check, and never say that all checks passed unless that run shows zero failures. Never fill gaps from general knowledge of the project. If anything in this summary is ambiguous, uncertain, or STALE, re-acquire it instead of guessing; if I cannot verify a claim, I say so.\\"\\n\\nWrap your response in <summary></summary> tags.\\n",
|
|
18782
|
+
"use_model_reported_token_count": true
|
|
18783
|
+
}`
|
|
18784
|
+
},
|
|
18785
|
+
"allow-experimental-monitors": {
|
|
18786
|
+
boolValue: true
|
|
18787
|
+
},
|
|
18788
|
+
"cascade-include-ephemeral-message": {
|
|
18789
|
+
stringValue: '{\n "enabled": false,\n "disabledHeuristics": ["planning_mode", "bash_command_reminder", "running_tasks_reminder"],\n "staticMessages": [],\n "useAllowlist": false,\n "enabledHeuristics": []\n}'
|
|
18790
|
+
},
|
|
18791
|
+
retry_model_capacity_exhausted: {
|
|
18792
|
+
boolValue: true
|
|
18793
|
+
},
|
|
18794
|
+
"task-details-suffix": {
|
|
18795
|
+
stringValue: "\nYOU MUST TAKE ONE OF THE FOLLOWING TWO ACTIONS: A) either proceed to other relevant work (if any) or, B) simply update the user with a short message (that you have launched the command and will wait for it to finish) and end the turn.\n DO NOTHING ELSE."
|
|
18796
|
+
},
|
|
18797
|
+
template__system_prompts__guidelines: {
|
|
18798
|
+
stringValue: `{{- $decl := .CascadeConfig.GetPlannerConfig.GetDeclarativeMixinConfig -}}
|
|
18799
|
+
{{- $hasNativeSection := false -}}
|
|
18800
|
+
{{- $hasCodeQuality := false -}}
|
|
18801
|
+
{{- $hasFinalAnswerAccuracy := false -}}
|
|
18802
|
+
{{- $hasGoogleInfra := false -}}
|
|
18803
|
+
{{- if $decl -}}
|
|
18804
|
+
{{- range $decl.GetPromptSections -}}
|
|
18805
|
+
{{- $b := .GetBuiltinName -}}
|
|
18806
|
+
{{- $t := .GetCustom.GetTitle -}}
|
|
18807
|
+
{{- if or (eq $b "efficient_code_reading") (eq (printf "%.23s" $b) "efficient_code_reading@") (eq $t "efficient_code_reading") -}}
|
|
18808
|
+
{{- $hasNativeSection = true -}}
|
|
18809
|
+
{{- end -}}
|
|
18810
|
+
{{- if or (eq $b "code_quality") (eq $t "code_quality") -}}
|
|
18811
|
+
{{- $hasCodeQuality = true -}}
|
|
18812
|
+
{{- end -}}
|
|
18813
|
+
{{- if or (eq $b "final_answer_accuracy") (eq $t "final_answer_accuracy") -}}
|
|
18814
|
+
{{- $hasFinalAnswerAccuracy = true -}}
|
|
18815
|
+
{{- end -}}
|
|
18816
|
+
{{- if or (eq $b "google_infrastructure") (eq (printf "%.22s" $b) "google_infrastructure@") (eq $b "google3_infrastructure") (eq (printf "%.23s" $b) "google3_infrastructure@") -}}
|
|
18817
|
+
{{- $hasGoogleInfra = true -}}
|
|
18818
|
+
{{- end -}}
|
|
18819
|
+
{{- end -}}
|
|
18820
|
+
{{- end -}}
|
|
18821
|
+
{{- $includeECR := false -}}
|
|
18822
|
+
{{- $readTool := "read_file" -}}
|
|
18823
|
+
{{- $hasCodeSearch := false -}}
|
|
18824
|
+
{{- if $decl -}}
|
|
18825
|
+
{{- $hasReadFile := false -}}
|
|
18826
|
+
{{- $hasViewFile := false -}}
|
|
18827
|
+
{{- range $decl.GetTools -}}
|
|
18828
|
+
{{- $t := .GetName -}}
|
|
18829
|
+
{{- if or (eq $t "read_file") (eq (printf "%.10s" $t) "read_file@") -}}
|
|
18830
|
+
{{- $hasReadFile = true -}}
|
|
18831
|
+
{{- end -}}
|
|
18832
|
+
{{- if or (eq $t "view_file") (eq (printf "%.10s" $t) "view_file@") -}}
|
|
18833
|
+
{{- $hasViewFile = true -}}
|
|
18834
|
+
{{- end -}}
|
|
18835
|
+
{{- if or (eq $t "code_search") (eq (printf "%.12s" $t) "code_search@") -}}
|
|
18836
|
+
{{- $hasCodeSearch = true -}}
|
|
18837
|
+
{{- end -}}
|
|
18838
|
+
{{- end -}}
|
|
18839
|
+
{{- if or $hasReadFile $hasViewFile -}}
|
|
18840
|
+
{{- $includeECR = true -}}
|
|
18841
|
+
{{- if and (not $hasReadFile) $hasViewFile -}}
|
|
18842
|
+
{{- $readTool = "view_file" -}}
|
|
18843
|
+
{{- end -}}
|
|
18844
|
+
{{- end -}}
|
|
18845
|
+
{{- else -}}
|
|
18846
|
+
{{- if not .CascadeConfig.GetPlannerConfig.GetToolConfig.GetViewFile.GetForceDisable -}}
|
|
18847
|
+
{{- $includeECR = true -}}
|
|
18848
|
+
{{- $readTool = "view_file" -}}
|
|
18849
|
+
{{- end -}}
|
|
18850
|
+
{{- if not .CascadeConfig.GetPlannerConfig.GetToolConfig.GetCodeSearch.GetForceDisable -}}
|
|
18851
|
+
{{- $hasCodeSearch = true -}}
|
|
18852
|
+
{{- end -}}
|
|
18853
|
+
{{- end -}}
|
|
18854
|
+
{{- $cmdCfg := .CascadeConfig.GetPlannerConfig.GetToolConfig.GetRunCommand -}}
|
|
18855
|
+
{{- $usesGoogleCS := or $hasCodeSearch $hasGoogleInfra (and $cmdCfg.GetForbidSearchCommands (eq (printf "%v" $cmdCfg.GetSearchFallbackMode) "SEARCH_FALLBACK_CODE_SEARCH")) -}}
|
|
18856
|
+
{{- $searchMeans := "run_command (for example \`rg -n\` or \`grep -rn\`)" -}}
|
|
18857
|
+
{{- if $usesGoogleCS -}}
|
|
18858
|
+
{{- if $hasCodeSearch -}}
|
|
18859
|
+
{{- $searchMeans = "code_search" -}}
|
|
18860
|
+
{{- else -}}
|
|
18861
|
+
{{- $searchMeans = "the \`cs\` CLI via run_command" -}}
|
|
18862
|
+
{{- end -}}
|
|
18863
|
+
{{- end -}}
|
|
18864
|
+
Follow these behavioral guidelines at all times:
|
|
18865
|
+
- Maintain documentation integrity. Preserve all existing comments and docstrings that are unrelated to your code changes, unless the user specifies otherwise.
|
|
18866
|
+
- Never defeat or bypass an access control, permission check, credential requirement, network/proxy restriction, or sandbox/environment boundary - including writing to the state or processes such a check reads, spoofing identity, intercepting the check, probing undocumented local/host services, or modifying host, harness, or test infrastructure outside your task scope. Use documented, sanctioned paths only; if none of them work, you are blocked - report the error and stop.
|
|
18867
|
+
- Never solve, click through, wait out, compute, or bypass a CAPTCHA, "verify you are human" or anti-bot challenge, or proof-of-work gate (e.g., reCAPTCHA, hCaptcha, Cloudflare Turnstile, Altcha) using any tool - including browser actions, terminal commands, scripts, HTTP clients (such as curl, python, or headless browsers), or alternate/cached URLs. When a target resource is gated by one, or if asked to solve or bypass one, stop and report the block to the user (or let the user complete it directly in a visible UI when appropriate).
|
|
18868
|
+
{{- if and $includeECR (not $hasNativeSection) }}
|
|
18869
|
+
|
|
18870
|
+
<efficient_code_reading>
|
|
18871
|
+
Your context window is limited. When it fills up, the conversation is compacted into a summary and details are lost, so read code economically:
|
|
18872
|
+
1. Locate before reading: search with {{$searchMeans}} for the functions, classes, and call sites you need, then view only those.
|
|
18873
|
+
2. Call {{$readTool}} with StartLine and EndLine covering the relevant function or block (usually under 150 lines). Do not view whole files unless they are small (under about 200 lines).
|
|
18874
|
+
3. Do not re-read lines you have already seen unless the file has changed since.
|
|
18875
|
+
4. Once you know where the change goes and what it should be, start editing instead of exploring the rest of the repository first, and verify by running the relevant tests.
|
|
18876
|
+
</efficient_code_reading>
|
|
18877
|
+
{{- end }}
|
|
18878
|
+
{{- if not $hasCodeQuality }}
|
|
18879
|
+
|
|
18880
|
+
<code_quality>
|
|
18881
|
+
CODE QUALITY: A senior reviewer will read your final diff; write code they would approve without comments. Correctness comes first.
|
|
18882
|
+
- Never duplicate logic. If two blocks in your patch (or in your patch and the existing code) look alike, extract one shared helper or loop over data and parameterize the differences.
|
|
18883
|
+
- Keep functions small and single-purpose with shallow nesting; split long functions into well-named helpers and use early returns.
|
|
18884
|
+
- Handle variants uniformly (a mapping, table or shared code path) instead of adding if/elif special cases for particular values, types or formats.
|
|
18885
|
+
- Reuse the repo's existing helpers, base classes and patterns instead of reimplementing them.
|
|
18886
|
+
- Give each new function and class a concise docstring; comment the non-obvious why, not the what.
|
|
18887
|
+
- Keep refactors local to your change: don't share test helpers across files or edit shared test harnesses unless required, and keep edge-case guards when unifying variants.
|
|
18888
|
+
</code_quality>
|
|
18889
|
+
{{- end }}
|
|
18890
|
+
{{- if not $hasFinalAnswerAccuracy }}
|
|
18891
|
+
|
|
18892
|
+
<final_answer_accuracy>
|
|
18893
|
+
Never lie in your final answer: never state as fact anything you did not see in this session's files or tool output, and if you are very sure that a task is not possible, inform the user where the gaps that you've found are. In your final response, only state file paths, symbol names, implemented behaviour, and test or command results that you directly observed in files you read or wrote or in tool output; if something wasn't checked, don't claim it. When you explain how code works, include only the names, conditions, limits and numbers you actually saw; don't fill gaps with plausible details, and mark anything you inferred as inferred. A search match or snippet shows where a name appears, not what the code does: describe behaviour only of code you actually viewed. Do not cite symbol names, file paths, or earlier implementations from memory without verifying their exact spelling and presence in the current files, and only report tests or checks as passing if you ran them after your final edit and observed all reported cases pass without skipped or relaxed assertions. Do not extrapolate, edit, or fill in unprinted fields, counts, or timings as observed tool output, and state the exact scope and any failures of mocked or filtered runs rather than reporting them as full passes.
|
|
18894
|
+
</final_answer_accuracy>
|
|
18895
|
+
{{- end }}`
|
|
18896
|
+
}
|
|
18897
|
+
}
|
|
18898
|
+
},
|
|
18899
|
+
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
18900
|
+
quotaInfo: {
|
|
18901
|
+
remainingFraction: 0.9757339,
|
|
18902
|
+
resetTime: "2026-11-13T11:07:47Z"
|
|
18903
|
+
},
|
|
18904
|
+
recommended: true,
|
|
18905
|
+
supportedMimeTypes: {
|
|
18906
|
+
"application/json": true,
|
|
18907
|
+
"application/msword": true,
|
|
18908
|
+
"application/pdf": true,
|
|
18909
|
+
"application/rtf": true,
|
|
18910
|
+
"application/vnd.ms-excel": true,
|
|
18911
|
+
"application/vnd.ms-powerpoint": true,
|
|
18912
|
+
"application/vnd.oasis.opendocument.presentation": true,
|
|
18913
|
+
"application/vnd.oasis.opendocument.spreadsheet": true,
|
|
18914
|
+
"application/vnd.oasis.opendocument.text": true,
|
|
18915
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": true,
|
|
18916
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": true,
|
|
18917
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": true,
|
|
18918
|
+
"application/x-ipynb+json": true,
|
|
18919
|
+
"application/x-javascript": true,
|
|
18920
|
+
"application/x-python-code": true,
|
|
18921
|
+
"application/x-typescript": true,
|
|
18922
|
+
"audio/aac": true,
|
|
18923
|
+
"audio/flac": true,
|
|
18924
|
+
"audio/l16": true,
|
|
18925
|
+
"audio/m4a": true,
|
|
18926
|
+
"audio/mp3": true,
|
|
18927
|
+
"audio/mp4": true,
|
|
18928
|
+
"audio/mpeg": true,
|
|
18929
|
+
"audio/ogg": true,
|
|
18930
|
+
"audio/opus": true,
|
|
18931
|
+
"audio/vnd.wave": true,
|
|
18932
|
+
"audio/wav": true,
|
|
18933
|
+
"audio/wave": true,
|
|
18934
|
+
"audio/webm": true,
|
|
18935
|
+
"audio/webm;codecs=opus": true,
|
|
18936
|
+
"audio/x-m4a": true,
|
|
18937
|
+
"audio/x-wav": true,
|
|
18938
|
+
"image/heic": true,
|
|
18939
|
+
"image/heif": true,
|
|
18940
|
+
"image/jpeg": true,
|
|
18941
|
+
"image/png": true,
|
|
18942
|
+
"image/webp": true,
|
|
18943
|
+
"text/css": true,
|
|
18944
|
+
"text/csv": true,
|
|
18945
|
+
"text/html": true,
|
|
18946
|
+
"text/javascript": true,
|
|
18947
|
+
"text/markdown": true,
|
|
18948
|
+
"text/plain": true,
|
|
18949
|
+
"text/rtf": true,
|
|
18950
|
+
"text/x-python": true,
|
|
18951
|
+
"text/x-python-script": true,
|
|
18952
|
+
"text/x-typescript": true,
|
|
18953
|
+
"text/xml": true,
|
|
18954
|
+
"video/audio/s16le": true,
|
|
18955
|
+
"video/audio/wav": true,
|
|
18956
|
+
"video/jpeg2000": true,
|
|
18957
|
+
"video/mp4": true,
|
|
18958
|
+
"video/text/timestamp": true,
|
|
18959
|
+
"video/videoframe/jpeg2000": true,
|
|
18960
|
+
"video/webm": true
|
|
18961
|
+
},
|
|
18962
|
+
supportsImages: true,
|
|
18963
|
+
supportsThinking: true,
|
|
18964
|
+
supportsVideo: true,
|
|
18965
|
+
tagTitle: "New",
|
|
18966
|
+
thinkingLevel: 100
|
|
18967
|
+
},
|
|
18071
18968
|
"gpt-oss-120b-medium": {
|
|
18072
18969
|
apiProvider: "API_PROVIDER_OPENAI_VERTEX",
|
|
18073
18970
|
displayName: "GPT-OSS 120B (Medium)",
|
|
@@ -18083,8 +18980,8 @@ var models_default = {
|
|
|
18083
18980
|
},
|
|
18084
18981
|
modelProvider: "MODEL_PROVIDER_OPENAI",
|
|
18085
18982
|
quotaInfo: {
|
|
18086
|
-
remainingFraction:
|
|
18087
|
-
resetTime: "2026-11-
|
|
18983
|
+
remainingFraction: 0.4823316,
|
|
18984
|
+
resetTime: "2026-11-19T13:17:30Z"
|
|
18088
18985
|
},
|
|
18089
18986
|
recommended: true,
|
|
18090
18987
|
supportsThinking: true,
|
|
@@ -20110,6 +21007,15 @@ var STATIC_MODELS_SIMPLE = {
|
|
|
20110
21007
|
reasoning: true,
|
|
20111
21008
|
attachment: true
|
|
20112
21009
|
},
|
|
21010
|
+
"gemini-4-hydrogen": {
|
|
21011
|
+
name: "Gemini 4 Hydrogen",
|
|
21012
|
+
description: "Gemini 4 Hydrogen base model. Select tier at runtime.",
|
|
21013
|
+
maxTokens: 1048576,
|
|
21014
|
+
maxOutputTokens: 262144,
|
|
21015
|
+
toolCall: true,
|
|
21016
|
+
reasoning: true,
|
|
21017
|
+
attachment: true
|
|
21018
|
+
},
|
|
20113
21019
|
"claude-opus-5-5": {
|
|
20114
21020
|
name: "Claude Opus 5.5",
|
|
20115
21021
|
description: "Claude Opus 5.5 deep reasoning model. Select tier at runtime.",
|
|
@@ -20149,6 +21055,12 @@ var TIER_MAPPING = {
|
|
|
20149
21055
|
medium: "gemini-4-argon-medium",
|
|
20150
21056
|
high: "gemini-4-argon-high"
|
|
20151
21057
|
},
|
|
21058
|
+
"gemini-4-hydrogen": {
|
|
21059
|
+
low: "gemini-4-hydrogen-low",
|
|
21060
|
+
medium: "gemini-4-hydrogen-medium",
|
|
21061
|
+
high: "gemini-4-hydrogen-high",
|
|
21062
|
+
xhigh: "gemini-4-hydrogen-xhigh"
|
|
21063
|
+
},
|
|
20152
21064
|
"claude-opus-5-5": {
|
|
20153
21065
|
low: "claude-opus-5-5-low",
|
|
20154
21066
|
medium: "claude-opus-5-5-medium",
|
|
@@ -20214,7 +21126,8 @@ var buildModelFromSimple = (modelId, simple) => {
|
|
|
20214
21126
|
} : {},
|
|
20215
21127
|
"low": { id: "low", name: "low", displayName: "low", title: "low", label: "low", options: { name: "low" }, headers: { "x-agy-tier": "low" } },
|
|
20216
21128
|
...TIER_MAPPING[modelId].medium !== void 0 ? { "medium": { id: "medium", name: "medium", displayName: "medium", title: "medium", label: "medium", options: { name: "medium" }, headers: { "x-agy-tier": "medium" } } } : {},
|
|
20217
|
-
"high": { id: "high", name: "high", displayName: "high", title: "high", label: "high", options: { name: "high" }, headers: { "x-agy-tier": "high" } }
|
|
21129
|
+
"high": { id: "high", name: "high", displayName: "high", title: "high", label: "high", options: { name: "high" }, headers: { "x-agy-tier": "high" } },
|
|
21130
|
+
...TIER_MAPPING[modelId].xhigh !== void 0 ? { "xhigh": { id: "xhigh", name: "xhigh", displayName: "xhigh", title: "xhigh", label: "xhigh", options: { name: "xhigh" }, headers: { "x-agy-tier": "xhigh" } } } : {}
|
|
20218
21131
|
};
|
|
20219
21132
|
}
|
|
20220
21133
|
return {
|
|
@@ -21125,6 +22038,7 @@ async function setupOpenCodeV2(ctx) {
|
|
|
21125
22038
|
if (mapping.low !== void 0) variants.push({ id: "low" });
|
|
21126
22039
|
if (mapping.medium !== void 0) variants.push({ id: "medium" });
|
|
21127
22040
|
if (mapping.high !== void 0) variants.push({ id: "high" });
|
|
22041
|
+
if (mapping.xhigh !== void 0) variants.push({ id: "xhigh" });
|
|
21128
22042
|
return variants.length > 0 ? variants : void 0;
|
|
21129
22043
|
};
|
|
21130
22044
|
const updateProviderRecord = (p) => {
|