Expand description
Thinking configuration and utilities Translated from /data/home/swei/claudecode/openclaudecode/src/utils/config.ts (thinking section) and /data/home/swei/claudecode/openclaudecode/src/utils/thinking.ts
Enums§
- Thinking
Config - Thinking configuration types
Functions§
- find_
thinking_ trigger_ positions - Find positions of “ultrathink” keyword in text for UI highlighting/notification Returns a vector of (word, start, end) tuples
- has_
ultrathink_ keyword - Check if text contains the “ultrathink” keyword (case insensitive, word boundary)
- is_
ultrathink_ enabled - Check if ultrathink is enabled This checks the build-time feature flag and runtime GrowthBook flag Note: In Rust, we use environment variable AI_ULTRATHINK instead of bun:bundle feature
- model_
supports_ adaptive_ thinking - Check if model supports adaptive thinking Adaptive thinking is supported by a subset of Claude 4 models
- model_
supports_ thinking - Provider-aware thinking support detection Note: This references getCanonicalName and getAPIProvider which need model utilities
- should_
enable_ thinking_ by_ default - Check if thinking should be enabled by default