ybriki

Agent Line Comments — Development skill for Claude Code

Development community

Comment on a specific line or diff change in VS Code/Cursor and send it to a coding agent (Claude Code, Codex, Gemini CLI, Cursor Agent, Aider).

How to install Agent Line Comments

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ybriki/agent-line-comments and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Line Comments does

Comment on a specific line or diff change in VS Code/Cursor and send it to a coding agent (Claude Code, Codex, Gemini CLI, Cursor Agent, Aider).

Alternatives in Development

README

agent-line-comments

A VS Code / Cursor extension that lets you comment on a specific line or diff change and send that comment to a coding agent (Claude Code, Codex, Gemini CLI, Cursor Agent, Aider, or your own CLI).

Instead of writing "in `server.ts` around line 400, handle the null case" in a chat, you click the line and write "handle the null case". The agent gets the file, the line numbers, the surrounding code and the git diff for that spot.

How it works

  1. Hover next to a line number and click the + (works in normal files and in diff views). Drag to select several lines.
  2. Write your comment and choose:
    • Send: the agent runs now, edits the file, and replies in the thread.
    • Add to Review: queue it. When you're done, click N pending in the status bar to send all comments in one request.
    • Send to…: send this one comment to a different agent.
  3. Reply in the thread to follow up. It continues the same agent session.

Other ways to start a comment: right-click → **Comment on This Line**, or `Cmd+Shift+Alt+C` (`Ctrl+Shift+Alt+C` on Windows/Linux).

The current agent is shown in the status bar. Click it to switch.

What the agent receives

I left a review comment on `app.js` line 6

Code (lines marked `>` are the ones I commented on):
```javascript
  5 |   count = values.length;
> 6 |   return total / count;
  7 | }
```

Uncommitted git diff touching these lines:
```diff
@@ -3,7 +3,7 @@ function average(values) {
...
```

My comment:
> handle the case where values is empty

Install

You need at least one agent CLI installed and logged in (for example `claude` or `codex`).

git clone https://github.com/ybriki/agent-line-comments.git
cd agent-line-comments
npm install
npm run package
code --install-extension agent-line-comments-*.vsix     # or: cursor --install-extension ...

Supported agents

Agent Command used Tested
claude claude -p --output-format stream-json yes