Skip to content

Commit aad98f5

Browse files
committed
feat(effort): map reasoning effort to thinking token budgets
Add THINKING_BUDGETS mapping (low/medium/high/default) capped at Kiro's 200k max_thinking_length, used to translate OpenCode's reasoningEffort selection into an explicit thinking budget.
1 parent 0416dcc commit aad98f5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎src/constants.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ export const KIRO_CONSTANTS = {
5454
ORIGIN_AI_EDITOR: 'AI_EDITOR'
5555
}
5656

57+
// Thinking budgets per effort level (tokens).
58+
// Kiro's max_thinking_length cap is 200 000.
59+
export const THINKING_BUDGETS = {
60+
low: 10_000,
61+
medium: 24_000,
62+
high: 200_000,
63+
// Default when thinking is on but no effort level is specified (-thinking suffix)
64+
default: 16_000
65+
} as const
66+
67+
export type ThinkingEffort = keyof typeof THINKING_BUDGETS
68+
5769
export const MODEL_MAPPING: Record<string, string> = {
5870
// Claude Haiku
5971
'claude-haiku-4-5': 'claude-haiku-4.5',

0 commit comments

Comments
 (0)