dejuknow/md-redline
حول
Inline review comments for markdown specs. Built-in MCP server hands feedback directly to your AI agent.
الذكاء الاصطناعي وتعلّم الآلةما يمكنك فعله
- Inline comments anchored to rendered text, with threaded replies and optional open / resolved states
- Rendered, raw, and diff views
- Live reload when an agent edits the file
- Multi-tab, file explorer, find, table of contents, and command palette (Cmd+K)
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- +٣
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
md-redline
Inline review comments for markdown specs, prompts, and design docs.
Highlight text in a rendered document, leave comments, and your AI agent reads and addresses them directly. Comments live in the .md file itself as invisible HTML markers: no sidecar files, no database, no external service. With the built-in MCP server, review runs both ways. Your agent can pause mid-task for your review, or review a doc you wrote and leave anchored comments for you.

See the full review workflow in about 30 seconds:
https://github.com/user-attachments/assets/cedccbc9-2458-45f0-9e05-3c3a01ce0d5a
Works with Claude Code, Claude Desktop, Codex CLI, Gemini CLI, and any other MCP client that supports stdio servers.
Quick start
Prerequisite: Node 20 or newer.
npm install -g md-redline
mdr /path/to/spec.md # Open a file (or a directory)
This starts the local app if needed and opens it in your browser. To try it without installing, run npx md-redline /path/to/spec.md; the agent integration below needs the global install. Upgrade any time with npm install -g md-redline@latest.
By default md-redline trusts your home folder. To grant each folder yourself instead, run mdr --restrict before your first mdr; see Permissions.
Connect your agent
mdr mcp install # Claude Code and Claude Desktop
codex mcp add md-redline -- mdr mcp # Codex CLI
gemini mcp add --scope user md-redline mdr mcp # Gemini CLI (--scope user matters)
Restart your agent afterwards; most clients only discover new servers at launch. Ask it "what mdr tools do you have?" to check. For other MCP clients, see the guide.
Review workflow
Pick by who is giving the feedback:
| You review the agent's doc | The agent reviews your doc | |
|---|---|---|
| Typical moment | The agent just drafted or edited a spec; you want to mark it up before it continues | You wrote a PRD (or received one) and want a critique |
| What you say | "Let me review specs/feature-x.md in mdr before you continue." | "Use mdr to review prd.md and leave comments." |
| Who comments | You | The agent |
| How it ends | You click Send N & finish | You click End review |
Your first review
You review the agent's doc
- Tell your agent: "Let me review specs/feature-x.md in mdr before you continue." md-redline opens the file and the agent waits.
- Select any text, click Comment, type your note, and click Comment again. Repeat for as many notes as you like.
- Click Send N & finish. On a narrow window it sits under More review actions (the ⋯ menu). The agent gets your comments and carries on.
The agent reviews your doc
- Tell your agent: "Use mdr to review prd.md and leave comments."
- Its comments appear anchored to the text. Reply on any card, edit the doc, or delete comments you disagree with.
- Click End review when you're done. The agent re-reads the file and picks up your replies.
In either direction, the agent can post anchored questions into the doc and wait for your answer instead of guessing. No MCP? Leave your comments, click Hand off to copy instructions for the file, and paste them into any agent.
Critique (beta): turn it on in Settings and click Critique beside Hand off. Your agent picks out the decisions a doc needs and you answer them one card at a time. The guide explains it.
The guide covers each flow in detail, including a hook that captures a before copy so the diff view always works.
How comments are stored
Each comment is an HTML marker placed right before the text it refers to:
Some text <!-- @comment{"id":"uuid","anchor":"highlighted text","text":"Rewrite this section.","author":"User"} -->highlighted text continues here.
Agents see it with a plain file read, it travels with the file, and GitHub and VS Code previews hide it.
Features
- Inline comments anchored to rendered text, with threaded replies and optional
open/resolvedstates - Rendered, raw, and diff views
- Live reload when an agent edits the file
- Multi-tab, file explorer, find, table of contents, and command palette (
Cmd+K) - Mermaid diagrams and frontmatter are commentable
- Touch and pen commenting on iPad
- 8 themes
Runs on macOS, Linux, and Windows. An optional macOS desktop app opens your docs in one window and can notify you when an agent replies: download it from Releases (it uses the mdr you installed above). More in the app's README.
Permissions
md-redline can read and write any markdown file in your home directory by default; folders outside it need a one-time grant through the OS folder picker. To grant every folder explicitly instead, run mdr --restrict before your first mdr. Already ran it? The guide shows how to switch.
The server binds to 127.0.0.1 and has no authentication. Anything that can reach it can read and write your markdown files, so do not expose it to a network. It is a local tool for your own files: only open documents you trust. If you want to review from a tablet through a proxy, read Reaching md-redline from another device first.
Troubleshooting
- The agent says it has no mdr tools. Restart your MCP client after installing. For non-Claude clients, confirm
mdris on thePATHthe client uses. - The browser opened but the page will not load. A stale server may be holding the port. Run
mdr --stop, then reopen your file.
More in the guide, along with every CLI command and environment variable.
Contributing
See CONTRIBUTING.md for setup, scripts, and conventions.
License
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…