Repository navigation
Description
Summary
Inspected the pre-collected gh aw help output (46 top-level commands and about 390 per-command help files) against docs/src/content/docs/setup/cli.md. Found 1 finding: severity breakdown is high: 0, medium: 0, low: 1. Typos, doubled words, GitHub/JSON casing, short-flag collisions, and doc **Options:** lists all matched the help output.
Findings
1. --timeout means different units on different commands (low)
Affected commands: logs, forecast, trial (integer minutes); audit, health, value, connector test, logs episode (Go duration).
Exact CLI output:
logs:--timeout int Total download timeout in minutes across all targets (0 = no timeout)forecast:--timeout int Gracefully stop forecast computation after this many minutes (0 = no timeout)trial:--timeout int Execution timeout in minutes (0 = no timeout) (default 30)logs episode:--timeout duration Wall-clock retrieval deadline (default 5m0s)audit:--timeout duration Maximum audit duration (e.g., 50s or 5m; 0 means no additional deadline)...health:--timeout duration Maximum collection duration (e.g., 30s or 5m; 0 disables the deadline)...
Expected: One flag name should use one unit convention, or the help text should make the unit obvious.
Actual: The same flag takes integer minutes on some commands and a Go duration on others. For example, gh aw logs --timeout 5m is rejected because the value must be an integer, while gh aw logs episode --timeout 5m works. The docs explain the split (cli.md lines 31–41 and 585), but the help text for logs, forecast, and trial does not show the unit in the flag type.
Suggested fix: Either (a) add a duration-typed alias such as --timeout-minutes for the integer commands and deprecate the integer --timeout over time, or (b) accept both forms on the integer commands (for example, a value with an m or s suffix). At minimum, change the help text for the integer-minute commands to state the unit explicitly (e.g., "minutes, integer; use a plain number such as 10").
Priority: Low. The behavior is documented, so this is a usability trap rather than a bug.
Checked and not flagged
- Short-letter collisions: none.
-nis declared on several commands, butwork-queue-control --nameis a different flag in a different context. - Doc
**Options:**lists match help output. The only extra flags are subcommand-specific (sessions download,graders run), which the parent section documents intentionally. lint --javascript-moduleis correctly listed in thelintsection (cli.mdline 554) and registered inpkg/cli/lint_javascript.go.--dirdefault$GH_AW_WORKFLOWS_DIR or .github/workflowsis honored inpkg/constants/constants.go.- Top-level summaries match per-command summaries, with only intentional expansions.
Inspection metadata
- Date: 2026-11-20
- Method: Parsed
/tmp/gh-aw/agent/help-output/*.txtand/tmp/gh-aw/agent/all-help.txt. Cross-checked flags againstdocs/src/content/docs/setup/cli.mdand the Go flag registrations underpkg/cli. Fragment files produced by splitting help text were excluded from analysis. - Limits: Help-example flag validation was a heuristic. External-tool flags (
jq,zizmor,poutine,gh auth login) were excluded from the doc-vs-help comparison.
Generated by ✅ CLI Consistency Checker · copilot · routed: haiku55 xhigh · ~11 AIC · ⌖ ~1 AIC · ⊞ 3.4K · ◷
- expires on Nov 22, 2026, 5:33 AM UTC-08:00
Activity
github-actions commentedon Nov 20, 2026
🍪 Issue Monster selected this for Copilot
I have identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪