Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
20.95k stars 1.94k forks source link

Extend aiders --yes option #1375

Open p-wegner opened 1 month ago

p-wegner commented 1 month ago

Issue

I'm currently writing a Jetbrains IDE Integration Plugin that runs aider in scripting mode and having more control over the different confirm use cases for the--yes option would be great.

--no-suggest-shell-commandshelps with this, but if i only want to allow file creation and no changes to the context, i can't prevent this, can i? For my use case something like --no-context-changes and/or --prevent-file-creation would be helpful. I would usually allow file creation, but no context changes/web scraping in my use case.

Version and model info

Aider v0.54.7

p-wegner commented 1 month ago

Additionally, using --yes will also automatically update aider or install needed packages like aider[help] if needed, which can take quite some time (torch + indexing). Especially when used for scripting and relying on the API of a fixed aider version, this is rather inconvenient.

paul-gauthier commented 1 month ago

You should consider scripting aider from python to get more control.

p-wegner commented 1 month ago

Yeah, that would solve those constraints. As of now, keeping requirements on the env minimal (e.g. python version) is the goal. Devs working with any Jetbrains IDE should be able to simply install https://plugins.jetbrains.com/plugin/25249-coding-aider without having to care about which python version is available on the system. Currently a compatible Aider has to be present of course, but i'll likely add an option to run it with docker https://github.com/p-wegner/coding-aider/discussions/7