Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace SEARCH / REPLACE mechanism with a diff file #181

Open
rigolepe opened this issue Sep 6, 2024 · 1 comment
Open

Replace SEARCH / REPLACE mechanism with a diff file #181

rigolepe opened this issue Sep 6, 2024 · 1 comment

Comments

@rigolepe
Copy link

rigolepe commented Sep 6, 2024

You can ask Claude to directly generate diff files to perform file updates. The difflib library in python can be used to apply these diffs to the files. I have done this already, although not on a large scale. It should be tested if it works consistently well for multi file updates.

This could replace the current SEARCH/REPLACE mechanism that is very token-heavy.

@MaximPro
Copy link

MaximPro commented Sep 7, 2024

yeah, especially on bigger projects it gets so many tokens... generally it should be more efficient, while beeing still very effective :)
Thanks for building this amazing tool! 🥇

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

No branches or pull requests

2 participants