Repository navigation
feat!: remove rtk from all images - #241
Merged
Merged
Conversation
rtk rewrote the agent's shell commands to compress their output. Its filters have open reports of silently truncated or lossy output (rtk-ai/rtk#4559, own limits are enough here. - Drop the rtk download stage and binary from claude-code, ralphex-fe and the repo's own devcontainer, its Renovate entry, and the CI version checks. - init-plugins.sh (both) replaces `rtk init` with a transitional cleanup that removes the `rtk hook claude` entry earlier runs left in ~/.claude, which would otherwise error on every Bash call. - ralphex-fe strips a host rtk hook from its copy of the host settings.json. - devcontainer-browser skill: plain `find -not -path`, now that rtk no longer rejects compound predicates.
…template The cleanup lived in init-plugins.sh, so it reached only projects that re-copied the template and re-ran it: in the default variant that's a manual step, and until then every Bash call logged a hook error. It now runs as a second managed SessionStart hook (/usr/local/bin/drop-rtk-hook), which every project gets on its next session after pulling the image. The script is silent because SessionStart stdout goes into Claude's context. Delete it and its hook after 2027-01-31. ralphex-fe's tool table listed hand-typed versions that Renovate bumps never touched (Bun 1.4.2, Hugo 0.166.0, Claude Code 2.1.280). It now says which tools are Renovate-pinned instead, and lists the Docker CLI it was missing.
gatezh
force-pushed
the
feat/remove-rtk
branch
from
October 22, 2026 22:45
437d2ec to
24a6959
Compare
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes rtk from the
claude-code(both targets),ralphex-feand repo devcontainer images. The image itself cleans up the hook rtk left in existing~/.claudevolumes.Why
rtk rewrote the agent's shell commands (
ls→rtk ls) to compress their output. The token savings come with a correctness cost: rtk's open issues include several reports of output that is silently truncated or changed, which the agent then treats as complete:rtk grepcaps results at 50 without saying so, and gives-c,-land-mdifferent meanings from grep.rtk git statusshowed 10 of 126 files.rtk go test -vdrops passing-test output.grep … | headreturns different lines than the command asked for.Changes
rtk-downloadstage and itsCOPYare removed fromclaude-code,ralphex-feand.devcontainer.rtk-ai/rtkleaves the "devcontainer tools" group.rtk --versionleavesverify-image.shand the ralphex-fe verify string./usr/local/bin/drop-rtk-hookruns as a second managedSessionStarthook. It removes only thertk hook claude/rtk-rewrite.shPreToolUse entries from~/.claude/settings.jsonand keeps every other hook. Every project gets it on its next session after pulling the image, with no template change. It's silent, because SessionStart stdout goes into Claude's context. Delete it after 2027-01-31..devcontainer/init-plugins.shhas the same cleanup inline.ralphex-fe/init-docker.shstrips a host rtk hook from its copy ofsettings.json; the host file is untouched.devcontainer-browserskill: plainfind … -not -path '*/node_modules/*'. The| grep -vworkaround existed only because rtk rejected compoundfindpredicates.ARG, Renovate" instead of hand-typed versions (they were stale: Bun 1.4.2, Hugo 0.166.0, Claude Code 2.1.280), and lists the Docker CLI it was missing.Notes
init -g --hook-only --auto-patchwrites exactly one entry, PreToolUse{"matcher":"Bash","command":"rtk hook claude"}. The cleanup removes it and keeps an unrelated hook. It's silent and a no-op on a missing file or a second run (tested indebian:trixie-slim).