Skip to content

dirien/devcontainer-coding-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding Agent Sandbox

A devcontainer that bundles four AI coding agents — Claude Code, GitHub Copilot CLI, OpenCode, and Codex — with Pulumi, Kubernetes tooling, and 29 agent skills, 12 agents, 5 hooks, and 4 MCP servers powered by yaah. Open it in VS Code (or any devcontainer-compatible editor) and you get a ready-to-go environment for building cloud infrastructure with AI assistance.

What's inside

Coding agents: Claude Code, GitHub Copilot (VS Code extension + CLI), OpenCode, Codex

Languages: Node.js, Python, Go (all latest)

Infrastructure tools: kubectl, Helm, GitHub CLI

Linters and language servers: Ruff, golangci-lint, gopls, Prettier, Pyright, TypeScript language server

Agent harness: yaah v0.2.2 — generates skills, agents, hooks, and MCP server config for all four agents via yaah generate. See docs/tools-and-skills.md for the full list.

Prerequisites

  • Docker (or a compatible container runtime)
  • VS Code with the Dev Containers extension, or another devcontainer-compatible tool (GitHub Codespaces, DevPod, etc.)

Quick start

  1. Clone the repo:
git clone https://github.com/dirien/devcontainer-coding-agents.git
cd devcontainer-coding-agents
  1. Open in VS Code and reopen in container when prompted (or run Dev Containers: Reopen in Container from the command palette).

  2. Authenticate whichever agents you want to use:

# Claude Code — OAuth (port 19999 is pre-forwarded)
claude auth login --callback-port 19999

# GitHub Copilot CLI
copilot /login

# OpenCode
opencode auth login

# Codex — set OPENAI_API_KEY env var
  1. Start building.

Environment variables

Set these on your host machine before opening the container, or pass them through your devcontainer tooling. They get forwarded into the container automatically.

Variable Purpose
ANTHROPIC_API_KEY Claude Code (alternative to OAuth), OpenCode
OPENAI_API_KEY OpenCode, Codex
GITHUB_TOKEN GitHub CLI and Copilot
PULUMI_ACCESS_TOKEN Pulumi Cloud

Forwarded ports

Port Used by
19999 Claude Code OAuth callback
4096 OpenCode API
4097 OpenCode Web UI
3000, 8000, 8080 General dev servers

Persistence

Claude Code configuration is stored in a Docker volume (claude-config) mounted at /home/vscode/.claude, so your settings survive container rebuilds.

Customization

Edit .devcontainer/devcontainer.json to add or remove features, skills, tools, or port forwards. The postCreateCommand section runs once when the container is first built; postStartCommand runs on every start.

License

This project is licensed under the MIT License — see the LICENSE file for details.

About

Devcontainer with four AI coding agents (Claude Code, Copilot, OpenCode, Codex) and yaah for unified config generation

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages