Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support autocomplete/ghost text for extension slash command arguments

オープン
#1,219 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript, typescript

調査の方向性

CommandDefinition の generated/types ドキュメントと、joinSession({ commands: [...] }) を通じて示されている拡張機能の登録から始めます。Copilot CLI でプロジェクトスコープの拡張コマンドがどのように処理されるかを追跡します。Done では、静的な使用または構造化された候補と、動的な引数補完のための、説明をサポートする場合は説明を含む、文書化された SDK サーフェスを提供する必要があります。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Summary

Please add an SDK/API surface that lets Copilot CLI extensions provide autocomplete, ghost text, or structured argument suggestions for extension slash commands.

Scenario

I am building a Copilot CLI extension that registers a deterministic /cost command via joinSession({ commands: [...] }). The command has useful subcommands/options such as:

/cost
/cost help
/cost panel on|off|refresh
/cost session <session-id>
/cost live-session <session-id>
/cost --plan pro|pro-plus|business|enterprise
/cost --billing-model usage-based|premium-requests
/cost --currency USD

Built-in slash commands appear to show ghost text / inline hints for supported arguments as the user types. For extension commands, I only see the command name/description; after typing /cost there does not appear to be a way to suggest supported subcommands/options.

Current SDK surface

The generated/types docs I found for CommandDefinition only expose:

export interface CommandDefinition {
  name: string;
  description?: string;
  handler: CommandHandler;
}

That is enough to register /cost, but not enough to provide argument completions, examples, or dynamic suggestions.

Requested capability

It would be useful if extension commands could declare one or more of the following:

  • static usage text/examples for ghost text after the command name
  • structured subcommands/options/enum values
  • dynamic completion callback based on the current argument prefix and session context
  • optional descriptions for each subcommand/option

For example, something like:

commands: [
  {
    name: 'cost',
    description: 'Show Copilot session cost.',
    usage: 'panel on|off|refresh | session <session-id> | --plan <plan>',
    completions: async ({ args, cursor, sessionId }) => [
      { value: 'panel', description: 'Open or manage the cost panel' },
      { value: 'session', description: 'Show cost for a completed session' },
      { value: '--plan', description: 'Compare against a subscription plan' }
    ],
    handler
  }
]

Why this matters

Extension slash commands can be deterministic command surfaces rather than model-routed prompts. Without argument hints, users have to remember command syntax or run a separate help command. Built-in-command-quality discoverability would make SDK extensions feel native and easier to learn.

Workaround today

The extension can implement /cost help, but that is less discoverable and does not help while typing.

Environment

Observed with Copilot CLI / SDK builds around 1.0.41-0 / 1.0.43 on Windows while authoring a project-scoped extension under .github/extensions/<name>/extension.mjs.

主要言語
Java
スター
10.5k
フォーク
1.5k
平均マージ
1日 9時間
マージ済み PR(30日)
130

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/copilot-sdk のほかの issue

github/copilot-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。