Let's Talk
Insights/Developer Tools
Developer Tools7 min read

Stop Using Copilot Just for Chat — CLI and Agent Mode Are Powerful

I see developers using Copilot to autocomplete lines and ask it quick questions in the chat pane. That's like buying a CNC machine and using it as a paperweight. The CLI and agent mode change what one developer can do in a day.

Web Designer & Digital Marketing Consultant

Featured image for: Stop Using Copilot Just for Chat — CLI and Agent Mode Are Powerful

I spent the first two years of Copilot's existence using it as a very fast autocomplete. It would finish my function names, suggest a whole function body I'd tweak, and let me ask questions in the chat panel when I was stuck. Useful. Incrementally better than before. Not a step-change. Not yet.

Then I actually read the documentation and learned what agent mode and Copilot CLI were designed for. And I want to save you two years of underusing a tool you're probably already paying for.

What chat mode is — and why it's Copilot's least powerful feature

The chat pane in VS Code is conversational. You ask a question, it answers. You ask it to write a function, it writes the function. You copy it into your file. It's a faster version of what you were already doing with Stack Overflow and your own knowledge — you're still the one making every decision, writing every edit, and running every command.

This is fine. It's faster than not having it. But it's not a qualitative change in how you work. You're still doing the same job. Copilot is giving you better suggestions.

Agent mode is different in kind, not just degree.

What Copilot agent mode actually does

Agent mode is a task executor. You describe what you want done — at a high level, in plain English — and Copilot reads your codebase, makes a plan, edits multiple files, runs commands, reads the output, notices errors, fixes them, and keeps going until the task is complete or it needs your input.

Here's a concrete example. I was building a client project — a Node.js backend with a set of API routes that needed rate limiting added across all of them. In chat mode, I would: ask how to implement rate limiting with express-rate-limit, copy the code, figure out which files need updating, make the changes across 8 route files, install the package, test it. Probably 45 minutes of careful, boring work.

In agent mode: "Add rate limiting to all API routes in this project. Use express-rate-limit. Limit to 100 requests per 15 minutes per IP. The auth routes (/api/auth/login and /api/auth/register) should be stricter — 10 requests per 15 minutes. Apply this globally but allow the rate limits to be configured via environment variables."

It read the project structure. Found every route file. Identified the server setup file. Installed express-rate-limit. Wrote the rate limiter configuration with the different limits I specified. Applied it to the correct middleware position in the Express setup. Created the environment variable references. Ran the tests. One test failed because of the tighter auth route limit — it fixed the test config. Done. About 8 minutes, most of which was me watching.

That's not "autocomplete." That's a developer-level task being executed autonomously.

GitHub Copilot CLI — the terminal power most people completely miss

Separate from the editor: Copilot CLI runs in your terminal. Two commands:

gh copilot suggest — describe what you want to do in plain English, get the shell command. "Find all files modified in the last 24 hours that are larger than 1MB." "Kill all processes running on port 3000." "Show me which Docker containers are using the most memory." "Recursively rename all .jpeg files to .jpg in this directory." It gives you the command, explains it, and asks if you want to run it, copy it, or revise the prompt.

gh copilot explain — paste any command you don't understand, get a plain-English breakdown. Useful when you find a script someone wrote 3 years ago and it's doing something arcane with awk and sed and you need to know if it's safe to modify.

This sounds modest. It isn't. I spend a non-trivial amount of time in a terminal — deploying to VPS servers, writing automation scripts, managing git, configuring nginx. The commands I reach for every day are the ones I know by heart. The ones I reach for occasionally — specific find commands, complex git history operations, server diagnostics — I used to look up. Now I describe what I need and get the command right the first time.

For Indian developers working with remote Linux servers (which is most of us managing our own VPS for client projects) — this is hours per month returned. Especially for server commands where a wrong flag can do real damage. Getting the exact command verified, with an explanation of what each flag does, is fast and safe.

The Copilot multi-agent setup for serious task automation

For complex projects — not just single tasks — you can use Copilot agent mode with multiple sub-agents. Define your project structure, give Copilot workspace context through the VS Code workspace settings, and use agent-to-agent coordination for tasks that span areas (one agent for the backend API changes, one for the tests, one reviewing the documentation). This is still evolving as of April 2026, but the trajectory is clear: the editor is becoming an orchestration environment, not just a writing environment.

The developers who will be most productive over the next 3–5 years are the ones who understand how to structure tasks for agent execution — how to break work into clear, verifiable pieces, how to write prompts that give the agent enough context to act independently, and how to review agent-produced code critically rather than blindly accepting it.

Specific workflows I've built with Copilot agent mode

To make this concrete rather than theoretical, here are the actual recurring workflows I've set up for client projects using agent mode:

Database migration preparation: "Analyse the current schema in /src/db/schema.ts. I need to add a organisations table with multi-tenancy support — each User should belong to an Organisation, and every resource should be scoped to an Organisation. Generate the migration file, update the schema types, update the User type to include organisationId, and identify the 5 API routes that will need updating to enforce organisation-level access. Don't make those API route changes yet — just list them." This is a scoping and analysis task. Agent mode reads the codebase, understands the dependencies, and produces a change plan I can review before implementation starts.

Test suite generation: "Generate Jest tests for every function in /src/utils/formatters.ts. For each function, write at minimum: one test for the happy path with typical input, one test with empty/null/undefined input, and one test with edge case input. Follow the test patterns already established in /tests/unit/paymentUtils.test.ts." Agent mode reads both files, understands the existing test style, and produces a test file that I review and approve. This task takes 25+ minutes to do manually and 4 minutes with agent mode.

Code review assistance: "Review the changes in the current git diff. Identify: any functions with side effects that aren't obvious from their names, any places where error handling is missing, any potential null reference errors, and any places where the code doesn't match the established patterns in the rest of the file." This is a true code review pass — the agent reads the diff, understands the codebase context, and produces specific observations. It doesn't replace human code review, but it catches the mechanical issues that reviewers sometimes miss when they're reading quickly.

Also see: Why GitHub Copilot beats Claude Code for most developers and Backend developers: your future is building AI agents.

Frequently asked questions

What is GitHub Copilot CLI and how is it different from Copilot in VS Code?

GitHub Copilot CLI is a command-line interface tool accessed via the `gh copilot` command (part of the GitHub CLI). It lets you use Copilot directly in your terminal for two primary tasks: `gh copilot suggest` (get a shell command suggestion from a natural language description — 'find all Docker containers using more than 500MB memory') and `gh copilot explain` (get a plain-English explanation of any shell command you paste in). The VS Code Copilot chat is IDE-integrated and context-aware about your open files. The CLI is broader — it works anywhere you have a terminal, including remote servers, CI/CD pipelines, and scripts, and it's specifically tuned for shell/git/system commands that the editor chat isn't optimised for.

What is Copilot agent mode and what can it do that regular Copilot can't?

Copilot agent mode (available in VS Code as of early 2026) is a multi-step autonomous task executor, not a single-response chat assistant. You give it a high-level task — 'add authentication to this Express app using JWT, with login/logout routes and middleware that protects the /api routes' — and it autonomously reads your existing code, plans the changes needed, makes edits across multiple files, runs terminal commands to install dependencies, runs tests, observes the output, and iterates until the task is complete. Regular Copilot chat gives you a single response you then implement yourself. Agent mode implements, runs, observes, and fixes — until the task is done or it hits something it needs your input on.

Is GitHub Copilot CLI free or part of a paid subscription?

GitHub Copilot CLI is part of the GitHub Copilot subscription. As of April 2026, Copilot has a free tier with limited monthly completions (2,000 code completions and 50 chat messages per month), and Copilot Pro at $10/month (≈₹840/month) for individuals with unlimited usage. Copilot Business at $19/user/month adds team management features and policy controls. For serious professional use, the free tier limits are hit quickly — Copilot Pro at ₹840/month is the meaningful subscription.

How do I set up GitHub Copilot CLI?

Install the GitHub CLI (`gh`) first: on macOS `brew install gh`, on Ubuntu `sudo apt install gh`, on Windows via winget. Then authenticate: `gh auth login`. Then install the Copilot extension: `gh extension install github/gh-copilot`. That's it. You can then run `gh copilot suggest 'your natural language command request'` or `gh copilot explain 'command to explain'`. For agent mode in VS Code, make sure you have the GitHub Copilot extension installed and updated to the latest version, then look for the agent mode option in the Copilot chat panel (the sparkle/wand icon or 'Agent' dropdown in the chat interface).

Ready to grow your business?

Get a free 30-minute strategy call

GitHub CopilotCopilot CLICopilot agent modeAI coding toolsdeveloper productivityVS Code

Want to apply this?

Book a free consultation

30 minutes, no obligations. I'll look at your current site and tell you exactly what I'd do differently.

Free Consultation
Call Now
WhatsApp