# AI use cases for Aider (Aider-AI/aider)

Repo: [Aider-AI/aider](https://github.com/Aider-AI/aider) | Use cases: 3 | Page: https://dedupedai.com/use-cases/aider-ai-aider/

Aider is AI pair programming in your terminal. It lets you pair program with LLMs to start a new project or build on an existing codebase. It works with cloud and local LLMs, maps your whole codebase, supports 100+ languages, commits changes through git, can lint and test after each edit, and accepts images, web pages and voice.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Start pair programming in your terminal with Aider: https://dedupedai.com/use-cases/aider-ai-aider/start-pair-programming-in-your-terminal-with-aider/
- Lint and test automatically after every Aider edit: https://dedupedai.com/use-cases/aider-ai-aider/lint-and-test-automatically-after-aider-edits/
- Add screenshots and web pages as context in Aider: https://dedupedai.com/use-cases/aider-ai-aider/add-screenshots-and-web-pages-to-an-aider-chat/

## How to start pair programming in your terminal with Aider with Aider

Repo: [Aider-AI/aider](https://github.com/Aider-AI/aider) | Difficulty: Beginner | Time: 20 minutes | Basis: From the README

Install Aider, move into your project and chat with a model that edits your code.

**Who it is for:** A developer who wants model-assisted edits with sensible git commits.

**The problem:** Copying code between a chat window and your editor is slow.

**The outcome:** An Aider session in your repo that edits files and commits them.

### Steps

1. Run `python -m pip install aider-install`
2. Run `aider-install`
3. Change directory into your codebase with `cd /to/your/project`
4. Start Aider with a model flag, for example `aider --model deepseek` with your key passed via `--api-key`
5. Ask for a change and review the git commit Aider makes

### Prompt to paste into your agent

```text
Help me set up Aider-AI/aider: run `python -m pip install aider-install` and `aider-install`, then walk me through starting it in <my project> with my chosen model.
```

### Caveat

Aider edits and commits your files, so start from a clean git state.

Risk, cost: You pay your model provider for tokens; keep an eye on usage.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/aider-ai-aider/start-pair-programming-in-your-terminal-with-aider/

## How to lint and test automatically after every Aider edit with Aider

Repo: [Aider-AI/aider](https://github.com/Aider-AI/aider) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Let Aider run your linters and tests after each change and fix what breaks.

**Who it is for:** A developer who wants model edits checked by their own test suite.

**The problem:** Model edits can break tests unnoticed.

**The outcome:** Changes that are linted and tested as they are made.

### Steps

1. Install Aider with `python -m pip install aider-install` then `aider-install`
2. Open the Aider docs page on linting and testing to set your lint and test commands
3. Start Aider in your repo and request a change
4. Let Aider fix problems found by your linters and test suites
5. Review the resulting commits

### Prompt to paste into your agent

```text
Using Aider-AI/aider, configure it to lint and test automatically after each change in <my repo> following the aider linting and testing docs, then make <change> and show me the commits.
```

### Caveat

The exact lint and test flags live in the Aider docs, not the README.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/aider-ai-aider/lint-and-test-automatically-after-aider-edits/

## How to add screenshots and web pages as context in Aider with Aider

Repo: [Aider-AI/aider](https://github.com/Aider-AI/aider) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Give Aider images and documentation pages so it can build against real references.

**Who it is for:** A frontend developer implementing a design or API from a screenshot or docs page.

**The problem:** Describing a visual or a doc in text loses detail.

**The outcome:** Code changes informed by the images and pages you added.

### Steps

1. Install Aider with `python -m pip install aider-install` then `aider-install`
2. Start Aider in your project with your model
3. Add the image or web page to the chat as described in the Aider images and URLs docs
4. Ask for the change and review the commit

### Prompt to paste into your agent

```text
With Aider-AI/aider, add <screenshot or URL> to the chat in <my project> and implement <feature> to match it.
```

### Caveat

Image support depends on the model you choose.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/aider-ai-aider/add-screenshots-and-web-pages-to-an-aider-chat/
