Objective
Replace the manual fmt.Fprintf text-table formatting in pkg/cli/experiments_command.go with console.RenderTable() to get styled borders, zebra rows, and adaptive colors.
Context
From discussion #41645 (Terminal Stylist analysis): experiments_command.go builds manual text tables using fmt.Fprintf(os.Stderr, " %-20s %d (%d%%)\n", ...). With console.RenderTable() already available this can be upgraded to a proper styled table — especially valuable for the experiments breakdown output.
Current Pattern
fmt.Fprintf(os.Stderr, " %-20s %d (%d%%)\n", experimentName, count, percent)
Approach
- Open
pkg/cli/experiments_command.go and identify all manual table-formatting blocks
- Inspect the signature of
console.RenderTable() in pkg/console/ to understand required headers/rows format
- Replace manual
fmt.Fprintf table rows with a console.RenderTable() call:
- Build
headers []string slice (e.g., ["Experiment", "Count", "Percent"])
- Build
rows [][]string slice from the experiment data
- Call
console.RenderTable(headers, rows) and print the result to stderr
- Remove the now-unused manual format string
- Add
pkg/console import if not already present
- Run
make fmt and make agent-report-progress to validate
Files to Modify
pkg/cli/experiments_command.go
Acceptance Criteria
Generated by 📋 Plan Command · 27.8 AIC · ⌖ 10.1 AIC · ⊞ 4.6K · ◷
Comment /plan to run again
Objective
Replace the manual
fmt.Fprintftext-table formatting inpkg/cli/experiments_command.gowithconsole.RenderTable()to get styled borders, zebra rows, and adaptive colors.Context
From discussion #41645 (Terminal Stylist analysis):
experiments_command.gobuilds manual text tables usingfmt.Fprintf(os.Stderr, " %-20s %d (%d%%)\n", ...). Withconsole.RenderTable()already available this can be upgraded to a proper styled table — especially valuable for the experiments breakdown output.Current Pattern
Approach
pkg/cli/experiments_command.goand identify all manual table-formatting blocksconsole.RenderTable()inpkg/console/to understand required headers/rows formatfmt.Fprintftable rows with aconsole.RenderTable()call:headers []stringslice (e.g.,["Experiment", "Count", "Percent"])rows [][]stringslice from the experiment dataconsole.RenderTable(headers, rows)and print the result to stderrpkg/consoleimport if not already presentmake fmtandmake agent-report-progressto validateFiles to Modify
pkg/cli/experiments_command.goAcceptance Criteria
fmt.Fprintftext-table formatting is replaced withconsole.RenderTable()console.RenderTable()'s built-in TTY detectionmake agent-report-progresspasses