From e217ed1b389cfffae3ea82836ca01a2f44491387 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 02:46:33 +0000 Subject: [PATCH] docs: refresh Copilot CLI/SDK workshop from upstream sources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📝 - Generated by Copilot --- .../appendix/references.ja.md | 9 +++++++++ docs/copilot_cli_tutorial/appendix/references.md | 9 +++++++++ docs/copilot_cli_tutorial/features.ja.md | 16 +++++++++++++--- docs/copilot_cli_tutorial/features.md | 16 +++++++++++++--- docs/copilot_cli_tutorial/getting_started.ja.md | 3 ++- docs/copilot_cli_tutorial/getting_started.md | 3 ++- .../appendix/references.ja.md | 4 ++-- docs/copilot_sdk_tutorial/appendix/references.md | 2 ++ 8 files changed, 52 insertions(+), 10 deletions(-) diff --git a/docs/copilot_cli_tutorial/appendix/references.ja.md b/docs/copilot_cli_tutorial/appendix/references.ja.md index 7a092c4..d61ab3b 100644 --- a/docs/copilot_cli_tutorial/appendix/references.ja.md +++ b/docs/copilot_cli_tutorial/appendix/references.ja.md @@ -64,6 +64,15 @@ | 日付 | 変更 | 出典 | |------|------|------| +| 2026-07-09 | GPT-5.6 Sol、Terra、Luna が GitHub Copilot(CLI 含む)に展開開始。Sol は Pro+/Max/Business/Enterprise 向け、Terra・Luna は Pro 以上が対象。管理者はポリシーを有効化する必要あり | [GitHub Blog Changelog](https://github.blog/changelog/2026-07-09-openais-gpt-5-6-sol-terra-and-luna-are-now-available-in-github-copilot) | +| 2026-07-09 | CLI 1.0.70:GPT-5.6 モデル対応、`/refine` コマンド、`--sandbox`/`--no-sandbox` セッションフラグ、信頼済みリポジトリ `.github/copilot/settings.json`(モデル/effort/コンテキスト固定・deny リスト拡張)、`preToolUse` 終了コード 2 でツール呼び出しを拒否 | [copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09) | +| 2026-07-08 | Copilot CLI と VS Code 向けに Enterprise 管理の OpenTelemetry エクスポートが GA:OTLP エンドポイント・トランスポート・サービス名・コンテンツキャプチャポリシーを管理者が一元制御 | [GitHub Blog Changelog](https://github.blog/changelog/2026-07-08-enterprise-managed-opentelemetry-export-for-vs-code-and-cli) | +| 2026-07-08 | 管理者が Copilot 設定をネイティブ MDM(Windows Registry、macOS managed preferences)およびファイルベースの `managed-settings.json` 経由で配信できるように GA | [GitHub Blog Changelog](https://github.blog/changelog/2026-07-08-deploy-managed-copilot-settings-via-mdm-in-vs-code-and-cli) | +| 2026-07-07 | Copilot usage metrics API が AI 採用フェーズコホートごとに `avg_pull_requests_minutes_to_review` と `avg_pull_requests_review_cycles` を追加 | [GitHub Blog Changelog](https://github.blog/changelog/2026-07-07-add-review-cycles-and-time-to-adoption-phases-in-the-usage-api) | +| 2026-07-07 | CLI 1.0.69:インストール済みプラグインを管理する `/plugins` ダッシュボード、`gemini-3.5-flash` に minimal reasoning effort を追加、`/allow-all auto` は experimental モード必須に | [copilot-cli changelog 1.0.69](https://github.com/github/copilot-cli/blob/main/changelog.md#1069---2026-07-07) | +| 2026-07-01 | CLI 1.0.68:kimi-k2.7-code モデルサポートを追加 | [copilot-cli changelog 1.0.68](https://github.com/github/copilot-cli/blob/main/changelog.md#1068---2026-07-01) | +| 2026-06-30 | CLI 1.0.67:Claude Sonnet 5 を対応モデルとして追加、セッション制限の最低値を 30 AI クレジットに設定 | [copilot-cli changelog 1.0.67](https://github.com/github/copilot-cli/blob/main/changelog.md#1067---2026-06-30) | +| 2026-06-30 | CLI 1.0.66:Claude Opus 4.8 (fast) を追加、Claude Opus 4.6 (fast) を deprecated。`/plugins` ダッシュボード、コンパクトタイムライン、`stayInAutopilot` 設定 | [copilot-cli changelog 1.0.66](https://github.com/github/copilot-cli/blob/main/changelog.md#1066---2026-06-30) | | 2026-06-29 | Claude Opus 4.8(fast mode)が Copilot CLI を含む各サーフェスでプレビュー提供開始(管理者ポリシーは既定でオフ) | [GitHub Blog Changelog](https://github.blog/changelog/2026-06-29-claude-opus-4-8-fast-mode-is-now-in-preview-for-github-copilot) | | 2026-06-26 | MAI-Code-1-Flash が Copilot Business / Copilot Enterprise で一般提供(GA) | [GitHub Blog Changelog](https://github.blog/changelog/2026-06-26-mai-code-1-flash-for-copilot-business-and-copilot-enterprise) | | 2026-06-25 | Copilot コードレビューが CLI/SDK の `grep`/`rg`/`glob`/`view` ファイルツールを利用(レビューコスト約 20% 削減)し、組織レベルの既定 Medium 分析深度を追加 | [GitHub Blog Changelog](https://github.blog/changelog/2026-06-25-copilot-code-review-analysis-depth-and-efficiency-updates) | diff --git a/docs/copilot_cli_tutorial/appendix/references.md b/docs/copilot_cli_tutorial/appendix/references.md index a3287dc..b9d6332 100644 --- a/docs/copilot_cli_tutorial/appendix/references.md +++ b/docs/copilot_cli_tutorial/appendix/references.md @@ -64,6 +64,15 @@ Check these sources before each workshop run. Copilot CLI changes quickly enough | Date | Change | Source | |------|--------|--------| +| 2026-07-09 | GPT-5.6 Sol, Terra, and Luna available in GitHub Copilot (CLI included); Sol for Pro+/Max/Business/Enterprise, Terra and Luna for Pro and above; admins must enable policy | [GitHub Blog Changelog](https://github.blog/changelog/2026-07-09-openais-gpt-5-6-sol-terra-and-luna-are-now-available-in-github-copilot) | +| 2026-07-09 | CLI 1.0.70: GPT-5.6 model support, `/refine` command, `--sandbox`/`--no-sandbox` session flags, trusted-repo `.github/copilot/settings.json` (model/effort/context pin + deny-list extension), `preToolUse` exit code 2 denies tool calls | [copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09) | +| 2026-07-08 | Enterprise-managed OpenTelemetry export GA for Copilot CLI and VS Code: admins can mandate OTLP endpoint, transport, service name, and content-capture policy via managed settings | [GitHub Blog Changelog](https://github.blog/changelog/2026-07-08-enterprise-managed-opentelemetry-export-for-vs-code-and-cli) | +| 2026-07-08 | Managed Copilot settings now deployable via native MDM (Windows Registry, macOS managed preferences) and file-based `managed-settings.json`, in addition to server-managed channel | [GitHub Blog Changelog](https://github.blog/changelog/2026-07-08-deploy-managed-copilot-settings-via-mdm-in-vs-code-and-cli) | +| 2026-07-07 | Copilot usage metrics API adds `avg_pull_requests_minutes_to_review` and `avg_pull_requests_review_cycles` per adoption-phase cohort | [GitHub Blog Changelog](https://github.blog/changelog/2026-07-07-add-review-cycles-and-time-to-adoption-phases-in-the-usage-api) | +| 2026-07-07 | CLI 1.0.69: `/plugins` dashboard for managing installed plugins; `gemini-3.5-flash` gains minimal reasoning effort option; `/allow-all auto` requires experimental mode | [copilot-cli changelog 1.0.69](https://github.com/github/copilot-cli/blob/main/changelog.md#1069---2026-07-07) | +| 2026-07-01 | CLI 1.0.68: kimi-k2.7-code model support added | [copilot-cli changelog 1.0.68](https://github.com/github/copilot-cli/blob/main/changelog.md#1068---2026-07-01) | +| 2026-06-30 | CLI 1.0.67: Claude Sonnet 5 added as a supported model; session limits require at least 30 AI credits | [copilot-cli changelog 1.0.67](https://github.com/github/copilot-cli/blob/main/changelog.md#1067---2026-06-30) | +| 2026-06-30 | CLI 1.0.66: Claude Opus 4.8 (fast) added; Claude Opus 4.6 (fast) deprecated; `/plugins` dashboard, compact timeline highlight reel, `stayInAutopilot` setting | [copilot-cli changelog 1.0.66](https://github.com/github/copilot-cli/blob/main/changelog.md#1066---2026-06-30) | | 2026-06-29 | Claude Opus 4.8 (fast mode) entered preview across Copilot surfaces including Copilot CLI (admin policy off by default) | [GitHub Blog Changelog](https://github.blog/changelog/2026-06-29-claude-opus-4-8-fast-mode-is-now-in-preview-for-github-copilot) | | 2026-06-26 | MAI-Code-1-Flash reached general availability for Copilot Business and Copilot Enterprise | [GitHub Blog Changelog](https://github.blog/changelog/2026-06-26-mai-code-1-flash-for-copilot-business-and-copilot-enterprise) | | 2026-06-25 | Copilot code review now uses the CLI/SDK `grep`/`rg`/`glob`/`view` file tools (~20% lower review cost) and adds org-level default Medium analysis depth | [GitHub Blog Changelog](https://github.blog/changelog/2026-06-25-copilot-code-review-analysis-depth-and-efficiency-updates) | diff --git a/docs/copilot_cli_tutorial/features.ja.md b/docs/copilot_cli_tutorial/features.ja.md index e62983e..fc2b638 100644 --- a/docs/copilot_cli_tutorial/features.ja.md +++ b/docs/copilot_cli_tutorial/features.ja.md @@ -24,11 +24,15 @@ | ローカル/外部プロバイダー検証 | BYOK 設定を使う([BYOK](#byok) を参照) | モデルはツール呼び出しとストリーミングをサポートする必要がある | !!! warning "モデルのライフサイクルは短い" - 最近の changelog だけでも、GPT-4.1 は 2026-06-01 に deprecated、GPT-5.2 と GPT-5.2-Codex は 2026-06-05 に多くの Copilot 体験で deprecated、Opus 4.6 (fast) は 2026-06-29 に deprecated 予定です([GPT-4.1 deprecated](https://github.blog/changelog/2026-06-02-gpt-4-1-deprecated)、[GPT-5.2 and GPT-5.2-Codex deprecated](https://github.blog/changelog/2026-06-05-gpt-5-2-and-gpt-5-2-codex-deprecated)、[Upcoming deprecation of Opus 4.6 fast](https://github.blog/changelog/2026-06-18-upcoming-deprecation-of-opus-4-6-fast))。ワークショップ実施前に `/model`、[supported models](https://docs.github.com/copilot/reference/ai-models/supported-models)、[GitHub Blog Copilot changelog](https://github.blog/changelog/label/copilot/) を確認してください。 + 最近の changelog だけでも、GPT-4.1 は 2026-06-01 に deprecated、GPT-5.2 と GPT-5.2-Codex は 2026-06-05 に多くの Copilot 体験で deprecated、Claude Opus 4.6 (fast) は CLI 1.0.66(2026-06-30)で deprecated となり Claude Opus 4.8 (fast) に置き換えられました([GPT-4.1 deprecated](https://github.blog/changelog/2026-06-02-gpt-4-1-deprecated)、[GPT-5.2 and GPT-5.2-Codex deprecated](https://github.blog/changelog/2026-06-05-gpt-5-2-and-gpt-5-2-codex-deprecated)、[copilot-cli changelog 1.0.66](https://github.com/github/copilot-cli/blob/main/changelog.md#1066---2026-06-30))。ワークショップ実施前に `/model`、[supported models](https://docs.github.com/copilot/reference/ai-models/supported-models)、[GitHub Blog Copilot changelog](https://github.blog/changelog/label/copilot/) を確認してください。 固定の演習手順にしない範囲で、最近の追加として押さえるべき点は次のとおりです。 -- Gemini 3.1 Pro (Preview) と Gemini 3.5 Flash は、プランとポリシーが許せば Copilot CLI で利用できます。Business/Enterprise 管理者はモデルポリシーで opt in する必要があります([Gemini models in Copilot CLI](https://github.blog/changelog/2026-06-02-gemini-models-in-copilot-cli-cloud-agent-and-the-copilot-app))。 +- **GPT-5.6 Sol、Terra、Luna** が GitHub Copilot に順次展開中です。Sol は大規模コードベースでの複雑な推論向け、Terra はバランスのとれた日常利用向け、Luna は軽量でコスト効率重視の用途向けです。Sol は Copilot Pro+、Max、Business、Enterprise が対象、Terra と Luna は Pro 以上が対象です。Business/Enterprise 管理者はポリシーを有効化する必要があります([GPT-5.6 Sol, Terra, and Luna in GitHub Copilot](https://github.blog/changelog/2026-07-09-openais-gpt-5-6-sol-terra-and-luna-are-now-available-in-github-copilot))。 +- **Claude Sonnet 5** が Copilot CLI で利用可能になりました(CLI 1.0.67 で追加)([copilot-cli changelog 1.0.67](https://github.com/github/copilot-cli/blob/main/changelog.md#1067---2026-06-30))。 +- **Claude Opus 4.8 (fast)** が利用可能になりました。deprecated となった Claude Opus 4.6 (fast) の後継です([copilot-cli changelog 1.0.66](https://github.com/github/copilot-cli/blob/main/changelog.md#1066---2026-06-30))。 +- **kimi-k2.7-code** が Copilot CLI でサポートされました(CLI 1.0.68 で追加)([copilot-cli changelog 1.0.68](https://github.com/github/copilot-cli/blob/main/changelog.md#1068---2026-07-01))。 +- Gemini 3.1 Pro (Preview) と Gemini 3.5 Flash は、プランとポリシーが許せば Copilot CLI で利用できます。Gemini 3.5 Flash は新たに **minimal reasoning effort** レベルをサポートし、高速かつコスト効率の高いレスポンスが得られます。Business/Enterprise 管理者はモデルポリシーで opt in する必要があります([Gemini models in Copilot CLI](https://github.blog/changelog/2026-06-02-gemini-models-in-copilot-cli-cloud-agent-and-the-copilot-app)、[copilot-cli changelog 1.0.69](https://github.com/github/copilot-cli/blob/main/changelog.md#1069---2026-07-07))。 - MAI-Code-1-Flash は Copilot Business および Copilot Enterprise で一般提供(GA)になりました(管理者はポリシーを有効化する必要があります)。Copilot CLI でもプランごとに段階的に提供されます([MAI-Code-1-Flash for Copilot Business and Copilot Enterprise](https://github.blog/changelog/2026-06-26-mai-code-1-flash-for-copilot-business-and-copilot-enterprise)、[MAI-Code-1-Flash available on more Copilot surfaces](https://github.blog/changelog/2026-06-18-mai-code-1-flash-available-on-more-copilot-surfaces))。 - Enterprise 管理者が構成した外部プロバイダーモデルは Copilot CLI の model picker に表示されます。一方で個人ユーザーはクライアント側 BYOK プロバイダーも構成できます([Copilot CLI supports enterprise BYOK models](https://github.blog/changelog/2026-06-17-copilot-cli-supports-enterprise-bring-your-own-key-byok-models))。 - Free および Student プランは Copilot の auto モデル選択を既定かつ唯一の方式とするようになり、Microsoft 提供モデルからは `(Preview)` ラベルが廃止されます。固定の一覧ではなく `/model` で最新の利用可否を確認すべきもう一つの理由です([Changes to model selection for Free and Student plans](https://github.blog/changelog/2026-06-24-changes-to-model-selection-for-free-and-student-plans))。 @@ -201,9 +205,10 @@ GitHub は **Agent finder** も展開しています。これは許可された ### プラグインと awesome-copilot マーケットプレイス -プラグインは、関連する指示・スキル・エージェント・フックを 1 つのインストール可能な単位にまとめたもので、プラグイン *マーケットプレイス* を通じて配布されます。セッション内では `/plugin`(シェルからは `copilot plugin`)で管理します([About GitHub Copilot plugins](https://docs.github.com/en/copilot/concepts/agents/about-plugins)、[CLI command reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference))。 +プラグインは、関連する指示・スキル・エージェント・フックを 1 つのインストール可能な単位にまとめたもので、プラグイン *マーケットプレイス* を通じて配布されます。セッション内では `/plugin`(シェルからは `copilot plugin`)で管理するか、専用の **`/plugins` ダッシュボード**(CLI 1.0.69 で追加)を使って総合管理 UI を開けます([About GitHub Copilot plugins](https://docs.github.com/en/copilot/concepts/agents/about-plugins)、[CLI command reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference))。 ```text +> /plugins # プラグイン管理ダッシュボードを開く > /plugin marketplace list # 登録済みマーケットプレイスを一覧 > /plugin list # インストール済みプラグインを確認 > /plugin install @awesome-copilot # 特定のプラグインをインストール @@ -218,6 +223,8 @@ GitHub のコミュニティコレクション [github/awesome-copilot](https:// フックは、エージェントのライフサイクルの要所でカスタムシェルコマンドを実行できます。検証・権限チェック・ロギング・セキュリティスキャンなどに使えます([About hooks for GitHub Copilot](https://docs.github.com/en/copilot/concepts/agents/hooks))。フックは CLI・IDE・クラウドエージェントでサポートされます。 +CLI 1.0.70 より、**`preToolUse` フックが終了コード 2 で終了するとツール呼び出しを拒否** します。フック自体はエラーとして扱われず、特定のツール呼び出しをフックスクリプトから明示的にブロックするためのクリーンな方法です([copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09))。 + ### Copilot Memory Copilot は、リポジトリの規約やパターンに関する持続的な「メモリ」を推論して保存でき、プロンプトでの繰り返しの説明を減らせます([About GitHub Copilot Memory](https://docs.github.com/en/copilot/concepts/agents/copilot-memory))。 @@ -299,6 +306,8 @@ Copilot が代わりに取る操作(ツール実行、コマンド実行、フ > /sandbox disable # 無効化 ``` +起動時に `--sandbox` または `--no-sandbox` フラグを使うと、保存済みのサンドボックス設定を変えずに **現在のセッション限定** で OS レベルのシェルサンドボックスをオン/オフできます。`-p`(プログラマティック)モードとの組み合わせに便利です([copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09))。 + | タブ | 主な設定 | |------|----------| | **General** | *Sandboxing enabled*; *Allow keychain access*(`git`/`gh` の credential helper 用の macOS Keychain。資格情報の読み取りを防ぐにはオフ) | @@ -416,6 +425,7 @@ BYOK には 2 つの経路があります。 | **ローカル音声入力** | Space を長押し、または ++ctrl+x++ のあと `V` | [Copilot CLI improved UI, rubber duck, scheduling, and voice input](https://github.blog/changelog/2026-06-02-copilot-cli-improved-ui-rubber-duck-prompt-scheduling-and-voice-input) | | **推論の可視化を切り替え** | ++ctrl+t++ | [Using Copilot CLI](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/use-copilot-cli) | | **セカンドオピニオンを得る** | `/rubber-duck` | [Copilot CLI improved UI, rubber duck, scheduling, and voice input](https://github.blog/changelog/2026-06-02-copilot-cli-improved-ui-rubber-duck-prompt-scheduling-and-voice-input) | +| **雑なプロンプトを明確に書き直す** | `/refine` | [copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09) | | **セキュリティに絞ったローカルレビュー** | `/security-review`(全ユーザーが利用可能) | [copilot-cli changelog 1.0.64](https://github.com/github/copilot-cli/blob/main/changelog.md#1064---2026-06-23) | | **worktree を作成/切り替え** | `/worktree`(alias `/move`) | [copilot-cli changelog 1.0.61](https://github.com/github/copilot-cli/blob/main/changelog.md#1061---2026-06-09) | | **セッションの変更をレビュー** | `/diff` | [copilot-cli changelog](https://github.com/github/copilot-cli/blob/main/changelog.md) | diff --git a/docs/copilot_cli_tutorial/features.md b/docs/copilot_cli_tutorial/features.md index a254304..717db6f 100644 --- a/docs/copilot_cli_tutorial/features.md +++ b/docs/copilot_cli_tutorial/features.md @@ -24,11 +24,15 @@ Use this decision table instead: | Local or external-provider experiments | Use BYOK settings (see [BYOK](#byok)) | Model must support tool calling and streaming | !!! warning "Model lifecycle changes quickly" - Recent changelog examples show why fixed model lists go stale: GPT-4.1 was deprecated on 2026-06-01, GPT-5.2 and GPT-5.2-Codex were deprecated across most Copilot experiences on 2026-06-05, and Opus 4.6 (fast) is scheduled for deprecation on 2026-06-29 ([GPT-4.1 deprecated](https://github.blog/changelog/2026-06-02-gpt-4-1-deprecated), [GPT-5.2 and GPT-5.2-Codex deprecated](https://github.blog/changelog/2026-06-05-gpt-5-2-and-gpt-5-2-codex-deprecated), [Upcoming deprecation of Opus 4.6 fast](https://github.blog/changelog/2026-06-18-upcoming-deprecation-of-opus-4-6-fast)). Before running a workshop, check `/model`, [supported models](https://docs.github.com/copilot/reference/ai-models/supported-models), and the [GitHub Blog Copilot changelog](https://github.blog/changelog/label/copilot/). + Recent changelog examples show why fixed model lists go stale: GPT-4.1 was deprecated on 2026-06-01, GPT-5.2 and GPT-5.2-Codex were deprecated across most Copilot experiences on 2026-06-05, and Claude Opus 4.6 (fast) was deprecated in CLI 1.0.66 (2026-06-30) and replaced by Claude Opus 4.8 (fast) ([GPT-4.1 deprecated](https://github.blog/changelog/2026-06-02-gpt-4-1-deprecated), [GPT-5.2 and GPT-5.2-Codex deprecated](https://github.blog/changelog/2026-06-05-gpt-5-2-and-gpt-5-2-codex-deprecated), [copilot-cli changelog 1.0.66](https://github.com/github/copilot-cli/blob/main/changelog.md#1066---2026-06-30)). Before running a workshop, check `/model`, [supported models](https://docs.github.com/copilot/reference/ai-models/supported-models), and the [GitHub Blog Copilot changelog](https://github.blog/changelog/label/copilot/). Recent additions worth knowing, without hard-coding them into exercises: -- Gemini 3.1 Pro (Preview) and Gemini 3.5 Flash are available on Copilot CLI when plan and policy allow them; Business/Enterprise admins must opt in via model policy ([Gemini models in Copilot CLI](https://github.blog/changelog/2026-06-02-gemini-models-in-copilot-cli-cloud-agent-and-the-copilot-app)). +- **GPT-5.6 Sol, Terra, and Luna** are rolling out in GitHub Copilot. Sol targets complex reasoning over large codebases; Terra is a balanced everyday option; Luna is lightweight and cost-efficient. Sol requires Copilot Pro+, Max, Business, or Enterprise; Terra and Luna are available on Pro and above. Business/Enterprise admins must enable the policy ([GPT-5.6 Sol, Terra, and Luna in GitHub Copilot](https://github.blog/changelog/2026-07-09-openais-gpt-5-6-sol-terra-and-luna-are-now-available-in-github-copilot)). +- **Claude Sonnet 5** is available in Copilot CLI (added in CLI 1.0.67) ([copilot-cli changelog 1.0.67](https://github.com/github/copilot-cli/blob/main/changelog.md#1067---2026-06-30)). +- **Claude Opus 4.8 (fast)** is available; it replaces the deprecated Claude Opus 4.6 (fast) ([copilot-cli changelog 1.0.66](https://github.com/github/copilot-cli/blob/main/changelog.md#1066---2026-06-30)). +- **kimi-k2.7-code** is supported in Copilot CLI (added in CLI 1.0.68) ([copilot-cli changelog 1.0.68](https://github.com/github/copilot-cli/blob/main/changelog.md#1068---2026-07-01)). +- Gemini 3.1 Pro (Preview) and Gemini 3.5 Flash are available on Copilot CLI when plan and policy allow them. Gemini 3.5 Flash now additionally supports a **minimal reasoning effort** level for fast, cost-efficient responses; Business/Enterprise admins must opt in via model policy ([Gemini models in Copilot CLI](https://github.blog/changelog/2026-06-02-gemini-models-in-copilot-cli-cloud-agent-and-the-copilot-app), [copilot-cli changelog 1.0.69](https://github.com/github/copilot-cli/blob/main/changelog.md#1069---2026-07-07)). - MAI-Code-1-Flash reached general availability for Copilot Business and Copilot Enterprise (admins must enable the policy); it is also available on Copilot CLI with staged availability by plan ([MAI-Code-1-Flash for Copilot Business and Copilot Enterprise](https://github.blog/changelog/2026-06-26-mai-code-1-flash-for-copilot-business-and-copilot-enterprise), [MAI-Code-1-Flash available on more Copilot surfaces](https://github.blog/changelog/2026-06-18-mai-code-1-flash-available-on-more-copilot-surfaces)). - Enterprise-admin configured external-provider models now appear in the Copilot CLI model picker, while individual users can still configure client-side BYOK providers ([Copilot CLI supports enterprise BYOK models](https://github.blog/changelog/2026-06-17-copilot-cli-supports-enterprise-bring-your-own-key-byok-models)). - Free and Student plans now use Copilot auto model selection as the default and only experience, and the `(Preview)` label is being retired from Microsoft-released models — another reason to read availability live from `/model` rather than a fixed list ([Changes to model selection for Free and Student plans](https://github.blog/changelog/2026-06-24-changes-to-model-selection-for-free-and-student-plans)). @@ -201,9 +205,10 @@ Skills enhance Copilot with instructions, scripts, and resources for specialized ### Plugins & the awesome-copilot marketplace -Plugins bundle related instructions, skills, agents, and hooks into a single installable unit, distributed through plugin *marketplaces*. Manage them with `/plugin` in a session (or `copilot plugin` from the shell) ([About GitHub Copilot plugins](https://docs.github.com/en/copilot/concepts/agents/about-plugins); [CLI command reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference)): +Plugins bundle related instructions, skills, agents, and hooks into a single installable unit, distributed through plugin *marketplaces*. Manage them with `/plugin` in a session (or `copilot plugin` from the shell), or open the dedicated **`/plugins` dashboard** (added in CLI 1.0.69) for a full management UI ([About GitHub Copilot plugins](https://docs.github.com/en/copilot/concepts/agents/about-plugins); [CLI command reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference)): ```text +> /plugins # open the plugins management dashboard > /plugin marketplace list # browse registered marketplaces > /plugin list # see installed plugins > /plugin install @awesome-copilot # install a specific plugin @@ -218,6 +223,8 @@ GitHub's community collection — [github/awesome-copilot](https://github.com/gi Hooks let you run custom shell commands at key points in the agent's lifecycle — for validation, permission checks, logging, or security scanning ([About hooks for GitHub Copilot](https://docs.github.com/en/copilot/concepts/agents/hooks)). Hooks are supported by the CLI, the IDE, and the cloud agent. +As of CLI 1.0.70, **`preToolUse` hooks that exit with code 2 deny the tool call** without marking the hook itself as an error — a clean way to block specific tool invocations from a hook script ([copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09)). + ### Copilot Memory Copilot can deduce and store durable "memories" about a repository's conventions and patterns, reducing repeated context in prompts ([About GitHub Copilot Memory](https://docs.github.com/en/copilot/concepts/agents/copilot-memory)). @@ -299,6 +306,8 @@ Local sandboxing runs Copilot in a sandbox **directly on your machine**, restric > /sandbox disable # turn it off ``` +Use `--sandbox` or `--no-sandbox` flags at startup to turn the OS-level shell sandbox on or off **for the current session only**, without changing your saved sandbox setting — useful with `-p` (programmatic) mode ([copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09)). + | Tab | Key settings | |-----|--------------| | **General** | *Sandboxing enabled*; *Allow keychain access* (macOS Keychain for `git`/`gh` credential helpers — turn off to block credential reads) | @@ -416,6 +425,7 @@ Requirements and caveats: | **Dictate prompts locally** | hold Space, or press ++ctrl+x++ then `V` | [Copilot CLI improved UI, rubber duck, scheduling, and voice input](https://github.blog/changelog/2026-06-02-copilot-cli-improved-ui-rubber-duck-prompt-scheduling-and-voice-input) | | **Toggle reasoning visibility** | ++ctrl+t++ | [Using Copilot CLI](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/use-copilot-cli) | | **Get a second opinion** | `/rubber-duck` | [Copilot CLI improved UI, rubber duck, scheduling, and voice input](https://github.blog/changelog/2026-06-02-copilot-cli-improved-ui-rubber-duck-prompt-scheduling-and-voice-input) | +| **Rewrite a rough prompt into a clear one** | `/refine` | [copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09) | | **Security-focused local review** | `/security-review` (available to all users) | [copilot-cli changelog 1.0.64](https://github.com/github/copilot-cli/blob/main/changelog.md#1064---2026-06-23) | | **Create/switch to a worktree** | `/worktree` (alias `/move`) | [copilot-cli changelog 1.0.61](https://github.com/github/copilot-cli/blob/main/changelog.md#1061---2026-06-09) | | **Review session changes** | `/diff` | [copilot-cli changelog](https://github.com/github/copilot-cli/blob/main/changelog.md) | diff --git a/docs/copilot_cli_tutorial/getting_started.ja.md b/docs/copilot_cli_tutorial/getting_started.ja.md index 4a384ac..f5d0b40 100644 --- a/docs/copilot_cli_tutorial/getting_started.ja.md +++ b/docs/copilot_cli_tutorial/getting_started.ja.md @@ -131,7 +131,7 @@ Copilot CLI は **グローバル**(あなた)と **リポジトリ**(プ ```mermaid graph TD - S["Session — highest priority
--model, --experimental, /model, flags"] --> R["Repository
.github/copilot-instructions.md
.github/instructions/**/*.instructions.md
AGENTS.md, .github/agents, .github/skills"] + S["Session — highest priority
--model, --experimental, /model, flags"] --> R["Repository
.github/copilot-instructions.md
.github/instructions/**/*.instructions.md
AGENTS.md, .github/agents, .github/skills
.github/copilot/settings.json(信頼済みリポジトリ)"] R --> G["Global — user level
~/.copilot/settings.json
~/.copilot/copilot-instructions.md
~/.copilot/agents, mcp-config.json"] ``` @@ -140,6 +140,7 @@ graph TD - **カスタム指示ファイルは優先フォールバックではなく *結合* されるようになりました**。競合時はリポジトリの指示がグローバルより優先されます。 - グローバル設定ディレクトリは **`~/.copilot/`** です(`COPILOT_HOME` 環境変数で上書き可能)。ユーザー設定は `settings.json` に保存され、MCP、LSP、エージェント、指示、セッション状態のファイルがその周辺に置かれます。`.github/mcp.json` のような新しいワークスペース設定ファイルは changelog で確認するのが確実です([copilot-cli changelog](https://github.com/github/copilot-cli/blob/main/changelog.md))。 - 設定は `/settings` で編集します。検索可能なダイアログを開くほか、`/settings autoUpdate true` のようなインライン設定や、既定値へのリセットに対応します([GitHub Blog Changelog: `/settings`](https://github.blog/changelog/2026-06-11-copilot-cli-configure-everything-from-one-place-with-settings))。 +- **信頼済みリポジトリの設定**(`.github/copilot/settings.json`): 信頼しているリポジトリは、そこで開くすべてのセッションのモデル・推論レベル・コンテキストティアを固定し、URL/MCP/スキルの deny リストを拡張できます。ユーザー設定にマージされ、セッション開始時に適用されます([copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09))。 各レイヤーは [Feature Deep Dive](features.md) で詳しく解説します。 diff --git a/docs/copilot_cli_tutorial/getting_started.md b/docs/copilot_cli_tutorial/getting_started.md index ae6dc99..1d9cedd 100644 --- a/docs/copilot_cli_tutorial/getting_started.md +++ b/docs/copilot_cli_tutorial/getting_started.md @@ -131,7 +131,7 @@ Copilot CLI composes configuration from **global** (you) and **repository** (pro ```mermaid graph TD - S["Session — highest priority
--model, --experimental, /model, flags"] --> R["Repository
.github/copilot-instructions.md
.github/instructions/**/*.instructions.md
AGENTS.md, .github/agents, .github/skills"] + S["Session — highest priority
--model, --experimental, /model, flags"] --> R["Repository
.github/copilot-instructions.md
.github/instructions/**/*.instructions.md
AGENTS.md, .github/agents, .github/skills
.github/copilot/settings.json (trusted repos)"] R --> G["Global — user level
~/.copilot/settings.json
~/.copilot/copilot-instructions.md
~/.copilot/agents, mcp-config.json"] ``` @@ -140,6 +140,7 @@ Key facts to internalize ([Best practices](https://docs.github.com/en/copilot/ho - **Custom-instruction files now *combine*** rather than using priority-based fallback. Repository instructions take precedence over global ones on conflict. - The global config directory is **`~/.copilot/`** (override with the `COPILOT_HOME` environment variable). User settings are stored in `settings.json`; MCP, LSP, agent, instruction, and session-state files live alongside it. The changelog is the best source for new workspace-level config files such as `.github/mcp.json` ([copilot-cli changelog](https://github.com/github/copilot-cli/blob/main/changelog.md)). - Edit settings with `/settings`. It opens a searchable dialog, supports inline values such as `/settings autoUpdate true`, and can reset a key to its default ([GitHub Blog Changelog: `/settings`](https://github.blog/changelog/2026-06-11-copilot-cli-configure-everything-from-one-place-with-settings)). +- **Trusted-repo settings** (``.github/copilot/settings.json``): a repository you trust can pin the model, reasoning effort level, and context tier for all sessions opened in it, and extend the URL/MCP/skill deny lists. These merge with your user settings and are applied at session start ([copilot-cli changelog 1.0.70](https://github.com/github/copilot-cli/blob/main/changelog.md#1070---2026-07-09)). We dissect each layer in the [Feature Deep Dive](features.md). diff --git a/docs/copilot_sdk_tutorial/appendix/references.ja.md b/docs/copilot_sdk_tutorial/appendix/references.ja.md index f613ffd..009042f 100644 --- a/docs/copilot_sdk_tutorial/appendix/references.ja.md +++ b/docs/copilot_sdk_tutorial/appendix/references.ja.md @@ -87,9 +87,9 @@ GitHub Copilot SDK に関する外部リンクとさらなる参考情報です | 日付 | 変更内容 | 出典 | |------|---------|------| +| 2026-07-08 | SDK v1.0.6:実験的なコンテキスト帰属 API(`session.metadata` の `getContextAttribution`・`getContextHeaviestMessages`)、選択肢付きスラッシュコマンド入力(`SlashCommandInput.choices`)、実験的な GitHub テレメトリ転送、Python での Pydantic `ValidationError` を LLM に渡すツール引数バリデーション | [Copilot SDK v1.0.6](https://github.com/github/copilot-sdk/releases/tag/v1.0.6) | +| 2026-07-01 | SDK v1.0.5:MCP OAuth ホストトークンハンドラー(セッション設定の `onMcpAuthRequest` コールバック)、引用・除外エージェント・支出制限のセッションオプション、BYOK フィールド `getBearerToken` を `bearerTokenProvider` に改名(`ProviderTokenArgs` に `sessionId` 追加) | [Copilot SDK v1.0.5](https://github.com/github/copilot-sdk/releases/tag/v1.0.5) | | 2026-06-25 | SDK v1.0.4(Python・Go): Python パッケージは CLI ランタイムを同梱せずダウンロードする方式に変更(`python -m copilot download-runtime`)。推論リクエストを傍受する HTTP リクエストコールバック、BYOK プロバイダー向けの `getBearerToken` コールバック(Managed Identity など)、実験的なマルチプロバイダー BYOK レジストリ、`preamble`/`preserve` のシステムメッセージセクション制御、`capi.enableWebSocketResponses` / `provider.transport` セッションオプションを追加 | [Copilot SDK v1.0.4](https://github.com/github/copilot-sdk/releases/tag/v1.0.4) | -| 2026-06-19 | Python・Go の SDK チュートリアルを、当時の最新 SDK パッケージと Copilot CLI サーバーモードに合わせて整備 | [github/copilot-sdk releases](https://github.com/github/copilot-sdk/releases) | -| 2026-06-18 | SDK v1.0.2: 作成・再開時のオプトインなセッションメモリ、ツール検索向けのツール `defer` オプション、`otlpProtocol` テレメトリトランスポート(`http/json` \| `http/protobuf`)、`ModelBilling.tokenPrices`、クライアント停止時の確定的なテレメトリフラッシュ | [Copilot SDK v1.0.2](https://github.com/github/copilot-sdk/releases/tag/v1.0.2) | --- diff --git a/docs/copilot_sdk_tutorial/appendix/references.md b/docs/copilot_sdk_tutorial/appendix/references.md index 1e500ae..37e1bf6 100644 --- a/docs/copilot_sdk_tutorial/appendix/references.md +++ b/docs/copilot_sdk_tutorial/appendix/references.md @@ -87,6 +87,8 @@ Check these sources before each workshop run. The SDK and the Copilot CLI it dep | Date | Change | Source | |------|--------|--------| +| 2026-07-08 | SDK v1.0.6: experimental context attribution APIs (`getContextAttribution`, `getContextHeaviestMessages`) on `session.metadata`; `SlashCommandInput.choices` for selectable literal options; experimental GitHub telemetry redirection; Python surfaces Pydantic `ValidationError` to LLM in tool arg validation | [Copilot SDK v1.0.6](https://github.com/github/copilot-sdk/releases/tag/v1.0.6) | +| 2026-07-01 | SDK v1.0.5: MCP OAuth host token handlers (`onMcpAuthRequest` callback on session config); session options for citations, excluded built-in agents, and spending limits; `getBearerToken` BYOK field renamed to `bearerTokenProvider` (also adds `sessionId` to `ProviderTokenArgs`) | [Copilot SDK v1.0.5](https://github.com/github/copilot-sdk/releases/tag/v1.0.5) | | 2026-06-25 | SDK v1.0.4 (Python and Go): the Python package downloads the pinned CLI runtime instead of bundling it (`python -m copilot download-runtime`); adds an HTTP request callback to intercept inference requests, a `getBearerToken` callback for BYOK providers (e.g. Managed Identity), an experimental multi-provider BYOK registry, `preamble`/`preserve` system-message section controls, and `capi.enableWebSocketResponses` / `provider.transport` session options | [Copilot SDK v1.0.4](https://github.com/github/copilot-sdk/releases/tag/v1.0.4) | | 2026-06-19 | Python and Go SDK tutorials established against the then-current SDK packages and Copilot CLI server mode | [github/copilot-sdk releases](https://github.com/github/copilot-sdk/releases) | | 2026-06-18 | SDK v1.0.2: opt-in session memory on create/resume, tool `defer` option for tool search, `otlpProtocol` telemetry transport (`http/json` \| `http/protobuf`), `ModelBilling.tokenPrices`, and deterministic telemetry flush on client stop | [Copilot SDK v1.0.2](https://github.com/github/copilot-sdk/releases/tag/v1.0.2) |