# Multiple attempts are needed to find all the files

**URL:** <https://forum.cursor.com/t/multiple-attempts-are-needed-to-find-all-the-files/17759>\
**Category:** Help\
**Created:** [September 20, 2024, 7:01am UTC](https://forum.cursor.com/t/multiple-attempts-are-needed-to-find-all-the-files/17759 "2024-09-20T07:01:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![konamiman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/konamiman/32/5590_2.png) [@konamiman](https://forum.cursor.com/u/konamiman)\
**Post date:** [September 20, 2024, 7:01am UTC](https://forum.cursor.com/t/multiple-attempts-are-needed-to-find-all-the-files/17759/1 "2024-09-20T07:01:31Z")

</div>

PHP codebase, I know that there are 26 files that implement a certain trait but let’s pretend I don’t know this and I want the Cursor AI to find them. So in a chat window or in the composer window (same behavior in both) and using @codebase or @folder:

Prompt: Give me a list of all the files that use the X trait. Only the file names with relative path, without file previews. Keep in mind that there are several of these files, so please do a thorough search.

Result: 7 files.

Prompt: There are more files that use the X trait. You can do better. Search again.

Result: 13 files.

Prompt: Are you sure? I know there are more class files that include the trait. Search in all files in all subdirectories please.

Result: 24 files.

Prompt: Almost there. There are a couple more of files that implement the trait. Try again.

Result: 26 files, finally.

Is this expected? Is there a bug somewhere? Am I doing something wrong?

In case it helps: Cursor for Windows but opening a codebase from WSL.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:16am UTC](https://forum.cursor.com/t/multiple-attempts-are-needed-to-find-all-the-files/17759/2 "2026-06-18T10:16:28Z")

</div>

Closed on June 18, 2026, 10:16am UTC


