AI Engineering • June 05, 2026

GitHub Copilot Agent Tasks REST API Preview

GitHub has opened a public preview of the Agent Tasks REST API for Copilot Pro, Pro+, and Max users. The release matters because it turns Copilot cloud agent from an interactive product surface into a programmable backend for developer-platform workflows.

What changed

The API can start and track background agent tasks that run in GitHub-managed development environments. Those tasks can make and validate code changes, then prepare pull requests for review.

GitHub's examples point at three high-value use cases: fanning out refactors across many repositories, creating repositories from internal developer portals, and preparing release work on a schedule. That is a different operating model from asking an assistant inside an editor to make a local change.

Why platform teams should care

The API gives internal developer platforms a standard way to hand structured work to Copilot cloud agent. A portal can collect ownership, service tier, migration target, and rollout constraints, then submit a task instead of sending a human a checklist.

The tracking surface is equally important. Long-running agent work needs a status model that platform teams can observe, retry, and escalate. Without that, automation gets buried in chat transcripts or local terminal state.

Architecture pattern

A practical rollout should place a thin broker service between internal systems and the GitHub API. The broker can validate task templates, enforce repository allowlists, attach change tickets, and write audit events before invoking Agent Tasks.

For high-volume migrations, treat the API as an asynchronous job launcher. Store task IDs with repository metadata, poll or subscribe to progress where available, and route completed pull requests into the normal review queue.

Security and governance

The preview supports authentication with classic and fine-grained personal access tokens plus OAuth tokens. That means early adopters should avoid shared human tokens and prefer scoped automation identities with narrow repository access.

Agent task prompts should be versioned. If a migration template changes, teams need to know which repositories were touched by which prompt, model settings, and tool assumptions.

Adoption checklist

The strategic shift is clear: coding agents are becoming addressable infrastructure. Teams that already run internal developer portals should treat this preview as the first version of an agent job queue for software maintenance.

Read GitHub's changelog entry →