PerMark
This PerMark MCP server lets an AI agent inspect the user's PerMark reading/editing context and project documents, search and navigate them, read shared notes/comments, resolve a comment, and open locations in PerMark.
Get the current context: open document, mode, section, selection, unsaved state, and open comment count.
List documents changed since the user last read them.
Map project folders, search sections, list tags, outline files, and read whole files or specific headings/keys/line ranges.
List the user's comments and mark one comment done with an optional short reply.
List and read notes explicitly shared with agents.
Review what the user or outside programs changed since the last hand-off.
Open a document, line, or heading in PerMark without taking focus, starting PerMark if needed.
Most tools are read-only; only
resolve_commentandopenmake changes.
PerMark
AI speeds the work. Your vision steers it.
A Markdown app to read and review what your AI agents write, and steer the work through its documents. It opens every Markdown file as a clean page, shows what your agents change while they write, and lets you keep or revert each change.
Created and maintained by Edelmar Schneider.
Get PerMark: Microsoft Store (Windows) · GitHub Releases (Windows, macOS, Linux)
Where to start · Try it · Install · Use with an AI agent · Shortcuts · What's new · Contributing
Free and open source (MIT or Apache-2.0) · No account, no telemetry · Windows, macOS and Linux (tested by hand on Windows)
Where to start
Either way, PerMark works with any AI tool, or with none. It follows changes whatever program writes the files: an AI agent, an editor or git. It is a unified document workspace (UDW): Markdown at the center, with the config, data and code files around it.
Related MCP server: mcp-server-markdown
Try it in a minute
Install. Get PerMark from the Microsoft Store or from GitHub Releases.
Open. Choose a folder as a project (
Ctrl+O), or a single.mdfile (Ctrl+Shift+O). It opens in View, as a clean page.Watch. Let your agent write in that folder. Changed passages glow. Press
Ctrl+Shift+Lfor Follow mode, and PerMark opens each document while the agent writes it.
📖 Beautiful to read, easy to edit
Every Markdown file opens as a clean page, with its tables, diagrams, math and properties. Edit it as it looks, and keep notes that save themselves.
A clean page. GitHub-flavored Markdown with tables, task lists, footnotes, alerts and description lists. Code blocks are highlighted for about 190 languages. In a project, links open inside the app, with Back and Forward, like a wiki.
Diagrams and math, written as text. Mermaid and PlantUML diagrams are drawn inside PerMark, with no Java and no server. Math shows as formulas.
Front matter as a properties card. View shows it as a clean card. In Edit, you change its values one by one, and the rest of the file stays as it is.
Made for long reading. A light, dark or system theme, with softer light tones (Paper, Sage, Gray). Three reading widths, an outline to jump between sections, and Focus mode (
Ctrl+Alt+F), which leaves only the page.View, Edit, Source. One switch in the header. View is for reading. Edit changes the page as it looks, with a toolbar and a
/block menu. Source shows the raw file, every byte, with find and replace and go to line. A switch beside the modes draws a Mermaid or PlantUML diagram next to its text while you type (off until you turn it on).Honest about Edit. Edit keeps math, diagrams, HTML and footnotes as written: Edit in Source opens them. Edit does not draw pictures that are files next to the document; View and Source do.
Notes that save themselves. Click Notes, next to Settings, or press
Ctrl+Shift+Nfor a new note from anywhere in PerMark, and type. No name to choose, no folder to pick, no save prompt. Notes are plain Markdown files you own, and Copy puts a drafted prompt on the clipboard as exact Markdown.
⚡ See what your AI writes
See what your AI writes while it writes, and what changed since you last looked.
Changed passages glow. The open document reloads while an agent writes, and keeps your place. Changed blocks glow, and removed blocks leave a marker you can expand.
Live changes. A feed lists every file that changed, one entry per file. Show all changes, only yours, or only those from outside.
Follow mode (
Ctrl+Shift+L) opens the Markdown document being written. It waits while you edit.Unread dots, like mail. A dot marks each Markdown document that changed since you last read it, and folders count them.
Alt+Uopens the next one.Since last visit. One list of what changed while the project was closed: Changed, New or Removed. It compares the content of your documents, so it works without git, and it still shows the changes after the agent has committed.
Worktrees too. Linked git worktrees are found and watched, so agents working in parallel branches show up as well.
PerMark sees the changes in your folder, whatever program makes them. It tells you whether a change came from you or from outside.
✅ Decide what stays
You decide what stays: keep or revert each change, comment on any passage, and share a project with an agent only when you turn it on.
Review, change by change. When a document changed since you last read it, a quiet bar says how many changes there are. Review shows each one in place: block by block in Markdown, line by line in code, logs, data and config files. Choose Keep or Revert for each (
K,R), or for all at once. Compare with what you last read, or with the last commit.Comments an agent can mark done. Select a passage and press
C. With the agent connection on, your agent reads your open comments and marks them done with a reply. Send to agent copies them as a prompt for any agent chat. Comments are yours alone.Only what you changed is saved. Edit and Source rewrite only the blocks you changed. Every other byte stays as its author, or agent, wrote it.
Reload theirs or Keep mine (overwrite). If an agent changes a file while you edit it, you choose, for the whole document.
Git in plain words. Letter badges, with a legend that says what each letter means. Compare with your last visit or with the last commit. PerMark only reads git: it never commits, stages or creates a repository.
Find anything, to the section. Search everywhere (
Ctrl+T) finds files, sections, tags and commands in one box. Give any file tags and a one-line description; the ones you add in the app never touch your files.Links follow your files. Move or rename a file, and PerMark shows each link it will update before it changes them.
Ctrl+Zin the Explorer takes it back.
🧩 Markdown at the center, not alone
Markdown leads, and many files around it open too: config files as clean sheets, data and code, pictures, audio and video.
Config files as clean sheets. TOML, YAML, INI,
.env,.propertiesand ignore files open as sections, keys and values, with comments as captions. Change a value, and only those bytes change. Sheets edit values, not keys. YAML flow style is read-only, and a file over 256 KB or 3,000 rows shows as plain text.TOON.
.toonfiles, the compact data format made for AI, open as tables and cards and can be edited in place. The Converter turns JSON, XML, YAML, CSV and TOML into TOON or another format, shows the estimated token saving of each choice, and never writes over the original.AI files, recognized.
AGENTS.md,CLAUDE.md,SKILL.md, Cursor rules (.mdc),llms.txt, prompt files, and model and dataset cards open with no setup.Prompt blocks. XML-like prompt tags such as
<context>and<instructions>fold as blocks, and the Markdown inside still renders.{{name}}variables are marked, and@pathreferences link to the file.JSON, XML, code and plain text open with highlighting. A very large text file opens at once.
Pictures, audio and video open in the app (not every audio or video format plays). Other files open with the program your system has for them. Programs and scripts are never run from a click.
Token count: how many tokens a document, a section or a folder takes. Exact for OpenAI's tokenizers, marked as approximate for Claude and Gemini. It asks before it downloads a tokenizer's vocabulary.
Local AI, on your computer (optional). Settings → Local AI offers a short list of small AI models that run offline, on your graphics card when you have one. Nothing is downloaded until you choose a model, and Test shows how well it runs. The models work only for PerMark's own features.
Correct spelling and grammar. In Edit or Source, the spell-check button next to the mode switch (or
Ctrl+Alt+K) checks the selection, the paragraph or the whole document with the local model you chose. Each suggestion is underlined in the text, and nothing changes until you accept it. Code, links and front matter are never touched.Your editor, at the line. A path like
src/main.rs:42that names a file of the project is a link: it opens your own editor at that line.
Many features are plugins, and every plugin is on from the start. Turn off what you do not need in Settings → Plugins; a plugin that is off leaves nothing behind.
Questions people ask
"Git diff already shows me the changes." Git diff compares with the last commit. PerMark also shows what changed since you last read each document, even after the agent has committed, and you keep or revert each change.
"Does it replace my code editor?" No. PerMark is for the documents around the code. Open in external editor takes you to your own editor at the place you are reading.
"What does the agent get, and how do I stop it?" Sharing is off in every project until you turn it on. The agent reads, shows you a place and marks comments done. It never edits through PerMark. Details in Use with an AI agent.
"Does it go online?" No account, no telemetry, no tracking. PerMark goes online only to check for its own updates (installer versions; the Store and snap update it instead), and when you ask: a picture from the web, the optional token-count vocabulary, or a local AI model and the engine that runs it. Your documents never leave your computer through PerMark. An AI agent you connect is a separate program: what it sends online is up to that agent. The Windows installers may also download Microsoft's WebView2 component while they install, if your computer does not have it.
What PerMark is not
Not a code editor. No completion, refactoring, build, run or debug. Real code work opens in your own editor.
Not an agent. It does not run, host or replace your AI agents. It shows what your AI writes, and you decide what stays. The small local models it can use work only for PerMark's own features, such as correcting your text.
Not tested by hand on macOS or Linux. PerMark 0.6 was tested by hand on Windows; the macOS and Linux builds are checked automatically.
Why Markdown
Markdown was made for readers. So is PerMark. It was designed in 2004 so that plain text reads well as it is. Today, AI tools write it too, for the same reason: it is structured enough for a machine and clear enough for a person.
It is also an opinion: many documents that live in Word or PDF today would be better as Markdown. They would be smaller, comparable line by line in git, readable by any AI, and never locked inside one app.
Install
Windows, macOS and Linux. PerMark 0.6 was tested by hand on Windows; the macOS and Linux builds are checked automatically. Installers are not code-signed, so your system shows a warning the first time you install or open it.
System | Get it |
Windows | The Microsoft Store, which keeps PerMark up to date. Or the |
macOS | The universal |
Linux | The |
Copies from GitHub check for updates when they start and once a day, and offer to download and restart. The Microsoft Store and the snap update their copies themselves. PerMark becomes your default app for Markdown only if you choose it: it asks once, with Markdown files checked and other types unchecked. On Windows, you confirm the choice in Windows Settings.
Coming from TrailMark? The command is now permark. If an agent is set up with the old trailmark command, run the setup
lines from Settings → Integration → Agent connection again. PerMark 0.6 no longer renames old .trailmark/ folders: update
to 0.5.8 before you update to 0.6.
permark # start PerMark: your last windows and tabs come back
permark . # open the current folder as a project
permark docs/plan.md # open a single file
permark --notes # open the NotesOn Windows and macOS, permark is not on your PATH after an install from GitHub, so use the full path of the program, or add
it yourself. The Microsoft Store and snap versions put permark on your PATH.
You need Rust, Node.js 24 and the
Tauri prerequisites. The program lives in app/, and app/rust-toolchain.toml pins
the Rust version, which rustup installs for you.
git clone https://github.com/EdelmarSchneider/permark.git
cd permark/app
npm ci
npm run tauri build # or: npm run tauri devUse with an AI agent
PerMark can tell an AI agent what you are looking at, the way a code editor tells it the open file. Say "rewrite this paragraph" or "go through my comments", and the agent knows which document, which section and which words you mean. It works with any tool that speaks the Model Context Protocol (MCP).
What it shares, and how it stays in your hands:
Off until you turn it on, per project. Choose Share this project with agents in Settings → Integration → Agent connection, or run Agent connection: turn on from the command palette. Nothing inside a project can turn it on.
Local. It talks only to programs on your computer and opens no network port.
Read, never edit. The agent sees where you are, what you selected, what changed, your comments and the notes you shared one by one. It reads, shows you a place and marks comments done. It never edits a file through PerMark.
Your limits. You choose what it may do, group by group. Files in
.aiignorenever reach an agent; everything else it reads as written, passwords and keys included, so list files with secrets in.aiignore.Visible. While the connection is on, the status bar shows Agent. Click it to see what is shared and the latest requests.
Connect in two lines. Turn the connection on, then add PerMark to your agent as an MCP server. Settings → Integration → Agent connection shows these lines with the right path for your copy, and a Copy button.
# Claude Code
claude mcp add permark -- "<path to PerMark>" mcp{ "mcpServers": { "permark": { "command": "<path to PerMark>", "args": ["mcp"] } } }The second form fits any other MCP client. With the connection on, Hand off to agent copies one line for your prompt, so the agent asks PerMark what you did instead of rereading the project.
Tool | What it answers or does |
| The open document, whether you are reading or editing, the section on screen, your selection (up to 2,000 characters), whether there are unsaved edits, and how many of your comments are open |
| The documents that changed since you last read them, the newest at the top |
| The files below a folder, by path: approximate size in tokens, flags (unread, changed), and the tags and descriptions you gave them. The place to start in a large project |
| "Where is X described?": ranked sections with path, line, size, snippet and heading, from the same index as Search everywhere. |
| The tags in use, with how many documents have each; or, for one tag, the documents that have it with their descriptions |
| The parts of one file (headings, JSON keys, parts of a config file) with line ranges and sizes, so an agent reads only the part it needs; optionally the links in and out |
| The text of one part of a file: a heading, an anchor, a key path or a range of lines. Long parts continue with a cursor |
| Your open comments, each with the quoted passage, its section and line, and your text |
| Marks a comment done, with an optional short reply that you read under the comment |
| The notes you chose to share with agents, each with its title, when it changed and its size |
| The text of one shared note, by the name |
| What you did in PerMark since you last pressed Hand off to agent (checked against the disk), plus the changes made outside PerMark |
| Shows you a place (a document, a line or a heading) without taking the focus from the agent's terminal, and offers a way back |
Answers are short on purpose: a header line, then tab-separated rows, so an agent spends few tokens. A project's .permark/ folder
can narrow what an agent may do, never widen it. When PerMark is closed, the other tools still work from the files, and open
starts it. With the connection off, every tool says so and explains how to turn it on.
permark context prints where you are as one short line and exits, for tools that can run a command before each prompt:
Viewing docs/plan.md › Plan › Rollout (lines 40-62), selected (lines 44-46): 'ship it on Friday', 2 comments open.In Claude Code, a UserPromptSubmit hook in .claude/settings.json (or your user settings) adds it to every prompt:
{
"hooks": {
"UserPromptSubmit": [
{ "hooks": [{ "type": "command", "command": "\"<path to PerMark>\" context" }] }
]
}
}When there is nothing to say (the connection is off, or PerMark is not open), the command prints nothing, so a hook never adds
noise to a prompt. A project with a .permark/ folder also has .permark/local/agent-context.json while the connection is on:
the same answer as a file, for a script or a tool without MCP. It holds the open document, the section on screen and your
selected text, and any program running as you can read it, as can a folder-sync tool that watches the project. It stays out of git and is deleted when the connection is turned off.
Keyboard shortcuts
The ten that matter most. On macOS, use Cmd where this README says Ctrl (except Ctrl+Tab and Ctrl+Shift+Tab).
Action | Shortcut |
Search everywhere (files, sections, tags, commands) |
|
Quick open a file |
|
Every command |
|
Next unread document |
|
Follow mode |
|
Next / previous change |
|
While you review: keep / revert |
|
Comment on the selected passage |
|
Edit, and back to View |
|
Focus mode: only the page |
|
All of them, and you can change them, in Settings → Keyboard shortcuts.
Reading and navigating
Action | Shortcut |
Search all docs (by section) |
|
Find in page |
|
Show / hide the outline |
|
Show / hide the sidebar (when you are not editing) / the right panel |
|
Cycle the reading width |
|
Back / forward |
|
Copy reference (or selection with reference) |
|
Copy the whole document (View and Source) |
|
Open in your external editor |
|
Zoom in / out / reset |
|
Open a folder / a file |
|
Settings |
|
Edit the open document's tags and description |
|
Tabs
Action | Shortcut |
Next / previous tab |
|
Go to tab 1 to 8 / the last tab |
|
Close the tab |
|
Review
Action | Shortcut |
Keep / revert this change |
|
Next / previous change |
|
Keep all / revert all |
|
Editing
Action | Shortcut |
Open Source mode |
|
Back to View |
|
Save |
|
New file |
|
Bold / italic / strikethrough (Edit) |
|
Bold (Source, in Markdown files) |
|
Link / inline code (Edit) |
|
Headings 1 to 6 (Edit) |
|
Paragraph (Edit) |
|
Block menu (Edit) |
|
Find / replace / go to line (Source) |
|
Notes and the Explorer
Action | Shortcut |
Open the Notes |
|
New note, from anywhere in PerMark |
|
New note (in Notes) |
|
Copy the note's text (in Notes) |
|
Open a pinned note (in Notes) |
|
Rename / delete (to the system trash) |
|
Take back the last file operation (on macOS, a deleted file stays in the Trash) |
|
What's new and ideas being explored
PerMark 0.6 rebuilt the whole program. Every release is in the CHANGELOG.
0.9.0: small AI models that run on your computer, offline, and spelling and grammar correction with them.
0.8.0: pictures you paste are saved next to the document, emoji and symbols in the editor, and View, Edit or Source stays as you left it.
0.7.1: seven more interface languages (Japanese, Korean, French, European Portuguese, Catalan, Galician and Romanian).
0.7.0: projects inside a folder, each with its own git and reading state, and a place in Settings for AI agents.
0.6.2: a Notes button next to Settings, keys to hide and show the side bars, files dropped from your file manager copy into the project or open as tabs, Move to window for a tab, and every plugin on from the start.
0.6.1: every folder, file and Notes gets a tab, and your windows and tabs come back when PerMark starts.
0.6.0: many windows in one app, a full Settings page, a Plugins page and keys you can change.
Config files and TOON as clean sheets, AI files recognized with no setup, and prompt blocks.
Review of code and text files, line by line, with keep or revert.
An agent connection with 13 tools, permission groups,
.aiignoreand Hand off to agent.
Ideas being explored, no promises: a home for structured work with AI, such as spec-driven development, for the projects that want it; ready-made ways of working to adopt, such as Spec Kit templates; and a shared place where people and always-on agents follow and review the work together, with the person in charge.
Tech
PerMark is a Tauri 2 app. The core is written in Rust: rendering (comrak and ammonia), file watching (notify), git (the one on your computer, or a built-in libgit2 when there is none), the search index and the block-preserving saves. The interface is Svelte 5 and TypeScript in the system webview, with CodeMirror 6 (Source) and Milkdown (Edit).
Contributing
Issues and pull requests are welcome. The project uses git-flow (develop for integration, feature/* branches) and a strict
quality gate:
cd app
npm run check # version, rustfmt, prettier, build, clippy -D warnings, svelte-check, cargo test, vitestSee CONTRIBUTING.md before opening a pull request. It also explains how to fix or add a translation.
License
Copyright (c) 2026 Edelmar Schneider. Licensed under either of MIT or Apache-2.0, at your option.
"PerMark" and its logo are trademarks of Edelmar Schneider: forks are welcome under a different name. See TRADEMARKS.md.
Available Tools
13 toolsactivityCRead-only
What the person did since the last hand-off (net, checked against disk) + changes outside PerMark.
Inputs: by, limit, since.
get_contextARead-only
Where the person is in PerMark now: document, mode, section, selection, unsaved, open comments.
Inputs: no named parameters.
list_commentsARead-only
The person's comments on passages (id, place, state, quote, text, heading, reply); open by default.
Inputs: which.
list_notesBRead-only
Notes the person shared with agents (note, age, title).
Inputs: no named parameters.
list_tagsARead-only
Tags with document counts; with tag: the documents that have it (path, tags, description).
Inputs: tag, limit.
list_unreadBRead-only
Documents changed since the person last read them, newest first.
Inputs: limit.
mapCRead-only
Files below a folder by path: size_tok, flags, tags, description; folders past depth counted. Start here.
Inputs: path, depth, limit.
openAIdempotent
Show the person a document in PerMark (line or heading) without taking focus; starts PerMark if closed.
Inputs: path (required), line, heading.
outlineARead-only
Parts of a file before reading it (headings | JSON keys | config parts) with lines and size_tok.
Inputs: path (required), links.
readARead-only
Text of one part of a file: at = heading path A > B, #anchor, key path, lines L10-L40 | L10 (from line 10 on); no at = whole file.
Inputs: path (required), at.
read_noteARead-only
Text of one shared note, by the note name list_notes gives.
Inputs: note (required).
resolve_commentAIdempotent
Mark one comment done, with a short reply the person reads. The only change an agent can make.
Inputs: id (required), reply.
searchBRead-only
Sections matching words (path, line, size_tok, snippet, heading); tags narrow; tags alone list documents.
Inputs: tags, limit, query, budget.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools target distinct actions: map (folder listing), outline (structure of one file), read (text of one part), search (word matching), and open (show to user) are clearly separated by their descriptions. Minor overlap exists between read/read_note and between get_context/activity/list_unread, which all answer 'what's the current state/history' questions and could occasionally be misselected.
Consistent snake_case, but conventions are mixed: some tools are verb_noun (get_context, list_notes, resolve_comment, read_note) while others are bare verbs or nouns (map, search, outline, read, open, activity). Still readable and largely intuitive, but there is no predictable pattern an agent can rely on.
13 tools is well within the ideal range and each one covers a distinct slice of the workflow (orientation, navigation, reading, comments, presenting). No obvious redundancy or filler; a single write tool (resolve_comment) keeps the surface tight.
The read/navigate/present lifecycle is well covered: locate a file, outline it, read sections, look at comments, resolve comments, and show the user a location. Gaps are in writing—no document creation/editing, no comment creation or general reply beyond resolve—but the resolve_comment description signals this is a deliberate read-mostly design rather than an omission.
Maintenance
Related MCP Connectors
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
KnowMan MCP server: search, ask, save and read your Knowledge Base from any MCP client.
Read-only MCP server exposing a user ORANO library to their own AI agent.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Related MCP Servers
- AlicenseCqualityDmaintenanceMCP protocol server for managing multi-project Markdown documents, supporting project isolation and LLM tool integration.2925 npm4MIT
- AlicenseAqualityBmaintenanceMCP server for markdown files — search, extract sections, list headings, find code blocks across docs.6111 npm8MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that enables full-text search and link navigation over Markdown files as a knowledge graph.-
- AlicenseNot gradedqualityAmaintenanceMCP server that enables AI assistants to open files and highlight ranges in a read-only Markdown and code viewer.53 npmMIT