﻿# Aider YAML settings load from home, repository and current directory

Explain Aider configuration differences by checking ordered YAML discovery, the current launch directory and explicit single-file config selection before changing model behavior.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-aider-yaml-config-discovery/
Language: en

## Reproduce the launch location

Aider behaves differently when started from a repository root and a nested application directory. The model can be the same while configuration discovery changes. Record the current directory and the intended repository before comparing responses. A launch command without that context may be insufficient to reproduce which instruction files, model choices, or automatic checks the session actually used.

## Follow YAML files in their documented order

The [YAML guide](https://aider.chat/docs/config/aider_conf.html) lists the home directory, Git repository root, and current directory as configuration locations. Existing files load in that order, with later files taking priority. A setting visible in the repository file can therefore be superseded by a current-directory file. Inspect the relevant setting across those locations rather than repeatedly editing a lower-priority value that is not effective in the running session.

## Understand the explicit config boundary

The same guide says `--config` loads only the specified configuration file. This provides a different discovery contract from layering every default location. The [options reference](https://aider.chat/docs/config/options.html) identifies the explicit parameter and available setting names. Use a bounded configuration for a controlled comparison when useful, but keep necessary settings intentionally represented. Do not assume an explicit file automatically inherits every convention previously supplied by a home or repository configuration.

## Inspect effective settings before interpreting output

The [command reference](https://aider.chat/docs/usage/commands.html) provides `/settings` for the current values. Compare the relevant resolved setting with the intended value before diagnosing a model-quality difference. Persistent file selections and automatic checks can influence the interaction independently of the main model. Record only the settings needed to explain the comparison; avoid publishing a whole configuration dump when it may contain unrelated private information.

## Preserve a reviewable configuration example

For a team handoff, name the chosen configuration, launch location, and material overrides in plain language. The [task-contract guide](/journal/learn-codex-task-contract/) makes the intended workflow explicit; [tool observations](/journal/learn-codex-tool-observation/) separate a value in a file from a value the application reports using. Verify the intended behavior after resolving discovery. A reproducible setup is the effective configuration plus its operating context, not merely a familiar filename checked into the repository.
