How does AI chat understand My Project Structure...?

Hi! I’ve been using Cursor AI and it’s pretty great. I can easily call up code and have the AI chatbot edit or create it. But sometimes, it answers without understanding the whole structure, or tells me to create a new file in a different directory even though it already exists. My question is, how can I make the AI understand the whole structure so I can have a better conversation with it?

Perhaps a temporary workaround is to make a script that saves the project structure in a tree format to the cursorrules file. Until something like this is implemented natively in Cursor

Great idea, and it worked for me.

That being said, I’m disappointed that Cursor doesn’t do a better job at acquiring awareness of the project structure than any of the dozens of VS Code extensions—you have to write it out yourself and feed it with it.