This repository contains a small collection of personal dev container features that I use to streamline my development environment.
The setup-claude feature prepares the container so Claude Code can use a persistent configuration directory from the host machine. It links the host's Claude configuration folder into the container so your settings and data are preserved across sessions.
| Option | Type | Default | Description |
|---|---|---|---|
mountClaudeDirectory |
boolean | false |
Enables or disables the bind mount of the host Claude configuration directory into the container. |
src/
setup-claude/
devcontainer-feature.json
install.sh
README.md
Each feature lives in its own subdirectory under src/ and includes:
- a devcontainer-feature.json file for the feature definition and options
- an install.sh entrypoint that runs during container build time
- feature-specific documentation in its own README
To work on this repository locally:
- Edit the feature definition in
src/<feature>/devcontainer-feature.json. - Update the install logic in
src/<feature>/install.sh. - Validate the script syntax with:
bash -n src/setup-claude/install.sh- Run the feature tests with:
devcontainer features test --features setup-claude --skip-scenariosThis repository is intentionally small right now. I will add more reusable dev container features here as my workflow evolves, while keeping each feature focused on a single purpose.
{ "name": "My Dev Container", "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "ghcr.io/jakesactualface/devcontainer-features/setup-claude:latest": { "mountClaudeDirectory": true } } }