Launch offer: use code LAUNCH20 for 20% off any single pack. See the packs

Aider CONVENTIONS.md Examples: Templates and the read: Gotchas (Tested)

Published 2026-11-19 · 5 min read · by AgentKit Co

aider is the open-source terminal coding agent that edits your files and commits each change to git. Its version of AGENTS.md or CLAUDE.md is a plain Markdown file of coding rules, usually called CONVENTIONS.md. The catch that trips people up: aider does not load it on its own. A CONVENTIONS.md sitting in your repo does nothing until you tell aider to read it.

We checked this page against aider's conventions docs and YAML config docs on 2026-11-19, then tested each behavior below with aider 0.86.2 on Linux in a scratch git repo. We didn't test Windows. Re-check the docs for anything you depend on.

Download free-aider-conventions.zip (MIT: three CONVENTIONS.md templates, a .aider.conf.yml, a check-aider-read.sh checker and its 12-test test.sh)

Three ways to load it

How Command When
Command line aider --read CONVENTIONS.md One session
In the chat /read CONVENTIONS.md You forgot at startup
Config file read: CONVENTIONS.md in .aider.conf.yml Every session (recommended)

All three add the file as read-only: aider sees it but won't edit it, and the docs note that read-only files can be prompt-cached when caching is on. When it works, aider prints Added CONVENTIONS.md to the chat (read-only). at startup. If you don't see that line, your conventions aren't loaded. In our test, /tokens also listed it as CONVENTIONS.md (read-only).

The .aider.conf.yml that loads it every time

Put this at your repo root:

# .aider.conf.yml
read:
  - CONVENTIONS.md
  # - AGENTS.md   # if you already keep one for Codex, Cursor or Copilot

# optional: let aider check its own work after each edit
# test-cmd: pytest -q
# auto-test: true

aider looks for .aider.conf.yml in your home directory, the git repo root and the current directory, loading them in that order so the last one wins. Already have an AGENTS.md for other agents? aider doesn't read it automatically either, so list it under read: the same way. Then you only maintain one file. See our AGENTS.md examples.

Three read: gotchas we hit while testing

1. Paths resolve from where you start aider, not the repo root. We put read: [docs/CONVENTIONS.md] in the root config and launched aider from a subfolder. aider still found the config, but it printed Error: Read-only file .../sub/docs/CONVENTIONS.md does not exist. Skipping. and started without the rules. Launch aider from the repo root.

2. read: lists replace each other. They don't merge. With read: in both ~/.aider.conf.yml and the repo's config, only the repo's list loaded. Passing --read a.py on the command line replaced both. So if you keep personal rules in your home config, add them to the repo's list as well.

3. A missing file isn't fatal. aider prints one error line and carries on, so it's easy to scroll past and spend a whole session wondering why it ignores your rules.

The free check-aider-read.sh in the download catches all three. Run it from wherever you plan to start aider. It tells you which config file's read: list wins and marks each path OK or SKIP, with the reason.

Template: Python

# Conventions

## Stack
- Python [3.12], package manager [uv]
- [FastAPI / Django / CLI with Typer]; tests with pytest

## Code style
- Type hints on every public function; no `Any` unless commented why
- Prefer `pathlib`, f-strings and dataclasses
- Format and lint with `[ruff format] && [ruff check]`

## Architecture
- [Business logic in src/<pkg>/services/; handlers stay thin]
- Config comes from environment variables, never hard-coded

## Tests
- Every bug fix gets a failing test first
- Run: `[uv run pytest -q]`
- Mock only network and third-party APIs

## Avoid
- New dependencies without saying why
- Editing [migrations/, generated/] unless asked
- Printing or logging secrets

Template: TypeScript

# Conventions

## Stack
- TypeScript [5.x] strict, Node [22], package manager [pnpm]
- [Next.js App Router / Express / Vite + React]; tests with [Vitest]

## Code style
- Named exports; no default exports except where the framework needs them
- No `any`: use `unknown` and narrow
- Validate external input with [Zod] at the boundary

## Architecture
- [Data access in src/lib/db/; components never call the DB directly]
- Server-only code never imported into client components

## Tests
- Test file next to source: `foo.test.ts`
- Run: `[pnpm test]` and `[pnpm typecheck]` before calling a change done

## Avoid
- Adding packages without saying why
- Touching [generated/, .env*, lockfiles] unless asked

The Go template is in the download. Replace every [BRACKET] and delete any line that doesn't apply to your project.

What to put in it (and what to leave out)

  • Write rules aider can act on. "Use httpx, not requests" changes the code it writes. "Write clean code" doesn't. The aider docs' own example is exactly that kind of line: prefer httpx, use type hints.
  • Keep it short. Everything in the file is sent with each request, so it costs tokens every time. Ours run 20 to 25 lines.
  • Commands belong in config, not prose. aider can run your linter and tests itself: set lint-cmd, test-cmd and auto-test in .aider.conf.yml instead of asking it nicely in Markdown.
  • No secrets. The file goes to your model provider along with everything else.

FAQ

Does aider read CONVENTIONS.md automatically? No. Use --read, /read or read: in .aider.conf.yml. Some guides say it loads from the repo root by itself. In our test with 0.86.2, nothing loaded until we asked.

Does aider read AGENTS.md or CLAUDE.md? Not automatically. List them under read: like any other file.

Can I have a global CONVENTIONS.md? Yes: put read: [~/conventions.md] in ~/.aider.conf.yml (in our test aider expanded ~). Remember gotcha 2: a repo that sets its own read: replaces that list.

Will aider edit my CONVENTIONS.md? Not when you load it with --read, /read or read:, which add it read-only. If you /add it instead, it becomes editable.

Get matching files for every tool

The free AGENTS.md generator builds AGENTS.md, CLAUDE.md, Cursor, Copilot, GEMINI.md and Kiro files from your package.json or pyproject.toml. Point aider's read: at the AGENTS.md and every agent shares one set of rules. The AI Coding Agent Config Kit adds 12 stack templates and prompts that audit and test them. Using other tools too? See Cline rules, Windsurf rules and CLAUDE.md examples.

AgentKit Co is not affiliated with aider or its authors.

AI Coding Agent Config Kit

Instruction-file templates for 12 stacks and 12 prompts that write and audit them. 34-page PDF, $14.

Not ready to buy? Start with the free PDF.

Get 10 of our most-used prompts as a free PDF from Gumroad. You will be asked for your email so Gumroad can deliver it.

Keep reading

Agent Skills (SKILL.md) Explained: Formats, Folders and SafetyWhat an Agent Skill is, how SKILL.md works, which folders Claude Code, Codex, Cursor and Copilot read, and how to write and vet one. Checked on 2026-10-17.4 min readAGENTS.md Examples: 7 Copy-Paste Files for Real Projects (2026)Seven AGENTS.md examples to copy: Next.js, Python API, Go, a monorepo with nested files, a global ~/.codex file, an override and review rules.7 min readWhat Is an AI Agent? Plain-English Guide for BeginnersWhat an AI agent is, how it differs from a chatbot or automation, and the four building blocks every agent has. No jargon.4 min read