Output Formats
CLEO commands support multiple output formats for different use cases. This reference covers format options and usage patterns.Format Auto-Detection
CLEO automatically detects the appropriate output format:| Context | Default Format |
|---|---|
| Interactive terminal (TTY) | Text (human-readable) |
| Piped output (non-TTY) | JSON |
Explicit --format flag | Specified format |
Available Formats
- JSON
- Text
- Compact
- CSV/TSV
- Markdown
Flag:
--format json or --jsonUse: LLM agents, scripting, data processingJSON Envelope Structure
All JSON output follows a consistent envelope:Color Control
Disable Colors
Force Colors
Command-Specific Formats
list command
list command
| Format | Description |
|---|---|
text | Full task details with colors |
json | Complete task objects |
compact | One-line per task |
markdown | Checklist format |
table | ASCII table |
analyze command
analyze command
Default: JSON (designed for LLM agents)
| Format | Description |
|---|---|
json | Structured analysis with scores |
human | Text summary with recommendations |
export command
export command
| Format | Description |
|---|---|
csv | Comma-separated values |
tsv | Tab-separated values |
json | Full JSON export |
jsonl | JSON Lines (one per line) |
dash command
dash command
| Format | Description |
|---|---|
text | ASCII dashboard |
json | Structured metrics |
compact | Single-line summary |
Progressive Disclosure Error Output
New in v0.74.2: Error responses use smart progressive disclosure - enough context for agent decision-making without verbose debugging data.
Three-Level Progressive Disclosure
| Level | Content | Size | Use Case |
|---|---|---|---|
| Smart Summary (default) | Decision-relevant fields only | ~5K chars | Agent decision-making |
| Verbose | Full objects with all fields | ~15K chars | Debugging |
Default Behavior: Smart Summaries
Sessions include fields needed to choose the right session:What Agents Can Do With Smart Summaries
- Find session by name: Match “Auth-Epic-Work” to their task
- Find session by scope: Resume
epic:T001session - Compare epic workload: Pick epic with most pending tasks
- See current focus: Understand what’s in progress
Verbose Mode (Debugging)
stats, startMetrics, focusHistory, lastActivity, suspendedAt, full epic metadata.
LLM Agent Best Practices
Use JSON for Parsing
Always use
--json when processing output programmaticallyPrefer Native Filters
Use
--status, --label, --phase instead of | jq 'select(...)'Check success Field
Always verify
"success": true in JSON responsesUse find for Discovery
cleo find returns minimal output (99% less than list)