Skip to content

docs: document autocomplete kind labels - #847

Merged
edenreich merged 3 commits into
mainfrom
docs/issue-844-20260927-1628
Sep 27, 2026
Merged

edenreich merged 3 commits into
mainfrom
docs/issue-844-20260927-1628

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Documents the four kind labels the / autocomplete list shows, and stops blurring built-in commands with the YAML shortcuts infer init seeds.

  • cli.md: new ### Autocomplete kinds table under ## Shortcuts covering command, shortcut, skill and remote skill, with where each one lives. The old "Built-in Shortcuts" table is split into ### Built-in Commands (compiled views and wizards, labelled command) and ### YAML Shortcuts (the init-seeded /init, /git, /scm, /mcp, /skills, labelled shortcut). The precedence note now says "built-in command" and points at the new anchor.
  • cli-skills.md: ## Activation notes that installed skills show as skill and un-downloaded catalog skills as remote skill, linking to the label table; ### On-demand catalog downloads repeats the remote skill / skill distinction where it defines a catalog skill.
  • desktop.md: new ### The slash menu under "Chat and tool approval" with the same four labels and identical wording, so CLI and desktop agree.

Notes

  • /mcp was not in the shortcuts table before; it is listed with the other init-seeded YAML shortcuts.
  • The command/shortcut split follows the labels described in the issue (/model, /tools, /agents as commands; /git, /init, /mcp, /skills as YAML shortcuts). /scm is grouped with /git as a seeded YAML shortcut since it wraps gh the same way - worth a maintainer confirming that one row, and /init-github-action as a command, against what the CLI actually reports.

Validation

bun run lint:md, bun run format:check and bun run build all pass.

Closes #844

@inference-gateway-releaser

inference-gateway-releaser Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🗑️ Preview environment destroyed.

@edenreich

Copy link
Copy Markdown
Contributor

@claude I think "/scm pr-create" is no longer available can you validate it and then remove it if it's no longer a thing?

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 2m 19s —— View job


/scm pr-create is gone - removed

  • Find every /scm pr-create reference in the docs
  • Check the upstream CLI's seeded /scm shortcut for the real subcommands
  • Remove the stale examples and validate

You're right. The seeded scm.yaml that infer init writes (cmd/init/init.go, createSCMShortcutsFile) defines exactly two subcommands:

  • issues -> gh issue list --json ... --limit 20
  • issue -> gh issue view --json ...

No pr-create anywhere. A code search across inference-gateway/cli for pr-create returns 0 hits.

Fixed in d689e60:

  • cli.md "YAML Shortcuts" table: example column is now /scm issues, /scm issue 123.
  • cli.md "SCM (GitHub) Shortcuts" block: dropped the /scm pr-create snippet, and added one line noting the seeded file defines only those two subcommands - gh pr create is a write, so it falls through to approval, or you add your own subcommand.

Other gh pr create mentions in cli.md (Bash allowed-list, default gh allowed-list, the Github tool removal note) are about the raw gh command, not the shortcut, so they stay.

bun run lint:md, bun run format:check and bun run build all pass.

Still open from the PR description: whether /scm belongs under YAML Shortcuts alongside /git - it does, it's seeded by infer init the same way, now confirmed from the source.

  • branch docs/issue-844-20260927-1628

@edenreich

Copy link
Copy Markdown
Contributor

@claude also "/init-github-action" is gone, check and remove it, check for any other irrelevant "/" commands.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 14m 40s —— View job


/init-github-action is gone - removed, plus three more stale commands

  • List every / command referenced in the docs
  • Verify each against the upstream CLI source
  • Remove/fix the stale ones and validate

You're right, /init-github-action no longer exists. A code search across inference-gateway/cli@main finds it only in CHANGELOG.md history - no shortcut registers that name. The wizard was replaced by /install-opentask (internal/presentation/shortcuts/install_opentask.go), which is agent-driven rather than a huh wizard: it reads the opentask catalog skill, works in a /tmp worktree, writes .github/workflows/tasks.yml on branch infer/install-github-action, and opens or updates a PR.

Ground truth I checked against

  • Built-ins (internal/container/container.go + each GetName()): agents clear compact context conversations copy cost diff effort exit explorer help init install-opentask model new release-notes stats tasks theme tools traces voice
  • Seeded YAML (cmd/init/init.go): scm git mcp shells export env skills reset insights

Fixed in 195f2e0

  • /init-github-action removed. Dropped the table row, and rewrote the ### GitHub Action Setup section (kept the anchor, it is linked from two other pages) around /install-opentask: usage with an optional owner/repo, the five steps the agent takes, gh prerequisite, and the INFER_APP_* / provider secrets. Deleted the stale wizard flow, the GitHub App creation walkthrough, and the hand-copied infer.yml example - the generated file is now tasks.yml and comes from the skill, and github-action.md already owns workflow reference material.
  • /switch removed. It is not deprecated, it is gone - SwitchShortcut.GetName() returns "model" and there is no alias anywhere. Dropped the deprecation callout, the "replaces the deprecated /switch" lead-in, and the parenthetical in the table.
  • /init was misfiled as a YAML shortcut. There is no init.yaml; /init is a built-in (shortcuts/init.go, fills the input with the AGENTS.md prompt). Moved it to Built-in Commands.
  • /insights and /reset were misfiled as built-in commands. Both are seeded YAML (insights.yaml, reset.yaml wrapping infer insights / infer reset). Moved them to YAML Shortcuts.
  • Added the three seeded shortcuts that were missing from the YAML table: /shells, /export, /env.
  • /install-opentask added to Built-in Commands, since it is what the removed row pointed at.
  • github-action.md: both /init-github-action mentions now say /install-opentask, and the "CLI wizard integration" heading is "CLI integration" (it is no longer a wizard).
  • cli-scheduling.md: its setup step pointed at /cli/#github-action-setup "for the same App flow" - that flow no longer lives there, so it points at Secrets and least-privilege instead.

Everything else checked out: /model /agents /tasks /tools /stats /traces /voice are real built-ins, /git /scm /mcp /skills are really seeded, and the remaining /word hits in the docs are route paths (/opentask/, /desktop/, /v1beta/openai), not chat commands.

bun run lint:md, bun run format:check and bun run build all pass.

  • branch docs/issue-844-20260927-1628

@edenreich
edenreich merged commit 94b0ceb into main Sep 27, 2026
1 check passed
@edenreich
edenreich deleted the docs/issue-844-20260927-1628 branch September 27, 2026 17:22
inference-gateway-releaser Bot added a commit that referenced this pull request Sep 30, 2026
## [0.9.19](0.9.18...0.9.19) (2026-09-30)

### 📚 Documentation

* ag-ui resume snapshot and cancelled run outcome ([#861](#861)) ([53e4c80](53e4c80))
* **agents:** add code readability guidelines ([#832](#832)) ([9435459](9435459))
* **agents:** add code readability guidelines ([#834](#834)) ([6b06d8b](6b06d8b))
* artifacts route is not served by the daemon ([#867](#867)) ([513e866](513e866))
* browser-use routes through the daemon socket ([#865](#865)) ([79a9292](79a9292))
* bundled ffmpeg covers desktop timeline export ([#837](#837)) ([43ff30c](43ff30c))
* daemon.yaml binding and channel thread path ([#871](#871)) ([9f6efc5](9f6efc5))
* document autocomplete kind labels ([#847](#847)) ([94b0ceb](94b0ceb))
* document ctrl+r prompt history search in chat ([#869](#869)) ([08239c2](08239c2))
* document custom tools in the CLI ([#852](#852)) ([e32cf2e](e32cf2e))
* document infer daemon as the client hub ([#860](#860)) ([6fabb62](6fabb62))
* document nested AGENTS.md awareness in the CLI ([#854](#854)) ([e6c17a9](e6c17a9))
* document secret redaction in infer insights ([#831](#831)) ([7ae06bb](7ae06bb))
* headless --serve ag-ui worker over stdio ([#863](#863)) ([ac80158](ac80158))
* lead agent pages with bare-name infer agents add ([#835](#835)) ([113179d](113179d))
* opentask tab recording skill loop ([#840](#840)) ([48b6bde](48b6bde))
* single /agents view and markdown subagents ([#845](#845)) ([9557066](9557066))
* **skills:** document the built-in demo skill and infer-action record-demo ([#849](#849)) ([393b0c9](393b0c9))
* sync cli page with new upstream cli docs ([#855](#855)) ([88e0905](88e0905))

### 🔧 Miscellaneous

* **deps-dev:** bump the bun group with 2 updates ([#846](#846)) ([c278297](c278297))
* **deps:** bump claude-code 2.1.280 -> 2.1.283 ([#858](#858)) ([3a23dc8](3a23dc8))
* **deps:** bump infer CLI v0.208.0 -> v0.218.0 ([#859](#859)) ([fd05fc6](fd05fc6))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.19 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document / autocomplete kind labels: command, shortcut, skill, remote skill

1 participant