claude-code - 💡(How to fix) Fix [FEATURE] Why don't you support .llmignore to ignore files / folder for context search. This is along the lines of .gitignore for git [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55498Fetched 2026-05-03 04:51:47
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

Problem Statement

not having standard way to ignore certain folders where I don't want llm to read using his grep / bash commands.

Proposed Solution

Having to ignore certain folder / files pattern that that askes claude code to not read /write can be handled via .llmignore. It's petty much standard so I am not sure why this feature is not yet there

Alternative Solutions

explicity ask it in claude.md not to read some folder / patterns. And hope it honors it.

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Implementing a .llmignore file to specify folders and files to be ignored by Claude Code could be the most straightforward solution.

Guidance

  • Consider creating a .llmignore file in the root directory of your project to list patterns of folders and files that should be ignored by Claude Code.
  • Consider adding a CLI flag or option to allow users to specify the location of the .llmignore file or to override its settings.
  • Evaluate the feasibility of integrating the .llmignore functionality into the existing Claude Code configuration, potentially through the claude.md file.
  • Research existing implementations of ignore files (e.g., .gitignore) for inspiration on how to structure and parse the .llmignore file.

Notes

The proposed solution is inspired by standard practices in version control systems, but its implementation details and compatibility with Claude Code's current architecture need to be assessed.

Recommendation

Apply workaround: Implement a .llmignore file as a temporary solution until the feature is officially supported by Claude Code, as it aligns with standard practices and could provide the desired functionality with minimal integration effort.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Why don't you support .llmignore to ignore files / folder for context search. This is along the lines of .gitignore for git [1 comments, 2 participants]