Skip to main content
Development 1 min read 320 views

GitHub Copilot CLI Adds Custom Agents and Context Management

January update brings Explore and Task agents, Copilot Spaces integration, and auto-compaction at 95% token limit.

TD

TechDrop Editorial

Share:

GitHub has released significant updates to Copilot CLI, introducing custom agents, enhanced context management, and new installation options. The January 2026 update transforms the terminal experience for developers working with AI assistance.

Custom Agents

Copilot CLI now includes specialized custom agents for common tasks. The Explore agent enables fast codebase analysis, allowing developers to ask questions about code without cluttering the main context. The Task agent handles commands like tests and builds with appropriate isolation.

Context Management

The GitHub MCP server now includes Copilot Spaces tools for project-specific context. Auto-compaction automatically compresses conversation history when approaching 95% of the token limit, maintaining relevant context without manual intervention.

New Web Fetch Tool

A new web_fetch tool retrieves content from URLs as markdown, enabling Copilot to incorporate web documentation and resources. URL access is controlled through ~/.copilot/config with allowed_urls and denied_urls patterns for security.

Installation Improvements

Copilot CLI is now included in the default GitHub Codespaces image and available as a Dev Container Feature. Better diff visualization with intra-line syntax highlighting shows exactly what changed, integrating with Git's configured pager for familiar viewing.

Related Articles