Notebookcheck Logo

AI code assistant "aider" helps with programming across entire GitHub repositories

aider is an AI programming assistant for the terminal (image: generated with Dall-E 3).
aider is an AI programming assistant for the terminal (image: generated with Dall-E 3).
The AI assistant "aider" is using ChatGPT 3.5 or 4 and can incorporate entire Git repositories into AI-based development. The open source tool is used in the terminal and should be able to perform commits independently with automatically generated descriptions.

AI code generation tools like ChatGPT or GitHub Copilot are already available for software developers. However, these AI tools can only be used to automatically generate individual sections of code; the open source project "aider" now extends AI code generation to entire Git repositories. According to its creators, aider can be used not only for new projects, but also for existing, larger code bases.

"Aider is a command line tool that lets you pair program with GPT-3.5/GPT-4, to edit code stored in your local git repository. Aider will directly edit the code in your local source files, and git commit the changes with sensible commit messages," says the project website. This means that aider can be seen as a kind of AI mediator for ChatGPT, for which aider can, for example, create an overview map of entire Git repositories.

Once installed, the command line tool aider can include individual files in a ChatGPT session by calling it in the style of "aider <file1> <file2> ...". Alternatively, aider will use all files in the project when invoked from within the Git repository without a filename. Individual files can then be added or removed from the AI session within the chat session using the "/add" or "/drop" parameters.

Details on installing and using the AI assistant can be found on aider's GitHub page. The project page also contains sample chat transcripts with aider, e.g. changes to an existing JavaScript game or complex changes to multiple files, including debugging.

Example of how to use the aider AI assistant (Image: aider)
Example of how to use the aider AI assistant (Image: aider)

Source(s)

Read all 1 comments / answer
static version load dynamic
Loading Comments
Comment on this article
Please share our article, every link counts!
> Expert Reviews and News on Laptops, Smartphones and Tech Innovations > News > News Archive > Newsarchive 2024 04 > AI code assistant "aider" helps with programming across entire GitHub repositories
Alexander Pensler, 2024-04-15 (Update: 2024-04-15)