Aider-AI / aider

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

Feature Request: `--check` simple chain of thought improvement - add command line switch to allow aider to check it's work #1204

Open zackees opened 3 months ago

zackees commented 3 months ago

Issue

I'm noticing significant code improvements when I simply ask aider to check it's work. I've implemented this LLM trick in my own suite of LLM command line tools like ai-db for SQL generation (not using aider in this case FYI).

I think this could be a low hanging fruit to improve the usefulness of aider significantly. In my ai-db tool for example, i allow the command line switch --check. In this mode the query from the LLM is sent back to LLM to check it's previous output. The prompt instructs the LLM to either respond with "OK" signifying that everything is great, or else a new revision, which is then accepted.

Version and model info

No response

paul-gauthier commented 3 months ago

Thanks for trying aider and filing this issue.

I have been thinking about a feature like this lately as well.

zackees commented 2 months ago

I'm not just one to try side, i've written a whole front end to make it easy to install and retain its key without editing a shell script. I also created a isolated environment so the complex dependency tree doesn't have to hit the global packages

zackees commented 2 months ago

The new open ai model has chain of thought reasoning built in.

When that lands I'll see if this feature request is still relevant.