Skip to Content
InternalsConstants

Constants

Source: src/constants/ (23+ subdirectories)

Overview

The constants directory contains configuration values, prompt templates, model definitions, and theme specifications used throughout Claude Code.

System Prompts

System prompts define Claude Code’s behavior and instructions. They include:

  • Base personality and capabilities
  • Tool usage instructions
  • Safety guidelines
  • Output formatting rules

Model Configuration

Model definitions specify:

ParameterDescription
Model IDClaude model identifier
Context windowMaximum token capacity
Max outputMaximum response tokens
CapabilitiesSupported features (vision, tools, etc.)

Theme Definitions

Theme files in src/constants/themes/ define:

  • Color schemes (light/dark)
  • Syntax highlighting colors
  • UI element colors
  • Status indicator colors

Prompt Templates

Reusable prompt templates for:

  • Commit message generation
  • Code review
  • Error explanation
  • Refactoring suggestions

Organization

Constants are organized by domain:

src/constants/ ├── prompts/ # System and user prompts ├── models/ # Model definitions ├── themes/ # Color themes └── ... # Other configuration
Last updated on