Skip to content

feat: interactive diff confirmation for writes#7

Open
maxmekiska wants to merge 2 commits into1rgs:masterfrom
maxmekiska:master
Open

feat: interactive diff confirmation for writes#7
maxmekiska wants to merge 2 commits into1rgs:masterfrom
maxmekiska:master

Conversation

@maxmekiska
Copy link
Copy Markdown

@maxmekiska maxmekiska commented Jan 16, 2026

Add interactive diff confirmation for file changes (write/edit tools). Users see a colored diff with line numbers and
can accept or decline. Declined changes include optional feedback sent to the model.

UI Example

image

Summary

- Simple selection menu: [Enter] = accept, [d] = decline
- Colored diff: red (removed), green (added), dim (context)
- Optional decline reason sent back to model as feedback
- No new dependencies > only stdlib: difflib, termios, tty and sys

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.

1 participant