Repository navigation
Description
Summary
The CLI consistency inspection found 15 issues: 1 high, 1 medium, and 2 low (counting the grouped doc-drift items as one high finding). The main problem is that docs/src/content/docs/setup/cli.md documents flags that the gh aw binary rejects. All findings were checked against the locally built binary.
| Severity | Count | Category |
|---|---|---|
| High | 1 (14 flags across 9 commands) | Documented flags that do not exist |
| Medium | 1 | Inconsistent --timeout value format |
| Low | 2 | --repo wording; short-flag pairing for --name |
High: Documented flags rejected by the binary
Each flag below appears in cli.md, but the live binary returns ✗ unknown flag.
| Command | Flag documented in cli.md |
Binary output |
|---|---|---|
compile |
--config |
✗ unknown flag: --config |
compile |
--disable-version-check |
✗ unknown flag: --disable-version-check |
compile |
--javascript-module |
✗ unknown flag: --javascript-module |
fix |
--strict |
✗ unknown flag: --strict |
run |
--strict |
✗ unknown flag: --strict |
run |
--validate |
✗ unknown flag: --validate |
run |
--host-repo |
✗ unknown flag: --host-repo |
logs |
--unbuffered |
✗ unknown flag: --unbuffered |
upgrade |
--fix |
✗ unknown flag: --fix |
health |
--artifacts |
✗ unknown flag: --artifacts |
json-schema |
--json |
✗ unknown flag: --json |
trial |
--repo |
✗ unknown flag: --repo |
audit |
--adoption-dir (in the Options line, around cli.md line 961) |
✗ unknown flag: --adoption-dir |
Source evidence for audit --adoption-dir: the flag is registered only on logs and logs episode (pkg/cli/logs_outcomes.go:57). It is not registered on audit.
Expected: every flag in cli.md is accepted by the command it is listed under, or is removed from the doc.
Actual: the 13 flags above are rejected.
Suggested fix: confirm whether each flag was removed or never existed. Then remove it from cli.md, or restore the flag if the removal was unintended. For audit, move --adoption-dir to the logs section.
Priority: high. Users who copy these examples get an immediate error.
Note: logs --after is a documented hidden alias. It still works, so it is not a finding.
Medium: Inconsistent --timeout value format
--timeout uses different value formats across commands:
audit,health, andlogs episodeaccept Go durations, such as5m.logs,trial, andforecastreject5mwithmust be an integerand expect integer minutes.
cli.md has a "Timeout flag formats" table (around lines 29–41) that describes this split. The split is documented, but it is still an inconsistency that users will hit.
Expected: one format for --timeout across commands, or a clearer error that states the expected unit.
Suggested fix: decide on one format. If integer minutes stay for compatibility, have the duration commands accept them too, or document the unit in each command's help text.
Low: Minor help-text and flag-pairing inconsistencies
--repowording differs by command. Most commands use[HOST/]owner/repo.doctorandenvsayowner/repo only; GHES host prefixes not supported.work-queuesaysowner/repo format.cli.md(around line 360) saysdoctoraccepts onlyowner/repo. Standardize the wording.- Short-flag pairing for
--name.addanddeployhave-nfor--name.work-queue controlhas--namewith no short flag. Decide whether it should have one.
Inspection metadata
- Date: 2026-11-18 (UTC)
- Commands inspected: 87 commands walked from the root, including 45 top-level commands. Live
--helpwas captured for every one, and all exited 0. - Method: The local
./gh-awbinary was used as the source of truth. The pre-collected/tmp/gh-aw/agent/all-help.txtwas not trusted as-is. It mixes error output into command help, and manyhelp-output/files are word-split fragments or execution logs. Each doc flag was checked by running it against the binary and looking forunknown flag. The**Options:**lines incli.mdwere compared against live help. Doubled-word, typo-heuristic, example-flag, and punctuation checks were also run. - Not findings: the
jq --unbufferedexample, concatenated identifiers such asconnectorconnection, and trailing-period differences in flag descriptions.
Commands checked against the binary
All 87 commands from the tree walk were checked. The full list is in the scratch directory /tmp/gh-aw/agent/tree/. Commands with findings: compile, fix, run, logs, logs episode, upgrade, health, json-schema, trial, audit, doctor, env, work-queue control, add, deploy, forecast.
Generated by ✅ CLI Consistency Checker · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~1 AIC · ⊞ 3.4K · ◷
- expires on Nov 20, 2026, 5:36 AM UTC-08:00
Activity
github-actions commentedon Nov 18, 2026
Warning
Threat detection engine error
Threat detection could not complete its analysis due to a tooling error. This is not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs to troubleshoot the error.
🍪 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! 🍪
github-actions commentedon Nov 19, 2026
Warning
Threat detection engine error
Threat detection could not complete its analysis due to a tooling error. This is not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs to troubleshoot the error.
🍪 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! 🍪
github-actions commentedon Nov 19, 2026
Warning
Threat detection engine error
Threat detection could not complete its analysis due to a tooling error. This is not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs to troubleshoot the error.
🍪 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! 🍪
github-actions commentedon Nov 19, 2026
Warning
Threat detection engine error
Threat detection could not complete its analysis due to a tooling error. This is not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs to troubleshoot the error.
🍪 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! 🍪
github-actions commentedon Nov 19, 2026
Warning
Threat detection engine error
Threat detection could not complete its analysis due to a tooling error. This is not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs to troubleshoot the error.
🍪 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! 🍪
github-actions commentedon Nov 20, 2026
This issue was automatically closed because it expired on 2026-11-20T13:36:34.266Z.