Fix command accuracy against real rtk-ai/rtk#2
Merged
Conversation
Verified the integration against RTK's actual command surface and corrected references to commands/flags that don't exist in real RTK, plus the hook framing for Command Code. - Remove `rtk tree` (RTK has `rtk ls`, no standalone tree command). - Remove `rtk gain --failures` (not a real gain flag); use `rtk discover` for the poor-fit / low-savings signal, and document RTK's real tee fallback ([tee] mode = "failures") for not losing output when a command fails. - Remove the unverified `rtk json --keys-only` flag; use plain `rtk json`. - Clarify that `rtk init` does not target Command Code yet, so the manual AGENTS.md path is the working default and a native PreToolUse hook needs custom wiring — rather than implying `rtk init -g` configures Command Code. - Soften "lossless" to "signal-preserving" to match RTK's filter-plus-tee behavior (full output recovered on failure, not guaranteed lossless). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VvpBXNCbbg4eibmZQZAbb6
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.
Summary
Verified the integration against RTK's actual command surface (rtk-ai/rtk README) and corrected references to commands/flags that don't exist in real RTK — so the agent isn't told to run commands that would fail — plus the auto-rewrite-hook framing for Command Code.
Corrections:
rtk tree— RTK exposesrtk ls; there is no standalonetreecommand.rtk gain --failures— not a realrtk gainflag. Replaced withrtk discover(the real poor-fit / low-savings signal) and documented RTK's real tee fallback ([tee] mode = "failures"), which keeps full output when a command fails.rtk json --keys-only— unverified flag; use plainrtk json <file>.rtk init's supported-agent list does not include Command Code, sortk init -gconfigures Claude Code/Copilot, not Command Code. The manualAGENTS.mdpath is the working default; a nativePreToolUsehook needs custom wiring until Command Code is supported upstream. (Previously the README impliedrtk init -gwas the fastest Command Code setup.)All other documented commands (
rtk err,rtk lint,rtk smart,rtk discover,rtk session,rtk proxy,rtk log,rtk env -f,rtk read -l aggressive,rtk kubectl pods/services/logs, the test/build wrappers,-u/--ultra-compact) were verified against RTK's README and are correct.Type of change
references/commands.md)install.sh/install.ps1)README.md/SKILL.md/AGENTS.md)Checklist
*.ps1)SKILL.mdstill has valid frontmatter (name:,description:)references/commands.md)SKILL.md/AGENTS.mdvalidation — verified locally)rtkcommand/flag referenced is confirmed against the real rtk-ai/rtk command surface🤖 Generated with Claude Code
https://claude.ai/code/session_01VvpBXNCbbg4eibmZQZAbb6
Generated by Claude Code