Demo: Using /delegate in the GitHub Copilot CLI

GitHubAbout 4 min readJan 26, 2026Watch original
THE SUMMARYAI-generated

Key Concepts

  • GitHub Copilot CLI: A command-line interface for GitHub Copilot, enabling interaction and task delegation.
  • Delegation: The process of offloading tasks to GitHub Copilot agents running in the cloud.
  • Remote Agents: Instances of GitHub Copilot operating in a cloud environment to execute tasks.
  • WSL (Windows Subsystem for Linux): A compatibility layer for running Linux binary executables natively on Windows.
  • Next.js: A React framework for building web applications.
  • Playwright: A Node.js library to automate Chromium, Firefox and WebKit with a single API.
  • Pull Request: A method of submitting changes to a repository for review and integration.

Upgrading a Next.js Application with GitHub Copilot CLI Delegation

The video demonstrates the use of GitHub Copilot CLI to upgrade a Next.js 15 application to Next.js 16, leveraging the “delegate” functionality to offload the upgrade process to cloud-based agents. Scott, the presenter, initiates the process from within WSL on Windows, but notes the CLI also functions natively within PowerShell on Windows and macOS.

Initial Plan Generation & Delegation Command

Scott first requested Copilot to create a plan for the upgrade. Instead of executing the plan locally, he opted to delegate the task to the cloud using the /delegate command. This command instructs Copilot to execute the generated plan remotely. Specifically, the command delegate execute on this plan in the cloud and upgrade the app was used.

Cloud Execution & Remote Agent Activity

Upon executing the /delegate command, Copilot initiated a “delegating session to GitHub coding agent.” This involved transferring the conversation history and context to remote agents hosted in the cloud. The presenter then switched to the browser to observe the activity in the cloud environment. The system created a pull request – pull request number six – to implement the changes. The browser interface displays a chronological review of the entire interaction, including the original prompt and the ongoing execution of the upgrade.

Concurrent Local & Cloud Workflows

A key benefit highlighted is the ability to continue working locally while Copilot performs the upgrade in the cloud. Scott emphasizes this by stating he can “go off and do my thing” and continue development on his local machine while the cloud-based Copilot handles the upgrade process. The system utilizes Playwright to interact with the browser and automate the upgrade steps.

Session Review & Accessing Logs

Once the delegated session is complete, users can review the results by clicking “view session.” The logs from the cloud execution are streamed and accessible for detailed inspection.

Installation & Resources

Scott provides instructions for installing the GitHub Copilot CLI via npm (npm install), Windget, or Brew. He also directs viewers to the official website: copilot.github.com.

Notable Quote

“It did that just by saying delegate, which is pretty cool.” – Scott, highlighting the simplicity and efficiency of the delegation feature.

Technical Details & Frameworks

  • Next.js 15 to 16 Upgrade: The specific task demonstrates Copilot’s ability to handle version upgrades within a popular web development framework.
  • Playwright Integration: The use of Playwright indicates Copilot’s capability to automate browser-based tasks, crucial for testing and application updates.
  • Pull Request Workflow: The creation of a pull request facilitates code review and integration, adhering to standard software development practices.

Logical Flow

The video follows a clear progression: initial request, plan generation, delegation to the cloud, concurrent local work, and session review. This demonstrates a seamless workflow where Copilot handles computationally intensive or time-consuming tasks while the developer remains productive.

Data & Statistics (Implicit)

While no specific statistics are presented, the demonstration implicitly highlights the potential for increased developer productivity through task delegation and parallel processing.

Conclusion

The video effectively showcases the power of GitHub Copilot CLI’s delegation feature. By offloading tasks to cloud-based agents, developers can maintain productivity and focus on higher-level activities while Copilot handles the execution of complex operations like application upgrades. The integration with standard development workflows, such as pull requests, further enhances its utility.

AI summaries can miss context or contain errors. Check important details against the original video.

Go a little deeper.

Have a question about this video? Load its transcript to open the video chat.