open-links
Reviewed
at commit 264c852
Under each reply, a line of links to the files it names that exist (absolute, home, relative or Windows paths, with :line); a click opens the file in its…
0 upvotes
Log in to upvote or save- Made by
- Helen Kwok
- Pinned commit
-
264c852089461ee8861b95b428460ce24e0ce945 - What we checked
-
Adds a line under each of Claude's replies in the terminal with a link for every file path in the reply that exists on disk. Pressing a link opens the file in your default app, or in your editor at that line if you set one. It makes no network calls and stores nothing; it remembers folders Claude's tools worked in during the session to find relative paths.
Review details
Static review of the source at the pinned commit; not run. Read in full: manifests and hooks/open-links.ts (single module). Registers tool.call (reads path-like strings from the tool's arguments to remember folders; passes the call on unchanged) and ui.render for AssistantMessage (terminal surface only). It extracts path-like words from the reply, resolves them against the session folder, the optional 'roots' setting and folders seen in this session's tool calls (also read back once from $.session.messages tool_use inputs), checks existence with $.fs.stat (skipping //, /net/ and /Network/ paths so lookups cannot reach other machines), and draws up to 12 links. Only on a link press it runs $.process.run with no shell: explorer, open or xdg-open on the file path, or the configured editor command with -g file:line, with a 15 s timeout; only the links it drew can be pressed. Opening uses the system's default handler, so pressing a link to an executable or script file the model named would launch it through that handler; the link text shows the path. Reads HOME or USERPROFILE and the cwd. Settings: editor, skipPlanning, roots. Changes since the previous review: roots setting, learning folders from tool calls and session history, remote path guard, skipPlanning option, editor-at-line. No fetch or eval, no model calls. devDependencies in package.json are test tooling only.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: yes
A Claude Code mod: file paths in Claude's replies become links that open the file (or your editor at the line). macOS, Linux and Windows paths, relative ones resolved against the session folder.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/open-links/)