Currently in Cursor when we mention a file with @, and it is also a current file, it duplicates itself in the context to the LLM. There should be just one file. For example Current should be the only file, and the mentioned file should be ignored. If we navigate to another file, that should also apply to that file, and if that file isn’t a part of the mentioned files, then it can be added as a current file. This way we decrease the amount of tokens we use to pass to the LLM.
1 Like