Code output in git diff instead of full code

Hi,

I was wondering, wouldn’t it be way quicker/less tokens when we would ask an LLM to reply in a git diff format, instead of in a ‘full code’ format? Then Cursor being able to handle the git diff reply would make it lightning fast. What are the thoughts of the team on this? Has it been tried?

Which feature are you using?

Ctrl K, L or I?

I’ve been playing around with Ctrl + I (’Composer’) a lot lately, and you can switch between viewing full code and diff mode.

The diff mode is visible both within the actual file and in the files’ suggested edits tabs.

Ctrl K mainly. But it will just go over your code entirely (replacing it with the code it is receiving). A git diff just seems so much faster. I didnt know about Composer as I use my own API key, but will check it out.

For clarity: not looking for a git diff view, the asking the LLM for a reply in git diff format feels like it should be faster