Skip to content

feat(rtk): add RTK devcontainer feature#5

Merged
pocky merged 1 commit into
mainfrom
feat/rtk
Feb 28, 2026
Merged

feat(rtk): add RTK devcontainer feature#5
pocky merged 1 commit into
mainfrom
feat/rtk

Conversation

@pocky
Copy link
Copy Markdown
Contributor

@pocky pocky commented Feb 28, 2026

Summary

  • Add RTK as a new Dev Container feature, enabling token-optimized CLI proxying (60-90% savings) for AI coding agents inside devcontainers
  • Supports latest or pinned version installs, with automatic architecture detection (amd64/arm64) and global RTK initialization for the container user
  • Document the new feature in README alongside existing features (Flutter, Claude Code, Tree-sitter, GrepAI)

Changes

Feature Implementation

  • src/rtk/devcontainer-feature.json: Feature manifest declaring RTK with a single version option, runs after common-utils
  • src/rtk/install.sh: Install script resolving latest version via GitHub API, downloading arch-specific musl/gnu binary, installing to /usr/local/bin, and running rtk init --global for the container user

Tests

  • test/rtk/scenarios.json: Default test scenarios configuration (empty, uses devcontainer feature test defaults)
  • test/rtk/test.sh: Smoke tests verifying rtk is on PATH and rtk --version returns a non-empty string

Documentation

  • README.md: Add RTK section with usage example, version option table, architecture support note, and global init behavior; update TOC and repository structure diagram

Test plan

  • Build the feature locally: devcontainer features test -f rtk .
  • Verify rtk is on PATH inside the container: command -v rtk
  • Verify rtk --version returns a valid version string
  • Test with a pinned version option ("version": "0.22.2") to confirm version resolution works

Generated with awf commit workflow

@pocky pocky marked this pull request as ready for review February 28, 2026 22:09
- `README.md`: Add RTK feature documentation with options, examples, and architecture support
- `src/rtk/devcontainer-feature.json`: Add feature manifest with version option
- `src/rtk/install.sh`: Add installation script with arch detection and global init
- `test/rtk/scenarios.json`: Add test scenarios configuration
- `test/rtk/test.sh`: Add feature test suite
@pocky pocky merged commit 7f91696 into main Feb 28, 2026
4 checks passed
@pocky pocky deleted the feat/rtk branch March 4, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant