AJ ZAFAR

Architecting intelligence. Delivering impact.

Development & Code Apps4 min read

Copilot CLI gets built-in agents and proper context management

The January Copilot CLI update adds built-in agents, auto-compaction, new install routes and scripting flags. Here is what matters for teams using it day to day.

GitHub Copilot CLI in a terminal delegating a Java upgrade plan to a background agent and showing the resulting task list

GitHub shipped a sizeable GitHub Copilot CLI update on 14 January 2026. It is still in public preview (it has been since September 2025), but this release is the one where it starts to feel like a tool you can hand to a whole team rather than a toy for the keen few.

The headline items are built-in agents, much better handling of long sessions, and installation routes that do not depend on Node being set up just so. There is also a pile of smaller changes aimed at people who script the CLI or run it in pipelines.

What was announced

Models

  • GPT-5 mini and GPT-4.1 are included and do not consume premium requests on paid plans.
  • If you are on Pro or Pro+ and pick a model that is disabled by policy (through the model picker, /model or --model), the CLI now prompts you to enable it instead of just failing.

Built-in agents

  • Four agents ship in the box: Explore, Task, Plan and Code-review.
  • The CLI delegates to them automatically, several can run in parallel, and they work with Agent Skills.

New ways to install

  • winget install GitHub.Copilot on Windows, brew install copilot-cli on macOS, or the install script with curl -fsSL https://gh.io/copilot-install | bash. These routes auto-update.
  • It is now in the default Codespaces image and available as a Dev Container Feature, and standalone executables are attached to the releases.
  • If you installed through npm, update with npm install -g @github/copilot@latest.

Scripting and automation

  • New flags for copilot -p: --silent, --share, --share-gist, --available-tools, --excluded-tools and --additional-mcp-config.
  • GITHUB_ASKPASS support for CI/CD authentication.
  • Copilot Spaces tools are now part of the GitHub MCP server.

Context management

  • Auto-compaction kicks in at 95% of the token limit, and you can trigger it yourself with /compact.
  • /context shows what is using your context window.
  • --resume now lets you TAB through both local sessions and remote coding agent sessions.

Quality of life

  • Diffs use your Git pager, /cwd and /add-dir get tab completion, Ctrl+T shows the model’s reasoning, and commands run by the agent stay out of your shell history.
  • A new web_fetch tool, with allowed_urls and denied_urls rules in ~/.copilot/config. Those same rules apply to curl and wget run by the agent.
Copilot CLI terminal output showing a request to upgrade to JDK 21 and Spring Boot 3.2, a background planning agent being started, and a summary table of current and target versions
The CLI handing work to a background agent and reporting back. This example from Microsoft Learn uses the modernization plugin, but the delegation pattern is the same one the new built-in agents follow.Edit: screenshot updated to the current interface.Image: Microsoft Learn (CC BY 4.0)

What it means for organisations

The built-in agents are the bit I care about most. On my projects the pain with agentic tools is rarely the model, it is the single long conversation that drifts and fills up. Having Explore and Plan as separate agents means the main session stays focused, and parallel delegation makes “go and look at these three areas” a reasonable ask rather than a slow one.

Context management matters for the same reason. Auto-compaction at 95% is a sensible default, but I would teach people to use /context and /compact deliberately. A tidy context gives better answers and fewer surprises.

The install changes are a quiet win for IT. WinGet and Homebrew are channels most organisations already manage, and auto-update removes the “which version are you on” conversation. Being in the default Codespaces image also lowers the barrier for teams already standardised on dev containers.

The scripting flags and GITHUB_ASKPASS are where this crosses from developer laptop into pipeline. That is useful, but it is also where governance needs to catch up. --available-tools and --excluded-tools let you narrow what the agent can do in a non-interactive run, and I would treat those as mandatory in CI rather than optional.

The web_fetch allow and deny lists deserve attention from security teams. Applying the same rules to curl and wget closes an obvious gap. It is not a full egress control, so keep your network controls in place, but it is a sensible first layer.

And the usual caveat: this is still public preview. Expect behaviour to change, and do not build critical automation on flags that might be renamed.

↑↓ navigateEnter openEsc close