Skip to content

docs: update grep descriptions for passthrough behavior - #871

Closed
BadassBison wants to merge 1 commit into
rtk-ai:developfrom
BadassBison:docs/grep-passthrough-and-truncation-fixes
Closed

BadassBison wants to merge 1 commit into
rtk-ai:developfrom
BadassBison:docs/grep-passthrough-and-truncation-fixes

Conversation

@BadassBison

Copy link
Copy Markdown
Contributor

Summary

Doc-only follow-up to #791 (grep false negatives, output mangling, and truncation annotations).

Updates all relevant documentation to reflect the behavioral changes made in that PR:

  • rtk grep now passes through raw file:line:content output for <=50 matches, and uses the grouped format only for >50 matches
  • --no-ignore-vcs is used (not --no-ignore) so .ignore/.rgignore are still respected
  • Savings range updated to 0-90% to reflect passthrough for small result sets

Files changed

File Change
README.md grep description: "Grouped search results" → "Search results (raw <=50, grouped >50)"
README_es.md / fr / ja / ko / zh Same update in each language
ARCHITECTURE.md SYSTEM savings range: 50-90% → 0-90%
INSTALL.md grep description updated
docs/AUDIT_GUIDE.md grep savings note updated
docs/FEATURES.md Full grep objective updated, --no-ignore → --no-ignore-vcs

…ehavior

- grep: always filters output in file:line:content format (--no-ignore-vcs, truncated lines, capped)
- smart_truncate: documents smart selection logic with [N more lines] end marker (no inline // ... annotations)
- ARCHITECTURE.md: SYSTEM savings range restored to 50-90%
- AUDIT_GUIDE.md: grep savings updated to 50-90%
- All language READMEs updated to reflect filtered (not passthrough) output
@BadassBison
BadassBison force-pushed the docs/grep-passthrough-and-truncation-fixes branch from b725ef7 to f398e1f Compare April 14, 2026 13:55
@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot rtk-release-bot Bot added the stale label Sep 3, 2026
@KuSh

KuSh commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

Thanks for taking the time to update the grep wording across all the language files. The behaviour these lines describe has changed twice since this was opened: #2641 (merged 2026-06-26) removed the rg substitution and the --no-ignore-vcs flag, and #3182 (merged 2026-07-28) replaced the 50-match passthrough threshold with a rule that only emits the grouped form when capping actually shrinks the output. Because of that, the new wording here, file:line:content and --no-ignore-vcs, no longer matches what rtk grep does, so the text cannot land as written. The docs on develop are still stale in the other direction, since README.md, INSTALL.md, the translated READMEs, docs/usage/AUDIT_GUIDE.md and docs/usage/FEATURES.md all still call the output grouped by file, and a fresh pass describing the current never-worse model would be very welcome. Please comment or reopen if I have missed a part of this.

@KuSh KuSh closed this Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants