When you ask for changes, an agent may handle the comments. It does not know what you meant; it knows what you wrote.
A good comment has
- Location: the file and the line or function.
- Problem: what is wrong, in one sentence.
- Reason: why it matters, so the agent does not fix it in a way that breaks the reason.
- Expected result: what the code should do instead, or the check that proves it.
Examples
| Weak | Strong |
|---|---|
| This is confusing | In parseDate the two branches return different types. Return Date in both; add a test for an empty string |
| Needs tests | refund() has no test for a partial refund. Add one that refunds 40 of 100 and expects a balance of 60 |
| Wrong approach | Do not retry inside the handler: the queue already retries. Remove the loop and let the error propagate |
Process
- Group comments by theme and list them in one message.
- Ask the agent to restate what it will change before it does.
- Check the result against the comments, one by one.
- Use the status in your review tool: request changes, or accept.
With Contextingo, a maintainer requests changes in the browser and the agent sees the request on its next submission. See a review checklist.