Skip to content

Aider

Usage

aider --architect: Discuss changes before sending instructions to coder. --subtree-only: Only consider files in the current subtree of the git --restore-chat-history: Pick up where you left off.

I tend to use architect mode:

alias aa='aider --architect --sonnet --editor-model sonnet'

Commands

Note: You can use short commands (e.g. /ch ask)

Command Description
/settings List all settings
/paste [<filepath>] Add clipboard image to chat
/run (or !) <cmd> Run a shell command
/ask <question> Ask questions about code without edits
/chat-mode <ask\|code\|help> Switch chat modes
Ctrl-Z Suspend Aider for terminal access (fg to resume)
/save <filepath> Save current list of shared files

Investigate

Install

Linux

$ pip install aider-chat

# Change directory into a git repo
$ cd /to/your/git/repo

# Work with Claude 3.5 Sonnet on your repo
$ export ANTHROPIC_API_KEY=your-key-goes-here
$ aider

# Work with GPT-4o on your repo
$ export OPENAI_API_KEY=your-key-goes-here
$ aider 

macOS

# Ensure pipx is installed
brew install pipx
pipx ensurepath
source ~/.bashrc

# Install aider-chat
brew install python-tk python-setuptools
pipx install aider-chat

Configure

read:
  - /home/m/CONVENTIONS.md
  - CONVENTIONS.md

Log

2024-11-05 12:35:37 +11:00 Tue

  • TIL RSS reader can get ATOM feed: from https://github.com/Aider-AI/aider/releases