For information on creating Copilot Spaces, see Creating GitHub Copilot Spaces.
Using Copilot Spaces in GitHub
Once you've added context to your space, you can ask Copilot questions in the space's chat interface in GitHub. Your chat will be grounded in the context you've added. You can view all conversations you have had in the space's "Conversations" tab.
You can also change the large language model (LLM) used for your space by selecting the CURRENT-MODEL dropdown menu, then clicking the AI model of your choice. For more information, see Comparação de modelos de IA.
To star your favorite spaces so that you can easily find them later, you can click in the top right corner of the space. To view all spaces available to you, including starred spaces, go to https://github.com/copilot/spaces.
Using Copilot Spaces in your IDE
You can also access the information and context from Espaços directly in your IDE using the GitHub MCP server. This allows you to leverage your curated context while coding without switching between your IDE and the web interface.
This functionality is available in any IDE that supports the GitHub Copilot extension and the GitHub MCP server.
Observação
When using Espaços in your IDE, repository context is not supported. You will have access to all other sources and instructions from the space.
Once you've accessed space context from your IDE:
- The space's context will inform Copilot's responses
- You can reference the space's content when generating code, getting explanations, or working on development tasks
- Your spaces stay in sync as your project evolves. GitHub files and other GitHub-based sources added to a space are automatically updated as they change, making Copilot an evergreen expert in your project
Prerequisites
To use Espaços in your IDE, you need to install the GitHub MCP server. For setup instructions, see Como usar o Servidor de MCP do GitHub.
Accessing space context from your IDE
For more detailed information on using the GitHub MCP server in a specific IDE, see Como usar o Servidor de MCP do GitHub.
Note that Espaços can only be used in agent mode in your IDE, since spaces are accessed via the GitHub MCP server.
-
In your IDE, open Copilot Chat and select Agent from the mode dropdown or select the Agent tab.
- To confirm that the Espaços tools are enabled, in the Copilot Chat box, click the tools icon. In the dropdown, expand the list of available tools for MCP Server: github, and confirm that the
get_copilot_space
andlist_copilot_spaces
tools are enabled.
- To confirm that the Espaços tools are enabled, in the Copilot Chat box, click the tools icon. In the dropdown, expand the list of available tools for MCP Server: github, and confirm that the
-
In the Copilot Chat box, enter a prompt that references the space that you want to use as context. If you know the exact name of the space and the name of the user or organization that owns the space, you can provide that. Otherwise, Copilot will automatically use the
list_copilot_spaces
tool to find spaces that match the name or text you provide and access the context from those spaces.For example, you could use either of these two prompts:
Using the Copilot space 'Checkout Flow Redesign' owned by myorganization, summarize the implementation plan.
Summarize the implementation plan from the Copilot space for the checkout flow redesign.
Follow-up prompts in the same chat conversation will have access to the same spaces, without you having to reference it explicitly.
Next steps
- To learn more about how to use Espaços to help you with development work, see Como acelerar o trabalho de desenvolvimento com o GitHub Copilot Spaces.
- To learn how to share your space with your team, see Colaborar com sua equipe usando o GitHub Copilot Spaces.