mdview

Reviewed at commit d3050cd New version, not yet reviewed

Click a markdown path in the conversation to read the file rendered in a side pane with contents, find and pictures, or in Warp's own viewer, and point at any…

Made by
Anji Xu
What we checked

Turns .md paths in the conversation into clickable links that open the file rendered in a side pane, with local pictures drawn in place. A pencil on each block sends an edit instruction to Claude as your prompt. It also adds /md and a tool that lets Claude open a file in the pane. It makes no network calls and sends file contents nowhere.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since da64655; the rest carries over from the review at that commit. The only code change is in the turn.start handler that links a block edit sent from the pencil to its turn: it now returns early for a subagent's turn (e.agentId set), so a subagent brief quoting the edit is not matched. The rest is a version bump to 1.0.1, README and test edits. Registers session.start, classic.CwdChanged, tool.call (watches Write/Edit paths and its own mcp__mdview__show tool), command.run for /md, turn.start, turn.complete, ui.close and ui.render (AssistantMessage, UserMessage, ToolUse, Pane). Reads text of Claude's replies and your prompts to find file paths and checks they exist with $.fs.stat; reads the opened file with $.fs.read (shown on screen only). Runs the macOS programs sips and open, and rm -f for its own temporary BMP. Reads env HOME, TMPDIR, TERM, TERM_PROGRAM, KITTY_WINDOW_ID, CLAUDE_CODE_FORCE_TERMINAL_IMAGES. Sends a prompt (asUser) only when you submit a block edit. /md mode writes the mdview click setting with $.config.set. Remote images are never fetched.

What it uses
  • Reads your prompts: yes
  • 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: yes
  • Shows something on screen: yes

Click a .md path in the Claude Code conversation to read it rendered as markdown beside the session, pictures included, and point at any block to have Claude edit it.

Made this mod? Add a badge to your README

modsforClaude badge for mdview

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/mdview.svg)](https://modsforclaude.com/mods/mdview/)

← All mods