Quad Harness
0.2.0Download

Docs Features

Artifacts

Live pages the agent builds beside the conversation, with versions, a sealed frame, web access only to sites you allow, live Mac data and saving to a project.

5 min read

An artifact is something the agent builds for you to look at and use: a dashboard, a chart or diagram, a calculator, a report, a small tool, a document. It appears beside the conversation as a live page, and the agent changes it in place as you talk.

Artifacts need the Artifacts feature switched on. They also work when Claude Code is the model.

Ask for one

Just say what you want:

Build a live dashboard of how much memory and CPU this Mac is using.
Draw a diagram of how the parts of this project fit together.
Make a small calculator for the loan figures we are discussing.

The Artifacts window opens by itself with the new page. Ask for changes in the conversation (“make the bars horizontal”, “add a total row”) and the agent edits the page in place with small edits rather than writing it all again.

The Artifacts window

Open it from the dock. It shows all the session’s pages; choose one to open it.

Control What it does
Preview The live page
Code The page’s source
Versions Step through earlier versions. Make this the latest brings an old version back, as a new version.
Share Who can open it: Only you. It stays on this Mac. To send it to someone, export it as a file.
Export Save as a file…, Copy the code, Open in your browser, Put a copy in the project
Delete Delete this page, then confirm with Delete (or Keep it)

Put a copy in the project saves the page under artifacts/ in the workspace, never replacing an existing file.

Versions and limits

  • Every change is a new version. The last 40 versions of a page are kept, and going back to one is itself a new version, so nothing is lost by trying.
  • A session can hold up to 60 pages, each up to 2 MiB.
  • A page can be HTML (a fragment is wrapped into a full page), SVG or Markdown.
  • Pages are stored in the app’s data folder (artifacts/<session>/<id>/), so building one never touches your project. That is also why the artifact tool is allowed in Plan mode.

Why a page cannot do harm

A page runs in a sealed frame:

  • Its script runs, but the page has no origin of its own, so it cannot read the app’s storage or your files.
  • It cannot make network requests by itself. Its security policy forbids connections.
  • It cannot embed other pages.
  • It can load libraries only from cdnjs, jsDelivr and unpkg.
  • It is served from a short-lived address on this computer.

This was checked on a real served page: its script ran, a request to the internet was refused, and the app’s storage was out of reach.

Letting a page reach the internet

Sometimes a page needs live data from an API: a status page, a build dashboard, a hosting provider. The page still cannot connect by itself. Instead:

  1. The agent says which sites the page needs when it creates or updates it.
  2. A prompt appears above the page: This page wants to reach the internet. It cannot connect by itself; if you allow it, the app makes its requests.
  3. Tick the sites you allow. For each, you can give an Access token (optional).
  4. Choose Allow.

From then on, the app makes the page’s requests for it. Nothing is reachable before you allow it, and a later change by the agent never widens what you allowed: a new site starts as not allowed, and a dropped one is forgotten. Change reopens the prompt and Stop allowing withdraws.

The app refuses a request unless all of these hold:

  • The site was asked for by this page and allowed by you.
  • The address is https on the standard port, with no user name or password, and a public host name (no IP address, no localhost or local name).
  • Every address the name resolves to is public, and the connection is pinned to them, so a name cannot be pointed at this Mac or your network.
  • The method is GET, HEAD, POST, PUT, PATCH or DELETE.

Cookies, origin, host and proxy headers are dropped. Redirects are not followed. An answer stops at 5 MiB and the whole exchange at 30 seconds. Set-Cookie never reaches the page.

Tokens the page never sees

A token you give is kept with the app’s other credentials, never handed to the page. The app adds it as an Authorization: Bearer header on requests to that site when the page did not set its own. The page can use the API without ever holding the secret.

Live data about this Mac

A page can ask for live readings of this Mac when it is created. The app then sends it the numbers when it loads and with every new reading: memory used and total, swap, processor use, cores, disk free and total, memory pressure, heat, battery, the last five minutes of history, and the level (calm, strained or critical). Nothing else is fed to a page.

The built-in This Mac page is one of these: open it from Settings → Performance with Open “This Mac”, or from the This Mac window with Open as a live page. Ask the agent for your own and it can read the same data.

Tips

  • Ask for a self-contained page. Libraries load from the three public CDNs, and everything else should be in the page.
  • If a page needs your project’s data, ask the agent to read the files and put the numbers into the page, rather than having the page fetch them.
  • Use Put a copy in the project to keep a report alongside the code, or Save as a file… to send it to someone.