Skip to content

Comment on a file tab's lines and send them to the worktree's agent - #41

Merged
KieranP merged 1 commit into
mainfrom
diff-comments
Nov 13, 2026
Merged

KieranP merged 1 commit into
mainfrom
diff-comments

Conversation

@KieranP

@KieranP KieranP commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Closes #6.

Comments sit as cards under the lines they are on in a file tab, and a new Review page in the Files panel, between Changes and PR, sends them. Send writes every pending comment to a Markdown file in the drops directory and pastes a mention of it into the picked agent's prompt, with no newline; Claude Code folds a long paste to a placeholder. Changes is untouched.

  • Writing. Hover a line number for a +, click it or drag down from it, write, ⌘↩. "Comment on Lines…" in the text's right-click menu does the same from the keyboard and VoiceOver. No shortcut.
  • Cards. Edit and Delete while pending, Dismiss once sent. Gaps open in the row geometry the layout, tints, gutter, find and steps all share; a split opens each gap in both columns so the lock holds.
  • Anchoring. A comment follows the text it quotes as the file is re-read. A sent comment whose lines change is Outdated; a pending one is kept, marked Lines changed, and sent with its quote.
  • Saving. Each worktree's comments are a file under reviews/ in Application Support, removed with the worktree. Sent comments go after a week, with the drops sweep.
  • Command line. multishell review list|add|send|clear.
  • Docs. Docs/design/files/review-comments.md, and notes in panel, paste-and-drop, command-line and state-on-disk.

Known limit: comments re-anchor only while their file's tab is shown, as a hidden tab holds no rows, and review add needs the tab shown for the same reason.

make test passes (one known issue recorded before this change) and make lint is clean.

🤖 Generated with Claude Code

@KieranP
KieranP force-pushed the diff-comments branch 7 times, most recently from b7fbb88 to 0ca6ea3 Compare November 13, 2026 06:07
A comment sits as a card under the lines it is on, in a gap opened in
the file tab's rows, and Review in the Files panel sends every pending
one to an agent pane. Claude Code folds a long paste to a placeholder,
so Send writes the comments to a Markdown file in the drops directory
and pastes a mention of it, with no newline. A comment is held by the
text it quotes rather than its row, as rows move with every edit
above; a sent comment whose lines change reads as Outdated. Each
worktree's comments are a file of their own, so a crash loses no
review in progress.

- Open the gaps in the row geometry the layout, tints, gutter, find
  and change steps share, in both columns of a split
- Count pending comments on file tab titles and Files and Changes rows
- Add `multishell review list|add|send|clear`
- Draw the composer and its buttons in the theme, the Merge button too
- Rename ServicePageEmptyState to PanelPageEmptyState for Review's use

Closes #6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KieranP
KieranP merged commit b932810 into main Nov 13, 2026
2 checks passed
@KieranP
KieranP deleted the diff-comments branch November 13, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment on a diff tab's lines and send them to the worktree's agent

1 participant