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

REQ: A new file type "ask2edit" to complement read only and regular file loads #1567

Open
5ocworkshop opened this issue Sep 16, 2024 · 2 comments
Labels
question Further information is requested

Comments

@5ocworkshop
Copy link

I wanted to propose an additional type of file for aider to load in to the conversation. I'm sure we can come up with a more elegant name, but for now I'll call it "ask2edit".

At the moment we can load files that are editable, or we can load files that are read only and use Sonnet's cache mechanism.

The purpose of the ask2edit load type would be that the file can be edited by the LLM but the LLM doesn't have carte blanche to make changes, instead it should only make changes when the user has reviewed and approved them.

Working through a larger project I'm refining my process of product requirements, architecture, design and implementation planning and then proceeding with coding and debugging. As is the norm during development, adjustments to the product requirements and related cascading changes will need to be made. However the LLMs have a habit of removing or altering things we may not want to have altered in the requirements or design documents, when trying to update them to reflect additions or changes that happen during development.

As part of my conventions.md I would like to tell the LLM that when we materially update or enhance a feature that is mentioned in the product requirements document, also update that requiremetns document so it stays in sync with the project code as built. However, I would like the LLM to present the current version of the relevant section and the proposed changes while identifying the file it wants to change - then have it ask whether it can make those changes or allow me to iterate and request updates to the proposed wording. This way we could iterate on a the wording changes before the edits take place.

So with ask2edit files, the idea is that the file shouldn't be updated during normal operations to avoid it accidentally being modified during the development cycle when it was meant purely as a reference but when the LLM is asked to perform an explicit operation on that file, draft wording and present it for approval or dialog.

@fry69
Copy link
Collaborator

fry69 commented Sep 16, 2024

Thank you for filing this issue.

You can add all files you need as read-only with /read first and then move select ones to a writable state /add.

@5ocworkshop
Copy link
Author

That is a possible work around but not quite what I'm envisioning. I'll sleep on it and see if I can explain it more clearly.

@paul-gauthier paul-gauthier added the question Further information is requested label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants