# Is creating a new instance of cursor in a sub folder of my worktrees folder with sparse worktrees losing the benefit of cursor rag indexing?

**URL:** <https://forum.cursor.com/t/is-creating-a-new-instance-of-cursor-in-a-sub-folder-of-my-worktrees-folder-with-sparse-worktrees-losing-the-benefit-of-cursor-rag-indexing/149295>\
**Category:** Help\
**Tags:** indexing, large-codebases, worktrees\
**Created:** [January 19, 2026, 11:09am UTC](https://forum.cursor.com/t/is-creating-a-new-instance-of-cursor-in-a-sub-folder-of-my-worktrees-folder-with-sparse-worktrees-losing-the-benefit-of-cursor-rag-indexing/149295 "2026-01-19T11:09:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Sam\_Joseph](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Sam\_Joseph](https://forum.cursor.com/u/Sam_Joseph)\
**Post date:** [January 20, 2026, 9:52am UTC](https://forum.cursor.com/t/is-creating-a-new-instance-of-cursor-in-a-sub-folder-of-my-worktrees-folder-with-sparse-worktrees-losing-the-benefit-of-cursor-rag-indexing/149295/4 "2026-01-20T09:52:42Z")

</div>

thanks for the explanation @deanrie very much appreciated - a related question is how we can have language specific rules work well in our monorepo - we have a mix of ruby and python (amongst others) and after having updated our ruby.mdc with several iterations of globs ([still not sure if we need spaces between the globs or not](https://forum.cursor.com/t/correct-way-to-specify-rules-globs/71752/8)) I think we have it so that if we specifically mention a ruby file in an instruction the ruby rules are followed, but when making a plan that happens to make edits to ruby files the rules are not necessarily followed - would be great if any time a model started to make changes it could have the file specific rules inserted into its context … happy to make this a separate topic if that’s easier?

Also is there a way to see which files have actually been indexed vs just % of the codebase?

---

_[View the full topic](https://forum.cursor.com/t/is-creating-a-new-instance-of-cursor-in-a-sub-folder-of-my-worktrees-folder-with-sparse-worktrees-losing-the-benefit-of-cursor-rag-indexing/149295)._
