Comment by olejorgenb
1 day ago
I think CLI code agents (eg. Claude Code) should render the line numbers in their diff view as links, opening that line in your editor of choice.
You can also make your own scheme-handler easily (on Linux at least). I have a `niri://` handler enabling linking to a specific Wayland window. (it has niche usecases :D)
This guy build a pty "proxy" to linkify Claude Code output: https://www.youtube.com/watch?v=GP5TwKnCzhQ
> I think CLI code agents (eg. Claude Code) should render the line numbers in their diff view as links, opening that line in your editor of choice.
CC already does this with PR/MR/etc links for example (i.e. #123 is clickable and brings you to issue 123 in the repo it's working on)
Yes, they do it with the paths inside the `Edit(path/to/file)` tool calls as well. But I have not seen any links using the capability to link to line numbers.
https://github.com/anthropics/claude-code/issues/13008