search
HomeTechnology peripheralsAIGetting Started with GitHub Copilot Workspace

GitHub Copilot Workspace (CW) Technology Preview Edition is now available! CW is a task-centric development environment that allows you to define tasks for your code base in natural language and collaborate with AI to complete these tasks. This guide will walk you through multiple entry points to get started with Copilot Workspace.

Catalog

  • Task Start Entry Point
    • GitHub Issue
    • Create ad-hoc tasks with CW dashboard
    • Create ad-hoc tasks through codebase page
  • Create a code base from a template
    • Use "Use this template" on GitHub.com
    • Use "New Session" on the dashboard
    • Use URL
  • GitHub Copilot Workspace's code base maintainer feature
  • Limit the use of GitHub Copilot Workspace in the code base
  • Known issues and future improvements
    • Rewrite large files
    • Code generation
    • Content selection
    • Web search
    • Build/test fix
    • Small tasks and large tasks
    • Authorization
  • Summary
  • FAQ

Task Start Entry Point

Efficient start of tasks is essential to maintain productivity and simplify workflows. Whether you are based on an existing GitHub issue or creating a new task from scratch, CW provides multiple entry points to help you start a task easily. By leveraging these flexible options, you can quickly transition from identifying tasks to actively handling tasks, ensuring a smooth and organized workflow to suit your needs.

1. GitHub Issue

If you already have a GitHub issue that describes the task you want to perform, it's very easy to start with that issue. Please follow the steps below:

  • Open GitHub issue.
  • In the "Development" section of the right panel, click the "Open in Workspace" button.

This operation opens the issue in Copilot Workspace and starts the process of analyzing and resolving the issue.

Getting Started with GitHub Copilot Workspace

2. Create ad-hoc tasks with CW dashboard

You can also start tasks directly from the CW dashboard:

  • Open the CW dashboard.
  • Click on the "Select Code Base" option under the "New Session" section.
  • Search for the code base you want to process.
  • Select the code base and define a new task from scratch, similar to drafting an issue.

After you execute a task for the code base, it will be displayed in the session list under the New Session section to facilitate you to select new tasks for your ongoing projects.

Getting Started with GitHub Copilot Workspace

3. Create ad-hoc tasks through codebase page

Another way to start a task is to start it directly from the code base page:

  • Navigate to the codebase page of the project you want to work on.
  • Click the green "Code" button.
  • Enter a new task in the Copilot tab.
  • Submit task.

This will take you into the CW and begin the process of analyzing and solving tasks.

Getting Started with GitHub Copilot Workspace

Create a code base from a template

Copilot Workspace allows you to create code bases from templates in natural language.

Use "Use this template" on GitHub.com

To create a code base using Copilot Workspace, navigate to the template code base on GitHub.com and select "Use this template":

  • Click "Use this template" to start creating your code base.

Getting Started with GitHub Copilot Workspace

  • This task is based on the software description you provide and the README of the template code base.
After starting, the task of creating a code base is as follows:

    The task is marked as "Code Library" and the "Template" panel indicates the template code library.

Getting Started with GitHub Copilot Workspace

Copilot Workspace will generate codebase specifications, create plans, and final implementations based on your description.

Use "New Session" on the dashboard

You can also create a code base from the template by clicking the New Session button on the Copilot Workspace dashboard and searching for the template. This will open a new task in the workspace where you can describe the software you want to create.

Use URL

You can enable the Create Codebase mode for any codebase URL by adding ?template=true as a query parameter. For example:

<code>https://copilot-workspace.githubnext.com/githubnext/hello-world?template=true</code>
Some codebases are considered templates by default:

    Any GitHub template codebase.
  • Any code base in your organization whose name contains "templates".
  • Any code base with the name "-template", "-scaffold", "-starter", or "-boilerplate".
GitHub Copilot Workspace's code base maintainer feature

As a code base maintainer, Copilot Workspace can help you in a variety of ways:

  • You can explore potential issue solutions.
  • You can generate sketches of issue solutions for potential contributors, lowering the barrier to participation.
  • It can help foster a culture where issue creators leave more useful instructions on how to resolve issue for contributors and AI assistants.

For example, when a new issue is submitted in your code base, you can use Copilot Workspace to generate a solution sketch for that issue. You can then use the Share button to post this sketch back to the issue thread, with additional comments on whether you think it is useful and what aspects may need to be improved. This can help potential contributors better understand the problem and provide a starting point for their work.

Similarly, when submitting a new issue, you can ask contributors to create a Copilot Workspace session for that issue. This may help contributors better understand the problem and provide a starting point for their work. You can also include this guidance in the issue template of the code base, assuming your users have access to Copilot Workspace. You can also ask contributors to leave additional instructions in the Copilot Workspace session, which can help future contributors and AI assistants better understand the problem.

Limit the use of GitHub Copilot Workspace in the code base

Unruly contributors may overuse AI-assisted code generation. Therefore, we provide codebase maintainers with the option to disable the creation of pull request and/or issue comments in their codebase using Copilot Workspace directly.

To disable creating a pull request directly using Copilot Workspace, create a file named .github/copilot-workspace/policy.json in the default branch of the code base, which contains the following content:

<code>https://copilot-workspace.githubnext.com/githubnext/hello-world?template=true</code>

To disable the issue comments that directly use Copilot Workspace to generate a Copilot Workspace session link, add the following to the policy.json file:

<code>{
"allowPullRequests": false
}</code>

Copilot Workspace users can still:

  • Create shared links for Copilot Workspace sessions and paste them into issue comments.
  • Push to a new branch in the code base (if they have write permissions).
  • Push a new branch to the codebase branch.
  • Create pull request manually from the branch.
  • Use Copilot Workspace to generate snippets and files for their own pull request and issue comments for use in their own code base.

Known issues and future improvements

Remember that GitHub Copilot Workspace is a technology preview and an area of ​​active development. This document lists some known issues and some known areas where we hope to improve our products in the future.

The following are the core areas we are actively working to improve Copilot Workspace:

Rewrite large files

When it implements plans involving large file changes, it can take a long time to complete. Copilot Workspace currently uses "whole file rewrite" because we find this to be highly thorough on a variety of tasks that Copilot Workspace can be used for. We are working on some file rewriting techniques (automatically and under user guidance) to improve the performance of this operation.

Code generation

Copilot Workspace generates code quality not always perfect. It is highly correlated with the quality of the underlying AI model used. We are working on improving the quality of code generated by Copilot Workspace at multiple levels. For example, the quality of code generation is affected by the planning and specification quality of tasks and the overall user experience of evaluating and clarifying these tasks. We are also working to improve these aspects. The quality achieved is also related to the experience of the iteratively generated code. We are actively studying finer-grained iterative technologies.

Content selection

Content selection in Copilot Workspace may sometimes be not optimal, which can lead to the generation of task-independent code. We are working to improve content selection in Copilot Workspace.

Tasks can contain direct links to network resources such as documents. In addition, some network searches can be inferred from the task. Copilot Workspace does not currently perform network retrieval and we are working on adding this feature.

Build/test fix

After code is generated, AI and traditional tools can be used to "fix" the code based on diagnostic information generated from the build, test, and run the code. We already have some support for this in Copilot Workspace and we are working to improve this.

Small tasks and large tasks

Some tasks are very small: update a few lines of code in the file. Some tasks are very large: implement a brand new code base function one by one. Copilot Workspace is currently designed for medium-sized tasks on GitHub issue. We are interested in providing variations of the Copilot Workspace core concept in a scheduling that is more suitable for small and large tasks. For example, for small tasks, we might offer a "lite version" of Copilot Workspace with only one task. For large tasks, we may provide a way to break the task into subtasks.

Authorization

It uses the GitHub OAuth application for authentication. Some organizations may have policies that limit OAuth applications from interacting with their code base. Unless the organization administrator approves the Copilot Workspace OAuth application, you will not be able to perform tasks in a private code base or create pull requests in a public code base. We are working to add a second authorization option to Copilot Workspace based on GitHub application and update this document when it becomes available.

Summary

Get Started Copilot Workspace is simple and flexible, with multiple entry points suitable for your workflow. Whether starting with the GitHub issue, CW dashboard, or codebase page, you can easily define tasks and collaborate with AI to enhance your development process. So, what are you waiting for? Start exploring now!

FAQ

Q1. What is Copilot Workspace (CW)? A: CW is a task-centric development environment that allows users to define tasks for the code base in natural language and complete these tasks efficiently in collaboration with AI.

Q2. How to start a task in Copilot Workspace? A: You can start tasks through a variety of entry points: A. Launch from the GitHub issue by clicking "Open in Workspace". B. Start directly through the CW dashboard by selecting the code base and defining the new task. C. Start from the code base page by entering the task in the Copilot tab.

Q3. Can I create a code base from a template in Copilot Workspace? A: Yes, you can create a code base using templates in the following ways: A. Select Use this template on GitHub.com. B. Click "New Session" on the CW dashboard and select the template. C. Add ?template=true to any codebase URL.

Q4. How does Copilot Workspace help code base maintainers? A: It helps maintainers by: A. Explore potential issue solutions. B. Generate solution sketches for contributors. C. Detailed issue descriptions and instructions are encouraged.

Q5. What are the known issues with Copilot Workspace? A: Yes, some known issues include: A. Rewriting large files slowly. B. Content selection is sometimes not optimal. C. Fuzzy detection is too sensitive. D. There is no "Stop" button when generating pull request description

The above is the detailed content of Getting Started with GitHub Copilot Workspace. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Tesla's Robovan Was The Hidden Gem In 2024's Robotaxi TeaserTesla's Robovan Was The Hidden Gem In 2024's Robotaxi TeaserApr 22, 2025 am 11:48 AM

Since 2008, I've championed the shared-ride van—initially dubbed the "robotjitney," later the "vansit"—as the future of urban transportation. I foresee these vehicles as the 21st century's next-generation transit solution, surpas

Sam's Club Bets On AI To Eliminate Receipt Checks And Enhance RetailSam's Club Bets On AI To Eliminate Receipt Checks And Enhance RetailApr 22, 2025 am 11:29 AM

Revolutionizing the Checkout Experience Sam's Club's innovative "Just Go" system builds on its existing AI-powered "Scan & Go" technology, allowing members to scan purchases via the Sam's Club app during their shopping trip.

Nvidia's AI Omniverse Expands At GTC 2025Nvidia's AI Omniverse Expands At GTC 2025Apr 22, 2025 am 11:28 AM

Nvidia's Enhanced Predictability and New Product Lineup at GTC 2025 Nvidia, a key player in AI infrastructure, is focusing on increased predictability for its clients. This involves consistent product delivery, meeting performance expectations, and

Exploring the Capabilities of Google's Gemma 2 ModelsExploring the Capabilities of Google's Gemma 2 ModelsApr 22, 2025 am 11:26 AM

Google's Gemma 2: A Powerful, Efficient Language Model Google's Gemma family of language models, celebrated for efficiency and performance, has expanded with the arrival of Gemma 2. This latest release comprises two models: a 27-billion parameter ver

The Next Wave of GenAI: Perspectives with Dr. Kirk Borne - Analytics VidhyaThe Next Wave of GenAI: Perspectives with Dr. Kirk Borne - Analytics VidhyaApr 22, 2025 am 11:21 AM

This Leading with Data episode features Dr. Kirk Borne, a leading data scientist, astrophysicist, and TEDx speaker. A renowned expert in big data, AI, and machine learning, Dr. Borne offers invaluable insights into the current state and future traje

AI For Runners And Athletes: We're Making Excellent ProgressAI For Runners And Athletes: We're Making Excellent ProgressApr 22, 2025 am 11:12 AM

There were some very insightful perspectives in this speech—background information about engineering that showed us why artificial intelligence is so good at supporting people’s physical exercise. I will outline a core idea from each contributor’s perspective to demonstrate three design aspects that are an important part of our exploration of the application of artificial intelligence in sports. Edge devices and raw personal data This idea about artificial intelligence actually contains two components—one related to where we place large language models and the other is related to the differences between our human language and the language that our vital signs “express” when measured in real time. Alexander Amini knows a lot about running and tennis, but he still

Jamie Engstrom On Technology, Talent And Transformation At CaterpillarJamie Engstrom On Technology, Talent And Transformation At CaterpillarApr 22, 2025 am 11:10 AM

Caterpillar's Chief Information Officer and Senior Vice President of IT, Jamie Engstrom, leads a global team of over 2,200 IT professionals across 28 countries. With 26 years at Caterpillar, including four and a half years in her current role, Engst

New Google Photos Update Makes Any Photo Pop With Ultra HDR QualityNew Google Photos Update Makes Any Photo Pop With Ultra HDR QualityApr 22, 2025 am 11:09 AM

Google Photos' New Ultra HDR Tool: A Quick Guide Enhance your photos with Google Photos' new Ultra HDR tool, transforming standard images into vibrant, high-dynamic-range masterpieces. Ideal for social media, this tool boosts the impact of any photo,

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software