Hey @Igor_Tomalski, good question.
The issue with negation patterns for gitignored paths in agent tools rg and glob is known and on the team’s radar. There’s a separate bug report about it here: Rg and Glob tools failing on directory search for gitignored paths. I can’t share an ETA, but it’s being tracked.
The idea of a read-only mode for vendor/ would be really handy. For now, the workaround with negation patterns in .cursorignore plus a manual reindex works somewhat, but like you noticed, it’s not always reliable with agent tools.
What works best right now:
- Add the vendor packages as a separate workspace folder via
File > Add Folder to Workspace. This avoids the.gitignoreconflict entirely. - Symlink the needed packages outside of vendor/ like we discussed above with a Composer script.
Both options give agent tools full access to the code without having to fight ignore files.
Let me know if either of these fits your workflow.