Google Photos PDF Aider Configuration
Configuration for Aider AI pair programming with dual-model architecture: Claude Sonnet 4.5 for complex reasoning and Gemini 2.5 Pro for fast code editing.
What This Does
Sets up Aider with:
**Architect model** (Claude Sonnet 4.5) for complex refactoring and design decisions**Editor model** (Gemini 2.5 Pro) for fast diff application**Automatic verification** via custom `check.sh` script (lints + types)**Context awareness** from CONVENTIONS.md and PLAN.md**Auto-testing** that prevents commits if checks failInstructions
1. **Create `.aider.conf.yml` in your project root** with this content:
```yaml
1. ARCHITECT (The Brain)
Detailed reasoning for complex refactors.
model: anthropic/claude-sonnet-4-5
architect: true
2. EDITOR (The Typist)
Fast application of diffs.
editor-model: gemini/gemini-2.5-pro
3. VERIFICATION (Python Specific)
Run lints + types before committing.
test-cmd: ./check.sh
Stop Aider from committing if tests fail
auto-test: true
Appearance
dark-mode: true
show-diffs: true
Context
read:
- CONVENTIONS.md
- PLAN.md
```
2. **Create `check.sh` verification script** (Python example):
```bash
#!/usr/bin/env bash
set -e
echo "Running Python linters and type checks..."
Run your linters (adjust to your project)
ruff check .
black --check .
mypy .
echo "✓ All checks passed"
```
Make it executable:
```bash
chmod +x check.sh
```
3. **Create context files** (optional but recommended):
`CONVENTIONS.md` - Your project's coding standards`PLAN.md` - Current architecture and roadmap4. **Run Aider**:
```bash
aider
```
How It Works
**Complex refactors**: Claude Sonnet 4.5 architect analyzes and plans changes**Code editing**: Gemini 2.5 Pro editor applies diffs quickly**Before each commit**: `check.sh` runs automatically**If checks fail**: Commit is blocked until issues are fixed**Context loading**: Aider reads CONVENTIONS.md and PLAN.md on startup for project awarenessCustomization
**For non-Python projects**, update `check.sh`:
```bash
JavaScript/TypeScript
eslint . && tsc --noEmit
Go
go vet ./... && go test ./...
Rust
cargo clippy && cargo test
```
**Adjust models** if you have different API access:
Replace `anthropic/claude-sonnet-4-5` with your available Claude modelReplace `gemini/gemini-2.5-pro` with another fast model (e.g., `gpt-4-turbo`)Requirements
Aider installed (`pip install aider-chat`)API keys for Anthropic and Google AI configuredVerification tools for your language (ruff, mypy, etc.)Notes
The `architect: true` flag enables two-model workflow`auto-test: true` runs `test-cmd` before every commit`show-diffs: true` displays changes for reviewContext files are read once at startup (re-run Aider after updates)