Copilot Agent Runs Commands Locally in Terminal | Generated by AI

Home 2026.02

Question: When using VS Code Copilot in agent mode to run a command, is that command actually executed in the VS Code terminal, and can we check the progress in the embedded terminal?

Answer:

Yes, that’s correct.

In GitHub Copilot agent mode in VS Code (the local interactive agent accessed via the Chat view or Copilot Edits view by selecting “Agent” mode), when the agent needs to execute terminal commands (e.g., npm install, dotnet test, cargo build, starting a dev server, etc.), it runs them in VS Code’s integrated terminal.

Key points about how this works:

This is different from the separate GitHub-hosted Copilot coding agent (which runs in the cloud via GitHub Actions and does not use your local VS Code terminal).

So yes — when using agent mode in VS Code and Copilot proposes/runs commands, you can (and should) watch the embedded terminal to follow what’s happening, see live output, and intervene if needed.

References:


Back Donate