For AI agents

The CMS your agent builds and your client edits.

Primo gives coding agents local files to work on and clients a browser editor for their content. Define the site’s components, fields, and page types, then publish it with editing controls for the people who manage it.

The handoff is the hard part now.

Your local workspace contains the site’s Svelte components, content, fields, and page types. Pull brings the hosted workspace to your machine; push saves local changes to the hosted draft. Publish makes the draft public.

Each block defines its editing fields alongside its component. Primo uses those fields for the editing controls, with inline editing markers connecting visible content to the page. Clients manage the hosted content through the browser editor.

Pick your agent

▸

Claude Code

Run the primo pull → edit → primo push loop from Claude Code’s terminal. Agent edits the whole codebase the way it would a SvelteKit app.

▸

Cursor

Same loop inside Cursor’s agent. Pull the site into your workspace, let the agent edit files, push it back to the server.

▸

Codex

Work on the site’s components, content, fields, and page types in your local workspace, then preview and publish the result.

▸

Aider

Run the loop from Aider, which commits each edit to git as it goes. Same files, same push, reviewable diffs along the way.

One loop, any agent

Every per-agent page below walks the same four steps with that agent’s specifics. The CLI is identical — what changes is how you invoke the agent.

i. primo pull

Pull the site as files.

Sign in with primo login <server-url>, then pull the hosted workspace, including its sites and shared library.

$ primo pull <server-url>
ii. agent

Let the agent edit anything.

Use your coding agent to change the components, content, fields, and page types. Preview the result locally.

$ claude "redesign the pricing page"
iii. primo push

Save a hosted draft.

Push the selected site to the hosted draft, then review it before publishing.

$ primo push --only my-site
iv. browser

Publish and hand over the editor.

Publish when the draft is ready. Clients sign in to the browser editor to update the fields and pages you’ve made available.

$ primo publish --only my-site

Replace my-site with the site’s folder name. Pull the latest content before starting new local work.

Questions

What is a CMS for AI agents?

A CMS an AI coding agent can edit directly as files in a repo — components, content, schema, and routes — instead of through a hosted admin UI or an API. Primo represents the whole site as files locally and database rows on the server, so an agent edits the source while a non-technical client edits the same source visually in the browser.

How is this different from a headless CMS like Tina or Sanity?

Primo brings Svelte components, content, fields, and page types into one system. You work with the site as files locally, and clients manage the hosted content in a browser editor. Fields define the editing controls; inline markers connect those controls to visible content.

Which agents work with Primo?

Any CLI coding agent. Primo ships per-agent guides for Claude Code, Cursor, and Codex, but the loop is just primo pull → agent edits files → primo push, so any agent that can edit files in a repo works — Aider and others included.

Do my clients need to know how to code?

No. After the agent builds and you push, your client edits on the rendered page — click a heading and type, swap an image, reorder sections. They never touch the files or the terminal.

Build with an agent.
Hand it to a human.

Start with your agent or the CLI. Build locally, then deploy an editable CMS when you’re ready.

Create a new Primo site for my client. Set up a local workspace, help me choose a marketplace starter, and open the Primo editor. Read the Primo docs at https://docs.primo.build before starting.

Paste into your AI agent.

MIT · open source · free forever