rtk-ai/rtk

rtk grep doesn't work with piped input

Open

#1476 opened on Apr 23, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (48,085 stars) (2,914 forks)batch import
bugeffort-smallfilter-qualitygood first issue

Description

Sometimes an LLM wants to pipe a command's output through grep. This doesn't work currently

Steps to reproduce

ps aux | rtk grep bash

Expected result

rtk grep should grep STDIN

Actual result

rtk grep searches through all files in the current working directory for the string

Example

$ ps aux | grep bash
user      215328  0.0  0.0  35152 19720 pts/0    SNs  11:18   0:00 /bin/bash
root      217325  0.0  0.0  24652  9180 pts/1    SN+  11:22   0:00 -bash
user      218879  0.0  0.0  34552 19160 pts/2    SNs  11:23   0:00 /bin/bash
user      224916  0.0  0.0  18980  2364 pts/2    SN+  11:32   0:00 grep --color=auto bash
$ ps aux | rtk grep bash
0 matches for 'bash'

Contributor guide