Skip to main content

GitHub Copilot CLI Tips & Tricks — Part 3: Parallelizing Work

In the previous posts we covered the different CLI modes and session management. This time we're looking at one of Copilot CLI's most powerful features: the /fleet command. If you've ever wished you could clone yourself to tackle several parts of a codebase at once, this is the closest thing to it.


What is /fleet?

When you send a prompt to Copilot CLI, by default a single agent works through the task sequentially. /fleet changes that model entirely.

The /fleet slash command lets Copilot CLI break down a complex request into smaller tasks and run them in parallel, maximizing efficiency and throughput. The main Copilot agent analyzes the prompt and determines whether it can be divided into smaller subtasks. It then acts as an orchestrator, managing the workflow and dependencies between those subtasks, each handled by a separate subagent.

In practice, this means a task that might take 20 minutes sequentially can complete in a fraction of the time — because independent chunks of work are being executed concurrently.

How to use /fleet

The typical workflow is to use /fleet after creating an implementation plan. Switch into plan mode with Shift+Tab, describe the feature or change you want, and work with Copilot to produce a structured plan. Once the plan is complete, you'll be presented with two options:

  • Accept plan and build on autopilot + /fleet — Copilot immediately spins up subagents and works autonomously to implement the plan without further input.
  • Exit plan mode and prompt myself — you're dropped back to the main prompt, where you can then type /fleet implement the plan to kick things off manually.

The first option is the faster path. The second gives you a moment to review or tweak your prompt before committing.

You can also use /fleet directly without going through plan mode first, by prefixing any prompt with the command:

/fleet add unit tests for every service in src/services/

Copilot will assess whether the work can be parallelized and assign subtasks to subagents accordingly. For something like writing tests across multiple independent service files, this is a natural fit.




Monitoring subagents with /tasks

Once /fleet kicks off, you don't have to sit in the dark wondering what's happening. Use the /tasks slash command to see a list of all background tasks for the current session, including any subtasks being handled by subagents. Navigate the list with the up and down arrow keys. For each subagent task you can:

  • Press Enter to view details — and see a summary of what was done once it completes
  • Press k to kill the process
  • Press r to remove completed or killed subtasks from the list
  • Press Esc to exit the task list and return to the main prompt

This is your control panel while fleet is running. Make a habit of opening /tasks after launching /fleet so you can catch any subtask that gets stuck or goes in the wrong direction early.


When to reach for /fleet

Not every task benefits from parallelization. /fleet shines when your work is naturally divisible into independent chunks.

Good candidates:

  • Writing a test suite for an existing feature — each test file can be worked on independently
  • Applying a consistent change across multiple modules (e.g., updating an import path, migrating an API version)
  • Generating boilerplate for several similar components at once
  • Running a refactor across files that don't depend on each other

Poor candidates:

  • Tasks with strict sequential dependencies — if step B needs the output of step A, parallelization won't help and may cause conflicts
  • Ambiguous or exploratory tasks — if the goal isn't clearly defined, subagents may head in diverging directions
  • Small, single-file tasks — the orchestration overhead isn't worth it for simple jobs a single agent can handle quickly

When you're using autopilot mode and want the quickest possible completion of a large task, /fleet is the right tool. But if your task cannot be cleanly split into independent subtasks, the main agent will handle it sequentially regardless.

Wrapping up

/fleet is the multiplier that makes Copilot CLI genuinely competitive with human multitasking. Once you've identified a task that parallelizes well, the combination of plan mode + /fleet + autopilot is one of the most productive workflows the CLI offers.

In the next post, we'll look at extending GitHub Copilot agent behavior with hooks.

Popular posts from this blog

Podman– Command execution failed with exit code 125

After updating WSL on one of the developer machines, Podman failed to work. When we took a look through Podman Desktop, we noticed that Podman had stopped running and returned the following error message: Error: Command execution failed with exit code 125 Here are the steps we tried to fix the issue: We started by running podman info to get some extra details on what could be wrong: >podman info OS: windows/amd64 provider: wsl version: 5.3.1 Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM Error: unable to connect to Podman socket: failed to connect: dial tcp 127.0.0.1:2655: connectex: No connection could be made because the target machine actively refused it. That makes sense as the podman VM was not running. Let’s check the VM: >podman machine list NAME         ...

Cache stampede: when our cache turned against us

While investigating some performance issues, we ran into an ASP.NET Core API that cached a fairly expensive aggregation query for 60 seconds. Under normal load, that was fine: one request rebuilds the cache, everyone else reads from it. Under peak load, dozens of requests would arrive in that same expiry window, all see a cache miss, and all fire the same expensive query in parallel. The database didn't like that. That was the moment when our caching layer stopped helping and started hurting. A burst of requests comes in at the same time, all miss the cache, and all go hammer the database or the downstream API at once. That's a cache stampede . The cache was supposed to protect our backend, and for a few hundred milliseconds it did the opposite. Why this happens IMemoryCache.GetOrCreate (and its async sibling) looks like it protects you, but it doesn't add any locking on its own. Look at the naive version: public async Task<Report> GetReportAsync(string key) ...

A complex system designed from scratch never works

A few years ago, I worked as an architect on a big mainframe rewrite. I still count it as one of my failures. Not because the technology was wrong, but because I couldn't convince the management team to simplify the approach. Years later, the organization is still struggling to get the new system up and running. I left the project at the time, because I couldn't put my name behind an approach that would take very long and cost a lot of money without a working system to show for it along the way. Gall’s Law That memory keeps coming back to me, because it's a textbook case of Gall's Law playing out in real life. Gall's Law , from John Gall's Systemantics , states it plainly: A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works, and it cannot be patched to make it work. You have to start over with a simple system that works. What does that mean in practice,...