What Is GitHub Copilot CLI
GitHub Copilot CLI is not the autocomplete you already know — it is a terminal-native agent that reads your entire project, runs shell commands, and executes multi-step tasks from a single prompt.
GitHub Copilot CLI is the version of Copilot that actually does things — not the one that suggests the next line while you type.
Most developers who use GitHub Copilot know it as the autocomplete that lives in their editor. It watches the cursor and proposes code. That is one product. Copilot CLI is a different product with a different architecture, different scope, and a different operational model. The two are not in competition — they solve different problems — but confusing them will leave you using a Ferrari as a grocery cart.
What "terminal-native" actually means
When you run copilot, you enter an interactive session in your terminal. From that session, Copilot CLI has access to everything your shell has access to: every file in the project, every tool on your PATH, and the ability to run arbitrary commands (subject to your permission configuration).
This is not a sandboxed environment where an AI suggests code and you decide whether to paste it. It is an agent that reads, writes, and executes. The distinction matters because the mental model for using it is different. You are directing a collaborator, not prompting a generator.
The agent loop
Understanding how Copilot CLI works mechanically removes most of the mystery. When you give it a prompt, it does not immediately produce an answer. It runs a loop.
The loop starts with thinking: the model reasons about your prompt, decides what it needs to know, and picks the first tool call to make. It might read a file, run a test, or search across the codebase. Then it observes the result. Based on what it sees, it decides whether the task is complete or whether another tool call is needed. The loop continues until the task is done or Copilot CLI determines it needs to ask you something.
This means a single prompt like "find why the auth tests are failing and fix the root cause" can generate ten or more tool calls — reading the test file, reading the source files those tests import, running the tests to see the actual error, reading the error, editing the source, running the tests again to confirm the fix. All of this happens in one session with no copy-pasting from you.
What it is not
Copilot CLI is not a replacement for the Copilot editor extension. Both products serve real purposes. If you are writing code line by line and want next-line suggestions, the editor extension is the right tool. If you have a task — "refactor this service," "add tests for this module," "debug this error" — Copilot CLI is the right tool.
It is also not a chatbot. You can have a back-and-forth conversation in a session, but the primary mode is task execution. You give it a goal and it executes. Conversation is for clarification and iteration, not the primary loop.
The relationship to GitHub Actions and other Copilot products
GitHub has several Copilot products. Copilot in your editor is one. Copilot Chat in the browser is another. Copilot Workspace — a cloud environment where Copilot plans and implements full features — is a third. Copilot CLI sits closest to you on the compute spectrum: it runs locally, in your terminal, with your git context, your credentials, and your file system.
This proximity is its advantage. It does not need to clone your repo to a cloud environment or simulate your development setup. It works inside your actual environment.
Lesson Drill
Before moving to installation, ground your understanding with these three exercises:
- Open your current or most recent project in your terminal and identify one task you did manually last week that Copilot CLI could have handled. Write it down in one sentence.
- What is the difference between Copilot CLI's "agent loop" and a chatbot's "question-answer" model? Explain it without looking back at this lesson.
- What would you need to verify before trusting Copilot CLI to run shell commands on a production-adjacent codebase?
Bottom Line
GitHub Copilot CLI is a terminal-native agent with full project access and shell execution capability. It operates through a think-tool-observe loop that can handle multi-step tasks from a single prompt. It is not an editor autocomplete and not a chatbot — it is a task executor that works inside your real development environment.
The next lesson gets it installed and runs your first session.