How github/copilot-cli works
GitHub Copilot CLI is a terminal-based AI coding assistant. The documented workflow starts when a developer launches the CLI and submits a natural-language task; the agent can plan and execute coding work, with actions previewed for explicit approval. It also provides GitHub context, MCP extensibility, model selection, authentication, and optional LSP-based code intelligence. This repository tree contains no application source excerpts, so component paths are unavailable and relationships shown here rely only on README.md documentation.
Components 13
CLI interaction
- Copilot CLI
- GitHub login
- Model selection
Agent work
- Coding agent
- Coding task
- Action approval
Integrations
- GitHub services
- Built-in MCP
- Custom MCP servers
Code intelligence
- LSP servers
- LSP configuration
Other components
- Developer
- Local codebase
Connections 15
- Developer → Copilot CLI: launches
README.md - Developer → Copilot CLI: submits prompts
README.md - Copilot CLI → GitHub login: prompts login
README.md - Developer → Model selection: selects model
README.md - Copilot CLI → Coding agent: provides assistance
README.md - Coding agent → Coding task: plans and executes
README.md - Coding agent → Action approval: previews actions
README.md - Developer → Action approval: approves actions
README.md - Coding agent → Local codebase: works with code
README.md - Copilot CLI → GitHub services: accesses context
README.md - Coding agent → Built-in MCP: uses by default
README.md - Coding agent → Custom MCP servers: extends through
README.md - Copilot CLI → LSP configuration: reads configuration
README.md - LSP configuration → LSP servers: configures
README.md - Copilot CLI → LSP servers: supports code intelligence
README.md