Repository navigation
Description
Summary
Inspected 48 commands and subcommands by running the built gh-aw binary (version c304ed3-dirty) and compared them against docs/src/content/docs/setup/cli.md. Found 3 issues: 0 high, 1 medium, 2 low. Flag aliases, flag types, and doc-vs-help flag coverage are otherwise consistent.
Findings
1. Error messages show gh instead of gh aw (medium)
Affected commands: add, trial, deploy.
Observed output:
✗ missing workflow specification
The usage lines that follow print gh add, gh trial, and gh deploy (for example, Run 'gh add --help') instead of gh aw add and so on.
Root cause: these messages are built from cmd.CommandPath(). The extension root's Use is gh, so this resolves to gh add. The sites are:
pkg/cli/add_command.go:129pkg/cli/trial_command.go:46pkg/cli/deploy_command.go:97
fixPathForCommand in cmd/gh-aw/main.go (about lines 635-643) rewrites gh to gh aw for help output, but these error paths do not use it.
Expected: gh aw add, gh aw trial, gh aw deploy.
Suggested fix: build these messages from constants.CLIExtensionPrefix or apply the same rewrite in the error paths.
2. Unknown-command errors use gh <cmd> (low)
Observed output:
✗ unknown command "foo" for "gh secrets"
✗ unknown command "foo" for "gh mcp"
✗ unknown command "foo" for "gh work-queue"
Root cause: the same CommandPath() problem appears in:
pkg/cli/secrets_command.go:30pkg/cli/mcp.go:35pkg/cli/gh_guard_subcommand.go, which usescmd.Parent().CommandPath(). This guard is attached insecrets_command.go:40,env_command.go:152, andproject_command.go:56.
Expected: "gh aw secrets", "gh aw mcp", "gh aw work-queue".
Suggested fix: use the same prefix helper as finding 1.
3. Tab characters in root help "Common Tasks" block (low, cosmetic)
The root gh aw --help "Common Tasks" block is the only help text that contains tab characters (9 lines). Tabs render inconsistently in terminals, unlike the space-aligned text elsewhere. Suggested fix: replace the tabs with spaces.
Inspection metadata
- Commands inspected: 48 commands and subcommands, captured by running
gh-aw <cmd> --helpagainst the binary. - Flags: Alias and type consistency checked across all commands. The only difference is
--timeout: duration foraudit,health, andconnector, and integer minutes forlogs,forecast, andtrial. This split is intentional and documented in the timeout table incli.md. - Doc examples: 258 checked, 29 skipped. 15 were flagged. All traced to space-separated subcommand names that the parser does not map, so none are real defects.
- Typos: Scanned captured help. No real typos found.
- Not checked:
--jsonschema output drift.
Data-quality caveat
/tmp/gh-aw/agent/all-help.txt has no per-command separators and repeats the Global Flags block about 200 times. The 47 help-output/gh-*.txt files are byte-identical copies of the root help. The results above come from running the binary directly, not from those files. The collection step should be fixed so future inspections get per-command output.
Generated by ✅ CLI Consistency Checker · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~1 AIC · ⊞ 3.4K · ◷
- expires on Nov 18, 2026, 5:52 AM UTC-08:00
Activity
github-actions commentedon Nov 16, 2026
🍪 Issue Monster selected this for Copilot
I've 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! 🍪