AI Slop Code RIsk Monitor

rtk-ai/rtk

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

7.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for rtk-ai/rtk, a Rust project with 82,868 GitHub stars. SynthScan examined 179,773 lines of code across 421 source files, recording 677 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 7.4 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

7.4
Adjusted Signal
7.4
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
82.9K
Stars
Rust
Language
179.8K
Lines of Code
421
Files
677
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 9.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 359 finding(s).

Hallucinated Dependency & Supply Chain Risk 2.0/100 · LOW

Are imports declared and package/API names verified? 14 finding(s).

Agent Over-Engineering Ratio 22.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 323 finding(s).

PR Review Velocity Impact 31.4/100 · MEDIUM

Which changes need focused human review? 677 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 6HIGH 1MEDIUM 310LOW 360

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 677 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators302 hits · 903 pts
SeverityFileLineSnippetContext
MEDIUMtests/glab_argv_test.rs71// ── identifier extraction: a flag's value is never the MR/issue id ──────COMMENT
MEDIUMtests/glab_argv_test.rs116// ── `--` handling ──────────────────────────────────────────────────────COMMENT
MEDIUMtests/copilot_selfheal_test.rs138// ── Heal correctness ─────────────────────────────────────────COMMENT
MEDIUMtests/copilot_selfheal_test.rs228// ── Response integrity: heal never changes hook behavior ─────COMMENT
MEDIUMtests/copilot_selfheal_test.rs301// ── Refusal matrix: configs never wrongly modified ───────────COMMENT
MEDIUMtests/copilot_selfheal_test.rs375// ── Robustness ───────────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh229# ── 7. Curl ──────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh237# ── 8. Npm / Npx ────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh244# ── 9. Pnpm ─────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh300# ── 13. Deps ─────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh307# ── 14. Env ──────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh314# ── 16. Log ──────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh328# ── 17. Summary ──────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh334# ── 18. Err ──────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh340# ── 19. Test runner ──────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh346# ── 20. Gain ─────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh353# ── 21. Config & Init ────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh360# ── 22. Wget ─────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh380# ── 24. Prisma ───────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh386# ── 25. Vitest ───────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh392# ── 26. Docker / Kubectl (help only) ────────────────COMMENT
MEDIUM⚡scripts/test-all.sh399# ── 27. Python (conditional) ────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh473# ── 31. Global flags ────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh480# ── 32. CcEconomics ─────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh486# ── 33. Learn ───────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh493# ── 32. Rewrite ───────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh518# ── 33. Verify ────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh524# ── 34. Proxy ─────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh531# ── 35. Discover ──────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh537# ── 36. Diff ──────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh545# ── 37. Wc ────────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh551# ── 38. Smart ─────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh557# ── 39. Json edge cases ──────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh563# ── 40. Docker (conditional) ─────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh574# ── 41. Hook check ───────────────────────────────────COMMENT
MEDIUM⚡scripts/test-all.sh580# ══════════════════════════════════════════════════════COMMENT
MEDIUM⚡scripts/test-all.sh582# ══════════════════════════════════════════════════════COMMENT
MEDIUMscripts/test-all.sh22# ── Helpers ──────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh101# ── Preamble ─────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh122# ── 1. Version & Help ───────────────────────────────COMMENT
MEDIUMscripts/test-all.sh129# ── 2. Ls ────────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh143# ── 2b. Tree ─────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh156# ── 3. Read ──────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh170# ── 4. Git ───────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh196# ── 5. GitHub CLI ────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh210# ── 6. Cargo ─────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh256# ── 10. Grep ─────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh280# ── 11. Find ─────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh287# ── 12. Json ─────────────────────────────────────────COMMENT
MEDIUMscripts/test-all.sh421# ── 28. Go (conditional) ────────────────────────────COMMENT
MEDIUMscripts/test-all.sh440# ── 29. Graphite (conditional) ─────────────────────COMMENT
MEDIUMscripts/test-all.sh451# ── 30. Ruby (conditional) ──────────────────────────COMMENT
MEDIUM⚡scripts/test-ruby.sh128# ── Preamble ─────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-ruby.sh137# ── Temp dir + cleanup trap ──────────────────────────COMMENT
MEDIUM⚡scripts/test-ruby.sh144# ── Setup phase (not counted in assertions) ──────────COMMENT
MEDIUM⚡scripts/test-ruby.sh264# ══════════════════════════════════════════════════════COMMENT
MEDIUM⚡scripts/test-ruby.sh266# ══════════════════════════════════════════════════════COMMENT
MEDIUM⚡scripts/test-ruby.sh268# ── 1. RSpec ─────────────────────────────────────────COMMENT
MEDIUM⚡scripts/test-ruby.sh363# ── 8. RSpec pending ─────────────────────────────────COMMENT
MEDIUM⚡scripts/test-ruby.sh371# ── 9. RSpec text fallback ───────────────────────────COMMENT
242 more matches not shown…
Over-Commented Block294 hits · 256 pts
SeverityFileLineSnippetContext
LOWrustfmt.toml1# cargo fmt passes --edition from Cargo.toml, but a bare `rustfmt` invocation --COMMENT
LOWopenclaw/index.ts161 } = {COMMENT
LOWtests/git_show_blob_differential_test.rs1//! Differential fuzzer for `rtk git show` blob classification.COMMENT
LOWtests/git_show_blob_differential_test.rs201 /// stress: git re-parses `-pS`/`-wG`/… clusters, the colon token is a pickaxe/regexCOMMENT
LOWtests/git_show_blob_differential_test.rs521 }COMMENT
LOWtests/dotnet_double_dash_test.rs1//! Regression test for the missing `restore_double_dash` call in dotnet_cmd.rsCOMMENT
LOWtests/gain_hook_warning_test.rs1//! Integration tests: `rtk gain` hook-status warning coverage.COMMENT
LOWtests/guard_integration_test.rs301 // Regression: `rtk git branch -- -weird` must be classified as a branch-creation attemptCOMMENT
LOWtests/hook_decision_protocol_test.rs1//! End-to-end coverage of the hook decision entry points.COMMENT
LOWtests/hook_decision_protocol_test.rs141 }COMMENT
LOWtests/hook_decision_protocol_test.rs621/// The load-bearing half is what it must **not** change. Every case below thatCOMMENT
LOWtests/hook_decision_protocol_test.rs821 // stricter of the two behaviours, not another host's rule set.COMMENT
LOWtests/common/mod.rs1//! Shared helpers for the integration tests.COMMENT
LOW.claude/hooks/rtk-rewrite.sh1#!/usr/bin/env bashCOMMENT
LOW.claude/skills/performance/SKILL.md61ls -lh target/release/rtk | tee /tmp/after_binary_size.txtCOMMENT
LOW.rtk/filters.toml1# Project-local RTK filters — commit this file with your repo.COMMENT
LOWhooks/copilot/test-rtk-rewrite.sh1#!/usr/bin/env bashCOMMENT
LOWhooks/claude/rtk-rewrite.sh1#!/usr/bin/env bashCOMMENT
LOWhooks/pi/rtk.ts1// RTK Pi extension — rewrites bash commands to use rtk for token savings.COMMENT
LOWhooks/opencode/rtk.ts1import type { Plugin } from "@opencode-ai/plugin"COMMENT
LOWscripts/benchmark.sh421bench "wc" "wc Cargo.toml src/main.rs" "$RTK wc Cargo.toml src/main.rs"COMMENT
LOWsrc/main.rs101 /// Directory tree with token-optimized output (proxy to native tree)COMMENT
LOWsrc/main.rs121 /// with -n off; --level and -n still transform the window)COMMENT
LOWsrc/main.rs281COMMENT
LOWsrc/main.rs341 /// Execute one quoted command string with this shell instead of direct argv executionCOMMENT
LOWsrc/main.rs361 max_len: usize,COMMENT
LOWsrc/main.rs481 project: bool,COMMENT
LOWsrc/main.rs501 #[arg(short, long)]COMMENT
LOWsrc/main.rs521 },COMMENT
LOWsrc/main.rs661 /// Discover missed RTK savings from Claude Code historyCOMMENT
LOWsrc/main.rs701 #[arg(short, long, default_value = "text")]COMMENT
LOWsrc/main.rs741 /// Hash from a recovery hint (a unique prefix is enough)COMMENT
LOWsrc/main.rs961 /// Maven Daemon (mvnd) with compact output — same filters as `rtk mvn`COMMENT
LOWsrc/main.rs981 ///COMMENT
LOWsrc/main.rs1081 /// Git arguments (supports all git show flags)COMMENT
LOWsrc/main.rs1141 /// Passthrough: runs any unsupported git subcommand directlyCOMMENT
LOWsrc/main.rs1841 args.push(cont);COMMENT
LOWsrc/main.rs2021 Some(arg) => arg.starts_with('-'),COMMENT
LOWsrc/discover/registry.rs101 LazyLock::new(|| Regex::new(r"^head\s+--lines\s+(\d+)\s+(\S+)$").unwrap());COMMENT
LOWsrc/discover/registry.rs121 format!("{} {}", rewritten, redirect_suffix)COMMENT
LOWsrc/discover/registry.rs201COMMENT
LOWsrc/discover/registry.rs441 if !cmd.starts_with("git ") {COMMENT
LOWsrc/discover/registry.rs601COMMENT
LOWsrc/discover/registry.rs721/// `\n` or `\r\n`, *plus* any horizontal whitespace on the line before ANDCOMMENT
LOWsrc/discover/registry.rs741/// Handles compound commands (`&&`, `||`, `;`, `;;`, `;&`, `;;&`) by rewriting each segment independently.COMMENT
LOWsrc/discover/registry.rs941 // the comment-blind tokenizer would read the comment as command words.COMMENT
LOWsrc/discover/registry.rs1861COMMENT
LOWsrc/discover/registry.rs3141 // Load-bearing case for the fixed-set design: `install` IS a routedCOMMENT
LOWsrc/discover/report.rs121 /// Date (`YYYY-MM-DD`) of the *oldest currently-retained* `hook_decisions` logCOMMENT
LOWsrc/discover/mod.rs61COMMENT
LOWsrc/discover/mod.rs81 hook_installed: bool,COMMENT
LOWsrc/discover/mod.rs101/// The caller splits a chained command (`a && b`) into parts and calls this onceCOMMENT
LOWsrc/discover/mod.rs141/// unattestable constructs, and MUST be the exact full string the real hook wouldCOMMENT
LOWsrc/discover/mod.rs201/// The *only* correct way to answer this question — deliberately named and keptCOMMENT
LOWsrc/discover/mod.rs881 );COMMENT
LOWsrc/discover/lexer.rs541 return false;COMMENT
LOWsrc/discover/lexer.rs561/// | `\|` | always splits | stops at first `\|` | pipeline handled specially |COMMENT
LOWsrc/core/stream.rs1use anyhow::{Context, Result};COMMENT
LOWsrc/core/stream.rs721/// Run `cmd` to completion, decode what it wrote, and report the exit code.COMMENT
LOWsrc/core/user_dirs.rs1//! Where the user's own files live, and the single place that asks `dirs`.COMMENT
234 more matches not shown…
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALsrc/cmds/jvm/gradlew_cmd.rs1452 "at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.jCODE
CRITICALsrc/cmds/jvm/mvn_cmd.rs2236 \tat org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)\n\CODE
CRITICALsrc/cmds/jvm/mvn_cmd.rs4166 \tat org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1)\n\CODE
CRITICALsrc/cmds/jvm/mvn_cmd.rs4376 \tat org.apache.commons.cli.RtkInducedFailTest.rtkInducedFailure(RtkInducedFailTest.java:25)\n\CODE
CRITICALsrc/cmds/jvm/mvn_cmd.rs5550 \tat org.junit.jupiter.engine.execution.SomeThing.invoke(SomeThing.java:1)\n\CODE
CRITICALsrc/cmds/jvm/mvn_cmd.rs5627 \tat org.junit.jupiter.api.Assertions.fail(Assertions.java:1)\n\CODE
Structural Annotation Overuse30 hits · 47 pts
SeverityFileLineSnippetContext
LOWINSTALL.md36### Step 0: Uninstall Wrong RTK (if needed)COMMENT
LOW⚡.claude/agents/debugger.md134 // Step 1: Parse linesCOMMENT
LOW⚡.claude/agents/debugger.md138 // Step 2: Apply regexCOMMENT
LOW⚡.claude/agents/debugger.md144 // Step 3: JoinCOMMENT
LOW.claude/rules/search-strategy.md73# Step 1: Find the routingCOMMENT
LOW.claude/rules/search-strategy.md76# Step 2: Follow to moduleCOMMENT
LOW.claude/commands/clean-worktrees.md38# Step 1: Prune stale git referencesCOMMENT
LOW.claude/commands/clean-worktrees.md49# Step 2: Find merged worktreesCOMMENT
LOW.claude/commands/clean-worktrees.md98# Step 3: Remove merged worktreesCOMMENT
LOW.claude/commands/tech/clean-worktrees.md36# Step 1: Prune stale git referencesCOMMENT
LOW.claude/commands/tech/clean-worktrees.md47# Step 2: Find merged worktreesCOMMENT
LOW.claude/commands/tech/clean-worktrees.md95# Step 3: Remove merged worktreesCOMMENT
LOW.claude/skills/ship/SKILL.md49### Step 1: Determine Version BumpCOMMENT
LOW.claude/skills/ship/SKILL.md61### Step 2: Update VersionCOMMENT
LOW.claude/skills/ship/SKILL.md99### Step 3: Build and VerifyCOMMENT
LOW.claude/skills/ship/SKILL.md120### Step 4: Commit Version BumpCOMMENT
LOW.claude/skills/ship/SKILL.md136### Step 5: Create Git TagCOMMENT
LOW.claude/skills/ship/SKILL.md153### Step 6: Push to RemoteCOMMENT
LOW.claude/skills/tdd-rust/SKILL.md34## Step 1: Real Fixture FirstCOMMENT
LOW.claude/skills/tdd-rust/SKILL.md51## Step 2: Write the Test (Red)COMMENT
LOW.claude/skills/tdd-rust/SKILL.md107## Step 3: Minimum Implementation (Green)COMMENT
LOW.claude/skills/tdd-rust/SKILL.md134## Step 4: Accept SnapshotCOMMENT
LOW.claude/skills/tdd-rust/SKILL.md147## Step 5: Wire to main.rs (Integration)COMMENT
LOW.claude/skills/tdd-rust/SKILL.md185## Step 6: Quality GateCOMMENT
LOWdocs/guide/getting-started/quick-start.md23## Step 1: Initialize for your AI assistantCOMMENT
LOWdocs/guide/getting-started/quick-start.md51## Step 2: Use your tools normallyCOMMENT
LOWdocs/guide/getting-started/quick-start.md59## Step 3: Check your savingsCOMMENT
LOWdocs/guide/getting-started/quick-start.md74## Step 4: Unsupported commandsCOMMENT
LOWsrc/cmds/git/git_cmd.rs650 // Step 1: one-line commit summaryCOMMENT
LOWsrc/cmds/git/git_cmd.rs700 // Step 3: compacted diffCOMMENT
Hyper-Verbose Identifiers19 hits · 21 pts
SeverityFileLineSnippetContext
LOWhooks/pi/rtk.ts65function registerRtkUnavailableNotice(pi: ExtensionAPI) {CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py74 def test_missing_rtk_skips_registering_pre_tool_call(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py90 def test_missing_rtk_warns_only_once(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py105 def test_check_rtk_found_is_quiet(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py116 def test_check_rtk_caches_result_across_calls(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py127 def test_rewrite_success_mutates_same_terminal_args_dict(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py140 def test_rewrite_returncode_three_mutates_same_terminal_args_dict(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py153 def test_rewrite_returncode_zero_mutates_when_rewrite_changes_command(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py166 def test_expected_passthrough_returncodes_do_not_warn_or_mutate(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py187 def test_unexpected_returncode_warns_with_stderr_details(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py202 def test_rewrite_timeout_warns_and_preserves_original_command(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py214 def test_file_not_found_preserves_original_command(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py225 def test_unexpected_exception_prints_warning_and_keeps_command(self):CODE
LOW⚡hooks/hermes/tests/test_rtk_rewrite_plugin.py236 def test_non_terminal_tool_is_noop(self):CODE
LOW⚡hooks/hermes/tests/test_rtk_rewrite_plugin.py246 def test_missing_command_is_noop(self):CODE
LOW⚡hooks/hermes/tests/test_rtk_rewrite_plugin.py256 def test_non_string_command_is_noop(self):CODE
LOW⚡hooks/hermes/tests/test_rtk_rewrite_plugin.py266 def test_empty_command_strings_are_noop(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py278 def test_empty_or_unchanged_rewrite_output_preserves_original_command(self):CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py296 def test_cargo_init_installs_importable_plugin_that_rewrites_with_fake_rtk(self):CODE
Modern AI Meta-Vocabulary4 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUM.claude/commands/tech/codereview.md190## Règles anti-hallucination (CRITIQUE)COMMENT
MEDIUMdocs/usage/FEATURES.md3010. [Conteneurs et orchestration](#conteneurs-et-orchestration)CODE
MEDIUMdocs/usage/FEATURES.md929## Conteneurs et orchestrationCOMMENT
MEDIUMscripts/test-ruby.sh166# 4. Generate scaffold (creates model + minitest files)COMMENT
AI Slop Vocabulary4 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMscripts/benchmark.sh18# harness (run.ts, cleanup.ts, lib/) — so `rm -rf "$BENCH_DIR"` deleted thatCOMMENT
MEDIUMscripts/benchmark.sh19# harness from the working tree on every local run.COMMENT
MEDIUMscripts/benchmark/cloud-init.yaml3# Installs all tools needed for comprehensive RTK testing (~200 commands)COMMENT
MEDIUMsrc/cmds/system/search.rs818 // -n. We force -nH--null for robust parsing, then drop what the engine itselfCOMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/git_show_blob_differential_test.rs127 "line {i:04} — lorem ipsum dolor sit amet with enough width to pass the budget\n"CODE
LOWtests/git_show_blob_differential_test.rs127 "line {i:04} — lorem ipsum dolor sit amet with enough width to pass the budget\n"CODE
LOWsrc/cmds/ruby/rspec_cmd.rs687 Failure/Error: expect(user.full_name).to eq("John Doe")CODE
LOWsrc/cmds/ruby/rspec_cmd.rs688 expected: "John Doe"CODE
LOWsrc/cmds/ruby/rspec_cmd.rs861 Failure/Error: expect(user.full_name).to eq("John Doe")CODE
LOWsrc/cmds/ruby/rspec_cmd.rs862 expected: "John Doe"CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/usage/TRACKING.md430 datadog.initialize(api_key="YOUR_API_KEY")CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/cmds/git/git_cmd.rs650 // Step 1: one-line commit summaryCOMMENT
LOWsrc/cmds/git/git_cmd.rs674 // Step 2: --stat summaryCOMMENT
LOWsrc/cmds/git/git_cmd.rs700 // Step 3: compacted diffCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/rtk-economics.sh21# Check if ccusage is availableCOMMENT
LOWscripts/rtk-economics.sh28# Check if rtk is availableCOMMENT
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWhooks/hermes/rtk-rewrite/__init__.py74 except Exception as e:CODE
LOWscripts/benchmark-sessions/lib/runner.py32 except Exception:CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWhooks/hermes/rtk-rewrite/__init__.py40CODE
LOWhooks/hermes/tests/test_rtk_rewrite_plugin.py166CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/check-test-presence.sh6# Usage:COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/benchmark-sessions/lib/runner.py1CODE