Linear and Notion mirrors
Experimental, and off unless you choose it. The setup does not propose a mirror; it mentions it only among the experimental parts, and sets one up when you ask. A mirror is a copy as fresh as its last refresh, and items are still closed in the tool, never in the copy.
plancia mirroris tested with the JSON records an agent passes it, in the shape this page shows; reading them from Linear’s or Notion’s real MCP server has not been run end to end yet. Reports are welcome.
Part of the work often lives outside the repo: issues in Linear, a database of events in Notion, a handbook in a Notion page. Plancia reads only the repo, so your agent can bring those items in as a mirror: one read-only Markdown file per issue or page in .plancia/mirror/<tool>/, read through the tool’s MCP server.
The tool stays the truth for those items. The mirror only lets the index link them to the rest: a task that writes WEB-12 points to the Linear issue, plancia today lists its due date next to your tasks, and plancia radius WEB-12 says what in the repo depends on it.
What a mirror looks like
.plancia/mirror/ linear.json when it was last refreshed, and of what linear/WEB-12.md one file per issue linear/WEB-15.md notion.json notion/EV-3.md one file per row of a database notion/pages/1f2e….md one file per page of textEach file has the tool’s fields in its front matter, then the description:
---id: WEB-12title: Online booking for repairsstatus: In Progressowner: Lucadue: 2026-12-10url: https://linear.app/aurora-bike/issue/WEB-12updated: 2026-11-27mirrored: 2026-11-28priority: Highlabels: - website---<!-- Mirror of linear, written by `plancia mirror linear`: change it in linear, not here. -->
# Online booking for repairs
Customers pick a slot for a repair from the site; the workshop confirms by email.statuskeeps the tool’s own word (In Review,Canceled); the schema says what it counts as.owneris a name, never an email.updatedis when the tool last changed the item;mirroredis when this file was last written. A refresh that finds the item unchanged leaves its file alone, so the diff of a refresh shows only what changed in the tool.- Pages of text with no status (a Notion page that is not a row of a database) go in
pages/and are indexed as documents, with their links and the IDs they cite.
Making one
With the Claude Code plugin, /mirror does all of it: it asks what to mirror (a Linear team, a Notion database), reads every item in every state through the MCP server, writes the files, and the first time proposes the schema. With another agent, the same steps by hand:
-
Add the tool’s MCP server to your agent, for example
https://mcp.linear.app/mcporhttps://mcp.notion.com/mcp. -
Read the items in the scope you chose, in every state, done and canceled included, and write them as JSON:
{"scope": "team WEB, every state","items": [{ "id": "WEB-12", "title": "Online booking for repairs", "status": "In Progress", "owner": "Luca","due": "2026-12-10", "url": "https://linear.app/…/WEB-12", "updated": "2026-11-27","priority": "High", "body": "Customers pick a slot…" },{ "id": "1f2e3d4c…", "kind": "page", "title": "Workshop handbook", "body": "## Opening\n\n…" }]}idandtitleare required;status,owner,due(YYYY-MM-DD),url,updatedandbodyare read when present; other fields (priority,labels,project) go into the front matter as they are. -
Write the mirror:
plancia mirror linear < records.jsonshows what would change,--writeapplies it. -
Declare a type that reads it, the first time (below), then
plancia check. -
Commit
.plancia/mirror/.
plancia mirror with no tool lists the mirrors and when each was refreshed. A mirror not refreshed for 14 days is named by plancia today and at the start of a session.
The schema
A mirror is read like any folder of records:
types: issue: source: ".plancia/mirror/linear/*.md" format: file-per-record role: task # its issues show in Today and on the kanban label: Linear issuecitable_ids: '\b(T\d+|D\d+|WEB-\d+)\b' # WEB-12 in a task links to the issuestatus_words: in_progress: [In Review] done: [Canceled]plancia init proposes a type for each folder in .plancia/mirror/, named after the tool. What it cannot know is what the tool’s status words mean: in Linear, the states of type started other than “In Progress” go in in_progress, the canceled ones in done; in Notion, the options of the “In progress” group in in_progress, those of “Complete” in done. “Backlog” and “Todo” are to do already. Make sure index includes .plancia/mirror/**.
What a refresh does
- An item that changed in the tool is written again, with the date of the refresh.
- An item the tool no longer returns (deleted, or moved out of the scope) is removed, unless the repo cites it: then its file stays as it was, so the citation does not break, and the refresh says which citation to update.
- A read that returns nothing writes nothing: an empty answer from the server never empties the mirror.
Text that comes from another tool does not make problems in this repo: an unknown ID or a broken link inside a mirror file is not reported by plancia check. And an edit by hand to a mirror file is pointed out by the plugin’s hook, because the next refresh would undo it: change the item in the tool, then refresh.