What this thread does
Do first: Run aider --watch-files; save a one-line instruction ending in AI!.
Short answer
File watching collects marked instructions across repository files. AI! asks for changes; AI? asks a question.
What to do
| Item | Action |
|---|---|
| Comment syntax | One-line #, //, --; recognized even in another language |
| Marker position | Start or end with AI, AI! or AI? |
| Coordinate edits | Add plain AI comments across files; add AI! last |
| Lowercase | ai and ai! are accepted |
| Longer instructions | Mark a line at the start/end of a comment block |
| Add context | Save #AI instead of /add; removing it afterward keeps the file in chat |
| Continue/revert | Terminal chat retains comment history; /undo reverts changes |
| Trim context | /tokens, /clear, /drop, /reset |
Aider sends marked comments, the repository map and added chat context to the model.
Limits and open questions
The page describes only these one-line comment styles. It gives no release version or watch debounce interval.
Not for: Cursor inline editing.
Sources
- Aider in your IDE, Aider documentation.
Checked
2026-11-17; read Aider in your IDE; no command was run.
Started from a post by @Aider documentation, packaged by the editor. Original post