feat: implement adaptive thinking budget

This commit is contained in:
Adam Weidman
2026-01-06 15:54:07 -08:00
parent 6f4b2ad0b9
commit 2404e4fae8
10 changed files with 450 additions and 1 deletions

View File

@@ -716,6 +716,7 @@ export async function loadCliConfig(
settings.experimental?.codebaseInvestigatorSettings,
introspectionAgentSettings:
settings.experimental?.introspectionAgentSettings,
adaptiveThinking: settings.experimental?.adaptiveThinking,
fakeResponses: argv.fakeResponses,
recordResponses: argv.recordResponses,
retryFetchErrors: settings.general?.retryFetchErrors,

View File

@@ -1473,6 +1473,37 @@ const SETTINGS_SCHEMA = {
},
},
},
adaptiveThinking: {
type: 'object',
label: 'Adaptive Thinking Settings',
category: 'Experimental',
requiresRestart: false,
default: {},
description: 'Configuration for Adaptive Thinking Budget.',
showInDialog: false,
properties: {
enabled: {
type: 'boolean',
label: 'Enable Adaptive Thinking',
category: 'Experimental',
requiresRestart: false,
default: false,
description:
'Enable adaptive thinking budget based on task complexity.',
showInDialog: true,
},
classifierModel: {
type: 'string',
label: 'Classifier Model',
category: 'Experimental',
requiresRestart: false,
default: 'classifier',
description:
'The model (or alias) to use for complexity classification.',
showInDialog: false,
},
},
},
},
},