Expand description
Core constants and configuration defaults
Centralizes hardcoded values for easier maintenance.
Constantsยง
- AI_
MEMORY_ SELECTION_ MAX_ TOKENS - Max tokens for AI memory selection
- ANTHROPIC_
API_ VERSION - Anthropic API version header
- ANTHROPIC_
DEFAULT_ BASE_ URL - Default base URLs
- CODEGRAPH_
CLI_ TIMEOUT_ SECS - CodeGraph CLI command timeout (seconds)
- CODEGRAPH_
SYNC_ INTERVAL_ SECS - CodeGraph auto-sync debounce interval (seconds) Increased to reduce Node.js process frequency
- COMPRESS_
MAX_ TOKENS - Max tokens for compress role (shorter output)
- DEFAULT_
BASH_ TIMEOUT_ MS - Default bash timeout (milliseconds)
- DEFAULT_
CONNECT_ TIMEOUT_ SECS - Default connect timeout in seconds
- DEFAULT_
CONTENT_ TIMEOUT_ SECS - Default content timeout in seconds (for slow APIs)
- DEFAULT_
GREP_ HEAD_ LIMIT - Default grep head limit
- DEFAULT_
MAX_ TOKENS - Default max tokens for responses
- DEFAULT_
READ_ LIMIT - Default read limit (lines)
- DEFAULT_
READ_ TIMEOUT_ SECS - Default read timeout for streaming chunks (seconds)
- DEFAULT_
REQUEST_ TIMEOUT_ SECS - Default total request timeout in seconds
- DEFAULT_
SEARCH_ TIMEOUT_ SECS - Default search timeout (seconds)
- FAST_
MAX_ TOKENS - Max tokens for fast role (quick actions)
- LOCK_
ACQUIRE_ TIMEOUT_ MS - Lock acquire timeout (milliseconds)
- MATRIX_
DIR - MatrixCode configuration directory name
- MAX_
BASH_ OUTPUT - Max output for bash commands (bytes)
- MAX_
READ_ FILE_ SIZE - Max file size for read without warning (bytes)
- MAX_
SEARCH_ FILES - Max files for search
- MAX_
STREAMING_ RETRIES - Max retries for streaming
- MAX_
TOOL_ RESULT_ SIZE - Max tool result size (bytes)
- MEMORY_
EXTRACTION_ MAX_ TOKENS - Max tokens for memory extraction
- OPENAI_
DEFAULT_ BASE_ URL - QUICK_
ACTION_ MAX_ TOKENS - Max tokens for quick actions/compression
- STREAMING_
RETRY_ DELAY_ MS - Retry delay for streaming (milliseconds)
- THINKING_
BUDGET_ NEW_ MODELS - Thinking budget for new models (2025+)
- THINKING_
BUDGET_ OLD_ MODELS - Thinking budget for older models