Embedding Copilot's agentic core
Standing up an agentic workflow from zero means owning context management, tool orchestration, model routing, MCP server integration, and all the permission and failure handling around it. The GitHub Copilot SDK, now in technical preview, removes that infrastructure burden by exposing the same agentic execution loop behind GitHub Copilot CLI as a programmatic interface.
The SDK gives applications access to the production-tested runtime that powers the CLI — a full planner, tool loop, and execution environment. Instead of building that platform yourself, you can embed the loop directly and focus on product logic. GitHub handles the surrounding services: authentication, multi-model support, custom tool definitions, MCP server integration, chat session management, and real-time streaming.
Evolving Copilot CLI workflows
Copilot CLI already operates across planning, file modification, command execution, custom agents, and cloud task delegation from the terminal. Since its initial release, GitHub has expanded its agentic capabilities in three areas:
- Persistent workflows — memory that survives sessions, infinite session continuity, and intelligent compaction when context grows.
- Structured thinking — explore, plan, and review phases where you select the model at each step.
- Delegated execution — custom agents, agent skills, full MCP support, and asynchronous task handoff.
Building on the SDK
By packaging the CLI's execution loop as a library, the SDK lets you integrate Copilot into any environment — GUI applications with AI-driven workflows, personal productivity tools, or internal enterprise agents. GitHub's own teams have already used it to ship tools like YouTube chapter generators, custom agent GUIs, speech-to-command desktop workflows, AI-opponent games, and summarization utilities.
From a developer's perspective, the SDK acts as an execution platform: you get the agentic loop, and GitHub supplies the infrastructure for authentication, model management, MCP servers, custom agents, chat sessions, and streaming. What you build on top of those primitives is up to you. The SDK repository is available for those looking to start building.



