GitHub introduces Copilot SDK to embed AI agents into your applications

Applications of AI


GitHub introduced the GitHub Copilot SDK in technical preview, allowing developers to embed Copilot’s agent functionality directly into their own applications.

The SDK exposes the same execution loop used by the GitHub Copilot CLI, including planning, calling tools, editing files, and running commands. According to GitHub, this aims to reduce the complexity of building agent-based systems from scratch.

Polestar-Banner in the middle of the article

“Building agent workflows from scratch is difficult,” Chief Product Officer Mario Rodriguez said in a blog post. “Even before we get to the actual product logic, we already have a small platform built.”

According to GitHub, the Copilot SDK provides programmatic access to Copilot’s production-tested agent loop, eliminating the need for developers to design their own planners and runtimes. The SDK supports multiple AI models, custom tool definitions, MCP server integration, GitHub authentication, and real-time streaming.

The technical preview will initially support Node.js, Python, Go, and .NET. Developers can use an existing GitHub Copilot subscription or provide their own API key. The open repository includes setup instructions, starter samples, and SDK references for each language.

GitHub recommends starting with a single task, such as updating a file or running a command, and allowing Copilot to plan and execute the steps while the host application provides the tools and constraints. An example shared on GitHub reveals that developers can create a Copilot client, start a session using a specified model, and send prompts programmatically.

The company says the SDK builds directly on the functionality of the Copilot CLI, which already allows users to plan projects, modify files, run commands, and delegate tasks without leaving the terminal. Recent updates to Copilot CLI include persistent memory, multi-step workflows, full MCP support, and asynchronous task delegation.

“The SDK takes advantage of Copilot CLI’s agent functionality and makes it available in your favorite programming language,” Rodriguez wrote. “This allows us to integrate Copilot into any environment.”

The company says its internal GitHub team used the SDK to build tools such as a YouTube chapter generator, summarization tools, custom agent interfaces, and voice command workflows.

GitHub positions the Copilot SDK as the execution layer, where GitHub manages authentication, model access, and session handling, while developers control how these components are used within their applications.



Source link