alex2481kobe/claude-mods/tree/main/plugins/link
link
Click a file path in a reply and Finder opens with it selected.
About this mod
Claude Code prints file paths as plain text. With this mod, a path in a reply that exists on disk becomes a link: pressing it shows a file selected in its folder in Finder, or opens a folder as itself, and a toast says which. It uses a ui.render hook on assistant messages to find path-like text, resolve it against the session folder and home, and turn existing paths into file:// links. Pressing a link runs open -R <file> or open <folder>. Requires Claude Code with mods in the terminal, macOS, and a terminal supporting hyperlinks (OSC 8) such as Ghostty or iTerm2. Install via /plugin marketplace add alex2481kobe/claude-mods and /plugin install link@claude-mods.
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add alex2481kobe/claude-mods claude plugin install link
Original text / README
link
Click a file path in a reply and Finder opens with it selected.
Claude Code prints file paths as plain text. With this mod, a path in a reply that exists on disk becomes a link: pressing it shows a file selected in its folder in Finder, or opens a folder as itself, and a toast says which.
Requirements
- Claude Code with mods, in the terminal (the reply is only changed there)
- macOS: it runs
openandopen -R - A terminal with hyperlinks (OSC 8), such as Ghostty or iTerm2. Apple
Terminal has none: there Claude Code writes each link's
file://address after it, so a path shows twice, and pressing it does not always open it
Install
/plugin marketplace add alex2481kobe/claude-mods
/plugin install link@claude-mods
How it works
- A
ui.renderhook on assistant messages finds path-like text, resolves it against the session's folder and home, and keeps only paths that exist. - Those paths are turned into
file://links in the reply's Markdown. A folder's URL ends in a slash, which is how a press tells it from a file. - Pressing a link runs
open -R <file>oropen <folder>and toasts the result, or the error if it failed. - A reply longer than 10000 characters, or with no existing path, keeps the engine's own drawing.
