Skip to content

chore: speed up Codespaces, remove Claude Code, simplify devcontainer#24

Merged
idvoretskyi merged 1 commit intomainfrom
chore/speed-up-and-remove-claude
Apr 27, 2026
Merged

chore: speed up Codespaces, remove Claude Code, simplify devcontainer#24
idvoretskyi merged 1 commit intomainfrom
chore/speed-up-and-remove-claude

Conversation

@idvoretskyi
Copy link
Copy Markdown
Owner

Summary

  • Drop heavy features: removes docker-in-docker, sshd, and git devcontainer features — the largest contributors to slow Codespaces cold-starts. Docker and SSH remain accessible on Codespaces via host-level tooling.
  • Disable zsh/Oh My Zsh in common-utils to reduce feature install time; default shell is now bash.
  • Slim Dockerfile: removes build-essential, curl, wget, jq from the apt layer (already provided by the base image and common-utils feature) and drops a dead .ssh directory block.
  • Cache OpenCode via prebuilds: moves npm install -g opencode-ai from postCreateCommand to updateContentCommand, so it is baked into Codespaces prebuilds and not re-executed on every container start.
  • Remove Claude Code: drops anthropic.claude-code VS Code extension, @anthropic-ai/claude-code npm install, and all related smoke-test checks.
  • Remove Docker extension: drops ms-azuretools.vscode-docker (consistent with removing Docker-in-Docker).
  • Trim CI: removes claude/docker smoke-test steps, drops unnecessary fetch-depth: 0 from the test job.
  • README: removes Claude Code and Docker references, adds a "Speeding Up Codespaces with Prebuilds" setup guide, updates startup-time estimates to 45–75 s (no prebuild) / 10–25 s (with prebuild).

Expected startup time improvement

Scenario Before After
Cold-start, no prebuild ~2–3 min ~45–75 s
Cold-start, with prebuild n/a ~10–25 s
Container restart ~30–60 s ~5–10 s

Notes

  • Ubuntu 26.04 base image is not yet published by Microsoft; version bump deferred until mcr.microsoft.com/devcontainers/base:ubuntu-26.04 is available.
  • Prebuilds require enabling in repo Settings → Codespaces (instructions in updated README).

- Drop docker-in-docker, sshd, git features (heaviest contributors to
  slow cold-starts); docker and ssh remain accessible on Codespaces
  via host-level tooling
- Disable zsh and Oh My Zsh in common-utils to reduce feature install time
- Remove build-essential, curl, wget, jq from Dockerfile apt layer
  (provided by base image and common-utils feature)
- Remove dead .ssh directory block from Dockerfile
- Move opencode install to updateContentCommand so it is cached by
  Codespaces prebuilds and not re-executed on every container start
- Remove anthropic.claude-code extension and ms-azuretools.vscode-docker
  extension
- Trim CI smoke test: remove claude/docker checks, drop fetch-depth:0
  from test job
- Update README: remove Claude Code and Docker refs, add Codespaces
  prebuilds setup instructions, update startup-time estimates
@idvoretskyi idvoretskyi merged commit efc3f3c into main Apr 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant