Skip to main content
An Artifact is a named set of files, such as a web page or report. Every update creates a new immutable version.
On create, supply each file inline with content or point to an uploaded File with file_id.

Versions

When adding a new version, pass the current version you expect to replace. You can carry forward unchanged files from the previous version by referencing their sha256 instead of resending their contents:

Use one in a Session

Agents have a save_artifact tool. Saving again under the same name in the same Session adds a new version. To give an agent an existing Artifact, mount it when you create the Session. It appears read-only at /mnt/artifacts/<name> (Status page becomes status-page):

Share and publish

A viewing link shows one pinned version until it expires. A publication creates a permanent public address that follows the latest version by default.
Pages run in a sandboxed origin, so reference sibling files with relative paths. Publish an Artifact walks through a full example.

Start from a template type

A “type” is just another Artifact whose files act as a base layer so child Artifacts only need to provide content or data. The repository ships three starter types in packages/domain/src/Artifact/types: document, slides, and dashboard. Upload a type once from its directory, then create Artifacts from it with made_from:

Store data

Each Artifact has a JSON document database shared across all of its versions:
A published page can only access collections that artifact.json exposes to visitors, capped further by the viewing link or publication’s access level:
artifact.json
In the page, load _/data.js and call artifactData:
See Limits for file, version, and database caps, or Create an artifact for all options.