---
title: "GitHub’s Engineering Team has moved to Codespaces"
description: "GitHub moved development of its 14-year-old, 13 GB github/github monolith from bespoke macOS laptops to cloud-hosted Codespaces, replacing fragile local environments with disposable, task-per-branch dev environments."
url: "https://swe.quest/articles/github-s-engineering-team-has-moved-to-codespaces-1bb37c0be0b5fad7"
canonical: "https://github.blog/engineering/infrastructure/githubs-engineering-team-moved-codespaces/"
source: "GitHub Engineering"
published: "2021-08-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["developer-productivity","developer-tools","containers","cloud"]
---

# GitHub’s Engineering Team has moved to Codespaces

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2021-08-11, 9 min read, Case study. Original: [https://github.blog/engineering/infrastructure/githubs-engineering-team-moved-codespaces/](https://github.blog/engineering/infrastructure/githubs-engineering-team-moved-codespaces/)

## Summary

GitHub moved development of its 14-year-old, 13 GB github/github monolith from bespoke macOS laptops to cloud-hosted Codespaces, replacing fragile local environments with disposable, task-per-branch dev environments. Creation time went from 45 minutes to 5 by shallow cloning with background unshallowing and a nightly GitHub Action that builds a mostly-bootstrapped Docker base image for the devcontainer. It then dropped to 10 seconds with prebuilds, pools of fully cloned and bootstrapped codespaces. Centralized config also let them upgrade every engineer from 8-core to 32-core VMs with one line, share live previews via forwarded ports, and support Vim/Emacs users over SSH.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- Git cloning
- Docker images ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- dev containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

GitHub Codespaces, devcontainer, GitHub Actions, Visual Studio Code, Docker, prebuilds, Ruby on Rails

## Related posts

- [How GitHub’s Developer Experience team improved innerloop development](https://swe.quest/articles/how-github-s-developer-experience-team-improved-innerloop-development-a46c7e17f2bd5376.md): GitHub Engineering · 2024-01-24 · Medium · 8 min read · Developer productivity, Containers, Microservices, Testing, Go
  GitHub's Developer Experience team built Hubber Codespace (HCS), a Docker-Compose project that lets engineers stand up the full distributed GitHub ecosystem locally or in a codespace to integration-test changes before deploying.
- [The Journey to Cloud Development: How Shopify Went All-in on Spin](https://swe.quest/articles/the-journey-to-cloud-development-how-shopify-went-all-in-on-spin-ce0056dd1610d925.md): Shopify Engineering · 2022-06-09 · Medium · 20 min read · Developer productivity, Kubernetes, Containers, Cloud platforms
  Shopify replaced its laptop-based \`dev\` tool and xhyve-backed \`railgun\` VM with Spin, a cloud development environment, after monoliths and multi-repository projects outgrew local machines and made tophatting collaborators' changes painful.
- [How GitHub uses GitHub Actions and Actions larger runners to build and test GitHub.com](https://swe.quest/articles/how-github-uses-github-actions-and-actions-larger-runners-to-build-and-test-915368ba99ad3985.md): GitHub Engineering · 2023-09-26 · Medium · 8 min read · CI/CD, Developer productivity, Identity & auth, Scaling
  GitHub moved CI for GitHub.com to GitHub Actions on larger runners, peaking at about 4,500 concurrent 32-core runners, 15,000 jobs per hour and 150,000 cores.
- [How we build containerized services at GitHub using GitHub](https://swe.quest/articles/how-we-build-containerized-services-at-github-using-github-fb75069d884e4f71.md): GitHub Engineering · 2023-08-02 · Easy · 6 min read · Kubernetes, Developer productivity, Deployment, Containers, CI/CD
  GitHub runs hundreds of internal and production services on a "paved path": a Kubernetes-based, multi-cluster, multi-region platform plus conventions and custom tooling layered on top.
- [Host a Dev Environment on Render with VS Code and Tailscale](https://swe.quest/articles/host-a-dev-environment-on-render-with-vs-code-and-tailscale-6236fb7c08487752.md): Render · 2021-10-06 · Medium · 17 min read · Developer tools, Containers, Networking, Cloud platforms, Identity & auth
  A self-hosted cloud dev environment can run on Render as a private service, reached over a Tailscale subnet router and edited with VS Code's Remote-SSH extension. code-server works and installs as a PWA, but it lacks some extensions.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
