Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
Hey @gh-aw-bot 👋 — thanks for clarifying CLI help and reference documentation! This PR looks great: ✅ Clear focus — all changes address CLI consistency: help text improvements, flag descriptions, MCP server tool documentation, and reference guide updates. ✅ Comprehensive tests — new test coverage in ✅ Well-documented — the PR body clearly explains each category of change (help omissions, flag semantics, reference options), making it easy to review. The changes span 17 files and improve discoverability for important CLI features like
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully! Agent messagesNo-op message Lean already. Ship. Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. The
|
|
✅ Test Quality Sentinel completed test quality analysis.
|
|
✅ PR Code Quality Reviewer completed the code quality review. Agent messagesNo-op message Completed PR #81108 code review: published one REQUEST_CHANGES review with one inline finding, recorded review history, and updated continuity memory. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. The
|
|
✅ PR Specification Reviewer completed successfully! Agent messagesNo-op message PR #81108 reviewed at head bd22da7: applicable specifications are aligned and no actionable findings or specification updates are required. PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. The
|
Comment MemoryPeek at saved memory (spec-review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
A critical active finding remains because the new test expects the flag signature to show minutes|duration, while the implementation registers it as int, causing the assertion to fail for all three commands.
1 open issue
What changed in this PR
This PR aligns gh aw CLI help and reference documentation with registered commands, supported engines, flag semantics, and available options. The added consistency test currently has an unresolved mismatch with how timeout flag types are rendered.
Changes:
- Documents
audit-diff, completion engines, repository formats, timeout syntax, and logs dry-run behavior. - Adds reference coverage for
valueandexperiments analyze --adoptionoptions and updates MCP and work-queue terminology. - Standardizes wording across project, deployment, doctor, edit, environment, and compile help.
- Adds regression tests for the revised help and documentation.
| File | Description |
|---|---|
| pkg/cli/work_command.go | Clarifies the work-queue repository format and checkpoint terminology. |
| pkg/cli/work_command_test.go | Updates expected work-queue repository help text. |
| pkg/cli/project_command.go | Corrects the project command description to reflect board creation. |
| pkg/cli/project_command_test.go | Updates the project command description assertion. |
| pkg/cli/operational_value_command.go | Uses the shared host-prefixed repository help wording. |
| pkg/cli/mcp_server_command.go | Adds audit-diff and clarifies MCP access-control help. |
| pkg/cli/logs_command.go | Explains that --dry-run filters runs rather than previewing execution. |
| pkg/cli/forecast_test.go | Updates timeout help expectations. |
| pkg/cli/flags.go | Adds shared repository, engine, and timeout help descriptions. |
| pkg/cli/env_command.go | Uses the shared repository-format description for environment commands. |
| pkg/cli/edit_command.go | Corrects connector import wording. |
| pkg/cli/doctor_command.go | Makes token replacement guidance neutral and updates repository help. |
| pkg/cli/deploy_command.go | Documents the hidden --pr compatibility alias. |
| pkg/cli/completion_command.go | Lists all supported completion engines, including experimental agy. |
| pkg/cli/cli_consistency_help_test.go | Adds consistency checks for help text and CLI reference options, including timeout-format assertions. |
| docs/src/content/docs/setup/cli.md | Documents value-report and experiment options, updates MCP tools, and aligns work-queue terminology. |
| cmd/gh-aw/main.go | Aligns cancellation spelling and separates compile codemod guidance from action-mode help. |
Review effort: Lite (adaptive)
| assert.Contains(t, NewEditCommand().Long, "typed bindings") | ||
|
|
||
| for _, cmd := range []*cobra.Command{NewLogsCommand(), NewForecastCommand(), NewTrialCommand(validateEngineStub)} { | ||
| assert.Contains(t, cmd.UsageString(), "--timeout minutes|duration") |
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one blocking issue: the doctor help text drops the security constraint requiring agents to elicit secure token replacement without requesting token values. This conflicts with the existing docs and weakens agent-facing credential handling guidance. The timeout/help wording changes otherwise appear consistent with the requested CLI clarification.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.7K
Comment /review to run again
| one representative per workflow, or its latest completed run when no failure | ||
| is listed. Available custom credentials take precedence within the budget. | ||
| The agent must elicit the user to replace implicated tokens securely. | ||
| Replace implicated tokens securely. |
There was a problem hiding this comment.
This removes the explicit requirement that the agent elicit the user to replace implicated tokens securely. The CLI help is agent-facing guidance, and the setup docs still require using the secure Actions secrets UI and never requesting token values in chat; with this shorter wording, an agent can ask for or handle credential material directly. Please retain the elicitation/no-token-values constraint here (or update both sources consistently).
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
Review summary
The help-text, docs, and test updates are mostly accurate against the code. Targeted go test ./pkg/cli passes on bd22da7e. I verified the hidden --pr flag, audit-diff MCP registration, experiments analyze --adoption, the value flags, the minutes|duration timeout wording, and the repoNoHostUsage claims for env, doctor, and work.
Open question (inline): the doctor help no longer says the agent must elicit the user to replace tokens, but the runtime guidance in doctor_tokens.go, .github/aw/doctor.md, and cli.md still requires it. If the removal is intentional, align those sources. Otherwise restore the wording.
Minor (inline): cli.md still has the old project description.
Nit (not commented): main.go changes "canceled" to "cancelled", but the codebase uses both spellings. Consider leaving it unless the change is part of a wider spelling pass.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 4.7K
Comment /matt to run again
| cmd := &cobra.Command{ | ||
| Use: "project", | ||
| Short: "Create and manage GitHub Projects V2 boards", | ||
| Short: "Create GitHub Projects V2 boards", |
There was a problem hiding this comment.
The Short text changed, but the CLI reference still says "Create and manage GitHub Projects V2 boards." (docs/src/content/docs/setup/cli.md:1682). Update that heading line to match, or keep the old wording in both places if "manage" is still accurate for the subcommands.
| one representative per workflow, or its latest completed run when no failure | ||
| is listed. Available custom credentials take precedence within the budget. | ||
| The agent must elicit the user to replace implicated tokens securely. | ||
| Replace implicated tokens securely. |
There was a problem hiding this comment.
This drops the elicitation directive ("The agent must elicit the user to replace implicated tokens securely"), but the runtime guidance still requires it: doctorTokenReplacementGuidance in pkg/cli/doctor_tokens.go:40, .github/aw/doctor.md:127, and docs/src/content/docs/setup/cli.md:357. The help text and the runtime guidance now disagree on whether the agent must ask the user to replace tokens. If the removal is intentional, align the other sources; otherwise restore the "must elicit" wording.
🧪 Test Quality Sentinel Report🟡 Test Quality Score: 52/100 — Needs improvement
📊 Metrics (5 tests)
|
There was a problem hiding this comment.
❌ Test Quality Sentinel: 52/100. 60% implementation tests (threshold: 30%); 3 of 5 changed tests couple to help/docs literals rather than behavior. Review flagged tests in the comment above.
🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 4.5K
Comment /review to run again
|
🎉 This pull request is included in a new release. Release: |

CLI help omitted a registered MCP tool and used inconsistent wording for several flags. The CLI reference also omitted options for experiment analysis and value reports.
audit-diffand all supported completion engines; correct command descriptions and wording.logs --dry-runfilters runs, show the accepted timeout formats, and distinguish repository formats that accept host prefixes.experiments analyze --adoptionandvalueoptions, and align MCP tool and work-queue descriptions.