← Back to KHAO

Copilot · GitHub · Rust ·

Migrating the GitHub Copilot runtime to Rust, tapping Copilot

2 min read

Compiled by KHAO Editorial — aggregated from 1 source. See llms.txt for citation guidance.

★ Tier-1 Source

The Copilot runtime architecture before and after the Rust rewrite, showing the old SDK-to-CLI process boundary and the new in-process and out-of-process hosting paths.

The GitHub Copilot CLI, GitHub Copilot app, and GitHub Copilot SDK are all backed by the Copilot agent runtime, an agentic harness that can be embedded into applications and services.

Key facts

Summary

That has now changed. Using the GitHub Copilot app and the Copilot CLI, they completely rewrote the runtime into more than 800,000 lines of production Rust. The Copilot agent runtime isn’t the engine behind the Copilot CLI. These are different products, and none of them wants to or should need to implement everything that goes into a production agent harness. They want all of the intelligence, security, reliability, and performance, and they want it shared so that a fix in one place fixes it in all of them. So, shared runtime, good.

Read full article at GitHub Blog →

#Copilot #GitHub #Rust