---
title: "Introducing Cerebras Canvas: a fast edit, then an agent checks"
summary: "A page beside its chat, with a fast Cerebras first pass and a full agent following up. Four editing flavours explore how to change a running page while keeping its saved source in step."
app: "Cerebras Canvas"
created: 2026-11-18
revision: 1
updated: 2026-11-19
url: https://blog.misherate.com/introducing/cerebras-canvas/at/1e8b5f3a7dc8ad0fc0a344cfa9babe358dbb711f
current: https://blog.misherate.com/introducing/cerebras-canvas
---

“Make it faster” should change the thing moving on screen, not start a long conversation while nothing happens.

Cerebras Canvas is an experiment in giving that request two chances: a fast model makes the first edit, then a full agent checks or repairs it. A web page sits beside the chat that changes it. The aim is immediate feedback without giving up a saved, editable source file.

An [iterate](https://iterate.com) mind is its own code and everything that code runs. This experiment puts one of its agents next to a page the agent can rewrite. It is members-only; this introduction describes the machinery rather than linking to the private app.

## One page, one conversation

The starting page is a moving black ball. Open a new canvas, pick an editing flavour, and describe a change in the adjacent chat. Each named canvas has its own agent, conversation and git repository. The saved HTML is the starting point at the next load, not an image of a page that only existed in a model's answer.

The original Canvas experiment had one agent doing the work. Cerebras Canvas adds a first pass through Cerebras's hosted gpt-oss-120b. The regular agent deliberately waits three seconds before asking its own model. A separate event processor uses that gap to ask the fast model for the edit.

A successful answer is applied and recorded, then handed to the agent as context. The agent still takes its turn: it can confirm what happened, repair a mistake or finish a request that needs more than the first pass can do. This trades extra model work for quick feedback plus a second pair of eyes. It is not a guarantee of an instant or correct result.

## Four ways to describe an edit

The flavours change what the fast model sees and returns, not the basic page-and-chat layout:

- Edits: read the HTML and return exact find-and-replace changes. Each search must match once; an ambiguous edit is discarded.
- jQuery: return one function that changes the document. It runs against the saved HTML through Cheerio and against the live preview for immediate feedback.
- Patches: return a JavaScript function that runs in the preview. Keep it in a replayable patch log until the agent folds the change into the source.
- Snap: read a compact outline of the running page instead of all its HTML, including element references, appearance and editable script settings. Return a patch or replacement values and functions.

The snapshot is useful because a running page can contain elements its scripts created, absent from its original markup. It is also smaller than sending a large document for a tiny visual change. It is an outline, not a screenshot, and cannot capture everything about a page's behaviour.

Each flavour has editable prompts. New canvases copy those prompts; the fast pass reads its canvas's prompt on each request. That makes the experiment's editing strategy changeable without changing the whole app.

## Fast feedback must survive saving

Changing the screen is only half the job. A patch must survive a reload, and committing a source change must not wipe out the animation the person was adjusting.

The preview runs in a sandboxed frame that allows scripts but has no shared origin with the signed-in outer app. The outer page watches repository commits. Compatible changes to top-level function bodies and literal settings can update the running script through stable forwarding functions; changes outside that narrow contract reload the frame. The details are in [Change the function, not the running page](/posts/change-the-function-not-the-running-page).

An answer consisting only of editable values and functions can be folded into HTML by code. More general patches are kept for replay and left for the agent to fold. A fold that merely saves changes already shown should leave the live page alone, rather than replaying setup and losing its state.

## What runs where

The browser owns the preview and its live-edit bridge. Git holds the HTML, prompts and any pending patch log. A processor on each agent's event stream owns the fast request and records what was asked, what came back and whether it was committed, late, unchanged or failed. Cerebras inference needs its provider credential; the regular agent needs its normal model access. The fast pass is triggered by messages, not by a polling schedule.

Late or failed answers are dropped, and the agent proceeds. A new message can interrupt the agent's current request so the fast pass gets a go without waiting for that turn to finish. The point of the experiment is not to replace the agent with a cheaper model: it is to separate the speed of showing a plausible change from the slower work of making the saved page right.
