Skip to content

Conversation

@maxmekiska
Copy link

@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