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

Create a new "Patch file" Tool #3554

Open
1 of 3 tasks
netroy opened this issue Dec 28, 2024 · 3 comments
Open
1 of 3 tasks

Create a new "Patch file" Tool #3554

netroy opened this issue Dec 28, 2024 · 3 comments
Assignees
Labels
area:inline-edit Relates to the auto refactor feature kind:enhancement Indicates a new feature request, imrovement, or extension priority:medium Indicates medium priority

Comments

@netroy
Copy link

netroy commented Dec 28, 2024

Before submitting your bug report

Relevant environment info

- OS: Linux
- Continue version: v0.8.66
- IDE version: 1.96.2
- Model: Claude Sonnet 3.5
- config.json:

Description

I'm not sure if this is a bug or a feature-request.

Currently the only way to patch a file is to recreate is via the Create new file tool.
This works well for smaller files, but when working on larger files, the LLM often starts generating subsections of the files, essentially deleting a lot of code.
Not to mention that having to regenerate such large files also requires a lot more tokens and is rather expensive.

If there was a tool to apply diff patches, we could use the LLM to generate just the patch, and then apply the patch. That should theoretically be much cheaper and quicker.

To reproduce

No response

Log output

No response

@sestinj sestinj self-assigned this Dec 28, 2024
@dosubot dosubot bot added area:inline-edit Relates to the auto refactor feature kind:enhancement Indicates a new feature request, imrovement, or extension labels Dec 28, 2024
@nikhil-swamix
Copy link

AIDER to be used!

@sestinj sestinj added priority:medium Indicates medium priority and removed "needs-triage" labels Jan 3, 2025
@sestinj
Copy link
Contributor

sestinj commented Jan 3, 2025

This is a good idea! Marking as good-first-issue

@netroy
Copy link
Author

netroy commented Jan 3, 2025

@sestinj I can try. do you have any technical preferences or suggestions for how you think this should be implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:inline-edit Relates to the auto refactor feature kind:enhancement Indicates a new feature request, imrovement, or extension priority:medium Indicates medium priority
Projects
None yet
Development

No branches or pull requests

3 participants