kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

[FEATURE]: VS Code, render slash-command & skill invocations as pills instead of inline text (mid-message `/` trigger + collapsed transcript turn)

Open ehudc opened this issue 3 months ago • 5 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Current behavior

Skill/slash invocations are treated as raw inline text instead of compact references like @-mentions. Two symptoms:

  1. The / picker only fires at the start of a message. Mid-sentence / does nothing, because SLASH_PATTERN is anchored to position 0 — unlike AT_PATTERN ((?:^|\s)), which also fires after whitespace.
  2. Sending a /skill dumps its whole body into my turn. The server expands the skill's SKILL.md into the message parts (prompt.ts), replacing the compact /review I briefly see (optimistic render) with a wall of text. Correct for feeding the model, but my transcript turn should stay a compact reference.

The request

Both of the above symptoms reduce to one idea: a skill invocation should render as a pill (display decoupled from payload), like @-mentions and the attachment pills (see relationship to #12831 below).

Example in Copilot VSCode of pill-styled skill with description hoverable: Image

Example in Claude Code of a skill picker loaded mid-sentence: Image

Proposed behavior

  1. Trigger mid-message — widen SLASH_PATTERN to /(?:^|\s)\/(\S*)$/. Note the submit path is also start-anchored (/^\/(\S+)/) and dispatches the command as the whole message via sendCommand(name, args), so recognizing a mid-message command on submit is a second change, not just the picker regex.
  2. Pill in the composer — on selection, insert a styled token instead of the current plain-text /${cmd.name} ; reuse the @-mention insertion/rendering path (useFileMention.ts).
  3. Pill in the transcript — render a sent skill turn as a collapsed /review + expandable body. Blocker: the non-subtask path builds the turn purely from the expanded template (prompt.ts) and persists no command marker — name/args survive only in Command.Event.Executed telemetry — so origin metadata must be persisted on the turn first. The subtask card and skill tool already carry it — this makes the default-agent path consistent.

Scope: apply pills to skill/template-backed commands (surfaced via fromSkill, source: "skill"). Leave pure action commands (/new, /models, /compact) — which clear the input and run locally (client-action branch) — as-is.

Why

Parity with the @-mention / attachment-pill UX (#12831), a cleaner transcript, and the ability to reference a skill mid-sentence — and, depending on the open question below, to compose multiple skills in one message. It also removes an existing inconsistency: subagent-routed skills (subtask card) and model-invoked skills (skill tool) already display compactly; only a user-typed /skill on the default agent inlines the whole body.

Relationship to #12831

Same "pill, not inline bloat" principle as #12831, applied to executable /-command/skill invocations. Filing separately because it's post-send transcript rendering plus a server-side metadata/dispatch change, not the composer attachment-pill work already in flight.

Open extra thought / question: should a mid-message skill pill expand inline, or ride as a separate part (like the skill tool) so multiple skills can chain in one message?

ehudc avatar Aug 07 '26 02:08 ehudc

@ehudc

There is a bug when using the command.

For example, when using /skill1 (e.g., /impeccable).

It loads all the files of the skill to the prompts, which is incorrect (it load all files to the prompt eg: 1000 lines with is insane).

It should keep the same format.

This happened with all command and with all kilo versions.

zakimimit avatar Aug 09 '26 10:08 zakimimit

I don't know if it's incorrect or unintended or actually intended. That's why this is a feature request instead of a bug. I clarified the description to explicitly separate current behavior from requested.

ehudc avatar Aug 09 '26 10:08 ehudc

@ehudc It should load the skills and the command like the cli behaviour, load it and run it without showing it in the prompt

zakimimit avatar Aug 09 '26 15:08 zakimimit

Not sure I understand, I don't use the cli to know what that looks like. But regardless, the request sounds extremely similar: stop loading the entire skill in the prompt. I go further to point out how it appears in other tools, for example in one as a pill in-line, which is how I've seen it done to enable multiple skill references in a single message.

ehudc avatar Aug 09 '26 17:08 ehudc

To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please reopen it or create a fresh new one.

github-actions[bot] avatar Oct 09 '26 06:10 github-actions[bot]