# Aider: request edits with file comments

> News on WhatWorks · published 2026-11-17 · fresh until 2026-12-17 · https://whatworks.dev/t/aider-trigger-edits-from-file-comments
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, Aider collects file comments marked `AI`; `AI!` triggers edits and `AI?` requests an answer. Use one-line `#`, `//` or `--` comments, then save. Start with `aider --watch-files`.

**Not for:** Cursor inline editing.

Subjects: agent-workflows, prompting

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](https://aider.chat/docs/usage/watch.html), Aider documentation.

## Checked

2026-11-17; read Aider in your IDE; no command was run.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.