Browser-based Markdown annotator with text highlighting for Claude Code
npx claudepluginhub konradmichalik/md-annotatorOpen Markdown files in a browser-based annotator for AI-assisted review
An AI coding agent plugin that opens Markdown files in a local browser-based annotator.
Select text to mark deletions or add comments, then let the coding agent apply your feedback.
[!NOTE] This plugin is heavily inspired by the excellent plannotator plugin and uses a similar general approach for Markdown files. Useful for reviewing documentation in software projects.

.md links to open them as new tabs (wiki-style browsing)mermaid code blocks as interactive diagrams with zoom, pan, and source toggle (adapts to light/dark theme)plantuml code blocks as SVG via a configurable PlantUML server with zoom, pan, and source togglegraphviz, d2, ditaa, erd, nomnoml, excalidraw, and more) via a configurable Kroki server@ in comments to autocomplete and reference other project filesCmd+Z / Cmd+Shift+Z)Alt+1--0) shown as colored pills with SVG iconsmd-annotator supports the following integrations:
/annotate:md slash commandannotate_markdown tool and /annotate:md commandmd-annotator is a Claude Code plugin. After installation the slash command /annotate:md is available in any Claude Code session.
curl -fsSL https://konradmichalik.github.io/md-annotator/install.sh | bash
Inside a Claude Code session:
/annotate:md README.md
/annotate:md docs/api.md docs/guide.md
Or, with IDE integration (VSCode/Cursor/JetBrains), just run without arguments to annotate the currently open file:
/annotate:md
md-annotator is also available as an OpenCode plugin.
curl -fsSL https://konradmichalik.github.io/md-annotator/install.sh | bash
Then add to your opencode.json:
{
"plugin": ["md-annotator-opencode@latest"]
}
[!NOTE] See OpenCode documentation for more details.
Use the /annotate:md command in the chat:
/annotate:md README.md
/annotate:md docs/api.md docs/guide.md
The agent can also use the annotate_markdown tool directly:
annotate_markdown({ filePath: "/path/to/file.md" })
annotate_markdown({ filePaths: ["/path/to/a.md", "/path/to/b.md"] })
md-annotator also works as a standalone CLI tool without an AI coding agent:
# Single file
md-annotator README.md
# Multiple files (opens with tab bar)
md-annotator docs/api.md docs/guide.md
# Show help
md-annotator --help