rtk-ai/rtk

rtk grep should ignore .claude/worktrees

Open

#2,147 opened on May 28, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (2,914 forks)batch import
area:clienhancementgood first issuehelp wantedpriority:medium

Repository metrics

Stars
 (48,085 stars)
PR merge metrics
 (Avg merge 8d 17h) (49 merged PRs in 30d)

Description

Claude Code creates worktrees in the folder .claude/worktrees. When I run rtk grep, it also grips the git worktrees in this folder. This is problematic, since these folders are out of scope for any agentic session.

rtk grep should automatically skip this folder - at least, when used together with Claude Code.

I think git grep and rg are ignoring .gitignore

Contributor guide