Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Sources

GitHub Engineering

2026

GitHub Engineering

Building the Agent Host Protocol for sessions that continue across devices

Case study 7 min +70 XP

The Agent Host Protocol (AHP) is an open standard that lets multiple clients (VS Code, the Copilot app, mobile apps, custom tools) share the same long-running agent sessions, so work started on one device can continue on another.

GitHub Engineering

Staying Evergreen: How we automated secure access and repo hygiene in a shared org

Case study 8 min +80 XP

Evergreen is a Go-based GitHub App that automates quarterly outside-collaborator access reviews and stale-repo archival in a shared org of 1,400+ GitHub employees, customers and partners, built entirely from native primitives: scheduled Actions firing repository_dispatch, webhooks, issue checklists, custom properties, and per-repo JSON state files in git that double as the audit trail.

GitHub Engineering

Rendering huge pull requests in the GitHub Copilot app

Case study 13 min +130 XP

The GitHub Copilot app's pull request view stays responsive on a 2,200-file, million-line diff with 400+ review comments by splitting document height into two geometries: exact, precomputed prefix-summed code rows and lazily measured dynamic blocks for comments, drafts and composers.

How we make AI coding more cost efficient without sacrificing task quality

Case study 10 min +100 XP

GitHub Copilot cut agent costs by optimizing for whole-task outcomes rather than per-tool-call token counts, after finding that aggressive shell-output compression (RTK) made agents reread or rerun commands and raised end-to-end cost.

GitHub Engineering

Better tools made Copilot code review worse. Here’s how we actually improved it.

Case study 9 min +90 XP

Swapping Copilot code review's bespoke exploration tools for the shared Copilot CLI tools (grep, glob, view) initially raised review cost and reduced useful comments, because the tool instructions encouraged broad, repo-browsing behavior instead of diff-anchored investigation.

GitHub Engineering

Agent-driven development in Copilot Applied Science

Opinion 9 min +90 XP

A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.

How we rebuilt the search architecture for high availability in GitHub Enterprise Server

Case study 5 min +50 XP

GitHub Enterprise Server's HA mode is replacing its single Elasticsearch cluster spanning primary and replica nodes with independent single-node clusters per server, linked by Elasticsearch Cross Cluster Replication (CCR).

2025

Design system annotations, part 1: How accessibility gets left out of components

Case study 10 min +100 XP

Accessible design system components don't guarantee accessible designs: heading hierarchies break when components are composed, alt text and labels depend on context, and Figma components can't convey implementation details like link-vs-button or form submission.

2024

Exploring the challenges in creating an accessible sortable list (drag-and-drop)

Case study 7 min +70 XP

Building a keyboard-, screen-reader- and voice-control-accessible sortable list surfaced several non-obvious pitfalls, each with a concrete fix. role='application' is applied only to the drag trigger and only while dragging, so arrow keys can be reassigned without breaking screen reader navigation.

How GitHub reduced testing time for iOS apps with new runner features

Case study 4 min +40 XP

GitHub's iOS team cut CI testing time by 60%, from 38 to 15 minutes, by moving to Apple silicon M1 macOS runners (macos-14-xlarge) and splitting a single monolithic build-and-test job into per-module jobs across roughly 60 first-party modules.

2023

GitHub Engineering

How we organize and get things done with SERVICEOWNERS

Case study 4 min +40 XP

GitHub added a service layer between code and teams in its 4.2M-line Rails monolith: a SERVICEOWNERS file maps glob patterns, directories and files to named services, and a service-mappings.yaml ties each service to teams, managers, chat channels and tier ratings.

2022

GitHub Engineering

How we use Dependabot to secure GitHub

Case study 7 min +70 XP

GitHub's Product Security Engineering team rolled Dependabot out across several thousand internal repositories in three stages: measuring alerts org-wide through the GraphQL API, a staged enablement (200 repos, then 1,000 at 30 days, then the whole org at 45 days), and remediation.

2021

GitHub Engineering

Partitioning GitHub’s relational databases to handle scale

Case study 9 min +90 XP

GitHub split its monolithic `mysql1` MySQL cluster by first virtually partitioning tables into schema domains (declared in YAML) and enforcing boundaries with query and transaction linters, then physically moving domains to new clusters via Vitess vertical sharding or a custom ProxySQL/GTID-based write-cutover script.

How we scaled the GitHub API with a sharded, replicated rate limiter in Redis

Case study 9 min +90 XP

GitHub replaced a Memcached-based API rate limiter, which suffered evictions and could not survive a move to per-datacenter caches, with application-sharded Redis clusters (one primary, several read replicas) and atomic Lua scripts, rolled out behind a feature flag.

2018

GitHub Engineering

MySQL High Availability at GitHub

Case study 15 min +150 XP

GitHub replaced VIP- and DNS-based MySQL primary discovery with a decoupled pipeline: orchestrator/raft detects failures and promotes a new primary, each orchestrator node writes the new identity to its local Consul KV store, and consul-template reconfigures GLB/HAProxy writer pools reached via anycast.

The quest for software engineering knowledge.

Look:
Layout: