Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

The GitHub CLI includes a built-in gh copilot command that automatically downloads and manages the Copilot CLI. This replaces the manual npm installation workflow.

Changes

  • docs/reference/engines.md: Added concise "Running Copilot CLI Locally" section featuring gh copilot as primary installation method, clarified it's built into GitHub CLI
  • skills/copilot-cli/SKILL.md: Deleted per feedback - redundant with main documentation
  • docs/src/content/docs/agent-factory-status.mdx: Reverted to original state - this is an auto-generated file that should not be manually modified
  • Clarified that users only need to install GitHub CLI - no separate extension required
  • Removed excessive technical details (download location, removal command) to keep documentation focused

Before/After

Before:

npm install -g @github/copilot
# Manual PATH configuration, version management, troubleshooting

After:

gh copilot
# Built into GitHub CLI, automatic installation management

The documentation now provides clear, concise guidance without unnecessary implementation details.

[!WARNING]

Custom agent used: technical-doc-writer
AI technical documentation writer for GitHub Actions library using GitHub Docs voice

Custom agent used: technical-doc-writer
AI technical documentation writer for GitHub Actions library using GitHub Docs voice

Custom agent used: technical-doc-writer
AI technical documentation writer for GitHub Actions library using GitHub Docs voice

Original prompt

Remove copilot-cli installation instructions and instead use the github CLI extension "gh copilot ...".

Although this extensions was originally used for a differerent purpose, it now provides an easy to run the copilot-cl.

Custom agent used: technical-doc-writer
AI technical documentation writer for GitHub Actions library using GitHub Docs voice


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove copilot-cli installation instructions and update usage details docs: replace npm copilot-cli installation with gh copilot extension Feb 3, 2026
Copilot AI requested a review from pelikhan February 3, 2026 02:00
@pelikhan
Copy link
Contributor

pelikhan commented Feb 3, 2026

@copilot gh copilot is builtin to the gh cli so the only thing you need is the github cli.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 3, 2026

@copilot gh copilot is builtin to the gh cli so the only thing you need is the github cli.

Updated the documentation to clarify that gh copilot is built into the GitHub CLI. Changed wording from "GitHub CLI extension" to "built-in gh copilot command" and emphasized that users only need to install the GitHub CLI itself. (5f8cb47)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot delete this file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted the skill file. (0bf4fc2)

Copilot AI changed the title docs: replace npm copilot-cli installation with gh copilot extension docs: replace npm copilot-cli installation with built-in gh copilot command Feb 3, 2026
The `gh copilot` command automatically downloads and manages the Copilot CLI installation. No manual installation required!

> [!TIP]
> The `gh copilot` command is built into the GitHub CLI and handles installation automatically. If the Copilot CLI is not already installed, it will be downloaded to `~/.local/share/gh/copilot`. To remove it, use `gh copilot --remove`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot too much details

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the detailed TIP callout with download location and removal command. (0bf4fc2)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot revert this file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted agent-factory-status.mdx to its original state. This file is auto-generated and should not be manually modified. (5566a9c)

Copy link
Contributor Author

Copilot AI commented Feb 3, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 3, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@pelikhan pelikhan marked this pull request as ready for review February 3, 2026 02:23
Copilot AI review requested due to automatic review settings February 3, 2026 02:23
@pelikhan pelikhan merged commit 76d37d9 into main Feb 3, 2026
@pelikhan pelikhan deleted the copilot/remove-copilot-cli-instructions branch February 3, 2026 02:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request aims to document the gh copilot command as an alternative method for running GitHub Copilot CLI locally, while also removing the redundant copilot-cli SKILL.md documentation file. The PR updates the engines reference documentation with a new section about local Copilot CLI usage.

Changes:

  • Added "Running Copilot CLI Locally" section to engines.md documenting gh copilot command
  • Deleted skills/copilot-cli/SKILL.md file containing detailed CLI integration documentation
  • Updated documentation link from authentication-specific to general CLI reference

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/src/content/docs/reference/engines.md Added local usage section for gh copilot command, restructured "Required Secrets" heading, updated documentation link
skills/copilot-cli/SKILL.md Complete file deletion removing 233 lines of CLI integration documentation
Comments suppressed due to low confidence (6)

skills/copilot-cli/SKILL.md:1

  • The deletion of this entire SKILL.md file creates a broken reference in AGENTS.md at line 1117, which links to this file with: "- copilot-cli - GitHub Copilot CLI integration for agentic workflows"

This reference needs to be updated or removed as part of this PR to maintain consistency in the codebase. The PR description mentions the file was deleted because it was "redundant with main documentation," but the main documentation (engines.md) doesn't provide the same level of technical detail about CLI usage, MCP configuration, and integration patterns that was previously in this SKILL.md file.
docs/src/content/docs/reference/engines.md:45

  • The "Required Secrets" heading placement is confusing. It appears after the "Running Copilot CLI Locally" section, but the secrets are required for the GitHub Agentic Workflows engine configuration, not for running gh copilot locally.

This creates a logical disconnect where users might think these secrets are needed for local gh copilot usage. The section should either:

  1. Be placed before the "Running Copilot CLI Locally" section to maintain the logical flow from engine setup to local usage
  2. Or the "Running Copilot CLI Locally" section should be removed/relocated since it's not directly related to the workflow engine configuration that precedes it
### Required Secrets

docs/src/content/docs/reference/engines.md:63

  • The documentation link has been changed from authentication-specific documentation to a general CLI reference (gh.io/copilot-cli). However, the preceding sentence specifically discusses the COPILOT_GITHUB_TOKEN and authentication requirements.

It would be more helpful to keep a link to authentication documentation here, or add an additional sentence that provides context for what the linked documentation covers. The current change makes it less clear where users should look for authentication-specific guidance.

For more information about GitHub Copilot CLI, see the [official documentation](https://gh.io/copilot-cli).

docs/src/content/docs/reference/engines.md:40

  • The command example shows just gh copilot without any arguments or explanation of what it does. This is too minimal to be useful.

Users would benefit from knowing:

  1. That this launches an interactive assistant (not a one-time command)
  2. What authentication is required (if any)
  3. That this is for local developer use, separate from the workflow engine configuration discussed in the rest of this section

Consider adding a brief explanation like: "This launches an interactive AI assistant in your terminal. Authentication is handled automatically through your GitHub CLI login."

```bash wrap
gh copilot
**docs/src/content/docs/reference/engines.md:42**
* The statement that `gh copilot` "is built into the GitHub CLI" may be misleading. Based on the context of the PR description mentioning it "automatically downloads and manages the Copilot CLI installation," it appears that `gh copilot` is more of an extension or automatic downloader rather than being truly "built-in" to the core GitHub CLI.

The phrasing should be clarified to accurately reflect whether this is:
1. A core built-in command shipped with GitHub CLI
2. An extension that's automatically installed/managed
3. A wrapper that downloads the actual Copilot CLI on first use

This distinction is important for users understanding the architecture and dependencies.

The gh copilot command is built into the GitHub CLI and automatically downloads and manages the Copilot CLI installation. No additional installation required - just install the GitHub CLI!

**docs/src/content/docs/reference/engines.md:42**
* There's a significant discrepancy between the PR description and the actual changes. The PR description states this replaces "npm copilot-cli installation with built-in gh copilot command" and shows a before/after comparison suggesting the npm installation workflow is being replaced.

However, the actual changes only add documentation about local `gh copilot` usage without:
1. Removing or replacing any npm installation instructions (which were in the deleted SKILL.md, but that file was for reference, not installation instructions)
2. Updating the actual workflow files (.github/workflows/copilot.yml and test-copilot-github-integration.yml) which still use npm installation
3. Clarifying that workflows/CI continue to use npm while local development can use `gh copilot`

The PR should either:
- Update the description to accurately reflect that this adds local usage documentation alongside existing npm-based workflow usage
- Or expand the changes to actually replace npm installation in workflows (if that's technically feasible)

Running Copilot CLI Locally

To run the GitHub Copilot CLI on your local machine, use the gh copilot command:

gh copilot

The gh copilot command is built into the GitHub CLI and automatically downloads and manages the Copilot CLI installation. No additional installation required - just install the GitHub CLI!

</details>



---

💡 <a href="/github/gh-aw/new/main/.github/instructions?filename=*.instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add Copilot custom instructions</a> for smarter, more guided reviews. <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn how to get started</a>.

Comment on lines +34 to +43
### Running Copilot CLI Locally

To run the GitHub Copilot CLI on your local machine, use the `gh copilot` command:

```bash wrap
gh copilot
```

The `gh copilot` command is built into the GitHub CLI and automatically downloads and manages the Copilot CLI installation. No additional installation required - just install the [GitHub CLI](https://cli.github.com/)!

Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Running Copilot CLI Locally" section is misleading in this context. The engines.md documentation is about configuring AI engines for GitHub Agentic Workflows (GitHub Actions), not about running the Copilot CLI locally on a developer's machine.

The gh copilot command is an interactive CLI tool for developers to get AI assistance in their terminal, which is different from the @github/copilot npm package used by the workflow engine to execute agentic workflows.

This section should either be removed entirely (since it's not relevant to the workflow engine configuration) or clarified to explain that gh copilot is a separate tool for interactive use, distinct from the workflow engine's automated usage of the Copilot CLI.

This issue also appears in the following locations of the same file:

  • line 44
  • line 63
  • line 38
  • line 42
  • line 34
Suggested change
### Running Copilot CLI Locally
To run the GitHub Copilot CLI on your local machine, use the `gh copilot` command:
```bash wrap
gh copilot
```
The `gh copilot` command is built into the GitHub CLI and automatically downloads and manages the Copilot CLI installation. No additional installation required - just install the [GitHub CLI](https://cli.github.com/)!
### Relationship to GitHub Copilot CLI
When you configure `engine: copilot` for GitHub Agentic Workflows, the workflow engine uses the `@github/copilot` npm package under the hood while running in GitHub Actions.
This is distinct from the interactive `gh copilot` command provided by the GitHub CLI, which is intended for developers to use manually in their local terminal. Using `gh copilot` is optional and not required to configure or run the Copilot engine for workflows.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants