rtk-ai / rtk-ai/rtk

rtk grep should ignore .claude/worktrees

Open Beginner friendly
#2,147 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:cli enhancement good first issue help wanted priority:medium
Dominant language
Rust
Stars
81k
Forks
5.1k
Avg merge
4d 21h
Merged PRs (30d)
35

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the implementation of the rtk grep command and reproduce the behavior in a repository containing .claude/worktrees. Check how git grep and rg apply ignore rules, then verify that rtk grep skips .claude/worktrees while continuing to search other repository paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.