Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 5.19 KB

File metadata and controls

67 lines (50 loc) · 5.19 KB
title Using Copilot cloud agent from Raycast
shortTitle Use cloud agent from Raycast
intro Start and track {% data variables.copilot.copilot_cloud_agent %} sessions from the Raycast launcher.
product {% data reusables.gated-features.copilot-cloud-agent %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=purchase&ref_style=button" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>
versions
feature
copilot
contentType how-tos
category
Author and optimize with Copilot

{% data reusables.copilot.cloud-agent.raycast-intro %}

Prerequisites

{% data reusables.copilot.cloud-agent.raycast-setup %}

Starting a session

  1. Open Raycast, search for "{% data variables.product.prodname_copilot_short %}," find the Create Task command, then press Enter.

  2. Click Sign in with {% data variables.product.github %}, then complete the authentication flow. Raycast will re-open.

  3. Type a prompt describing what you want {% data variables.product.prodname_copilot_short %} to do.

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

  4. Select the repository you want {% data variables.product.prodname_copilot_short %} to work in.

  5. Optionally, select a base branch for {% data variables.product.prodname_copilot_short %}'s pull request. {% data variables.product.prodname_copilot_short %} will create a new branch based on this branch, then push the changes to a pull request targeting that branch. {% data reusables.copilot.optional-select-custom-agent-generic %} {% data reusables.copilot.optional-select-copilot-cloud-agent-model %}

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

    {% data variables.product.prodname_copilot_short %} will start a new session. {% data variables.product.prodname_copilot_short %} 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.

{% data reusables.copilot.cloud-agent.raycast-oauth-access-restrictions %}

Assigning an issue from Raycast

  1. Open Raycast, search for "{% data variables.product.prodname_copilot_short %}," find the Assign Issues to {% data variables.product.prodname_copilot_short %} command, then press Enter.

  2. Click Sign in with {% data variables.product.github %}, then complete the authentication flow. Raycast will re-open.

  3. Select the repository you want {% data variables.product.prodname_copilot_short %} to work in.

  4. Select the issue you want to assign to {% data variables.product.prodname_copilot_short %}.

  5. Optionally, select a base branch for {% data variables.product.prodname_copilot_short %}'s pull request. {% data variables.product.prodname_copilot_short %} will create a new branch based on this branch, then push the changes to a pull request targeting that branch. {% data reusables.copilot.optional-select-custom-agent-generic %} {% data reusables.copilot.optional-select-copilot-cloud-agent-model %}

  6. Optionally, provide additional instructions. These will be passed to {% data variables.product.prodname_copilot_short %} alongside your issue contents.

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

    {% data variables.product.prodname_copilot_short %} will start a new session. {% data variables.product.prodname_copilot_short %} 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.

{% data reusables.copilot.cloud-agent.raycast-oauth-access-restrictions %}

Tracking your sessions

  1. Open Raycast, search for "{% data variables.product.prodname_copilot_short %}," find the View Tasks command, then press Enter.
  2. Click Sign in with {% data variables.product.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 {% data variables.product.prodname_copilot_short %}'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).

Note

If you are unable to see some tasks in Raycast, the organization that owns the repository may have enabled {% data variables.product.prodname_oauth_app %} access restrictions. To learn how to request approval for the "{% data variables.product.prodname_copilot %} for Raycast" {% data variables.product.prodname_oauth_app %}, see AUTOTITLE.

Further reading