01 / Authoring
Your agent edits one JSON document.
A site is one versioned JSON document. People and agents change the document, never page code. Culm checks the document and compiles it to static HTML and CSS, and it compiles nothing from a document that has problems.
From a write call to a static file.
An agent in your agent host calls Culm's MCP server. Every write is checked against the whole document before it is saved, so what reaches dist/ has already passed.
Agent
such as Claude Opus
Culm MCP server
culm mcp, six tools
Site folder
site.json and pages, with history
dist/
static files
01
Agent
Reads the site
The revision, the pages and the authoring guide.
describe → revision, pages, guide02
Agent
Sends one batch of ordered edits
Up to 32, at one base revision.
{"baseRevision":12,"ops":[{"op":"insert","node":{…}}]}03
Culm MCP server
Checks every edit against the document
Kinds, styles, ids, required content, the text range and the site's own rules. A broken rule saves nothing.
POLICY_VIOLATION · rule textRange · allowed 11 to 9604
Site folder
Saves the batch whole
A new revision, with diff and restore. Never half a batch.
revision 1305
Agent
Checks the rendered layout
31 checks at 1280, 834 and 390 px. A checked PNG, WebP or SVG of any node.
measure · render06
Culm MCP server
Compiles
The same document gives the same bytes. The build makes no network request.
build07
dist/
Static HTML and CSS
No runtime, no hydration. With one setting, a Markdown twin of each page and an llms.txt.
index.html · index.html.md · llms.txtCulm calls no model. The product, or the person's agent host, calls it. "An agent such as Claude Opus" names a role in these diagrams: the flows are exercised by tests with scripted callers, and nothing here was measured with Claude Opus.
Six tools. No accounts.
Register one stdio server in your agent host. It runs from your site folder and signs no one in. culm mcp --full adds the low-level operations and import.
command <site>/node_modules/.bin/culm
arguments ["mcp"]
directory <site>describe
Get the revision, the pages and the authoring guide.
write
Apply up to 32 ordered JSON edits: insert, update, move, remove, theme and pages.
find
List sections or look up the node to change.
measure
Check the rendered layout in Chromium, including at phone width.
render
Export a node or section as a checked PNG, WebP or SVG.
build
Export the checked site.
JSON in. HTML out.
One write call appends a section. Culm validates it against the document, then the compiler turns it into markup and CSS.
write · culm mcp
{ "baseRevision": 0, "page": "home",
"ops": [ { "op": "insert", "node": {
"kind": "column", "id": "studio",
"children": [
{ "kind": "text", "level": "h1",
"text": "Open studio",
"style": { "size": 160 }, "phone": { "size": 62 } },
{ "kind": "text",
"text": "Visit us on Saturdays." }
]
} } ] }dist/index.html · no script needed to read it
Open studio
Visit us on Saturdays.
refused
POLICY_VIOLATION · rule textRange · allowed 11 to 96. What the agent gets back if the site caps text size. A write that breaks a rule saves nothing.
Checked before it is saved.
A field Culm does not know is refused, never dropped. A problem has a stable code, a message, and where they apply a node, a path and the allowed values.
Required content
A node marked required cannot be removed, hidden or emptied. Forms and fields are required unless marked otherwise. Taking one out is a decision: change the mark first.
Text range
A site-wide range of text sizes, with a larger one for display headings. A size outside it is refused with POLICY_VIOLATION, rule textRange.
31 checks
Measure runs 31 checks on the rendered page at 1280, 834 and 390 wide, light and dark, in each text direction: overflow, overlap, contrast, tap targets, sideways scroll and design findings, each with a fix.
Whole batches
A batch is saved whole or not at all, and a request key applies once.
Budgets
A page may use 16,000 bytes of CSS, 2,000 elements and 12 levels of nesting. This site is held to them.
What the document holds.
Everything a static site would bolt on is part of the document, and is checked like the rest.
Layers
Style layers on every node for tablet, phone, dark mode, hover, pressed and focus, and for declared states that triggers change.
Data
List nodes filter, sort, group and nest over rows you pass in. Rows are checked against declared fields before anything compiles.
Live data
A page can read a web service in the visitor's browser: a list, a form that saves, a sign-in. Opt-in, loaded only on a page that has a live node.
History
Every change is a revision. diffSites compares two; restore commits an old one as a new revision, and the history is kept.
Import
In full mode, write imports HTML and CSS, literal JSX or JSONC into editable nodes. Unsupported elements and selectors are reported.
Graphics
Charts, diagrams, contours and stamps are shape nodes. render exports a node as a checked PNG, WebP or SVG.
Built by an agent in the trial.
Four briefs, each from a blank home page with a four-minute limit, built by gpt-6.1-terra with Culm over MCP. Every site passed the functional checks and none was repaired by hand.

Low Tide
Shoreline field station

Relay FM
Late-night radio station

Hem Club
Clothing repair cooperative

Kiln Index
Architectural ceramics studio
Serve the MCP server from your product.
Over your own transport and your own sign-in, by one recipe. culm mcp itself listens only on standard input and output and on 127.0.0.1.
Remote agent
such as Claude Opus
Product
its own transport and sign-in
Culm MCP server
folderMcpOptions
Site folder
site.json and pages
01
Remote agent
Calls a tool over HTTP
Through the product's own transport.
POST /mcp · Authorization: Bearer …02
Product
Signs the caller in first
Not signed in: nothing reaches a server, nothing is applied.
401 Sign in03
Culm MCP server
Treats every caller as an agent
Built without local: true, so the setting that lets agents turn tools on is never read.
createMcpServer({ allow: protect ?? toolsOnGuard })04
Culm MCP server
Refuses each person-only change
Each with its rule: backends, grants, secret, protected, textRange, agents, package.
POLICY_VIOLATION · rule agents05
Site folder
Saves an allowed change
A remote caller can never turn tools on.
revision 14Not in Culm
Identity, accounts, audit of who called, and the transport. A remote caller can still reach add_package (it cannot approve one), fetching fonts, icons and images, build, measure and render.
The rest of Culm