From ebbdab751c19f0caad4079096537948aaebc1905 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 27 Apr 2026 11:54:55 +0000 Subject: [PATCH] feat: add opencode TUI installation to devcontainer Agent-Logs-Url: https://github.com/idvoretskyi/dev/sessions/2ffa43bf-b2c0-4a6d-ba41-de7f6b371df4 Co-authored-by: idvoretskyi <118459+idvoretskyi@users.noreply.github.com> --- .devcontainer/devcontainer.json | 2 +- .github/workflows/ci.yml | 2 ++ README.md | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a457c41..1617ac0 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -53,6 +53,6 @@ } } }, - "postCreateCommand": "npm install -g @anthropic-ai/claude-code && python3 --version && node --version && docker --version && gh --version && claude --version && echo 'Development environment ready'", + "postCreateCommand": "npm install -g @anthropic-ai/claude-code opencode-ai && python3 --version && node --version && docker --version && gh --version && claude --version && opencode --version && echo 'Development environment ready'", "remoteUser": "vscode" } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0438047..30271f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,11 +57,13 @@ jobs: which node || echo "node is missing" which npm || echo "npm is missing" which claude || echo "claude is missing" + which opencode || echo "opencode is missing" # Test essential packages python3 --version node --version docker --version gh --version claude --version + opencode --version curl --version jq --version \ No newline at end of file diff --git a/README.md b/README.md index bf59197..4d2674f 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Codespaces and local VS Code Dev Containers. - Docker-in-Docker with Docker Compose v2 - GitHub CLI - Claude Code CLI installed in `postCreateCommand` + - OpenCode TUI installed in `postCreateCommand` - Zsh and common shell utilities - Build essentials (`gcc`, `make`, and related packages) - SSH daemon support via the devcontainer feature @@ -35,7 +36,7 @@ The devcontainer balances speed with operability: - Avoids full package upgrades during image build to reduce rebuild time - Uses the devcontainer feature set for Node.js, Git, Docker, GitHub CLI, and SSH - Uses Ubuntu's packaged Python runtime for a faster base setup -- Installs Claude Code CLI in `postCreateCommand` instead of baking it into the image +- Installs Claude Code CLI and OpenCode TUI in `postCreateCommand` instead of baking them into the image - Limits editor customizations to a small, broadly useful extension set Estimated startup time: 2-3 minutes, depending on feature downloads and