rtk-ai/rtk

rtk fails to handle --pcre2 flag when agent tries to use rg

Open

#1651 opened on Apr 30, 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

$ rtk grep -n --pcre2 "e2e-tests(?!-v2)"
/usr/bin/grep: unrecognized option '--pcre2'
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.

Contributor guide