Skip to content

Remove RTK - #30

Merged
kelchm merged 1 commit into
t3code/upgrade-opencode2-add-pifrom
t3code/remove-rtk
Oct 3, 2026
Merged

kelchm merged 1 commit into
t3code/upgrade-opencode2-add-pifrom
t3code/remove-rtk

Conversation

@kelchm

@kelchm kelchm commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Stacked on #29.

Why

Three independent benchmarks (JetBrains, Glia, Quesma) put RTK at roughly cost-neutral on real agent work, with slightly more turns and flat-to-slightly-worse pass rates. Against that it costs two init scripts, a stitch in every instruction file, a CODEX_HOME workaround, and, after #29, a workaround for OpenCode 2 rejecting its plugin.

What changes

  • rtk leaves the mise config and the harness:update task.
  • The @RTK.md stitches and the "prefix supported commands with rtk" instruction leave the Claude and Codex instruction templates.
  • The RTK init scripts are replaced by a one-time cleanup script (macOS and Windows) that runs rtk init --uninstall for Claude, Codex, and Pi, then mise uninstall --all rtk. It exits quietly on a machine that never had RTK. Delete it once every machine has applied.
  • .chezmoiremove still deletes the stale OpenCode plugin.

Verified on macOS

Ran the rendered cleanup script against a throwaway HOME (with mise stubbed so the real install was untouched) after installing all three integrations there:

  • It removed both RTK.md files, the rtk hook entries in settings.json and hooks.json, and the Pi extension, and left an unrelated Bash hook in place.
  • A second run, and a run with no RTK installed, both exit 0.
  • Rendered CLAUDE.md, AGENTS.md, and the mise config contain no RTK references.

Not verified

  • The PowerShell script; it mirrors the shell one but was not run.
  • A real chezmoi apply.

Left behind on purpose

  • RTK's own data directory (history and settings), e.g. ~/Library/Application Support/rtk.
  • The settings.json.bak / hooks.json.bak files RTK writes when it edits those files.

🤖 Generated with Claude Code

Independent benchmarks put RTK at roughly cost-neutral on real agent
work, with slightly more turns, while it costs two init scripts, a
stitch in every instruction file, and now a workaround for OpenCode 2.

Drop the tool, its init scripts, the @RTK.md stitches, and the
instruction to prefix commands. A one-time script undoes what
`rtk init` wrote outside chezmoi's control and uninstalls the binary.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 387a6a2e-228e-4fc7-a7e7-a9522aab1ae3
📥 Commits

Reviewing files that changed from the base of the PR and between 3300dad and 3046b55.

📒 Files selected for processing (10)
  • .chezmoiremove
  • .chezmoitemplates/shared-agent-working-agreements.md
  • README.md
  • dot_claude/CLAUDE.md.tmpl
  • dot_codex/AGENTS.md.tmpl
  • dot_config/mise/config.toml
  • run_onchange_05-init-rtk.ps1.tmpl
  • run_onchange_05-init-rtk.sh.tmpl
  • run_onchange_05-remove-rtk.ps1.tmpl
  • run_onchange_05-remove-rtk.sh.tmpl
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kelchm
kelchm added this pull request to stack #31 October 3, 2026 18:33
@kelchm
kelchm merged commit 8f37e4b into master Oct 3, 2026
1 check passed
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