Primo + Aider

Build and edit a website with Aider.

Work with Aider on the site’s components, content, fields, and page types as local files. Preview your changes, save them to the hosted draft, and publish when you’re ready. Clients use Primo’s browser editor for the content you make editable.

Aider edits the site. Your client edits the same site.

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.

Why Aider fits Primo

▸

Git-native edits

Aider commits each change as it goes, so every edit is a reviewable diff. A Primo site is a normal repo — pages, blocks, content, config — so it drops straight into that workflow.

▸

Components and content together

Svelte components, YAML content, and field definitions live in the workspace. Your agent can work on the design and editing controls together.

▸

Client edits the same source

After push, your client edits on the rendered page in the fields your blocks declared — the same source Aider just edited. One source of truth.

The loop with Aider

Four steps. The CLI is the real Primo CLI — primo pull, primo push. What’s Aider-specific is step three, where Aider edits and commits inside the repo.

i. primo pull

Pull the site as files.

Sign in to your hosted Primo server with primo login <server-url>, then pull the workspace to your machine. It contains the server’s sites and shared library.

$ primo pull <server-url>
ii. primo dev

Run the local preview.

Run this from the workspace folder. Primo watches file changes and provides a browser preview. Use the URLs printed in the terminal.

$ primo dev
iii. aider

Let Aider edit anything.

Open the workspace in Aider and describe the changes you need. Define the editable fields and check the browser preview as you build.

$ aider blocks/pricing/component.svelte pages/pricing.yaml
✎ edited 2 files · committed "redesign pricing"
iv. primo push

Save the draft, then publish.

Push the selected site to the hosted draft. Review it, then publish through the editor or with primo publish --only my-site.

$ primo push --only my-site

Replace my-site with your site’s folder name. Push saves a hosted draft; publish makes it public. Pull the latest content before starting new local work.

Questions

Can I use Aider as a CMS?

Use your coding agent to build and change the local site files. Primo provides the CMS your client signs in to for content updates. You review and publish the changes when they’re ready.

How does Aider edit a Primo site?

Sign in to Primo and pull the hosted workspace, then open it in Aider. Components are Svelte files; content and fields are YAML. Preview with primo dev, save a draft with primo push --only my-site, and publish separately when ready.

Does Aider's git workflow conflict with Primo?

No — they complement each other. Aider commits each edit to your repo’s git history, giving you reviewable diffs. primo push is a separate step that syncs the current files to the server. Your git history and your live site stay independent, so you can review and roll back locally before you ever push.

How is this different from TinaCMS with Aider?

Primo combines Svelte components, a content model, and a browser editor in one system. Define each block’s fields and connect editable content with inline markers. Pull and push move the site between local files and the hosted CMS. See the Primo workflow.

Do my clients need Aider to edit the site?

No. Aider helps you build and change the source. Clients use Primo’s browser editor to update the fields and pages you’ve set up for them.

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