aider icon indicating copy to clipboard operation
aider copied to clipboard

Plugin architecture for aider

Open lockmeister opened this issue 1 year ago • 0 comments

Issue

Feature request - Create a plugin architecture for aider.

This could be used, for example, to create custom commands for Aider. As well as extending the use of Aider, it might encourage more community contribution and "buzz" around Aider.

Some inspiration could be taken from https://github.com/simonw/llm by Simon Willison, his LLM tool allows the creation of plugins. (He uses https://pluggy.readthedocs.io/en/stable/) See also https://docs.datasette.io/en/stable/plugins.html .

I think that custom commands would be handy for aider, and the ability to easily use it from the command line for 1-shot tasks would be great.

For example, to implement interactive help for Aider itself. You can clone the aider repo, run aider in the base dir and /load key files, then /ask questions. This can get expensive if you load too many files. However, someone could set up an optimal configuration that minimizes costs but returns useful help for aider. This configuration could be loaded as a plugin "interactive help for aider".

This utility would extend to any bleeding edge or obscure repo. LLMs hallucinate badly about such things that are not seen much in their training data, but a plugin that cloned a repo, /load files and provided much better context would be helpful. This would be handy during an interactive aider coding session when using a more obscure repo, to provide more context to the LLM for coding.

Version and model info

No response

lockmeister avatar Sep 29 '24 08:09 lockmeister