Files
rtk-ai__rtk/src/cmds/ruby/README.md
T
Adrien Eppling a1673f7428 docs: scope savings claims to bash output and document the estimator
RTK was documented as delivering "60-90% token savings", which reads as a
cost reduction. What RTK actually reduces is bash output bytes. Those are
one contributor to input tokens, which are themselves only part of a bill
that also counts output tokens, so the reduction dilutes at every step.

- add docs/guide/resources/savings-explained.md as the canonical explainer:
  the savings chain, both estimators, and what RTK does not reduce
- rescope the headline claim across README (7 languages), the guide, hook
  rules, agent definitions and module READMEs
- relabel per-command tables as bash output reduction, keeping every figure
- document that reported tokens are estimates: rtk gain uses bytes/4
  (src/core/tracking.rs), filter tests use split_whitespace().count().
  Neither is a real tokenizer, so ratios hold but absolute counts do not

Remove figures that had no source: the $3/Mtok constant and its $36
example, the +/-10% tokenization accuracy claim, the 99.5% hook-install
figure, the invented session tables in README and INSTALL, and the 30-50%
parser range.

CHANGELOG is untouched. Shipped release notes stay as a historical record.
2026-07-22 18:33:54 +02:00

801 B

Ruby on Rails

Part of src/cmds/ — see also docs/contributing/TECHNICAL.md

Specifics

Percentages below are reductions in bash output, measured with RTK's token estimator rather than a real tokenizer.

  • rake_cmd.rs filters Minitest output via rake test / rails test; state machine text parser, failures only (85-90% reduction)
  • rspec_cmd.rs uses JSON injection (--format json) with text fallback; failures only (60%+ reduction)
  • rubocop_cmd.rs uses JSON injection, groups by cop/severity (60%+ reduction)
  • All three modules use ruby_exec() from utils.rs to auto-detect bundle exec when a Gemfile exists
  • TOML filter bundle-install.toml strips Using lines from bundle install/update (90%+ reduction)