github / github/copilot-cli

Clarify startup message "No copilot-instructions.md found" to specify it means the repo-scoped file

オープン 初心者向け
#4,475 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

area:context-memory
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

Describe the feature or problem you'd like to solve

On session start, the CLI prints "No copilot-instructions.md found." This wording is ambiguous.

Proposed solution

On session start, the CLI prints "No copilot-instructions.md found." This wording is ambiguous — it reads as though NO custom instructions were loaded at all, when in fact it only means the repository-scoped file (.github/copilot-instructions.md in the git root/cwd) is absent.

A user-scope file at $HOME/.copilot/copilot-instructions.md (and other supported sources like AGENTS.md, CLAUDE.md, $HOME/.copilot/instructions/**) may still be fully loaded and active. The current message caused me to believe none of my instructions were in effect, when my user-scope instructions actually were loaded.

Requested change / proposed solution: reword the message to name the specific missing file/scope, e.g. "No repository-scoped .github/copilot-instructions.md found" — and ideally note that user-scope or other instruction sources may still be active.

Benefits to GitHub Copilot CLI and its users:

  • Removes a misleading signal that makes users think their instructions aren't loaded.
  • Reduces confusion and wasted time spent debugging a non-issue.
  • Sets accurate expectations about which instruction scope is missing vs. active.
  • Encourages correct use of layered instruction sources (repo-scoped vs. user-scoped).
Example prompts or workflows
  1. User has a populated $HOME/.copilot/copilot-instructions.md with personal workflows.
  2. User starts a session in a repo that has no .github/copilot-instructions.md.
  3. CLI prints "No copilot-instructions.md found."
  4. User reasonably concludes NONE of their instructions loaded — but the user-scope file is active.
  5. Running /env confirms the user-scope instructions ARE loaded, contradicting the startup message.

Suggested improved message:
"No repository-scoped .github/copilot-instructions.md found. (User-scope and other instruction sources, if present, are still active — see /env or /instructions.)"

Additional context
Image

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

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

はじめの一歩

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

調査の方向性

"No copilot-instructions.md found."を出力するCLIのセッション開始パスから始め、リポジトリスコープの指示がどのように確認されるかを追跡します。リポジトリスコープのファイルが見つからないことを示すように文言を更新しつつ、ユーザースコープおよびその他の指示ソースの動作は維持します。起動時と /env または /instructions を使って結果を確認します。

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

評価

技術スタック
shell
領域
cli
issue の種類
機能追加
難易度
1/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
72/100

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

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