System and Generic Utilities
August 30, 2026 · View on GitHub
Part of
src/cmds/— see also docs/contributing/TECHNICAL.md
Specifics
read.rsusescore/filterfor language-aware code stripping (FilterLevel: none/minimal/aggressive)search.rsbacks bothrtk grepandrtk rg: it runs the invoked engine (never substituting one for the other) and groups its output, readingcore/configforlimits.grep_max_resultsandlimits.grep_max_per_file. Format-altering flags (-c,-l,-L,-o,-Z) bypass RTK filtering and run raw.ctest_cmd.rstakes the run total from the first result line (covering--stop-on-failure, disabled tests, and forwarded suites) and validates both result lines and the summary against it, deduplicates retries by test number+name, folds wrapped result lines until their terminator, falls back to the rawFAILED:trailer for unparsed failures, keeps the error trailer behind an empty run, labels and caps failure details with tee recovery, and attributes diagnostics safely under-j; explicit verbose/show-only/help/version flags and dashboard modes bypass filtering, except-T Test, which prints ordinary test output and stays filtered.local_llm.rs(rtk smart) usescore/filterfor heuristic file summarizationformat_cmd.rsis a cross-ecosystem dispatcher: auto-detects and routes toprettier_cmdorruff_cmd(black is handled inline, not as a separate module)
Cross-command
format_cmdroutes tocmds/js/prettier_cmdandcmds/python/ruff_cmd