Repository navigation
Description
Problem or Motivation
Agents type gh's nouns, and devops gh uses plural names. devops gh issue ... failed 630 times from 2026-09-23 to 2026-11-11: 186 calls by 181 agents in 12 Claude Code sessions and 444 calls in 270 Kilo and Antigravity sessions. That is 36% of the 1,737 usage errors found. The failures continued after #2361 and #2374 delivered devops gh issues view. devops gh run failed 48 times (3 and 45), plus 10 run-gh. 0 of 173 failing agent prompts held the singular form, so agents type the gh noun from what they know. After the failure, 146 of 186 agents sent devops gh api to the same resource. The plural comes from the repository text: 153 mentions of the four plural groups in 28 files and 15 MCP tool-name lines in 5 source files. The hidden rate_limit command is a compatibility alias, which the alpha rule does not permit.
Tracker #4833, child 1. The owner asked on 2026-11-11 to fix the devops gh issue name and to record such errors for a later analysis of missing flags, features and aliases. The counts come from a study of Claude Code, Kilo, Antigravity and Loki records from 2026-09-23 to 2026-11-11.
Proposed Solution & Architectural Design
Rename the groups in src/devops_cli/commands/gh.py: issues to issue, runs to run, labels to label and secrets to secret. Add no alias: AGENTS.md removes the old path while the project is alpha, and Click prints 'Did you mean issue?' for an old plural (121 of 186 agents ran Click's suggestion within 3 calls). Keep project, pr, api and status (same as gh) and milestones, views, pages, metrics, branch-protection and rate-limit (gh has no peer). Remove the hidden rate_limit command (0 calls). In the same pull request, change every surface that names an old group: the MCP tool names (gh_issues_view to gh_issue_view) in ai/mcp/roles.py, server.py, path_confinement.py, CONST_MCP_EXPOSURE_TABLE and the tool-listing snapshot; the roadmap tool registry roadmap/tools.py and the stage allow-list tests; lang/en/help.py and messages.py; the knowledge base; the OpenSpec spec text (the capability ids stay); README.md, CONTRIBUTING.md, docs/ROUTINE_TASKS.md, docs/SDLC.md, docs/roadmap/intake.md, docs/DASHBOARD_TABS_AUDIT.md, docs/adr/0001, .github/labels.yml and the tests. Regenerate docs/CLI_REFERENCE.md, docs/commands/gh.md and docs/MCP_TOOLS.md. Correct the comment at ai/mcp/dispatcher.py:33 (gh names it gh secret set). Add one rule to CONTRIBUTING.md: a command that mirrors a gh command uses gh's command name and flag names. Add a test with a table of gh nouns (issue, pr, run, label, secret, project, api, status) that fails when a devops gh group that mirrors gh has another name. No ConfigMap or manifest names the old groups, so the Service needs no preparation. Before the push, rebase on main; if open #4784 or #4678 changes the same MCP tables, keep their change and apply the new names (do not change those issues). After the merge, update the agent memory files that hold the plural (outside git).
Target Subsystem
SDLC, Git & PR Governance (devops gh, with the MCP tool names in src/devops_cli/ai/mcp/).
Existing Tool Considered
gh's own command names are the reference. Click's "Did you mean" suggestion (difflib, vendored by Typer) tells a caller the new name, so no alias code is necessary. The work is a rename and one test; nothing new is built.
Acceptance Criteria
uv run devops gh issue view 1 --help, gh run list --help, gh label list --help and gh secret list --help exit 0. uv run devops gh issues view 1 exits 2 and prints 'Did you mean issue?'; the same holds for runs, labels and secrets, and devops gh rate_limit suggests rate-limit. git grep -wE 'devops gh (issues|runs|labels|secrets)' -- ':!CHANGELOG.md' ':!openspec/changes/archive' ':!docs/agent/archive' prints 0 lines (153 today). The MCP tool-listing snapshot holds gh_issue_view and no tool that starts with gh_issues_, gh_runs_, gh_labels_ or gh_secrets_. The gh-noun test fails when one group gets its old name back. The docs argv check and the required CI checks pass.
Dependencies
None. An agent can start it now.
Source: #4833
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(gh)scope of the title gives the scope.630 agent failures over 7 weeks is real friction, but agents already work around it via devops gh api.Eliminates 36 percent of recorded usage errors and aligns the CLI with the gh nouns agents already know.A rename across 28 files, 15 MCP tool names, docs and tests, but no new logic is built.Both target the same gh issues, labels and runs command groups, but #2235 adds dry-run request listing while the candidate renames the groups to singular.dan-petty commentedon Nov 12, 2026
Seen again on 2026-11-12: an agent ran
uv run devops gh issue view 4688 --commentsand got "No such command 'issue'. Did you mean 'issues'?". The agent then useddevops gh issues view.devops-cli-service commentedon Nov 12, 2026
Released in v0.116.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.116.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 05:27 UTC