# Kick off a task with Copilot agents on GitHub

> Move from an idea for a task, to code you can review, by starting Copilot in the cloud from an issue, a prompt, or a new repository.

- 网址：https://funcoding.ai/agents/github-copilot/how-tos/copilot-on-github/use-copilot-agents/kick-off-a-task/
- 来源：GitHub Copilot 官方文档原文（英文），CC-BY-4.0 许可，同步于 2026-11-18
- 官方原文：https://docs.github.com/en/copilot/how-tos/copilot-on-github/use-copilot-agents/kick-off-a-task

---
You can start a GitHub Copilot task by assigning an issue, describing the work in a prompt, or asking Copilot to scaffold a new repository. When you start with a prompt, Copilot begins a session that you can steer with follow-up prompts. You can ask it to open a pull request, or review its changes in the session and create a pull request when you're ready.

## Assign an issue to Copilot

Assigning an issue always creates a pull request. Copilot works on the task and requests your review when it finishes.

1. In the right sidebar of the issue, click **Assignees**.
1. Click **Copilot** from the assignees list.
1. Optionally, add context in the **Optional prompt** field—for example, coding patterns, files to modify, or testing requirements.
1. Optionally, change the target repository or base branch using the dropdown menus.

1. Optionally, you can click copilot to open the agent dropdown menu, if you want to assign an agent or a custom agent with specialized behavior and tools. You can select an existing custom agent from your repository, organization, or enterprise. You can also click **Plus button Create an agent** to create a new agent profile in your selected repository and branch. For more information, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/create-custom-agents/).

<div class="callout callout-note">

Third-party coding agents are available for all paid [Copilot plans](https://docs.github.com/copilot/get-started/plans).

</div>

1. Optionally, you can use the dropdown menu to select the model that Copilot will use. If the selected model supports configurable reasoning, you can also use the dropdown menu to select the reasoning level. For more information, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/how-tos/use-copilot-agents/cloud-agent/changing-the-ai-model/).

Copilot receives the issue title, description, and existing comments at assignment time. It does not see comments added after assignment, so post follow-up information on the pull request instead.

## Start a task with a prompt

Start a GitHub Copilot task from:
* A Copilot prompt
* By using the "Get started with agents" suggested prompts section shown on the agents tab or Copilot home page

1. Open the agents panel or tab:

   * Open the **The Agents icon Agents** tab in a repository.
   * **Navigate to the GitHub Copilot all sessions page**: Go to [github.com/copilot](https://github.com/copilot?ref_product=copilot&ref_type=engagement&ref_style=text&utm_source=open-agent-panel-reusable-home&utm_medium=docs&utm_campaign=universe-2026). You can also get here by opening the GitHub Copilot menu in top navigation bar, then clicking **View all sessions**.
   * **Open the agents panel**: From the code tab in a repository, click The Agents icon to the right of the "Go to file" search bar.
1. Using the dropdown menu in the prompt field, select the repository you want Copilot to work in.
1. Open **sliders Environment** to choose where Copilot runs.

   * **Cloud**: (default) Run in a GitHub-hosted cloud sandbox.
   * **Actions**: Run in an GitHub Actions-based environment. If you've previously selected a Chat session context, you cannot select this environment for the session.
   * **Environments**: Expand the list and select one of the listed remote environments.
1. Type a prompt describing your request. You can also add visual inputs like screenshots or UI mockups by pasting, dragging, or uploading an image. Files supported: image/png, image/jpeg, image/gif, image/webp.

    For example, `Implement a user friendly message for common errors.`

    If you want Copilot to open a pull request, you can ask in your prompt, for example `Open a pull request to implement a user friendly message for common errors.`

1. Optionally, select a base branch for Copilot's changes. Copilot will create a new branch based on this branch.
1. Optionally, you can click copilot to open the agent dropdown menu, if you want to assign an agent or a custom agent with specialized behavior and tools. You can select an existing custom agent from your repository, organization, or enterprise. You can also click **Plus button Create an agent** to create a new agent profile in your selected repository and branch. For more information, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/create-custom-agents/).

<div class="callout callout-note">

Third-party coding agents are available for all paid [Copilot plans](https://docs.github.com/copilot/get-started/plans).

</div>

1. Optionally, you can use the dropdown menu to select the model that Copilot will use. If the selected model supports configurable reasoning, you can also use the dropdown menu to select the reasoning level. For more information, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/how-tos/use-copilot-agents/cloud-agent/changing-the-ai-model/).
1. Click **Start task** or press <kbd>Enter</kbd>.

    Copilot will start a new session, which will appear in the list below the prompt box. Copilot will work on the task and push any code changes.

    You can track Copilot's work and open a pull request in one click from the session logs. For more information, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/how-tos/copilot-on-github/use-copilot-agents/manage-and-track-agents/).

If you don't specify a repository to work in, Copilot will prompt you to select one. To start a session, describe the outcome you want and any constraints. Copilot can work on the changes in a session that you steer with follow-up prompts. Ask it to open a pull request in your prompt, or review its changes and open a pull request from the session when you're ready.

For the full workflow of researching, planning, and iterating before creating a pull request, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/how-tos/copilot-on-github/use-copilot-agents/research-plan-iterate/).

## Seed a new repository

When you create a new repository, you can have Copilot generate starter code.

1. In the upper-right corner of any page, select Create something new, then click **New repository**.

   ![Screenshot of a GitHub dropdown menu showing options to create new items. The menu item "New repository" is outlined in dark orange.](https://funcoding.ai/official-assets/github-copilot/assets/images/help/repository/repo-create-global-nav-update.webp)
1. In the **Prompt** field, describe what you want Copilot to build — for example, `Create a Rust CLI for converting CSV spreadsheets to Markdown`.
1. Click **Create repository**.

Copilot opens a draft pull request with the scaffolded code.

## Further reading

* [AUTOTITLE](https://funcoding.ai/agents/github-copilot/tutorials/cloud-agent/get-the-best-results/)
* [AUTOTITLE](https://funcoding.ai/agents/github-copilot/how-tos/copilot-on-github/use-copilot-agents/manage-and-track-agents/)
