Skip to content

Redesign RTK integration to be net-positive on tokens and quality#1

Merged
Coding-Dev-Tools merged 1 commit into
mainfrom
claude/rtk-command-code-pr-review-hftsym
Jun 30, 2026
Merged

Redesign RTK integration to be net-positive on tokens and quality#1
Coding-Dev-Tools merged 1 commit into
mainfrom
claude/rtk-command-code-pr-review-hftsym

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

Summary

Shifts the integration from "always prefix every command with rtk, use ultra-compact -u for maximum savings" to a selective, lossless-by-default policy.

The old blanket + aggressive posture is what made RTK net-negative for some users: lossy modes (-u / --ultra-compact, -l aggressive, rtk smart) drop the failing assertion or the file:line the model needs, which forces re-runs (more tokens) and degrades reasoning — while the always-on instructions cost context every session regardless of savings.

Key changes:

  • AGENTS.md — lean, always-on policy: compress noisy/low-stakes output; keep full fidelity for diffs/patches, structured/JSON output, secrets, small output, and files you'll edit; never default to lossy modes; escalate fidelity (not blind re-runs) when a compressed view falls short.
  • SKILL.md — recommend RTK's auto-rewrite PreToolUse hook (rtk init -g) over manual prefixing; add a fidelity ladder, when-NOT-to-use, and net-savings guidance; bump to 0.2.0.
  • references/commands.md — reorganized into 🟢/🟡/🔴 tiers (compress freely / plain-mode-only / run raw); fixes rtk read vs the native Read tool; drops aggressive-as-default. Leaner, so it costs less always-on context.
  • references/analytics.md — optimize net savings: watch rtk gain --failures and rtk discover, stop wrapping poor fits.
  • README.md — corrects the false "no auto-rewrite hook" claim, adds a "when RTK helps vs keep full fidelity" rationale grounded in context-rot research, reframes the teaching table by tier.

Grounded in RTK's actual behavior (default mode preserves errors / diffs / stack traces / exit codes and falls back to raw on parse failure) and long-context degradation research ("context rot" / "lost in the middle").

Type of change

  • Command mapping added/corrected (references/commands.md)
  • Installer change (install.sh / install.ps1)
  • Documentation (README.md / SKILL.md / AGENTS.md)
  • Other:

Checklist

  • Line endings are correct (LF everywhere except *.ps1)
  • SKILL.md still has valid frontmatter (name:, description:)
  • References stay in sync (full tiered table lives only in references/commands.md)
  • CI passes (installer lint + SKILL.md / AGENTS.md validation — verified locally)
  • No installer change in this PR (n/a)

🤖 Generated with Claude Code

https://claude.ai/code/session_01VvpBXNCbbg4eibmZQZAbb6


Generated by Claude Code

Shift from "always prefix every command with rtk, use ultra-compact for
maximum savings" to a selective, lossless-by-default policy so RTK cuts
tokens without hiding detail the model needs — detail loss otherwise forces
re-runs that cost more than they save and degrade output quality.

- AGENTS.md: lean, always-on policy. Compress noisy/low-stakes output; keep
  full fidelity for diffs/patches, structured/JSON output, secrets, small
  output, and files to edit; never default to lossy modes; escalate fidelity
  (not blind re-runs) when a compressed view falls short.
- SKILL.md: recommend RTK's auto-rewrite PreToolUse hook (rtk init -g) over
  manual prefixing; add a fidelity ladder, when-NOT-to-use, and net-savings
  guidance; bump to 0.2.0.
- references/commands.md: reorganize into green/yellow/red tiers (compress /
  plain mode only / run raw); fix rtk-read vs native Read; drop
  aggressive-as-default. Leaner, so it costs less always-on context.
- references/analytics.md: optimize NET savings — watch `rtk gain --failures`
  and `rtk discover`; stop wrapping poor fits.
- README.md: correct the "no auto-rewrite hook" framing, add a "when RTK helps
  vs keep full fidelity" rationale grounded in context-rot research, reframe
  the teaching table by tier.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VvpBXNCbbg4eibmZQZAbb6
@Coding-Dev-Tools Coding-Dev-Tools merged commit 0d024e3 into main Jun 30, 2026
1 check passed
@Coding-Dev-Tools Coding-Dev-Tools deleted the claude/rtk-command-code-pr-review-hftsym branch June 30, 2026 14:14
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.

2 participants