Comments file format

Markko stores comments in a JSON file next to the document. The format is public, so scripts and agents can read and write it.

File name

The Markdown file name with .meta in place of .md: launch-plan.md gets launch-plan.meta in the same folder. Markko writes the file when you add the first comment.

Example

{
  "format": "markko-comments",
  "version": 1,
  "document": "launch-plan.md",
  "comments": [
    {
      "id": "c1",
      "anchor": {
        "quote": "outline and front matter",
        "prefix": "Open each document with its ",
        "suffix": ".",
        "heading": "Goals"
      },
      "author": {
        "name": "Andreas",
        "kind": "person"
      },
      "created": "2026-10-10T07:41:00+02:00",
      "resolved": false,
      "body": "Also for files with broken front matter?",
      "replies": [
        {
          "author": {
            "name": "Planning agent",
            "kind": "agent"
          },
          "created": "2026-10-10T08:02:00+02:00",
          "body": "Yes. Broken front matter shows as plain text."
        }
      ]
    }
  ]
}

Fields

  • anchor: the quoted text, some characters before and after it, and the nearest heading. Markko uses them to find the passage again after the file changed.
  • author.kind: person or agent.
  • resolved: true when the comment is done.
  • replies: a flat list, one level deep.

Writing the file

Keep the ids of existing comments. Markko merges by id, so a reply written by a script is kept when you edit comments at the same time.

Read your Markdown in MarkkoFree on the Mac App Store. Quick Look, live reload and themes included.
Download free
Markko — the Markdown viewer for Mac. Free.Get it