Hacker News new | ask | show | jobs
by sramam 403 days ago
do tools like cursor get a special pass? Or do they do some magic?

I'm always amazed at how well they deal with diffs. especially when the response jank clearly points to a "... + a change", and cursor maps it back to a proper diff.

2 comments

Cursor for instance does lots of tricks to make applying janky diffs efficient, e.g. https://blog.getbind.co/2024/10/02/how-cursor-ai-implemented...
I think Cursor would need to have their own system prompt for most of this, I don't think the API includes much of this.