@pragma-sh/scratchpad-contract
v1.1.0
Published
The scratchpad file contract: managed frontmatter, agent attachment, and the sibling comment-thread file. Source of truth shared by the desktop, the SDK, and the read-only viewer.
Downloads
1,658
Readme
@pragma-sh/scratchpad-contract
The Pragma scratchpad file contract. Part of Pragma — a desktop workspace for running persistent, worktree-scoped coding agents.
Pure data: the managed frontmatter of a .mdx scratchpad and the sibling
<file>.mdx.comments.json thread. No React, no renderer, no transport.
Everything that reads or writes those two files should go through here — a second implementation of frontmatter parsing or comment serialization is how clients drift apart and a comment written on one device stops showing up on another.
bun add @pragma-sh/scratchpad-contractimport { parseScratchpadDocument } from "@pragma-sh/scratchpad-contract";Docs: https://pragma-app.sh/docs/sdk/scratchpads
License
AGPL-3.0-only. See LICENSE.
