Skip to main content

Module constants

Module constants 

Source
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