Skip to content

[DOCS] Sweep shortcut subcommand examples after cli PR #1329 fixed seeded /scm #789

Closed

Description

Summary

The scm.yaml file seeded by infer init in the CLI (inference-gateway/cli) resolved to invalid gh commands: CustomShortcut.resolveCommandConfig appends a subcommand's own name: before its args: when the subcommand declares no command: of its own, so /scm issues ran gh issues issue list ... and /scm issue <number> ran gh issue issue view .... Fixed by PR inference-gateway/cli#1329 (resolves inference-gateway/cli#1328): each subcommand now declares command: gh with the full args, so /scm issues runs gh issue list --json ... --limit 20 and /scm issue <number> runs gh issue view <number> --json ....

The "SCM Shortcuts" customization example in the CLI repo's docs/shortcuts-guide.md was updated in the same PR. This ticket tracks sweeping the standalone docs site for anywhere it mirrors the broken seeded YAML shape or documents the subcommand resolution rules.

Acceptance Criteria

  • No docs page mirrors the broken seeded scm.yaml shape (subcommand name: issues with args: [issue, list, ...] but no command: gh)
  • Any custom-shortcut subcommands: examples follow the documented resolution rules: a subcommand without its own command: gets its name appended to the parent's args:; one with a command: uses its args: verbatim
  • /scm issues and /scm issue <number> examples show the resolved gh issue list / gh issue view commands

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. added theissue type on Sep 25, 2026
  3. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @infer can you work on this? use /ponytail:ponytail

  4. inference-gateway-maintainer commented on Sep 25, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · View Job

    Todos

    • Add issue [DOCS] Sweep shortcut subcommand examples after cli PR #1329 fixed seeded /scm #789 to project board, set In progress
    • Branch fix/issue-789 off main
    • Find docs pages mirroring broken seeded scm.yaml / subcommand resolution rules
    • Check cli PR #1329 diff for reference shape
    • Edit docs pages (cli.md: table, SCM section, subcommands example + rules)
    • Validate: lint:md, format:check, build
    • Commit, push, open draft PR, set QA on board

    Pull Request

    #796

    ✅ Infer Result: Success

    Done. PR #796: #796 (ready for review, Resolves #789, board item on QA).

    What changed (single commit on fix/issue-789, all in cli.md - the only docs page touching shortcut subcommands):

    • Built-in shortcuts table: the /scm example column now shows /scm issue 123 instead of /scm issue view 123 (which post-fix would double-append view), matching the seeded subcommand's <number> usage.
    • SCM (GitHub) Shortcuts section: /scm issues and /scm issue 123 now show their resolved commands - gh issue list --json ... --limit 20 and gh issue view 123 --json ... - as comments above each usage, taken from the fix in the CLI's seeded scm.yaml.
    • Custom Shortcuts - "Shortcuts with Subcommands": the dev.yaml example previously mirrored the broken seeded shape (subcommands with args: [-c, 'go test ./...'] but no own command:, which resolves to the invalid bash test -c ...). Each subcommand now declares its own command: bash, and the two resolution rules are documented in one sentence: own command: runs verbatim; without one, the subcommand's name (then its args) appends to the parent's - so spell out the full invocation per subcommand.

    Validation: bun run lint:md, bun run format:check, bun run build all pass. Docs-only change in the docs repo itself, so no [DOCS] ticket or downstream tracking issues needed. Skipped: rewriting the seeded-scm.yaml walkthrough in full on the site - the site never showed it, so the three acceptance criteria are fully covered by the diff above.

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 4m 9s

    Tokens: 1,163,892 in · 19,052 out · 1,182,944 total (25 requests)

    Tool calls: 41 total · 100% success rate

    Traces
    Session: 1790379413-215c384d
    
    session (headless, success)                                                                         4m1s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
    ├── execute_tool Read call_khz7npuw                                                                187µs
    ├── execute_tool Bash call_6pyhvstd                                                                315ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.4s
    ├── execute_tool TodoWrite call_q8dk1z3m                                                            74µs
    ├── execute_tool Bash call_du3ang1x                                                                 1.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
    ├── execute_tool Bash call_2yu1sxbm                                                                546ms
    ├── execute_tool Bash call_fqpipqgy                                                                 56ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Grep call_xxmkc9ve                                                                 2.1s
    ├── execute_tool Grep call_v0x576tm                                                                 1.5s
    ├── execute_tool Bash call_4gm0glb1                                                                409ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Grep call_crlbc2oq                                                                  6ms
    ├── execute_tool Bash call_mdk6zfzj                                                                 72ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
    ├── execute_tool Read call_jjzyalww                                                                306µs
    ├── execute_tool Read call_d1rcqefq                                                                340µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                19.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      19.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    19.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            19.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                19.3s
    ├── execute_tool WebFetch call_v61ee5qf                                                             90ms
    ├── execute_tool WebFetch call_308tw1hi                                                            103ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
    ├── execute_tool Grep call_oevx1zeo                                                                251µs [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                16.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      16.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    16.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            16.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                16.6s
    ├── execute_tool Bash call_iwa3cnmf                                                                 1.1s
    ├── execute_tool Grep call_lk44bl4l                                                                  3ms
    ├── execute_tool Grep call_uk66yctg                                                                  1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                54.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      54.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    54.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            54.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                54.7s
    ├── execute_tool Read call_hmdlgaac                                                                279µs
    ├── execute_tool Bash call_gb4bparg                                                                  3ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                30.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      30.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    30.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            30.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                30.3s
    ├── execute_tool TodoWrite call_p8zq4y3a                                                            71µs
    ├── execute_tool MultiEdit call_r0o8vfep                                                             2ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Bash call_djlxykyu                                                                 4.8s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_b27je15y                                                                 1.8s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_tllq8isb                                                                32.7s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_vj1v334x                                                                  7ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.9s
    ├── execute_tool Bash call_cb9zmqm4                                                                  9ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
    ├── execute_tool Bash call_db56r6aq                                                                  8ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
    ├── execute_tool Bash call_qq7v5y4o                                                                 1.6s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
    ├── execute_tool Write call_sjzasnq6                                                               941µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Bash call_hce0lwhc                                                                 2.1s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.8s
    ├── execute_tool Bash call_1uoheynf                                                                701ms
    ├── execute_tool Bash call_awh5d65a                                                                 4.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.4s
    ├── execute_tool Bash call_j9h4584b                                                                  5ms
    ├── execute_tool Bash call_2kxq9dgl                                                                322ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.0s
    ├── execute_tool Bash call_efs3u8sg                                                                946ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.3s
    ├── execute_tool Memory call_syrueyn7                                                              930ms
    ├── execute_tool TodoWrite call_s55i4unf                                                            78µs
    ╰── chat ollama_cloud/glm-5.3-flash                                                                 4.1s
        ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.1s
            ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.1s
                ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.1s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.1s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 21    │ 5%    │ 2539ms │
    │ Grep      │ 6     │ 17%   │ 595ms  │
    │ Read      │ 4     │ 0%    │ 281µs  │
    │ TodoWrite │ 3     │ 0%    │ 72µs   │
    │ WebFetch  │ 2     │ 0%    │ 97ms   │
    │ MultiEdit │ 1     │ 0%    │ 3ms    │
    │ Write     │ 1     │ 0%    │ 922µs  │
    │ Memory    │ 1     │ 0%    │ 930ms  │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 1163892 │ 882560 │ 19052      │ 1182944 │ -    │
    ╰────────────────────────────┴─────────┴────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  5. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions