Skip to main content

Using Copilot cloud agent from Raycast

Start and track Copilot облачный агент sessions from the Raycast launcher.

Кто может использовать эту функцию?

Copilot облачный агент доступна с GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot для бизнеса и GitHub Copilot Enterprise планами. Агент доступен во всех репозиториях, хранящихся на GitHub, за исключением тех, которые принадлежат управляемые учетные записи пользователей и где он явно отключен.
Sign up for Copilot

Raycast — это расширяемый лаунчер для Windows и macOS. С GitHub Copilot расширением для Raycast вы можете запускать и отслеживать Copilot облачный агент задачи, а также смотреть журналы сессий в реальном времени, где бы вы ни находились на компьютере.

Prerequisites

  1. Установите Raycast с веб-сайта Raycast.
  2. Установите GitHub Copilot расширение для Raycast, нажав кнопку «Установить расширение » на странице расширения.

Starting a session

  1. Open Raycast, search for "Copilot," find the Create Task command, then press Enter.

  2. Click Sign in with GitHub, then complete the authentication flow. Raycast will re-open.

  3. Type a prompt describing what you want Copilot to do.

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

  4. Select the repository you want Copilot to work in.

  5. Optionally, select a base branch for Copilot's pull request. Copilot will create a new branch based on this branch, then push the changes to a pull request targeting that branch.

  6. По желанию выберите Пользовательский агент Со специальным поведением и инструментами в выпадающем меню. Дополнительные сведения см. в разделе Создание кастомных агентов для Copilot облачный агент.

  7. По желанию вы можете использовать выпадающее меню для выбора модели, которая Copilot будет использоваться. Дополнительные сведения см. в разделе Изменение модели ИИ для облачного агента GitHub Copilot.

  8. Press Command+Enter (macOS) or Ctrl+Enter (Windows) to start the task.

    Copilot will start a new session. Copilot will work on the task and push changes to its pull request, then add you as a reviewer when it has finished, triggering a notification.

Примечание.

Если вы не можете выбрать конкретный репозиторий при запуске задачи, организация, владеющая репозиторием, возможно, включила OAuth app ограничения доступа. Чтобы узнать, как запросить одобрение для «GitHub Copilot для Raycast OAuth app», см. Запрос утверждения организации для приложений OAuth.

Assigning an issue from Raycast

  1. Open Raycast, search for "Copilot," find the Assign Issues to Copilot command, then press Enter.

  2. Click Sign in with GitHub, then complete the authentication flow. Raycast will re-open.

  3. Select the repository you want Copilot to work in.

  4. Select the issue you want to assign to Copilot.

  5. Optionally, select a base branch for Copilot's pull request. Copilot will create a new branch based on this branch, then push the changes to a pull request targeting that branch.

  6. По желанию выберите Пользовательский агент Со специальным поведением и инструментами в выпадающем меню. Дополнительные сведения см. в разделе Создание кастомных агентов для Copilot облачный агент.

  7. По желанию вы можете использовать выпадающее меню для выбора модели, которая Copilot будет использоваться. Дополнительные сведения см. в разделе Изменение модели ИИ для облачного агента GitHub Copilot.

  8. Optionally, provide additional instructions. These will be passed to Copilot alongside your issue contents.

  9. Press Command+Enter (macOS) or Ctrl+Enter (Windows) to assign the issue.

    Copilot will start a new session. Copilot will work on the task and push changes to its pull request, then add you as a reviewer when it has finished, triggering a notification.

Примечание.

Если вы не можете выбрать конкретный репозиторий при запуске задачи, организация, владеющая репозиторием, возможно, включила OAuth app ограничения доступа. Чтобы узнать, как запросить одобрение для «GitHub Copilot для Raycast OAuth app», см. Запрос утверждения организации для приложений OAuth.

Tracking your sessions

  1. Open Raycast, search for "Copilot," find the View Tasks command, then press Enter.
  2. Click Sign in with GitHub, then complete the authentication flow. Raycast will re-open.
  3. You'll see a list of your tasks. Select a task, then use the following keyboard shortcuts:
    • To watch the session logs live, press Enter. The logs update in real time, so you can monitor Copilot's progress without leaving Raycast.
    • To open the session logs in the browser, press Command+Enter (macOS) or Ctrl+Enter (Windows).
    • To open the linked pull request, press Command+P (macOS) or Ctrl+P (Windows).

Примечание.

If you are unable to see some tasks in Raycast, the organization that owns the repository may have enabled OAuth app access restrictions. To learn how to request approval for the "GitHub Copilot for Raycast" OAuth app, see Запрос утверждения организации для приложений OAuth.

Further reading