01-core-paradigm

01-core-paradigm is a cursor rule for Cursor from MarcoPorcellato/matryca-plumber. It costs 511 tokens per session, scanned A, original, Apache-2.0.

Rules for working with Logseq OG, a note-taking system that stores pages as plain Markdown files made of nested bullet points. It treats each bullet as a block in an outline rather than as part of a flat document.

In plain words
What is it for?
Use it when generating or changing Logseq notes, nested bullets, block properties, page namespaces, or files that contain stable block IDs.
Why use it?
It prevents edits from breaking indentation, block order, foldable headings, or special properties while people and software edit the same notes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

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 rules/marcoporcellato/matryca-plumber/01-core-paradigm
Clone the repo
git clone --depth 1 https://github.com/MarcoPorcellato/matryca-plumber

Made for: Cursor.

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 01-core-paradigm

README.md
[![agentmods](https://agentmods.dev/badge/rules/marcoporcellato/matryca-plumber/01-core-paradigm.svg)](https://agentmods.dev/rules/marcoporcellato/matryca-plumber/01-core-paradigm)
Your own site
<a href="https://agentmods.dev/rules/marcoporcellato/matryca-plumber/01-core-paradigm"><img src="https://agentmods.dev/badge/rules/marcoporcellato/matryca-plumber/01-core-paradigm.svg" alt="Measured on agentmods" height="20"></a>
Per session 511 This file is loaded in full into every session.
When invoked 511 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.00511 $0.00511
Opus 5 $0.00255 $0.00255
Sonnet 5 $0.00102 $0.00102
Haiku 4.5 $0.00051 $0.00051

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

Security

Grade A, and why

01-core-paradigm 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.

.cursor/rules/01-core-paradigm.mdc · 24 lines

What it actually says

Project context

This repository builds Matryca Plumber, a local-first, background AI daemon and engine that operates directly on Logseq OG (local, pure Markdown graph notes) file systems.

SSOT: full paradigm spec lives in docs/openspec/agent/paradigm.md. Pointer: docs/openspec/logseq-paradigm.md. This rule is the Cursor summary only.

Outliner paradigm (non-negotiable)

  • Logseq OG uses pure Markdown files. The atomic unit is the block: an indented bullet point that forms a tree, not a flat document body.
  • When generating or editing content, produce hierarchical outliner text (nested bullets).
  • Bulleted Headings: AI-generated sections must use - ### Heading Title to ensure they are foldable in the Logseq outliner.
  • Co-working assumption: Humans and the daemon edit the same .md files concurrently. Favor diffs that preserve indentation, block order, and id:: lines.

Properties Rules (CRITICAL)

  • Block Properties: Must be placed immediately after the bullet text, before any indented children. They must be indented by exactly 2 spaces relative to the parent bullet (e.g., id:: <uuid>, matryca-plumber:: true). NEVER orphan or delete existing block properties.
  • Page Properties: Must reside in the Absolute Frontmatter at the top of the file (Line 0). They are raw text key:: value lines WITHOUT bullet dashes (- ), separated by a blank line before the first bullet.
  • Lists: alias:: and tags:: are comma-separated lists. Do not duplicate keys. Strip markdown (#, [[ ]]) from their values.

File System & Namespaces

  • Semantic vs Physical: In memory/content, use / (e.g., [[Domain/Subdomain]]). On disk, use Logseq's encoding: replace / with ___ and URL-encode reserved OS characters (e.g., ? -> %3F).
  • Encoding: ALL file read/write operations must strictly use encoding="utf-8".
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 · 24 lines · 511 tokens per session scan A 8b51a41f4ae6

Subscribe to this mod's changes

01-core-paradigm is a cursor rule published in the GitHub repository MarcoPorcellato/matryca-plumber (96 stars, last pushed today), licensed Apache-2.0. It adds 511 tokens to every session, about $0.0026 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.