VCode home

Comment on a line of a file

Agents: claude, codex, opencode · On: phone, desktop

Tap a line in the viewer, type what is wrong with it, and send it to the agent as a message that names the file, the line and quotes it.

Why you would use it

The agent wrote something you want changed, and "line 42 of runner.js, the timeout is too short" is easier to point at than to describe. The comment carries the line's text with it, so the agent does not have to guess.

How to use it

  1. Open a file in the viewer.

  2. Tap a line. A box opens under it: an avatar beside a text field with the placeholder comment on line <n>…. The avatar is the first letter of your VCode account's email, or Y when the computer is not linked to an account.

  3. Type the comment.

    The comment box open under line 6, holding a sentence, with close, comment and start review under it

  4. Tap Comment to send it to the agent on its own, or Add to review / Start review to gather it with others (see review-a-file).

  5. Tap Close to drop the box without sending. On a line that already has a comment the button reads Remove; tapping it takes the comment away.

What you see

The message the agent receives:

Comment on lib/runner.js:42
> const TIMEOUT = 10_000;
this is too short for a cold start

Limits and known gaps