Skip to content

Prompt padding accuracy#2

Closed
ben-million wants to merge 1 commit intomainfrom
cursor/prompt-padding-accuracy-2035
Closed

Prompt padding accuracy#2
ben-million wants to merge 1 commit intomainfrom
cursor/prompt-padding-accuracy-2035

Conversation

@ben-million
Copy link
Collaborator

Refactor prompt generation to provide accurate, diff-like instructions for UI modifications, improving reliability for weaker AI agents.

The previous prompt generation was often too high-level and lossy, making it difficult for less capable AI models to accurately identify target elements and apply precise CSS changes. This PR introduces a structured, signal-rich, and explicit before/after diff format, including handling for asymmetric padding and negative spacing via margin compensation, to guide agents more effectively.


Open in Web Open in Cursor 

Co-authored-by: Ben MacLaurin <ben-million@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Mar 8, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@ben-million ben-million closed this Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants