CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
364 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/test-all.sh | 229 | # ── 7. Curl ────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 237 | # ── 8. Npm / Npx ──────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 244 | # ── 9. Pnpm ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 289 | # ── 13. Deps ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 296 | # ── 14. Env ────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 303 | # ── 16. Log ────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 317 | # ── 17. Summary ────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 323 | # ── 18. Err ────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 329 | # ── 19. Test runner ────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 335 | # ── 20. Gain ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 342 | # ── 21. Config & Init ──────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 349 | # ── 22. Wget ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 369 | # ── 24. Prisma ─────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 375 | # ── 25. Vitest ─────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 381 | # ── 26. Docker / Kubectl (help only) ──────────────── |
| MEDIUM | scripts/test-all.sh | 388 | # ── 27. Python (conditional) ──────────────────────── |
| MEDIUM | scripts/test-all.sh | 462 | # ── 31. Global flags ──────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 469 | # ── 32. CcEconomics ───────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 475 | # ── 33. Learn ─────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 482 | # ── 32. Rewrite ─────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 507 | # ── 33. Verify ──────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 513 | # ── 34. Proxy ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 520 | # ── 35. Discover ────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 526 | # ── 36. Diff ────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 532 | # ── 37. Wc ──────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 538 | # ── 38. Smart ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 544 | # ── 39. Json edge cases ────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 550 | # ── 40. Docker (conditional) ───────────────────────── |
| MEDIUM | scripts/test-all.sh | 561 | # ── 41. Hook check ─────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 567 | # ══════════════════════════════════════════════════════ |
| MEDIUM | scripts/test-all.sh | 569 | # ══════════════════════════════════════════════════════ |
| MEDIUM | scripts/test-all.sh | 22 | # ── Helpers ────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 101 | # ── Preamble ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 122 | # ── 1. Version & Help ─────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 129 | # ── 2. Ls ──────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 143 | # ── 2b. Tree ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 156 | # ── 3. Read ────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 170 | # ── 4. Git ─────────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 196 | # ── 5. GitHub CLI ──────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 210 | # ── 6. Cargo ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 256 | # ── 10. Grep ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 269 | # ── 11. Find ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 276 | # ── 12. Json ───────────────────────────────────────── |
| MEDIUM | scripts/test-all.sh | 410 | # ── 28. Go (conditional) ──────────────────────────── |
| MEDIUM | scripts/test-all.sh | 429 | # ── 29. Graphite (conditional) ───────────────────── |
| MEDIUM | scripts/test-all.sh | 440 | # ── 30. Ruby (conditional) ────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 128 | # ── Preamble ───────────────────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 137 | # ── Temp dir + cleanup trap ────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 144 | # ── Setup phase (not counted in assertions) ────────── |
| MEDIUM | scripts/test-ruby.sh | 264 | # ══════════════════════════════════════════════════════ |
| MEDIUM | scripts/test-ruby.sh | 266 | # ══════════════════════════════════════════════════════ |
| MEDIUM | scripts/test-ruby.sh | 268 | # ── 1. RSpec ───────────────────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 363 | # ── 8. RSpec pending ───────────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 371 | # ── 9. RSpec text fallback ─────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 379 | # ── 10. RSpec empty suite ──────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 387 | # ── 11. Token savings ──────────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 439 | # ── 12. Verbose flag ───────────────────────────────── |
| MEDIUM | scripts/test-ruby.sh | 447 | # ══════════════════════════════════════════════════════ |
| MEDIUM | scripts/test-ruby.sh | 449 | # ══════════════════════════════════════════════════════ |
| MEDIUM | scripts/test-ruby.sh | 24 | # ── Helpers ────────────────────────────────────────── |
| 194 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .claude/hooks/rtk-rewrite.sh | 1 | #!/usr/bin/env bash |
| LOW | .claude/skills/performance/SKILL.md | 61 | ls -lh target/release/rtk | tee /tmp/after_binary_size.txt |
| LOW | .rtk/filters.toml | 1 | # Project-local RTK filters — commit this file with your repo. |
| LOW | hooks/copilot/test-rtk-rewrite.sh | 1 | #!/usr/bin/env bash |
| LOW | hooks/claude/rtk-rewrite.sh | 1 | #!/usr/bin/env bash |
| LOW | hooks/pi/rtk.ts | 1 | // RTK Pi extension — rewrites bash commands to use rtk for token savings. |
| LOW | src/main.rs | 101 | level: core::filter::FilterLevel, |
| LOW | src/main.rs | 301 | }, |
| LOW | src/main.rs | 361 | #[arg(long = "auto-patch", group = "patch")] |
| LOW | src/main.rs | 401 | }, |
| LOW | src/main.rs | 421 | #[arg(short, long)] |
| LOW | src/main.rs | 441 | /// Skip confirmation prompt when resetting |
| LOW | src/main.rs | 561 | /// Discover missed RTK savings from Claude Code history |
| LOW | src/main.rs | 601 | #[arg(short, long, default_value = "text")] |
| LOW | src/main.rs | 741 | HookAudit { |
| LOW | src/main.rs | 881 | /// Show outdated packages (condensed: "pkg: old → new") |
| LOW | src/main.rs | 1041 | /// Additional cargo test arguments |
| LOW | src/discover/registry.rs | 461 | |
| LOW | src/core/toml_filter.rs | 1 | //! Applies TOML-defined filter rules to command output. |
| LOW | src/core/toml_filter.rs | 21 | /// 5. truncate_lines_at — truncate each line to N chars |
| LOW | src/core/toml_filter.rs | 421 | ) -> Option<&'a CompiledFilter> { |
| LOW | src/core/config.rs | 21 | pub hooks: HooksConfig, |
| LOW | src/core/config.rs | 41 | /// command — e.g. `docker exec mycontainer`, `direnv exec .`, `poetry run`, |
| LOW | src/core/tracking.rs | 1 | //! Token savings tracking and analytics system. |
| LOW | src/core/tracking.rs | 21 | //! let output = "filtered output"; |
| LOW | src/core/tracking.rs | 61 | } |
| LOW | src/core/tracking.rs | 81 | /// ```no_run |
| LOW | src/core/tracking.rs | 101 | pub timestamp: DateTime<Utc>, |
| LOW | src/core/tracking.rs | 121 | pub total_output: usize, |
| LOW | src/core/tracking.rs | 141 | /// |
| LOW | src/core/tracking.rs | 161 | pub input_tokens: usize, |
| LOW | src/core/tracking.rs | 201 | /// |
| LOW | src/core/tracking.rs | 221 | } |
| LOW | src/core/tracking.rs | 381 | /// |
| LOW | src/core/tracking.rs | 541 | }) |
| LOW | src/core/tracking.rs | 681 | result.reverse(); |
| LOW | src/core/tracking.rs | 761 | /// Weeks start on Sunday (SQLite default). Results ordered chronologically. |
| LOW | src/core/tracking.rs | 841 | /// use rtk::tracking::Tracker; |
| LOW | src/core/tracking.rs | 901 | let mut result: Vec<_> = rows.collect::<Result<Vec<_>, _>>()?; |
| LOW | src/core/tracking.rs | 1261 | let _ = tracker.record_parse_failure(raw_command, error_message, succeeded); |
| LOW | src/core/tracking.rs | 1281 | /// assert_eq!(estimate_tokens("abcde"), 2); // 5 chars = ceil(1.25) = 2 |
| LOW | src/core/tracking.rs | 1301 | /// let input = execute_standard_command()?; |
| LOW | src/core/tracking.rs | 1321 | /// |
| LOW | src/core/tracking.rs | 1341 | /// - `original_cmd`: Standard command (e.g., "ls -la") |
| LOW | src/core/tracking.rs | 1381 | /// - `rtk_cmd`: RTK command used (e.g., "rtk git tag --list") |
| LOW | src/core/tracking.rs | 1401 | /// Format OsString args for tracking display. |
| LOW | src/core/utils.rs | 1 | //! Utility functions for text processing and command execution. |
| LOW | src/core/utils.rs | 41 | /// |
| LOW | src/core/utils.rs | 61 | /// # Returns |
| LOW | src/core/utils.rs | 81 | } else if n >= 1_000 { |
| LOW | src/core/utils.rs | 121 | /// Formatted string like "$3.86/MTok" |
| LOW | src/core/utils.rs | 141 | /// ``` |
| LOW | src/core/utils.rs | 161 | /// assert_eq!(truncate_iso_date("2024-01-15"), "2024-01-15"); |
| LOW | src/core/utils.rs | 301 | let mut c = resolved_command("npx"); |
| LOW | src/core/utils.rs | 321 | /// Full path to the resolved binary, or error if not found. |
| LOW | src/cmds/system/ls.rs | 181 | |
| LOW | src/cmds/system/ls.rs | 221 | if special > 0 { |
| LOW | src/cmds/system/grep_cmd.rs | 161 | } |
| LOW | src/cmds/ruby/rake_cmd.rs | 1 | //! Minitest output filter for `rake test` and `rails test`. |
| LOW | src/cmds/ruby/rake_cmd.rs | 81 | #[allow(dead_code)] |
| 14 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 74 | def test_missing_rtk_skips_registering_pre_tool_call(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 90 | def test_missing_rtk_warns_only_once(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 105 | def test_check_rtk_found_is_quiet(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 116 | def test_check_rtk_caches_result_across_calls(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 127 | def test_rewrite_success_mutates_same_terminal_args_dict(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 140 | def test_rewrite_returncode_three_mutates_same_terminal_args_dict(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 153 | def test_rewrite_returncode_zero_mutates_when_rewrite_changes_command(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 166 | def test_expected_passthrough_returncodes_do_not_warn_or_mutate(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 187 | def test_unexpected_returncode_warns_with_stderr_details(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 202 | def test_rewrite_timeout_warns_and_preserves_original_command(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 214 | def test_file_not_found_preserves_original_command(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 225 | def test_unexpected_exception_prints_warning_and_keeps_command(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 236 | def test_non_terminal_tool_is_noop(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 246 | def test_missing_command_is_noop(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 256 | def test_non_string_command_is_noop(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 266 | def test_empty_command_strings_are_noop(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 278 | def test_empty_or_unchanged_rewrite_output_preserves_original_command(self): |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 296 | def test_cargo_init_installs_importable_plugin_that_rewrites_with_fake_rtk(self): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | src/cmds/jvm/gradlew_cmd.rs | 1392 | assert!(is_framework_frame("at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(Su |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docs/usage/TRACKING.md | 421 | datadog.initialize(api_key="YOUR_API_KEY") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/cmds/git/git.rs | 329 | // Step 1: one-line commit summary |
| LOW | src/cmds/git/git.rs | 342 | // Step 2: --stat summary |
| LOW | src/cmds/git/git.rs | 354 | // Step 3: compacted diff |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/cmds/ruby/rspec_cmd.rs | 686 | Failure/Error: expect(user.full_name).to eq("John Doe") |
| LOW | src/cmds/ruby/rspec_cmd.rs | 687 | expected: "John Doe" |
| LOW | src/cmds/ruby/rspec_cmd.rs | 860 | Failure/Error: expect(user.full_name).to eq("John Doe") |
| LOW | src/cmds/ruby/rspec_cmd.rs | 861 | expected: "John Doe" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/rtk-economics.sh | 21 | # Check if ccusage is available |
| LOW | scripts/rtk-economics.sh | 28 | # Check if rtk is available |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/benchmark/cloud-init.yaml | 3 | # Installs all tools needed for comprehensive RTK testing (~200 commands) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | hooks/hermes/rtk-rewrite/__init__.py | 74 | except Exception as e: |
| LOW | scripts/benchmark-sessions/lib/runner.py | 32 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | hooks/hermes/rtk-rewrite/__init__.py | 40 | |
| LOW | hooks/hermes/tests/test_rtk_rewrite_plugin.py | 166 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/check-test-presence.sh | 6 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/benchmark-sessions/lib/runner.py | 1 |