Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The docs state that you can override .gitignore and default ignore list exclusions with negations in .cursorignore. But when “Index Repositories for Instant Grep” is enabled, the negations in .cursorignore cannot override .gitignore exclusions. I have not tested overriding the default ignore list exclusions.
I was using this behaviour to leave certain specs, docs, etc. available for location/inclusion in context by the agent while not committing them to the project. The agent doesn’t always automatically fallback to searching with the shell, nor should it have to.
Steps to Reproduce
Have a .gitignore with:
testfile
a .cursorignore with:
!testfile
and “Index Repositories for Instant Grep” enabled. The agent can’t find testfile using the Grep or Glob tools.
Turn that setting off and reload the window. The agent is able to find testfile using the Grep/Glob tools.
Expected Behavior
Regardless of whether “Index Repositories for Instant Grep” is enabled or disabled, the agent must be able to find the negated exclusions (testfile above) using the Grep/Glob tools.
Operating System
MacOS
Version Information
Version: 3.15.19
VS Code Extension API: 1.128.0
Commit: de07bee81cefe43461ebf4f40c3d2d78d15052a0
Date: 2026-08-11T05:22:54.627Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.6.0
For AI issues: which model did you use?
Model name: Auto, Grok 4.6
Additional Information
This worked prior to the introduction of local indexing/replacement of server-side embeddings/indexing
Does this stop you from using Cursor
No - Cursor works, but with this issue