You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proxies silently truncate output or redefine flags (grep -c/-l/-m, find, git status/show/log, docker images); rtk curl -o fails; no Windows hook mode #4559
We evaluated RTK (v0.29.0, Windows 10, Git Bash) for automatic prefixing of Claude Code bash commands via a PreToolUse hook (~14.6k commands/month). The evaluation failed on output integrity: several proxies silently truncate output or change flag semantics, which is unsafe when an LLM consumes the output as complete data.
Findings (all reproduced on real workloads)
1. rtk grep redefines grep flags and silently truncates
-c means "context-only" (native grep: count), -l means "max-len" (native: files-with-matches), -m means "total results cap" (native: per-file max-count).
Defaults truncate to 50 results / 80 chars per line, silently. For agentic use this corrupts data: the model reads a truncated listing as complete.
2. Data loss in listing commands
rtk find on a directory with 6,710 files returns a 10-line summary.
Follow-up after upgrading to v1.0.0 (Windows 10, Git Bash) — retested everything from the report:
Fixed in v1.0.0 (verified locally):
grep -c now returns a count (300=300 on a synthetic file) and grep -l returns filenames — flag semantics match native grep.
rtk curl -sL --max-time 30 -o <file> <url> now downloads correctly (the v0.29 failure is gone).
Truncation is no longer silent: output shows +100 more in big.txt [+100 hidden: rtk recall <hash>] and rtk recall <hash> --full restores the full output.
Still broken / new findings:
[limits] values in config.toml are displayed but not applied. A/B test on grep_max_results: setting it to 7 and then to 10000000 in the config file (rtk config shows both values correctly read) produces an identical output — 200 shown + hidden marker. The filter ignores the config; only the CLI flag works (rtk grep --max 400 → full 300 lines).
git log --oneline is still capped at 50 (synthetic repo with 100 commits); full-format git log returned 10 of 599 lines. No CLI flag found to raise either cap.
Environment: rtk 1.0.0, Windows x86_64-pc-windows-msvc, config at %APPDATA%\rtk\config.toml.
Net effect: the only working way to guarantee complete output today is passing --max/--max-len explicitly per invocation; [limits] as a global guarantee does not work.
Activity
rtk-wshm-sync-bot commentedon Oct 14, 2026
🔍 Automated Triage
bughighSummary
Multiple rtk proxy commands (grep, find, git status/show/log, docker images, ls) silently truncate or redefine native flags, rtk curl -o fails, and Windows lacks hook mode — unsafe for automated LLM consumption.
📁 Relevant files
src/grep.rssrc/find.rssrc/git/status.rssrc/git/show.rssrc/git/log.rssrc/docker.rssrc/ls.rssrc/curl.rssrc/init.rsSuggested Actions
rtk hook clauderewritesrg→rtk grep(BSD grep) instead ofrtk rg, so path-less ripgrep searches silently return 0 matches / hang on stdin #2301, Hook rewrite produces unparseable args for native grep flags and non-existent subcommands #1604,…Triaged automatically by wshm · This is an automated analysis, not a human review.
kydechuk01 commentedon Oct 14, 2026
Follow-up after upgrading to v1.0.0 (Windows 10, Git Bash) — retested everything from the report:
Fixed in v1.0.0 (verified locally):
grep -cnow returns a count (300=300 on a synthetic file) andgrep -lreturns filenames — flag semantics match native grep.rtk curl -sL --max-time 30 -o <file> <url>now downloads correctly (the v0.29 failure is gone).+100 more in big.txt [+100 hidden: rtk recall <hash>]andrtk recall <hash> --fullrestores the full output.Still broken / new findings:
[limits]values in config.toml are displayed but not applied. A/B test ongrep_max_results: setting it to7and then to10000000in the config file (rtk configshows both values correctly read) produces an identical output — 200 shown + hidden marker. The filter ignores the config; only the CLI flag works (rtk grep --max 400→ full 300 lines).git log --onelineis still capped at 50 (synthetic repo with 100 commits); full-formatgit logreturned 10 of 599 lines. No CLI flag found to raise either cap.Environment: rtk 1.0.0, Windows x86_64-pc-windows-msvc, config at
%APPDATA%\rtk\config.toml.Net effect: the only working way to guarantee complete output today is passing
--max/--max-lenexplicitly per invocation;[limits]as a global guarantee does not work.