← Back to tools
View AGENTS.md for GitHub Copilot CLI
GitHub Copilot CLI
AI-powered coding agent in your terminal by GitHub
Description
GitHub Copilot CLI brings the power of Copilot directly to your terminal. It is an autonomous coding agent that can plan complex tasks, execute multi-step workflows, edit files, run tests, and iterate — all through natural language conversations. Deeply integrated with GitHub for repositories, issues, and pull requests. Supports MCP servers for extensibility and multiple AI models.
Install
homebrew
brew install copilot-clinpm
npm install -g @github/copilotshell
curl -fsSL https://gh.io/copilot-install | bashwinget
winget install GitHub.CopilotAI Summary
GitHub's terminal-native AI coding agent — plans, builds, reviews, and iterates on code through natural language, with deep GitHub integration.
Capabilities
- + Autonomous multi-step coding tasks from natural language
- + Plan and execute complex workflows (edit, test, iterate)
- + Deep GitHub integration (repos, issues, PRs)
- + MCP server support for extensibility
- + Multiple model support (Claude Sonnet, GPT-4, etc.)
- + Preview changes before execution
- + LSP integration for code intelligence
Use When
- → You want an AI coding agent in the terminal
- → You need to plan, build, and debug code with AI assistance
- → You work heavily with GitHub repos, issues, and PRs
- → You want agentic multi-step task execution
Avoid When
- x You don't have a GitHub Copilot subscription
- x You need offline-only operation
Usage Patterns
Start a conversation
copilot Launch the interactive agent in your terminal
Ask a coding question
copilot "refactor this function to use async/await" Provide a natural language prompt directly
Input / Output
stdin: Interactive terminal input
stdout: Conversational responses, code edits, and command output
Typical Pipelines
copilot → edit files → run tests → commit