Configuration
CLEO supports project-level and global configuration throughconfig.json and environment variables.
Configuration Hierarchy
Settings are resolved in order (highest priority first):- Command-line flags
- Environment variables
- Project config (
.cleo/config.json) - Global config (
~/.cleo/config.json) - Built-in defaults
Managing Configuration
Configuration Options
Archive Settings
Days after completion before auto-archiving tasks
Number of recent completed tasks to preserve from archiving
Enable automatic archiving of old completed tasks
Validation Settings
Maximum number of tasks with
active status (single-task discipline)Require description field when creating tasks
Maximum length for task titles
Enable strict validation mode (more checks)
Hierarchy Settings
Maximum hierarchy depth (epic → task → subtask)
Maximum children per parent task (0 = unlimited)
Automatically complete parent when all children are done
Mode for auto-complete:
auto, suggest, or offDefault Values
Default priority for new tasks
Default phase for new tasks
Default status for new tasks
Context Alerts
Enable automatic context usage alerts
Percentage threshold for warning alerts
Percentage threshold for caution alerts
Percentage threshold for critical alerts
Percentage threshold for emergency alerts
Analyze Settings
Task size weighting:
quick-wins (favor small), big-impact (favor large), or balancedEnvironment Variables
Environment variables override config file settings:| Variable | Config Equivalent |
|---|---|
CLEO_HOME | Installation directory |
CLEO_PROJECT | Project data directory |
CLEO_NO_COLOR | Disable colored output |
CLEO_DEBUG | Enable debug logging |
CLEO_MAX_ACTIVE | validation.maxActiveTasks |
NO_COLOR | Standard color disable |
Example Configuration
Configuration Validation
Best Practices
Use Project Config
Keep project-specific settings in
.cleo/config.json for team consistencyCommit Config
Add
.cleo/config.json to version control for reproducibilityUse Env Vars for Overrides
Use environment variables for temporary or CI/CD overrides
Validate After Changes
Run
cleo config validate after modifying config