Skip to content
DigiTransact AI Learning CentreVibe Coding Academy

All platform tutorials

Terminal · Intermediate

Aider

Aider is a terminal pair-programming tool that edits the files you add to its chat. Use it for small, testable changes in a Git project. [sources]

Documentation and availability checked .

Access and costs

Aider is open source and can use local or cloud models. Hosted inference may cost money; local inference requires suitable hardware. There is no promise of free cloud tokens. [sources]

Practical project: Refactor a price formatter

  1. Set up. Follow Aider’s installation guide and configure a supported model. In a practice Git repository, create price.py and test_price.py; run aider price.py test_price.py.
  2. Prepare the example. Start price.py with a function that prints a bare amount. In the test file, write down the expected text GHS 7.50 for the input 7.5.
  3. Ask for one change.
    Change only these two files. Format non-negative numeric amounts as GHS plus two decimal places. Reject negative numbers. Add standard-library tests for 7.5, zero and a negative amount.
  4. Inspect and revise. Read the diff and run python -m unittest test_price from this folder. Ask Aider to explain any failing assertion before asking it to edit again.
  5. Check the result. The positive case must be GHS 7.50, zero GHS 0.00, and a negative input must raise the documented error.

Strengths and limits

File selection limits the immediate scope. A repository map is not a substitute for adding the tests you actually want changed.

Watch alongside the project

Aider · Intermediate

I Let Aider AI Refactor My App

Better Stack · Published · Checked 2026-12-05

Watch alongside the written exercise: Refactor a price formatter.

Auto-generated English captions listed. YouTube offered Show transcript on the watch page. Watch on YouTube / open transcript

Read the Aider tutorial

Official sources

  1. Official documentation
  2. Official installation guide
  3. Official repository and model options

These are documentation checks, not paid-account tests. Confirm eligibility and limits in your account before enabling billing.