BETA

Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
Queensland government logo Queensland government logo
Sign in Sign out
Sign in
  • Profile summary
  • Sign out
Department of Education Department of Education Developer Portal
  • Home
  • Tags
  • Chat
  • New
    APIs
  • Help
  • Contact us
  • Dark mode
  • Home
  • Tags
  • Chat
  • New
    APIs
  • Help
  • Contact us
  • My profile
  • Dark mode

Pair programming with Aider AI

Andrew McGrath Government
by Andrew McGrath
21 August 2024
Last updated 21 August 2024
AI opinion
AI opinion

There has been much fan fare about the AI revolution and what it means for people who write and maintain software.

As a developer, the question arises as to where to start.

A developer might be tempted by the allure of AI products that can generate systems from scratch.

However, at least for the foreseeable future, developers will spend much more time testing and maintaining existing systems than writing new code.

So what would be really helpful is a tool that can:

• generate code from a description
• understand an existing code base
• understand existing documentation 
• gain understanding by being presented documentation via URLs
• modify existing code
• write tests
• fix bugs
• create documentation
• understand a code base
• automatically generate commit messages 

Aider is such a tool. (https://aider.chat/)

You drive it from the command line using commands such as • /code - ask for code to be written • /ask - ask questions about the codebase • /add - add files to the current chat context • /web - scrape a web page and add the content to the chat • /map - print out the current repository map • /clear - clear the chat history

An example scenario where it can be used is in updating documentation as shown at the link https://aider.chat/examples/update-docs.html.

After installing via pip, you can use Aider simply by changing into the directory where a git repo is located, typing aider and hitting return.

You can integrate it with just about any LLM and even use a local LLM via Ollama.

There is also an active Discord channel where you can get help and see the types of systems that people have created using Aider.

Interestingly, Aider wrote 56% of the code that made it into it’s latest release that came out today, 21 August 2024.

Looking forward to getting really productive with this tool.

Other tools such as Continue.Dev can provide a similar experience but from inside VS Code - perhaps a post for another day.

Powered by Link to AI chat
  • Copyright
  • Disclaimer
  • Privacy
  • Right to information
  • Accessibility
  • Jobs in Queensland Government
  • Other languages

© The State of Queensland (Department of Education) 2025

Queensland Government