Repository navigation
Description
Static inspection of the gh aw CLI help output (all-help.txt plus per-command help files, deduplicated) against docs/src/content/docs/setup/cli.md and the command source. Found 3 high, 4 medium, and 4 low findings. Items marked "confirmed" were checked in source or docs. The audit runtime behavior was not executed.
Summary and severity breakdown
| Severity | Count | Theme |
|---|---|---|
| High | 3 | Docs advertise a flag that does not exist; help promises a requirement the code does not enforce |
| Medium | 4 | Docs omit real flags; --timeout type split across commands |
| Low | 4 | Flag type and description drift |
High
1. project new documents a -l short flag that does not exist (confirmed)
- Affected:
project new - Docs (
cli.md,project newsection):--link/-l - Source (
pkg/cli/project_command.go:108):cmd.Flags().String("link", "", "Repository to link project to (format: owner/repo)"). No short form. - Expected: docs and code agree. Either drop
-lfrom the docs or add"l"to the flag definition. - Priority: high. Users copying the documented short flag get an unknown-flag error.
2. audit help says --repo is required for bare run IDs, but nothing enforces it (partially confirmed)
- Affected:
audit - Help (
pkg/cli/audit_command.go:46): "--repo required" for bare run IDs. - Source:
applyAuditRepoFlag(audit_command.go~286–296) returns nil when--repois empty (if repoFlag == "" || components.Owner != ""). No parse-time error is raised.ParseRunURLExtendedreturns a numeric ID with emptyOwnerandRepo, and nothing checks for them. - Not verified: whether
AuditWorkflowRunwith empty owner fails later or silently falls back to the current repository. Confirm at runtime. - Expected: either enforce
--repowith a clear error, or change the help to match the actual fallback behavior. - Priority: high. Either the help is wrong or a required-argument check is missing.
3. --timeout docs omit two commands, and the type is split (confirmed)
- Affected:
connector,logs episode, plus the timeout table incli.md(~lines 31–37) - Help:
--timeoutisintminutes forforecast,logs,trial, anddurationforaudit,health,connector(default20s), andlogs episode(default5m0s). - Docs: the table covers the split but omits
connectorandlogs episode. - Expected: the table lists every command with its type, unit, and default.
- Priority: high for the omission. Users cannot tell whether
--timeout 10means minutes or seconds forconnector.
Medium
4. logs docs omit --retained (confirmed)
- Affected:
logs. Source:pkg/cli/logs_outcomes.go:58, read atlogs_command.go:211. - Docs:
cli.mdhas 0 mentions of--retained. ThelogsOptions list (~line 784) omits it. - Expected: add the flag to the Options list.
5. Undocumented work-queue flags (confirmed)
- Affected:
work-queuesubcommands - Confirmed 0 mentions in
cli.mdfor:--pool,--claim-id,--epoch,--max-claims,--worker-profile,--before-claim,--obsolete,--from-config. Also undocumented:--max-dispatches,--offset,--priority,--run-id,--execution-ref,--expires-at. - Some are covered inside the per-subcommand table (for example
dispatch-next --max-bytes), so this is partial coverage, not a complete gap. - Expected: list each flag in the subcommand table with its meaning, or link to the reference page.
6. --timeout type is inconsistent across commands
int(minutes):forecast,logs,trial(default 30)duration:audit,health(default2m0s),connector,logs episode- Expected: one convention. The reference docs should at least state the unit per command. Changing the type is a breaking change and should be handled separately.
7. --claim-id and --work-id value types differ between work-queue subcommands
- Some subcommands define them as
string, others asstrings(array). - Expected: consistent types for the same concept, or a documented reason for the difference.
Lower-priority findings (low severity)
8. --name short-flag inconsistency
addanddeploydefine--name/-n.work-queue control --namehas no short form and takes a different meaning (a credential generation name).- Likely intentional. Low priority, but worth a note in the docs.
9. --grant type differs
compile --grantisbool.connector --grantisstringArray.- Expected: confirm the difference is intentional and documented.
10. Description wording drift
--repo: three variants: "Target repository (owner/repo format)" (23 uses), "Target repository ([HOST/]owner/repo format). Defaults to current repository" (21), "owner/repo format only; GHES host prefixes are not supported" (env,doctor). The variation is partly intentional.--output: "Output directory for generated files" (audit,logs), "Directory for compact artifacts" (logs episode), "Write session text to a file" (sessions download).--dry-run:compile's description is a long multi-clause sentence, unlike the rest.- Expected: shared phrasing for shared flags.
11. Unverified: audit and graders Options lists may not match their commands
cli.md(~line 1001) lists--adoption-dirunderaudit, whichauditdoes not define. The same list omits many realauditflags (--adoption,--delivery,--evals,--experiment,--group,--models,--no-baseline,--parse,--runtime,--search,--search-limit,--stdin,--timeout,--variant), though some are covered in prose.- The
gradersOptions list (~line 1092) includes--episodes,--delivery,--adoption, and--adoption-dir.graders rundefines only--additional-grader,--logs-dir, and--repo. - These may be heading-attribution artifacts of the inspection script. Confirm against
cli.mdbefore fixing.
Inspection metadata
- Date: 2026-11-17
- Commands inspected: about 45 top-level commands and their subcommands, from
all-help.txtand about 373 per-command help files. Many of those files are duplicates of the root help (byte-identical copies) or error text from argument-less invocations, so they were deduplicated first. - Method: static analysis. Flag names, types, defaults, and descriptions were compared across commands. Help-example flags were checked against each subcommand's definitions. Docs Options lists were compared against help. Items were spot-checked in
pkg/cli/*.go. - Not done: runtime invocation of
auditwithout--repo, and a dictionary-based typo scan (no spell checker is installed in this environment). No typos were confirmed.
Suggested priority order
- Fix the
project new -ldoc/code mismatch (finding 1). - Decide on the
audit --repobehavior and make the help match (finding 2). - Complete the
--timeouttable and thelogs --retainedentry (findings 3 and 4). - Document the
work-queueflags (finding 5). - Consider unifying
--timeoutand the--claim-idtypes in a follow-up (findings 6 and 7). - Clean up the low-priority items if time allows.
Generated by ✅ CLI Consistency Checker · copilot · routed: haiku55 xhigh · ~10 AIC · ⌖ ~1 AIC · ⊞ 3.4K · ◷
- expires on Nov 19, 2026, 5:36 AM UTC-08:00
Activity
github-actions commentedon Nov 17, 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! 🍪