# When using chat how to ensure all project scripts are being accessed?

**URL:** <https://forum.cursor.com/t/when-using-chat-how-to-ensure-all-project-scripts-are-being-accessed/46164>\
**Category:** Help\
**Created:** [January 30, 2025, 6:46am UTC](https://forum.cursor.com/t/when-using-chat-how-to-ensure-all-project-scripts-are-being-accessed/46164 "2025-01-30T06:46:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ccr](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@Ccr](https://forum.cursor.com/u/Ccr)\
**Post date:** [January 30, 2025, 6:46am UTC](https://forum.cursor.com/t/when-using-chat-how-to-ensure-all-project-scripts-are-being-accessed/46164/1 "2025-01-30T06:46:15Z")

</div>

I’m fairly new to using cursor, but one aspect that has confused me is how the chat works in terms of accessing your project code.

For example I am working in Unity so I’d like cursor to be looking at all of the scripts I have written when responding to requests. But in the chat window you can add context, which in my case could be the relevant scripts. If I don’t add any context is cursor by default accessing and analysing the existing scripts in my project? Do I need to explicitly tell cursor my project folder, possibly in the project rules?

There is also codebase chat. In the settings I did the codebase indexing, but didn’t configure any files to ignore.

I have several scripts that depend on others, services, managers, etc so when I make a request to change a script I want it to also understand the other scripts in the project when making suggestions.

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [February 1, 2025, 11:35pm UTC](https://forum.cursor.com/t/when-using-chat-how-to-ensure-all-project-scripts-are-being-accessed/46164/2 "2025-02-01T23:35:36Z")

</div>

Hey,

By default, Cursor will not provide any context to the AI besides the current open file, which you can see as tagged as context when tou start a new session.

To provide more context, specifically in the chat, we have two options:

1. You can mention more files or a folder to provide them as context. Mentioning a folder will let Cursor scan the most relevant files related to your query.
2. @codebase allows Cursor to scan your codebase and find the most relevant files related to your query. It will then automatically use them as context.

---

<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:26am UTC](https://forum.cursor.com/t/when-using-chat-how-to-ensure-all-project-scripts-are-being-accessed/46164/3 "2026-06-18T10:26:26Z")

</div>


