Answer: You can choose to attach entire repositories or individual files as context. Attaching a repository retrieves only the most relevant content for your question, while attaching individual files loads their full contents into Copilot's context window for every query in that space. Status: Confirmed Entry: tool/github-copilot/memory-and-context/choose-repos-files-as-context Revision: 3 Digest: sha256:a791b3a669f14f8c (changes whenever the content changes) Timeline: Created: 2026-11-13T12:53:46Z Last changed: 2026-11-18T13:00:59Z (File behavior: its full contents are loaded into Copilot's context window → its full contents are loaded into Copilot's context window and considered for every query in that space) Last verified: 2026-11-20T13:06:11Z Next check: 2026-11-21T13:06:11Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Repository option | attach entire repositories or individual files | [1] | 2026-11-20 Repository behavior | searches the repository and retrieves only the most relevant content for your question | [1] | 2026-11-20 Repository best use | answering questions across all documentation in a repository | [1] | 2026-11-20 File behavior | its full contents are loaded into Copilot's context window and considered for every query in that space | [1] | 2026-11-20 File best use | consistently prioritize a specific document or a small set of files | [1] | 2026-11-20 Sources: [1] GitHub. "Creating GitHub Copilot Spaces - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/copilot-spaces/create-copilot-spaces Role: primary. Accessed: 2026-11-20T13:06:11Z Quote: "you can choose to attach entire repositories or individual files" (Supports: Repository option) Quote: "it searches the repository and retrieves only the most relevant content for your question" (Supports: Repository behavior) Quote: "such as answering questions across all documentation in a repository" (Supports: Repository best use) Quote: "its full contents are loaded into Copilot's context window and considered for every query in that space" (Supports: File behavior) Quote: "consistently prioritize a specific document or a small set of files" (Supports: File best use) Snapshot SHA-256: 213b02e6f895c94df887c1753a9be671cb191cb254a73151c858615ed11e2d79 (captured 2026-11-18T13:00:55Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:00:59Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:06:11Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:06:11Z Last attempt: 2026-11-20T13:06:11Z Notes and limitations: Extracted automatically from a single official source (section "Choosing repositories or files as context"). Related: https://latestn.com/tool/github-copilot/memory-and-context/compact-long-cli-sessions How do I compact long GitHub Copilot CLI sessions that I want to continue? https://latestn.com/tool/github-copilot/memory-and-context/compaction-behavior What does compaction do in GitHub Copilot and when does it happen? https://latestn.com/tool/github-copilot/memory-and-context/context-info-breakdown How do I get an on-demand context breakdown with session.metadata.contextInfo in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/memory-and-context/ask-copilot-to-remember-fact How do I ask GitHub Copilot to remember a fact or preference? https://latestn.com/tool/github-copilot/memory-and-context/attach-repository-in-chat How do I attach a repository in GitHub Copilot Chat to give it repository context? https://latestn.com/tool/github-copilot/memory-and-context/check-context-usage How do I check my context usage in GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:00:59Z | changed | File behavior: its full contents are loaded into Copilot's context window → its full contents are loaded into Copilot's context window and considered for every query in that space | [1] 2026-11-18T13:00:59Z | changed | Repository best use: large-scale use cases → answering questions across all documentation in a repository | [1] 2026-11-18T13:00:59Z | changed | Repository behavior: retrieves only the most relevant content for your question → searches the repository and retrieves only the most relevant content for your question | [1] 2026-11-16T12:49:57Z | changed | File behavior: — → its full contents are loaded into Copilot's context window | [1] 2026-11-16T12:49:57Z | changed | Repository behavior: searches the repository and retrieves only the most relevant content for your question → retrieves only the most relevant content for your question | [1] 2026-11-16T12:49:57Z | changed | File option: Attach individual files → — | [1] 2026-11-16T12:49:57Z | changed | Repository option: attach entire repositories → attach entire repositories or individual files | [1] 2026-11-13T12:53:46Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/memory-and-context/choose-repos-files-as-context/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/memory-and-context/choose-repos-files-as-context POST: https://latestn.com/dispute/tool/github-copilot/memory-and-context/choose-repos-files-as-context with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/memory-and-context/choose-repos-files-as-context?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I choose repositories or files as context in GitHub Copilot Spaces? Revision 3, last verified 2026-11-20T13:06:11Z. https://latestn.com/tool/github-copilot/memory-and-context/choose-repos-files-as-context (accessed 2026-11-21T09:58:56Z). @misc{LatestN_tool_github_copilot_memory_and_context_choose_repos_files_as_context_r3, title = {How do I choose repositories or files as context in GitHub Copilot Spaces?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/memory-and-context/choose-repos-files-as-context}}, note = {Revision 3; digest sha256:a791b3a669f14f8c; last verified 2026-11-20T13:06:11Z; accessed 2026-11-21T09:58:56Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/memory-and-context/choose-repos-files-as-context