Programming with Aider-AI
Result of ticket https://pib-rocks.atlassian.net/browse/PR-868 .
Aider-AI tool, a command line based LLM code editor has been tested for 3 days on the imitation script with Gimini 2.5 pro as the LLM, commentary is added in this page.
To use Aider-AI, 2 commands are needed to install.
python -m pip install aider-install
aider-installAfter that an API and LLM model is specified. Note that auto completion is a very useful feature provided by Aider both for files in the directory and any data thats inside the added script like refrencing a specific variable or function. Initially, the file to be edited must be added, this happens by launching aider in the directory that you have the file in and then just typing add file_name
Aider-AI is command line based and has not GUI, it uses a search-replace method. Where the user gives a prompt requesting an edit, the tool searches in the script for the snippet that is needed in the prompt, changes it according to the request and print the searched and replaced snippets.
It is possible to add more than one file in your session if they are in the same directory.
Since Aider is code focused tool it will not answer any non-code related questions. Additionally, cost per message and per session is very useful to track usage.
Extra notes
Hallucintations were not easy to run into, and I believe that this is due to Aider limiting and affecting the LLM used.
It did not attempt to do “half a change” as commonly done by LLMs, where it changes some lines and comments “continue here” or paste the rest of your changes here
Only once did it use a non existent library from Tinkerforge