various coding agent / tools (claude, antigravity-cli) in a container to sandbox their execution.
1.4K
A Dockerfile to be used as a sandbox for your coding agent. This is a highly personal setting and might be chaning on my personal preferences.
Comes setup with:
I have a shell function to start the docker container with pre-defined mounts:
agent-sandbox() (
docker run -ti --rm \
-v ~/.config/gemini:/home/ubuntu/.gemini \
-v ~/.config/claude:/home/ubuntu/.claude \
-v ~/.cache/mise:/home/ubuntu/.cache/mise \
-v ~/.config/mise:/home/ubuntu/.config/mise \
-v ~/.local/share/mise:/home/ubuntu/.local/share/mise \
-v ~/.local/state/mise:/home/ubuntu/.local/state/mise \
-v ./:/workdir \
coding-agent-sandbox
)
which adds my gemini and claude setup (custom dir), mise caches and the current working directory.
claude code stores settings in two places. The .claude directory and the
~/.claude.json file. The later one is important and tracks the initial
onboarding as well as the authentication. To avoid getting reprompt for this on
every start be sure to also place this file in the container.
actions:lintactions:lintLint GitHub Actions workflows and actions with ghalint
buildbuildBuilds the docker container
build:ghcachebuild:ghcacheBuilds the docker container
docsdocsdocUpdate tasks in README
runrunRuns the docker container for manual testing
Content type
Image
Digest
sha256:ad8db822b…
Size
572.2 MB
Last updated
3 days ago
docker pull roude/coding-agent-sandbox