Advanced Aider AI coding assistant configuration with multi-model setup, auto-testing, and optimized repo mapping for production workflows
A comprehensive Aider configuration optimized for production AI-assisted coding workflows with multi-model orchestration, automatic testing, and intelligent code mapping.
Configures Aider with:
1. **Place Configuration File**
- Save this content as `.aider.conf.yml` in your project root or home directory
- Aider will automatically discover and load it on startup
2. **Set Required Environment Variables**
```bash
export DEEPSEEK_API_KEY="your-deepseek-api-key"
# Or add to .env file in git root
```
3. **Customize Test Command**
- Default: `bash test.sh`
- Update `test-cmd` to match your project's test runner
- Examples:
- `pytest tests/`
- `npm test`
- `cargo test`
4. **Enable Auto-Testing**
- Set `auto-test: true` to run tests after every code change
- Start with `false` for manual control, enable when confident
5. **Adjust Model Settings**
- **Main model**: `deepseek/deepseek-r1-0528` (reasoning + coding)
- **Weak model**: Same as main (commit messages, summaries)
- **Editor model**: Same as main (code edits)
- Switch models by uncommenting alternatives in config
6. **Configure API Timeouts**
- Default: 60 seconds
- Increase for complex operations: `timeout: 120`
7. **Optimize Repo Mapping**
- `map-tokens: 2000` provides context about your codebase structure
- Increase for large repos: `map-tokens: 4000`
- Set to `0` to disable
8. **Git Integration**
- Auto-commits enabled by default
- Commits work even on dirty repos
- Disable with `auto-commits: false` for manual control
9. **Launch Aider**
```bash
aider file1.py file2.py
# Or let it discover files
aider
```
10. **Load Preset Commands** (Optional)
- Create `as1` file with common /commands
- Auto-loads on startup via `load: as1`
- Remove this line if not needed
```yaml
model: deepseek/deepseek-r1-0528
restore-chat-history: true
auto-lint: true
auto-test: false # Set true when ready
test-cmd: bash test.sh
map-tokens: 2000
max-chat-history-tokens: 15000
dark-mode: true
code-theme: gruvbox-dark
timeout: 60
```
Quick model switching with aliases:
**Basic coding session:**
```bash
aider src/main.py tests/test_main.py
```
**Auto-test workflow:**
```bash
aider src/api.py
```
**Quick model switch:**
```
/model gemini/gemini-2.0-flash-thinking-exp
/model c1
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-pro-configuration-yming1/raw