Does Cursor Add Full Files to Context?

With the new agents update, i’ve noticed that cursor keeps reading parts of the file agentically, even when I added full file to context

Could you please clarify whether cursor is still adding the full file as context to LLMs or just parts that it finds relevant.

I think it depends on the size of the context. I have Agent sometimes read context files and sometimes it already knows them.

I haven’t noticed any problems because of it.

1 Like

There is a setting for this within cursor. If you check it to include full context, it will show an alert when attached files exceed allowed context.

I think it depends on file size. If you add a large file to context, I think Cursor intelligently compresses it somehow, and then the agent will “read” sections of it that it identifies as being relevant to what it is doing.

image

@liquefy the full folder context setting is for when you want to add a whole folder not just a single file. When turned on it would take in the whole folder until it reaches context limit.

@romil8jain the Agent reads relevant parts of file and adds more when needed. It might not need the whole file and with Codebase Indexing it would know if it has the relevant parts.

Congratulations on the ambassador label :tada:
Thanks for all of your replies

1 Like