---
title: copilot-context-explosion-LT
tags: 
author: [yamapan](https://image.docswell.com/user/aktsmm)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/87DKGX1WJG.jpg?width=480
description: copilot-context-explosion-LT by yamapan
published: May 16, 26
canonical: https://image.docswell.com/s/aktsmm/5X2WXX-2026-05-16-160816
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/87DKGX1WJG.jpg)

①
GitHub Copilot
なにもしてないのにこわれた
2026/05/16(土)
Azure Travelers 金沢
やまぱん！


# Page. 2

![Page Image](https://bcdn.docswell.com/page/VJPK3PQXE8.jpg)

やまぱん！と申します
やまぱん！
Microsoft / Cloud Solution Architect
• すきやねん Azure !!
・ Gh-CUG (GitHub Copilot User Group )
• 趣味：キャリア相談・メンター、麻雀、ポーカー、高校野球観戦、バイク、邦楽ロック
• 資格：IPA いくつか / Azure 全冠 / GitHub 全冠 / 危険物乙4
Qiita: qiita.com/aktsmm
X: x.com/mmskats
2 / 23
Docswellに資料多め


# Page. 3

![Page Image](https://bcdn.docswell.com/page/2EVV4253EQ.jpg)

おさらい：Copilot まわりのファイル整理(VS Code)
常時ロード（毎回読まれる）
条件付き （普段は乗らない）
• AGENTS.md（root）
• applyTo: &#039;glob&#039; な *.instructions.md
• .github/copilot-instructions.md
• フロントマターなし *.instructions.md
• applyTo: ** な *.instructions.md
• *.prompt.md（/コマンドで明示呼び出し）
• → チャット開いた瞬間から context に乗る
• *.agent.md / SKILL.md
（モード切替・スキル発動時）
7 / 23


# Page. 4

![Page Image](https://bcdn.docswell.com/page/57GL1R6YEL.jpg)

起きたこと
1
半年間育ててたワークスペース、なにいれてもまともに対応しない
2
→ context window が即パンク
3
「最近のアップデートのせいでは…?」と疑い始める
6 / 23


# Page. 5

![Page Image](https://bcdn.docswell.com/page/4EQYDV46JP.jpg)

https://x.com/i/status/2054282938771202455
IMAGEｚPLACEHOLDER
ここに「context window full」のスクショを貼る
5 / 23


# Page. 6

![Page Image](https://bcdn.docswell.com/page/KJ4WZMQM71.jpg)

https://x.com/i/status/2054282938771202455
IMAGEｚPLACEHOLDER
ここに「context window full」のスクショを貼る
5 / 23


# Page. 7

![Page Image](https://bcdn.docswell.com/page/LE1YR8PY7G.jpg)

第1容疑者：Markdown リンク自動展開
1
AGENTS.md / copilot-instructions.md は常時ロード
2
そこから他 instructions ファイルへ Markdown リンクを張ってた
3
vscode#279045 で『リンク先も attachment として展開』
4
リンク先 instructions に applyTo がない → 全部読まれた説
8 / 23


# Page. 8

![Page Image](https://bcdn.docswell.com/page/GEWG1Z21J2.jpg)

検証：AGENTS.md / copilot-instructions.md を
退避
1
リンクの起点を消せば、自動展開も止まるはず
2
→ 2 ファイルを一旦リネームして退避
3
→ ……それでも context は爆発したまま
4
つまりリンク自動展開は『犯人ではあるが主犯ではない』
9 / 23


# Page. 9

![Page Image](https://bcdn.docswell.com/page/47ZLP1DXJ3.jpg)

第2容疑者（本命）：LLM 駆動の read_file
1
applyTo 未指定でも LLM には description+パスの list が渡る
2
LLM が「関係ありそう」と思うと read_file を自分で叫ぶ
3
リンクが無くても、list を見て勝手に読みに行く
4
applyTo を全 instructions に明示 → ピタッと止まった
10 / 23


# Page. 10

![Page Image](https://bcdn.docswell.com/page/YJ6WML1PJV.jpg)

applyTo の本当の挙動はこうっぽい？
値
挙動
• **
• 全 request に自動追加
• **/*.ts などの glob
• その glob のファイルが context にある時だ
け追加
• 未指定
• VS Code は自動追加しない
（が LLM が読みに行く可能性あり）
11 / 23


# Page. 11

![Page Image](https://bcdn.docswell.com/page/GJ5MZ14PJ4.jpg)

フロントマターはちゃんと書こう！
＋ オーケストレーターパターンのエージェント
ワークフローにも注意


# Page. 12

![Page Image](https://bcdn.docswell.com/page/LE3W91G6E5.jpg)

ぶっ壊した話の参考 を調べてた時の参考リンク
VS Code Docs: Use custom instructions in VS Code
https://code.visualstudio.com/docs/copilot/customization/custom-instructions
GitHub Docs: Adding custom instructions for GitHub Copilot
https://docs.github.com/en/copilot/customizing-copilot/adding-custom-instructions-for-github-copilot
vscode-copilot-release #12770 — aeschli 発言（applyTo 未指定は auto-add されない）
https://github.com/microsoft/vscode-copilot-release/issues/12770
vscode #279045 — Markdown リンク自動展開
https://github.com/microsoft/vscode/issues/279045
vscode #281878 — Docs 表記の曖昧さ認識済
https://github.com/microsoft/vscode/issues/281878
VS Code Wiki: Custom instructions logs（実測手順）
https://github.com/microsoft/vscode/wiki/Copilot-Issues#custom-instructions-logs
14 / 23
GitHub Changelog: VS Code April Releases (2026/5/6)


# Page. 13

![Page Image](https://bcdn.docswell.com/page/8EDKGX1M7G.jpg)

②
公式 Release Communications
MCP が出た話
Azure Updates / M365 Roadmap はもう公式に聞ける
何が出たのか
使えるツール
• Microsoft 公式の Release
Communications MCP Server
• get_recent_azure_updates /
get_azure_update_by_id
• Azure Updates と Microsoft 365
Roadmap を MCP 経由で取得
• get_recent_m365_roadmaps /
get_m365_roadmap_by_id
• VS Code / Copilot CLI / Claude 等の
MCP クライアントから叩ける
• OData フィルタ（製品名 / 日付 / GA・
Preview）も OK
• サーバー設置は URL 1 本追加するだけ
• 「今週の Azure / M365 アップデート」を一
発で要約させれる
16 / 23


# Page. 14

![Page Image](https://bcdn.docswell.com/page/V7PK3PQQJ8.jpg)

③
Gh-CUG 立ち上げました！
GitHub Copilot 気になってる人、まず触ってみた人
GitHub Copilot User Group Japan
業務で使ってる試行錯誤・失敗談を持ち寄りたい人
登壇したいけど大きな場は不安、な人
→ connpass で「Gh-CUG」検索 / 5/26 オンライン待ってます


# Page. 15

![Page Image](https://bcdn.docswell.com/page/2JVV425PJQ.jpg)

Gh-CUG 関連リンク
GitHub Copilot User Group Japan（connpass グループ）
https://gh-cug.connpass.com/
ゆるよな Gh-CUG #01: Gh-CUG 爆誕（2026/5/26 21:00〜）
https://gh-cug.connpass.com/event/391857/
立ち上げ記事：Gh-CUG 爆誕と初回イベント公開のお知らせ
https://qiita.com/aktsmm/items/ccdeb1d85384f57f93a3
学生・初心者歓迎の Gh-CUG が爆誕（shahin0809 さん）
https://qiita.com/shahin0809/items/df719526ce1462ef28d4
22 / 23


