Agents

Connect your agent

All docs

Velluma has no AI model of its own. Your agent connects to it as an MCP server and edits through the same engine as the window, so every change it makes is checked, recorded and undoable.

Connect your agent

Every client starts the same command: velluma mcp, the tool set, and the site folders the agent may edit.

Claude Code

claude mcp add velluma -- velluma mcp --tools agent ~/sites/my-site

Codex

In ~/.codex/config.toml:

[mcp_servers.velluma]
command = "velluma"
args = ["mcp", "--tools", "agent", "/home/you/sites/my-site"]

Any other client

Velluma speaks MCP over standard input and output. Most clients take a block like this:

{
  "mcpServers": {
    "velluma": {
      "command": "velluma",
      "args": ["mcp", "--tools", "agent", "/home/you/sites/my-site"]
    }
  }
}
--tools agent26 tools up front: the ones a site build needs, plus more to reach the rest. Best for most agents.
--tools allAll 122 tools up front. The default when you leave it out.
Site foldersOne or more. The agent can edit only these, and names one in every call.
--assets-from DIROne extra folder the agent may copy pictures from, such as ~/Pictures/shoot.

Check that it works

  1. See the server

    In Claude Code or Codex, type /mcp. Velluma should be listed as connected.

  2. Ask for the site

    Ask your agent: Use Velluma's info tool on my site. It should list your HTML and CSS files, each with a digest.

  3. Make one change and take it back

    Ask it to change one heading, then to undo it. Both appear in History in the window.

NoteAn agent's edits count like yours: they need a started trial or a pass (velluma license trial starts one), and when a trial or pass ends the agent can still read, render and check, but not edit.

What your agent receives

  • Short instructions when it connects: read the design guide first, sketch directions before building, look at the page at phone and desktop width, then check it.
  • guide: design notes for the kind of site it is building.
  • render: a picture of the page at any width from 320 to 3840, so it can look at its own work.
  • check: the same findings you get on Check your pages, each with the fix.

The full list is on the Tool reference.

The rules every write follows

Read before writingA write names the digest of the file it read. If the file changed since, the write is refused, and the agent reads again.
Plan firstA dry run returns the exact change before anything is saved.
A receipt for every saveundo takes back a receipt, or the newest one.
Retries land onceAn operation id makes a call that is sent twice, after a lost reply, change the site only once.
One writer at a timeOne writer per site. While the window has the site open, a second Velluma opens it read-only and says so.

An example exchange

The agent asks for the elements of a page and gets each one's number and the file's digest:

find_elements  { "file": "index.html" }
→ index.html  digest 44d8167d…
  element 15  h1  id hero-title  "A clear page for the work"

It changes the heading, naming the digest it read:

text  { "file": "index.html", "element": 15, "digest": "44d8167d…",
        "to": "Fresh bread every morning" }
→ committed receipt r-fd8411c4…-3c5d46f3…

If you had edited the page in the window in between, the same call is refused with READ_DEPENDENCY_CHANGED and the next step: read the digest again. Nothing is overwritten.