Skip to content

[3601 by Claude Opus 5.5] CLI help and documentation drift - #3646

Merged
integry merged 1 commit into
3595-epic-0-9-h9lfrom
3601/claude-opus-5-5-cli-help-and-documentatio-20261117-0509-loz
Nov 17, 2026
Merged

integry merged 1 commit into
3595-epic-0-9-h9lfrom
3601/claude-opus-5-5-cli-help-and-documentatio-20261117-0509-loz

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3601

Branch: 3601/claude-opus-5-5-cli-help-and-documentatio-20261117-0509-loz
Commits: ✅ Changes committed (d7b0077)


AI Processing Completed

Execution Details:

  • Issue: CLI help and documentation drift #3601
  • Repository: integry/propr
  • Status: Success
  • Execution Time: 16m 25s
  • Tokens used: 10.17M tokens [10.13M input + 43.17K output]
  • API cost: $3.67
  • Timestamp: Nov 17, 2026, 5:26 AM UTC
  • LLM Model: Claude Opus 5.5
  • Subscription usage: Weekly +1%, Fable +1%

Summary:
I've fixed every item in issue #3601. The full CLI test suite passes (796 tests, 0 failures) and both typecheck configs are clean.

Help fixes

  • Command Groups footer: it is now built from the registered commands (new packages/cli/src/rootHelp.ts). The small group table there only decides which group a command goes in. The subcommand lists come from the live command tree, so all the missing items now show up: stats, pr, events, setup, github-app, connect, goal attention|continue|wait, plan generate|finalize|issues, automation templates, todo move|category, agent login and repo validate. A command with no group is still shown under "Other", and the new test fails until it gets one. Long lines wrap at 100 columns.
  • propr help task list now prints the task list help. Commander's built-in help command only looks one level deep, so I replaced it with help [command...], which follows the full path. An unknown path exits 1 with unknown command 'task nope'.
  • Smaller text fixes:
    • plan create -b shows its default once.
    • goal wait: the Conditions table now explains blocked, and the examples have the $ prefix.
    • Retired model ids are replaced with current ones (claude-sonnet-5-5, claude-opus-5-5, claude-haiku-5-5).
    • integry/gitfix is now myorg/myrepo.
    • task delete --force now says it skips the confirmation prompt.
    • propr admission text output now points to propr tank instead of the MCP tool name.
    • propr stats help states that the default period is all time, unlike the MCP tool's 30 days.
  • Flags: -j now works everywhere --json does. That covers the commands in the issue plus relay list, check, status and github-app create|manifest, which had the same gap. events also gets -l for --limit. Both stats subcommands accept -p, --project as an alias of --repository, and the long flags still work.

Decisions for you

  • --group-by "" still means day. The issue says no behaviour changes, so I documented it in the flag's help rather than making it an error. Rejecting an empty list would be a one-line change if you'd rather have that.
  • The global -p now reaches stats. Because of the new alias, propr -p owner/repo stats cost limits the report to that repository. Before, stats ignored it. The configured default project is still not applied to stats.
  • Two additions you didn't ask for: propr completion --help now has setup examples for bash, zsh and fish. The CLI README's System section said propr status checks the backend, but it shows the local stack, so I fixed that.

Tests (new packages/cli/src/rootHelp.test.ts)

  • Fails when a top-level command or subcommand is missing from the footer.
  • Fails when any help text, including examples, names a model id that isn't in the current model definitions.
  • Fails when a --json, --limit or --project flag lacks its short form. config profile set --project is exempt, because it stores a profile's default project rather than choosing a target.
  • Also checks propr help task list end to end.

I confirmed the first two catch regressions: putting an old model id back into log help and dropping stats from the group table each made them fail.

Docs

  • docs/docs/features/propr-cli.md has short sections for config profiles, shell completion, follow-up handoffs, agent login, setting reindex-summaries and backend. The settings table gains max_provider_replacements, ultrafix_escalation_*, ultrafix_ci_wait_timeout_ms, agent_network_*, token_outlier_*, and two keys that were also missing: agent_run_usage_pause_percent and automation_unproductive_run_threshold.
  • packages/cli/README.md documents goals, automations, stats, pr, events, admission, handoffs, config and agent pool. I also corrected a stale model id and added vibe to the agent types.
  • docs/mcp-coverage.md has rows for close_pull_request, approve_pull_request_workflow_runs and update_pull_request_labels.

I didn't create a visual preview because the changes are terminal help text and docs. The docs site wasn't rebuilt, so the new anchor links are checked by hand only.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (22 files)
    • packages/cli/src/api/agents.ts (+1/−1)
    • packages/cli/src/api/implement.ts (+1/−1)
    • packages/cli/src/commands/admissionCommands.ts (+7/−2)
    • packages/cli/src/commands/agentCommands.ts (+1/−1)
    • packages/cli/src/commands/checkCommands.ts (+1/−1)
    • packages/cli/src/commands/eventCommands.ts (+2/−2)
    • packages/cli/src/commands/githubAppCommands.ts (+1/−1)
    • packages/cli/src/commands/goalCommands.ts (+5/−2)
    • packages/cli/src/commands/implementCommands.ts (+1/−1)
    • packages/cli/src/commands/logCommands.ts (+2/−2)
    • packages/cli/src/commands/planCommands.ts (+1/−1)
    • packages/cli/src/commands/prCommands.ts (+1/−1)
    • packages/cli/src/commands/relayCommands.ts (+1/−1)
    • packages/cli/src/commands/repoCommands.ts (+4/−4)
    • packages/cli/src/commands/settingCommands.ts (+1/−1)
    • packages/cli/src/commands/stackCommands.ts (+1/−1)
    • packages/cli/src/commands/statsCommands.ts (+6/−5)
    • packages/cli/src/commands/statsCostCommand.ts (+10/−6)
    • packages/cli/src/commands/systemCommands.ts (+2/−2)
    • packages/cli/src/commands/taskCommands.ts (+4/−3)
    • packages/cli/src/index.ts (+18/−19)
    • packages/cli/src/rootHelp.ts (added, +146/−0)
  • Low risk (7 files)
    • docs/docs/features/propr-cli.md (+69/−8)
    • docs/mcp-coverage.md (+3/−0)
    • packages/cli/README.md (+126/−7)
    • packages/cli/src/commands/admissionCommands.test.ts (+3/−2)
    • packages/cli/src/commands/statsCommands.test.ts (+3/−1)
    • packages/cli/src/commands/statsCostCommand.test.ts (+1/−1)
    • packages/cli/src/rootHelp.test.ts (added, +129/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 29 files changed, +551/−77 lines

Detailed Logs:

  • Conversation: 265 messages
  • Session: d67b3741-6841-4a6a-8261-e33029d5de07

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3601-2026-11-17T05-26-27-998Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3601-2026-11-17T05-26-27-998Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've fixed every item in issue #3601. The full CLI test suite passes (796 tests, 0 failures) and both typecheck configs are clean.

**Help fixes**
- **Command Groups footer:** it is now built from the...


This PR was created automatically by ProPR after processing issue #3601.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…(796 tests, 0 failures) and both typecheck configs are clean.

Help fixes
- Command Groups footer: it is now built from the registered commands (new `packages/cli/src/rootHelp.ts`). The small group table there only decides which group a command goes in. The subcommand lists come from the live command tree, so all the missing items now show up: `stats`, `pr`, `events`, `setup`, `github-app`, `connect`, `goal attention|continue|wait`, `plan generate|finalize|issues`, `automation templates`, `todo move|category`, `agent login` and `repo validate`. A command with no group is still shown under "Other", and the new test fails until it gets one. Long lines wrap at 100 columns.
- `propr help task list` now prints the `task list` help. Commander's built-in help command only looks one level deep, so I replaced it with `help [command...]`, which follows the full path. An unknown path exits 1 with `unknown command 'task nope'`.
- Smaller text fixes:
  - `plan create -b` shows its default once.
  - `goal wait`: the Conditions table now explains `blocked`, and the examples have the `$ ` prefix.
  - Retired model ids are replaced with current ones (`claude-sonnet-5-5`, `claude-opus-5-5`, `claude-haiku-5-5`).
  - `integry/gitfix` is now `myorg/myrepo`.
  - `task delete --force` now says it skips the confirmation prompt.
  - `propr admission` text output now points to `propr tank` instead of the MCP tool name.
  - `propr stats` help states that the default period is all time, unlike the MCP tool's 30 days.
- Flags: `-j` now works everywhere `--json` does. That covers the commands in the issue plus `relay list`, `check`, `status` and `github-app create|manifest`, which had the same gap. `events` also gets `-l` for `--limit`. Both `stats` subcommands accept `-p, --project` as an alias of `--repository`, and the long flags still work.

Decisions for you
- `--group-by ""` still means `day`. The issue says no behaviour changes, so I documented it in the flag's help rather than making it an error. Rejecting an empty list would be a one-line change if you'd rather have that.
- The global `-p` now reaches `stats`. Because of the new alias, `propr -p owner/repo stats cost` limits the report to that repository. Before, `stats` ignored it. The configured default project is still not applied to `stats`.
- Two additions you didn't ask for: `propr completion --help` now has setup examples for bash, zsh and fish. The CLI README's System section said `propr status` checks the backend, but it shows the local stack, so I fixed that.

Tests (new `packages/cli/src/rootHelp.test.ts`)
- Fails when a top-level command or subcommand is missing from the footer.
- Fails when any help text, including examples, names a model id that isn't in the current model definitions.
- Fails when a `--json`, `--limit` or `--project` flag lacks its short form. `config profile set --project` is exempt, because it stores a profile's default project rather than choosing a target.
- Also checks `propr help task list` end to end.

I confirmed the first two catch regressions: putting an old model id back into `log` help and dropping `stats` from the group table each made them fail.

Docs
- `docs/docs/features/propr-cli.md` has short sections for config profiles, shell completion, follow-up handoffs, `agent login`, `setting reindex-summaries` and `backend`. The settings table gains `max_provider_replacements`, `ultrafix_escalation_*`, `ultrafix_ci_wait_timeout_ms`, `agent_network_*`, `token_outlier_*`, and two keys that were also missing: `agent_run_usage_pause_percent` and `automation_unproductive_run_threshold`.
- `packages/cli/README.md` documents goals, automations, stats, pr, events, admission, handoffs, config and `agent pool`. I also corrected a stale model id and added `vibe` to the agent types.
- `docs/mcp-coverage.md` has rows for `close_pull_request`, `approve_pull_request_workflow_runs` and `update_pull_request_labels`.

I didn't create a visual preview because the changes are terminal help text and docs. The docs site wasn't rebuilt, so the new anchor links are checked by hand only.
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=6
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 17, 2026
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 6)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Ready to merge within the supplied review scope. The changes improve CLI discoverability, flag consistency, and documentation without substantial architectural expansion. Review was static; no commands were run. Current-head checks report 35 passed, none failed or pending.

✅ Generated command groups — The footer derives subcommands from the registered command tree, with fallback visibility for ungrouped commands and coverage tests.

✅ Nested help resolution — The new resolver follows complete command paths, recognizes aliases, and explicitly rejects unknown paths. Tests cover successful nested help and failure exit status.

✅ Compatible flag additions — Short flags preserve existing long forms, and the stats handlers explicitly forward the new project option as the repository filter.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise stats filter forwarding

The new stats tests verify option registration, but do not exercise the resulting API query. Optional behavioral tests for both stats commands could cover -p, --project, global project inheritance, and precedence when --repository is also supplied. This would strengthen regression coverage for the small runtime change beyond the help updates.

S2: 🟢 Cover additional help paths

Consider testing bare propr help, alias resolution, and a three-level path such as propr help todo category list. The implementation supports these through the same resolver, so these are optional coverage improvements rather than demonstrated defects.

Score

The implementation is focused, includes meaningful regression tests, and has no verified merge blockers. All reported current-head checks are passing or skipped.
Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 2m 49s
  • Tokens: 58,598 (58,174 in / 424 out)
  • Cost: $0.47

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1 S2

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 17, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3601 by Claude Opus 5.5] CLI help and documentation drift ✅⑨ [3601 by Claude Opus 5.5] CLI help and documentation drift Nov 17, 2026
@integry
integry merged commit 9bff7d0 into 3595-epic-0-9-h9l Nov 17, 2026
65 checks passed
@propr-dev propr-dev Bot changed the title ✅⑨ [3601 by Claude Opus 5.5] CLI help and documentation drift [3601 by Claude Opus 5.5] CLI help and documentation drift Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant