Skip to content

Quick Start

Get up and running with MRSF in under 2 minutes.

This is the fastest way to start adding Markdown comments in a durable way, without embedding brittle comments directly in Markdown.

Install the CLI

bash
npm install -g @mrsf/cli
bash
pip install mrsf

Or use without installing:

bash
npx @mrsf/cli --help

Create a Sidecar

bash
mrsf init docs/architecture.md

This creates docs/architecture.md.review.yaml with the basic structure.

Add a Comment

bash
mrsf add docs/architecture.md -l 12 "This section needs more detail."

This adds an anchored comment at line 12, automatically capturing the selected_text and current git commit.

You can attach tool-specific metadata with repeatable --ext key=value flags. These values are persisted as flat x_* fields on the comment:

bash
mrsf add docs/architecture.md \
	--author "review-bot" \
	--text "Needs a second pass" \
	--line 12 \
	--ext x_source=review-bot \
	--ext x_score=0.91 \
	--ext 'x_labels=["needs-review","docs"]'

Validate

bash
mrsf validate

Discovers all sidecars in the workspace and checks them against the MRSF schema.

Re-anchor After Edits

After editing the Markdown document:

bash
mrsf reanchor

This finds where anchored text has moved and updates line numbers. Use --dry-run to preview changes.

Check Status

bash
mrsf status

Reports anchor health for every comment:

HealthMeaning
freshText matches at the recorded position
staleCommit is behind HEAD; text may have moved
orphanedText can't be found in the current document

List & Filter Comments

bash
# All open comments
mrsf list --open

# Summary statistics
mrsf list --summary

# Filter by author
mrsf list --author "Jane Doe"

Next Steps

Released under the MIT License.