MRSF copilot-instructions.md

MRSF copilot-instructions.md is an instructions file for GitHub Copilot from wictorwilen/MRSF. It costs 1,574 tokens per session, scanned A, original, MIT.

Project instructions and architecture notes for MRSF, a format and set of tools for storing review comments beside Markdown files. The repository is a monorepo, meaning one code repository contains several separately managed packages, including a command-line tool, server, plugins, and a VS Code extension.

In plain words
What is it for?
Use them when building, testing, or extending the MRSF command-line tool, MCP server, Markdown renderers, or VS Code extension.
Why use it?
They explain where each package lives and how each one is built, which matters because there is no single root package setup. This helps avoid running the wrong commands or changing the wrong component.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/wictorwilen/mrsf/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/wictorwilen/MRSF

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for MRSF copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wictorwilen/mrsf/copilot-instructions.svg)](https://agentmods.dev/instructions/wictorwilen/mrsf/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/wictorwilen/mrsf/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/wictorwilen/mrsf/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,574 This file is loaded in full into every session.
When invoked 1,574 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01574 $0.01574
Opus 5 $0.00787 $0.00787
Sonnet 5 $0.00315 $0.00315
Haiku 4.5 $0.00157 $0.00157

Measured 6d ago against content hash 1cc89024863c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

MRSF copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Copilot Instructions for MRSF

Project Overview

MRSF (Markdown Review Sidecar Format), also known as Sidemark, is a specification plus tooling for storing review comments in sidecar files alongside Markdown documents. The canonical spec is MRSF-v1.0.md.

Repository Architecture

This is a multi-package monorepo with no root package.json. Each package is managed independently:

Package Path npm name Build Purpose
CLI & library cli/ @mrsf/cli tsc Core library + CLI binary (mrsf)
MCP server mcp/ @mrsf/mcp esbuild Model Context Protocol server for AI agents
Plugin shared plugins/shared/ @mrsf/plugin-shared tsc Shared types, comment logic, CSS, and controller for rendering plugins (private)
markdown-it plugin plugins/markdown-it/ @mrsf/markdown-it-mrsf tsc Standalone markdown-it plugin for rendering comments
rehype plugin plugins/rehype/ @mrsf/rehype-mrsf tsc Standalone rehype plugin for rendering comments (unified ecosystem)
VS Code extension vscode/ mrsf-vscode esbuild Editor integration (marketplace: wictor.mrsf-vscode)
Documentation docs/ (private) VitePress Site deployed to Azure Static Web Apps

Key dependencies:

  • @mrsf/mcp depends on @mrsf/cli via file:../cli
  • @mrsf/markdown-it-mrsf and @mrsf/rehype-mrsf depend on @mrsf/plugin-shared via file:../shared and @mrsf/cli via file:../../cli

Build, Test, and Lint

All commands run from within the respective package directory — there is no root-level build.

TypeScript packages (cli/, mcp/, vscode/, plugins/)

# Build
npm run build

# Run all tests (Vitest)
npm test

# Run a single test file
npx vitest run src/__tests__/reanchor.test.ts

# Run tests matching a pattern
npx vitest run -t "fuzzy match"

# Type-check without emitting
npm run lint

Tests live in src/__tests__/ within each package. Packages with test suites: cli (most comprehensive), mcp, plugins/markdown-it, plugins/rehype. The VS Code extension and plugins/shared have no tests.

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 102 lines · 1,574 tokens per session scan A 1cc89024863c

Subscribe to this mod's changes

MRSF copilot-instructions.md is an instructions file published in the GitHub repository wictorwilen/MRSF (28 stars, last pushed 18d ago), licensed MIT. It adds 1,574 tokens to every session, about $0.0079 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.