Skip to content

[cli-consistency] CLI Consistency Issues - 2026-11-16 #78391

Done

Description

@github-actions

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:129
  • pkg/cli/trial_command.go:46
  • pkg/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:30
  • pkg/cli/mcp.go:35
  • pkg/cli/gh_guard_subcommand.go, which uses cmd.Parent().CommandPath(). This guard is attached in secrets_command.go:40, env_command.go:152, and project_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> --help against the binary.
  • Flags: Alias and type consistency checked across all commands. The only difference is --timeout: duration for audit, health, and connector, and integer minutes for logs, forecast, and trial. This split is intentional and documented in the timeout table in cli.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: --json schema 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

  1. added
    documentation
    cookie
    on Nov 16, 2026
  2. github-actions commented on Nov 16, 2026

    @github-actions
    ContributorAuthor

    🍪 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! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~2 AIC · ⊞ 11.5K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

automationclicookiedocumentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions