Add devcontainer setup for AI coding agents #3437
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
summary
hey guys, this as a draft PR to add a devcontainer config for AI coding agents (claude code, cursor, et al) and just ol' flesh and bone contributors.
I included an
install.shthat is used to initialize the devcontainer either in standard mode (default) or full ML dev mode (pytorch etc).standard takes a couple of minutes on my machine (m4, 24gb) and full ML dev mode more like 10 min.
I recommend using Orbstack instead of Docker Desktop (seems to be easier on my system's resources) but only if you know how to set it up.
lastly, I'm not an expert in devcontainers so this is largely built by claude itself but I built it on my machine multiple times until it was smooth enough, so I hope that's your experience too. Otherwise let me know!
facts
files
.devcontainer/Dockerfile- container image with all dev tools.devcontainer/devcontainer.json- VS Code configuration and settings.devcontainer/docker-compose.yml- service orchestration.devcontainer/.env.example- API keys template.devcontainer/mcp-proxy-config.json- MCP server integration.devcontainer/README|AGENTS.md- docs and agent guidelinesmore facts
testing
compose, but I haven't tested themreferences
This implementation follows best practices from: