[FEATURE] Allow <ide_selection> of gitignored files

Resolved 💬 3 comments Opened Dec 3, 2025 by HillaShx Closed Dec 7, 2025

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

I sometimes have .gitignored files I use for dev and I want Claude to be able to "see" what file / lines I have selected.

Proposed Solution

I'd like to have the option in the app's config to have access to .gitignored files. Or better yet, be able to choose which files should be inaccessible to Claude, like a separate .ignore file for Claude's context, which is able to override .gitignore's list.

Alternative Solutions

I've tried using the .claudeignore file, but it seems it can't access any file that is listed in .gitignore, and I can only add on top of the ones excluded by .gitignore.

Priority

Low - Nice to have

Feature Category

File operations

Use Case Example

I have several MD files where I track the work I do with Claude (PR reviews, TODOs...) that have no place in the repo, but I do use them locally and would like for Claude to be able to read and edit them as sort of a local persistent memory that I can direct it to.

Additional Context

As you can see, I have a line in PR_REV.md selected but in Claude's context, the <ide_selection> points to the repo's Dockerfile, which is the last file I had the cursor on that isn't gitignored.

<img width="857" height="485" alt="Image" src="https://github.com/user-attachments/assets/3339c206-45ec-4038-b3bd-1523cb988997" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗