Skip to content

feat(tui): label slash autocomplete rows by kind (command, shortcut, skill, remote skill) - #1363

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-1358
Sep 27, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-1358

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #1358

Summary

The / autocomplete mixed four kinds of entries with no way to tell them apart; only catalog skills got a visual hint (status-tinted name). This replaces the Catalog bool on ShortcutOption with a Kind string and renders a dim kind label on every slash row, matching the desktop composer (command, skill, remote skill) plus shortcut for YAML shortcuts the desktop does not have. Docs follow-up already filed: inference-gateway/docs#844.

Changes

  • Replace ShortcutOption.Catalog bool with ShortcutOption.Kind string; new exported kinds KindCommand, KindShortcut, KindSkill, KindRemoteSkill in the autocomplete package
  • Derive the label at the source: type-switch on *shortcuts.CustomShortcut (registry rows -> command/shortcut), and on agentdomain.Skill.Scope == SkillScopeCatalog (skill rows -> skill/remote skill); subcommand rows inherit the parent shortcut's kind; models, tools, files and issues rows stay unlabeled
  • Render the kind as a dim column right after the shortcut name; the kind column is sized to the widest label in the list so rows stay aligned and the description shrinks (it already truncates via PadText) before the label at narrow widths
  • Keep the status color on remote skill names so "will be downloaded on first use" stays visually obvious
  • skills-midtext mode gets the labels for free since it shares the render path
  • TestAutocomplete_KindLabels covers one row of each kind, mid-text labels, the remote-skill tint, and label readability/alignment at a 60-column width

Verification

…skill, remote skill)

Replace the Catalog bool on ShortcutOption with a Kind string derived from the source: built-in registry shortcuts are command, YAML *CustomShortcut entries are shortcut, installed skills are skill and catalog skills are remote skill. The mid-text skills completion shows the same labels, remote skills keep the status-colored name, and the description column shrinks before the kind column at narrow widths.
@edenreich

Copy link
Copy Markdown
Contributor

@infer demo

@inference-gateway-maintainer

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

Copy link
Copy Markdown
Contributor Author

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

Todos

  • Prep demo assets under /tmp (binary, seeded shortcut/skill project, launcher)
  • Record the TUI demo in tmux session demo (RecordStart / keystrokes / RecordStop)
  • Clean up TUI process, verify clean tree, final summary

Pull Request

#1363

✅ Infer Result: Success

Demo recorded: slash autocomplete with kind labels

The recording (embedded above) walks the real chat TUI from this branch (commit e03fcc4) and shows the / autocomplete labeling every row by kind:

  1. Launch + model select against the hermetic mock gateway.
  2. Typing / shows built-in commands, each labeled command in a dim column.
  3. Typing demo narrows to the seeded rows: /demo-release labeled shortcut (a YAML shortcut from .infer/shortcuts/) and /demo-skill labeled skill (a local skill from .agents/skills/), side by side with one shared kind column.
  4. Clearing and typing /adl shows /adl labeled remote skill - a live entry from the real skills catalog (inference-gateway/skills), which merges in when discovery is enabled.

Setup notes:

  • The binary was built from this branch; the demo project was seeded under /tmp (not in the repository): one throwaway YAML shortcut, one local skill, and an isolated HOME. Catalog discovery was enabled with INFER_AGENT_SKILLS_DISCOVERY_ENABLED=true so real remote skills appear; the catalog fetch is best-effort and off by default, which is why step 4 needs it on.
  • In the live TUI the remote skill name additionally keeps the status (green) tint so "will be downloaded on first use" stays obvious; plain video still shows it, but it is asserted in the PR's TestAutocomplete_KindLabels. The kind label itself is rendered dim in all cases.
  • The kind column is sized to the widest label present in the list (shortcut/skill at 8 chars vs remote skill at 12), and the description shrinks and truncates via PadText before labels would break alignment - already covered by the PR test at 60 columns.
  • Mid-text /skill completions get the same labels for free since skills-midtext shares the render path with the start-of-input list.

No code changes were made for this demo: the branch still contains exactly commit e03fcc4, git status is clean, and all demo assets (binary, seeded project, launcher) lived under /tmp only.

Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 10m 19s

Tokens: 4,758,905 in · 40,296 out · 4,799,201 total (35 requests)

Tool calls: 64 total · 100% success rate

Artifacts

demo-20260927-155939.746.gif

Download all artifacts

Traces
Session: 1790524243-396f876a

session (headless, success)                                                                       10m12s
├── chat ollama_cloud/glm-5.3-flash                                                                20.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      20.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    20.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            20.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                20.0s
├── execute_tool TodoWrite call_fp92akzb                                                            64µs
├── execute_tool Bash call_66g5k03c                                                                 36ms
├── execute_tool Bash call_po9b7sgv                                                                 30ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                15.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            15.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.2s
├── execute_tool Bash call_izb3je5k                                                                  6ms
├── execute_tool Grep call_k5i7wqnp                                                                109ms
├── execute_tool Read call_tp5xs66n                                                                157µs
├── chat ollama_cloud/glm-5.3-flash                                                                21.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      21.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    21.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            21.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                21.1s
├── execute_tool Read call_i5id34jm                                                                308µs
├── execute_tool Read call_h945i5iy                                                                651µs
├── execute_tool Bash call_45oga79z                                                                  3ms
├── chat ollama_cloud/glm-5.3-flash                                                                12.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            12.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.7s
├── execute_tool Read call_suequ1ba                                                                191µs
├── execute_tool Read call_boa7wsd5                                                                237µs
├── execute_tool Read call_c95hngaj                                                                390µs
├── chat ollama_cloud/glm-5.3-flash                                                                21.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      21.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    21.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            21.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                21.3s
├── execute_tool Read call_f9845bqk                                                                313µs
├── execute_tool Read call_8ep4ocky                                                                170µs
├── chat ollama_cloud/glm-5.3-flash                                                                42.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      42.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    42.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            42.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                42.9s
├── execute_tool Grep call_lb7d6vy0                                                                  9ms
├── execute_tool Grep call_4xxx6rel                                                                108ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
├── execute_tool Grep call_gdyf32cv                                                                453µs
├── execute_tool Read call_k8xzm4xb                                                                449µs
├── chat ollama_cloud/glm-5.3-flash                                                                22.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      22.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    22.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            22.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                22.7s
├── execute_tool Grep call_zfe6u1m7                                                                  5ms
├── execute_tool Grep call_qd92mil4                                                                  4ms
├── 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.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
├── execute_tool Read call_pe9u4jym                                                                218µs
├── execute_tool Read call_xs9cxzpe                                                                307µs
├── chat ollama_cloud/glm-5.3-flash                                                                36.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      36.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    36.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            36.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                36.6s
├── execute_tool Grep call_ou89yv37                                                                 92ms
├── execute_tool WebFetch call_nl2wf7ae                                                            109ms
├── chat ollama_cloud/glm-5.3-flash                                                                29.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      29.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    28.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            28.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                28.9s
├── execute_tool Grep call_78eo4rks                                                                 92ms
├── execute_tool Grep call_2vg285f0                                                                 20ms
├── chat ollama_cloud/glm-5.3-flash                                                                30.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      30.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    30.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            30.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                30.1s
├── execute_tool TodoWrite call_qneumcah                                                            69µs
├── chat ollama_cloud/glm-5.3-flash                                                                 7.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.4s
├── execute_tool Write call_08t3xuo6                                                               818µs
├── chat ollama_cloud/glm-5.3-flash                                                                 3.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
├── execute_tool Bash call_69wehtak                                                                22.6s [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 4.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.2s
│       ╰── 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
├── execute_tool Edit call_8cn87apj                                                                365µs
├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
│   ╰── 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_8qfmrlwc                                                                57.1s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.1s
├── execute_tool Delete call_llctuvd2                                                              267µs
├── execute_tool Bash call_v8s90hk6                                                                  9ms
├── chat ollama_cloud/glm-5.3-flash                                                                16.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      16.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    16.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            16.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                16.1s
├── execute_tool Memory call_h0mbnmhq                                                               1.1s
├── execute_tool TodoWrite call_2sj1ilra                                                            44µs
├── chat ollama_cloud/glm-5.3-flash                                                                13.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            13.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.6s
├── execute_tool TodoWrite call_ccsfjwvf                                                            80µs
├── chat ollama_cloud/glm-5.3-flash                                                                18.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      18.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    18.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            18.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                18.7s
├── chat ollama_cloud/glm-5.3-flash                                                                1m38s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m38s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m38s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m38s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m38s
├── execute_tool TodoWrite call_vms41ehp                                                            61µs
├── execute_tool Write call_a1305lt9                                                               728µs
├── execute_tool Write call_5josx1b5                                                               582µs
├── chat ollama_cloud/glm-5.3-flash                                                                 3.9s
│   ╰── 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_ciffaek5                                                                 2.2s
├── execute_tool Bash call_n1ao1v1j                                                                113ms
├── chat ollama_cloud/glm-5.3-flash                                                                 4.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.2s
│       ╰── 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
├── execute_tool Bash call_jz3i5r14                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
├── execute_tool Bash call_ftlgqugz                                                                  5ms
├── execute_tool Bash call_wslo2k3m                                                                 1.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 3.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
├── execute_tool TodoWrite call_dfhbwkoq                                                            55µs
├── execute_tool RecordStart call_2281uvy0                                                          1.5s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
├── execute_tool Bash call_hglgl1yd                                                                  5ms
├── execute_tool Bash call_0xwn4jnq                                                                 6.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.1s
├── execute_tool Bash call_vpwikezn                                                                  5ms
├── 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]     2.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
├── execute_tool Bash call_6yuc77mg                                                                  5ms
├── execute_tool Bash call_990dd87l                                                                 3.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 6.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.3s
├── execute_tool Bash call_wg6irv8o                                                                  5ms
├── execute_tool Bash call_9bem8szo                                                                 3.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 3.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.9s
│       ╰── 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_gqydbui4                                                                  6ms
├── execute_tool Bash call_lhtr1vjy                                                                 3.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
├── execute_tool Bash call_s4oopg67                                                                  6ms
├── execute_tool Bash call_2j35hkyb                                                                  5ms
├── execute_tool Bash call_9b12cyzg                                                                 4.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
├── execute_tool RecordStop call_xosb1br5                                                          293ms
├── chat ollama_cloud/glm-5.3-flash                                                                 5.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.6s
├── execute_tool Bash call_auvcvpei                                                                  5ms
├── execute_tool Bash call_tsc59myz                                                                 2.0s
├── execute_tool Bash call_oxc8mov4                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 8.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.5s
├── execute_tool Bash call_53nv4wf3                                                                  8ms
├── execute_tool TodoWrite call_fyu5fj1n                                                            68µs
╰── chat ollama_cloud/glm-5.3-flash                                                                 9.6s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.6s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.5s
            ╰── POST /proxy/:provider/*path [inference-gateway, server]                             9.5s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.5s
Stats
Tool Calls

╭─────────────┬───────┬───────┬────────╮
│ Tool        │ Calls │ Fail% │ Avg    │
├─────────────┼───────┼───────┼────────┤
│ Bash        │ 28    │ 7%    │ 3722ms │
│ Read        │ 11    │ 0%    │ 301µs  │
│ Grep        │ 9     │ 0%    │ 49ms   │
│ TodoWrite   │ 7     │ 0%    │ 58µs   │
│ Write       │ 3     │ 0%    │ 707µs  │
│ Edit        │ 1     │ 0%    │ 357µs  │
│ Delete      │ 1     │ 0%    │ 265µs  │
│ Memory      │ 1     │ 0%    │ 1130ms │
│ RecordStart │ 1     │ 0%    │ 1501ms │
│ RecordStop  │ 1     │ 0%    │ 293ms  │
│ WebFetch    │ 1     │ 0%    │ 109ms  │
╰─────────────┴───────┴───────┴────────╯

Token Usage

╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
│ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
│ ollama_cloud/glm-5.3-flash │ 4758905 │ 4211200 │ 40296      │ 4799201 │ -    │
╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ headless │ 1        │
╰───────────┴──────────┴──────────╯

Triggered by edenreich · Infer Action · OSS

@edenreich
edenreich merged commit b8de57f into main Sep 27, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1358 branch September 27, 2026 16:27
edenreich added a commit that referenced this pull request Sep 27, 2026
## Summary

`@infer /demo` on a PR (or `/demo` in chat) now has a procedure to
follow: a new built-in `demo` skill, seeded into `~/.infer/skills` by
`infer init` like `bug` and `tmux`. It records a short demo GIF of any
project - CLI, TUI or GUI app - so it works in every org repo that runs
infer-action with `record-demo`, desktop included.

It replaces the demo procedure hardcoded in infer-action's
`infer-action-record-demo` reminder (follow-up PR there shrinks it to a
pointer to this skill).

## Why this shape

Every rule comes from the 8 demo runs so far (#1355, #1348, #1359):

| Observed | Skill rule |
|---|---|
| Procedure arrived at turn 28, after 3 takes and a committed `.mp4`
(#1348) | "Record the demo" is the last todo, planned up front;
recording after the work is pushed |
| 4 GIFs in one comment - every probe take became a GIF (#1348, #1359) |
Rehearse with `capture-pane` / Screenshot, record one take, convert only
it to a fixed `~/.infer/artifacts/demo.gif` |
| Take capped at 60 s before the interesting frame - one model turn per
keystroke (#1359) | Whole take as one response of tool calls
(`CallOrder` keeps them in order) |
| Run died on `ImageDecode` of a GIF (API 400) (#1355, #1359) | Check a
take via one PNG frame pulled with ffmpeg |
| `pkill -f "infer chat"` matched the agent's own command line (#1355) |
Quit with the app's own keys; no `pkill -f` / `killall` |
| Own tmux sessions / xterms, not on the recorded display (#1348, #1359)
| CI: only the `demo` session; GUI apps start there with `DISPLAY=:99` |
| MP4 hard-linked into the repo and pushed (#1348) |
`~/.infer/artifacts` is the delivery channel; recordings never enter the
repo |
| Wrong conclusions saved to memory in a run without recording (#1359) |
No memories about demo mechanics - the skill is the source of truth |

## Changes

- `internal/skills/builtins/demo/SKILL.md` - the skill
- `internal/skills/builtins_test.go` - seeds and validates `demo`;
description must route `/demo`
- `docs/skills.md` - listed under built-in skills

## Verification

- `go test ./internal/skills` green; pre-commit hook (mod:tidy, fmt,
lint, markdownlint) passed on the commit
- End-to-end check is `@infer /demo` on #1363 once this ships and
infer-action/`.github` bump their CLI version

## Rollout

1. This PR, released (expected v0.215.0)
2. infer-action: reminder points at the skill, drops its own MP4->GIF
conversion, allows `ffmpeg`, bumps default CLI version
3. `inference-gateway/.github`: bump `cli-version` and the infer-action
tag

Docs: follow-up `[DOCS]` issue for `inference-gateway/docs` still to be
filed.
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.215.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Sep 27, 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.

[FEATURE] Label / autocomplete entries by kind: command, shortcut, skill, remote skill

1 participant