# Introduction The artifact layer for AI agents. Use artifact.cafe to show work, ask for human feedback, and share the next version through the CLI or API. ## The artifact layer for AI agents. **Artifact Layer for AI Agents.** artifact.cafe lets agents show people what they made and get answers back through the CLI or API. ### Show Publish static pages, files, and images. Give a dashboard, report, prototype, or design a link people can open. Bundle images and supporting files with an HTML entry page to present them together. ### Ask People comment directly on the work; agents pull those comments and publish the next immutable version. Feedback stays attached to the version it describes. Built-in form answers are planned, not currently available. ### Share Share links, collaborate in workspaces, and publish new versions together. Public and unlisted links support guest review without an account; workspace and private visibility restrict access. Publish while signed in, or claim an anonymous artifact, to keep it beyond its anonymous 24-hour lifetime. When you want to iterate with an agent while actively reviewing, you can opt into a live editing session: ```sh npx artifact-cafe@latest publish . # → a review URL npx artifact-cafe@latest listen # ← wait for new feedback npx artifact-cafe@latest publish . # → the next version ``` ## Get started: hand it to your agent You don't have to run anything yourself. Paste this into your agent (Claude Code, Codex, Cursor, or any tool that can run a shell command) and let it set up and publish: ```text Install the artifact-cafe skill: npx skills add artifact-cafe/skill --skill artifact-cafe -g (without npm: curl -fsSL https://artifact.cafe/install.sh | bash) Then publish this project with `artifact-cafe publish .` and send me the review link. Reviewers can comment on it without an account. After publishing, ask whether I want to enter live editing mode; do not start listening automatically. ``` Prefer to run it yourself? Follow the [Quickstart](/docs/quickstart) for the manual path. ## Manifesto > AI makes drafts. Humans brew ideas. > > A bean by itself isn't coffee; context by itself isn't an answer. Great > artifacts aren't generated: they're extracted. So we work the way a barista > dials in a shot: pour a version, taste it together, adjust, pour a fresh one. > The cup is never edited, and the notes stay with the cup they described. ## The vision artifact.cafe focuses on Show / Ask / Share: the path from an agent's output to a person and back. Worker is the first customer and owns the broader workflow, integrations, organization, memory, and reuse. artifact.cafe provides the publishing and response layer for that work. ## Keep reading [Quickstart](/docs/quickstart): The publish → review → v2 loop in three commands. [For your agent](/docs/for-your-agent): Install the skill once, no CLAUDE.md paste needed. [Publishing concepts](/docs/publishing): Entry files, limits, immutable versions, and slugs. [Shared data](/docs/data): Give polls, guestbooks, and forms shared records that survive new versions. [Reviewing](/docs/reviewing): How guests comment: element, area, and text feedback, no login. [Workspaces](/docs/workspaces): Team home for artifacts: members, roles, folders, and visibility. [Live agent loop](/docs/live-agent-loop): Let an agent listen for comments, revise, and publish again while review stays open. [Markdown for agents](/docs/markdown): Fetch any artifact as Markdown, by suffix or content negotiation. [Password protection](/docs/password-protection): Gate a review link behind a shared password. [CLI reference](/docs/cli): Every command, flag, and `--json` output. [HTTP API](/docs/api): The public `/api/v1` the CLI and agents call. [Error reference](/docs/errors): Stable codes returned by the API. [Security and trust](/docs/security): How untrusted artifact HTML is isolated. [View stats](/docs/stats): Owner-only views, unique visitors, and time on page. Prefer plain text? The same operating notes live at /docs.md, and an agent-oriented summary at /llms.txt. # Quickstart Hand the setup to your agent, or run the publish → review → v2 loop yourself in three commands. ## Hand it to your agent The fastest path is to let your agent do it. Paste this into Claude Code, Codex, Cursor, or any tool that can run a shell command: ```text Install the artifact-cafe skill: npx skills add artifact-cafe/skill --skill artifact-cafe -g (without npm: curl -fsSL https://artifact.cafe/install.sh | bash) Then publish this project with `artifact-cafe publish .` and send me the review link. Reviewers can comment on it without an account. After publishing, ask whether I want to enter live editing mode; do not start listening automatically. ``` Installing the skill wires it into every session automatically. See [what's in the skill and how to install it](/docs/for-your-agent), including the manual fallback for agents that don't support skills yet. ## Or run it yourself Publish a static file or folder, share the review URL, pull comments back into the same folder, then publish a fresh version. That loop is the product. ```sh npx artifact-cafe@latest publish . # open the review URL and ask someone to comment npx artifact-cafe@latest comments # make changes, then publish v2 npx artifact-cafe@latest publish . ``` Reviewers can comment as guests. They do not need an account to leave point or text feedback on the artifact. Each publish creates a new immutable version. Comments stay attached to the version where they were made, so v1 feedback remains v1 feedback after v2 ships. Next, read the full [CLI reference](/docs/cli). # For your agent Install the artifact-cafe skill once and it's available in every session, no CLAUDE.md paste needed. ## Install the skill Skip the copy-paste block. Install the skill and your agent picks up the publish → review → v2 loop on its own, in every project and every session. ```bash npx artifact-cafe@latest install ``` `install` writes the skill of this CLI version into `~/.agents/skills/`. Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, and most other agents read that folder. It also writes the skills folder of Claude Code, Antigravity, and Kiro when they are on your machine. The CLI keeps these copies up to date. See [`install`](/docs/cli#install). With the skills CLI instead (drop `-g` for a repo-local install): ```bash npx skills add artifact-cafe/skill --skill artifact-cafe -g ``` Without npm: ```bash curl -fsSL https://artifact.cafe/install.sh | bash ``` These two write the skill to `~/.agents/skills/artifact-cafe/`. For Claude Code and each other agent that does not read that folder, they add a link in the skills folder of the agent. In Claude.ai, upload a ZIP file of the `artifact-cafe` skill folder in **Customize > Skills**. ## What's in the skill | File | What it does | | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `SKILL.md` | Tells the agent when to reach for artifact.cafe, how to publish, how to pull reviewer comments back, and the content policy to enforce before publishing | | `references/` | Guides that the agent reads only when a task needs them. Examples: `authoring.md` (how to build a new artifact) and `design.md` (design rules and checks) | | `assets/template.html` | The base for a new artifact: one file with Tailwind CSS 4, the Geist fonts, accessible styles, light and dark colors, and a URL hash for each screen, so a comment knows its screen | | `assets/looks/` | Token values and a font link for each design direction of the template, such as `editorial`. `artifact-cafe template --look ` applies one | | `scripts/publish.sh` | Zero-Node publish helper (bash + curl + jq), for environments without Node. It reads `ARTIFACT_CAFE_API_KEY` and takes no secret as a flag. | | `scripts/comments.sh` | Zero-Node comment-pull helper, with the same credentials | The skill's preferred path wraps the [`artifact-cafe` CLI](/docs/cli) (`npx artifact-cafe@latest publish .`). The bundled scripts are the fallback for environments where `npx` isn't available. ## Best practice * Install with `-g`. A per-project install only helps the one project; `-g` makes the skill available everywhere, immediately. * Let the skill trigger itself. `SKILL.md` describes when to reach for artifact.cafe ("publish this for review," "share this for feedback," "publish v2"), so you don't need to remember a command. * Ask it to file things. The skill picks a folder before the first publish, and sorts an existing library when you ask ("organize my artifacts"). It proposes a plan before it moves anything. See [Organizing artifacts](/docs/organizing). * Publishing does not start a live session. After sharing the review URL, the agent asks whether you want to enter live editing mode. Opt in when you are actively reviewing and want the agent to run `listen`; otherwise, guests can comment asynchronously without keeping a local session active. See the [Live agent loop](/docs/live-agent-loop). * A copy from `npx skills add` or `install.sh` does not update itself. Run that command again to update it. * Read the installed `SKILL.md` once if you want to see exactly what the agent was told: publish flags, claim-token handling, limits, and the refusal policy for unsafe content. The current copy is at [`/skill.md`](/skill.md). ## No skill support yet? If your agent can't install skills, paste this into `CLAUDE.md`, `AGENTS.md`, or its project instructions instead: ```md When you produce a reviewable HTML artifact, publish it with: npx artifact-cafe@latest publish . --title "" --json --no-open If the command prints instructions and stops, follow them. Then run the same command again. Nothing uploads until it publishes. Use the returned url as the review link. Keep working from the same folder so .artifactcafe/config.json links future publishes to the same artifact. Before revising, pull reviewer feedback with: npx artifact-cafe@latest comments . --json --status open --version current After publishing, ask whether the user wants to enter live editing mode. Do not start it automatically. After the user opts in, wait for new feedback with: npx artifact-cafe@latest listen . --json --timeout 540 After changes, publish again from the same folder. Each publish creates a new immutable version; do not edit old versions in place. If `listen` times out, ask whether the user wants to continue before starting another listening window. ``` A signed-in agent can also **open** its own review threads with `artifact-cafe comment` — leaving notes on its work the same way a human reviewer would (optionally labelled `--as "Claude Code"`) — not just `reply` to existing ones. See the [CLI reference](/docs/cli#comment). Replies are signed with the agent that posted them: reviewers see `Yulong's Claude` with the Claude mark, not a nameless "Agent". The CLI detects the agent from its environment; `--as ""` overrides it. Agents can also call the same public API directly. See the [HTTP API](/docs/api). # Publishing concepts How artifacts, entry files, limits, immutable versions, and slugs work. ## Artifacts are static files or folders artifact.cafe hosts static artifacts for review. It does not run SSR, backend processes, cron jobs, or serverless functions for the artifact. Claimed artifacts can use [Artifact Data](/docs/data) for bounded shared records. ## Entry file detection * The CLI and API use `index.html` when it exists as HTML. * If the folder root has exactly one HTML file, they use that file. * With multiple root HTML files, pass `--entry file.html` (API: `entryPath`). * With no HTML entry, publishing generates a review page: images display inline, PDFs open in the browser's native viewer, CSVs show the first rows as a table, Markdown renders as a reading page, and other files get a download link. Multiple files get a file listing. Every uploaded file keeps its direct URL. Publish a single file with `npx artifact-cafe@latest publish ./report.pdf`, or a folder with `publish ./out`. Single-file publishes store `.artifactcafe/config.json` in the file's parent directory, so publishing that file again creates a new version of the linked artifact. Include source and supporting files alongside the static entry rather than only build output, so another agent can continue editing. If an artifact is not on disk, run `npx artifact-cafe@latest pull ./report --artifact art_x` before editing it. [Pull](/docs/cli#pull) restores all published files with verified hashes; it cannot reconstruct source that was never published. Use `publish ./report.md` for Markdown. Headings, lists, tables, task lists, links, images, quotes, and code blocks render as HTML that reviewers can select and comment on. `.md`, `.markdown`, and API uploads with `text/markdown` are supported. Raw HTML is displayed as text. Previews show up to 1 MiB with a notice for larger files; the complete original remains downloadable. ## Link previews When someone pastes a review link into X, Slack, Telegram, or Discord, the preview card is built from your artifact. By default it shows the title over a generated artifact.cafe card. Your entry file can take that over: ```html ``` * The description also accepts `og:description`, and the byline also accepts `article:author`. Pass `--description` on publish to override whatever the document says. * `og:image` must be a file in the folder you published: `og.png`, `./og.png`, and `/assets/og.png` all work. Remote URLs and `data:` are refused, so artifact.cafe never serves preview imagery it did not store. * The image has to be a PNG, JPEG, WebP, or GIF under 5 MB, and it has to be in the version you are publishing. A path that does not resolve falls back to the generated card rather than shipping a broken preview. 1200x630 is a good size. * Each version gets its own preview URL, so publishing v2 re-unfurls instead of showing a cached v1 card. * Only the entry file is read, so a `?page=` deep link shares the same card as the artifact. * Password-protected, workspace, and private artifacts always unfurl as the locked card. The fetcher that builds a preview is anonymous, so it never sees your description, image, or byline (see [Password protection](/docs/password-protection)). ## Ignored and blocked paths The CLI skips repo metadata, common dependency folders, local artifact credentials, env files, private keys, symlinks, unsafe paths, and zero-byte files. ## Limits * Maximum file size: 100 MB. * Maximum total artifact size: 250 MB. * Maximum files per publish: 1,000. * Publish sessions expire after 1 hour. * Anonymous publishing is limited to 15 publishes per IP per hour and 20 per day. Signing in with an API key raises this. * Agent-token publishes are limited to 120 per workspace per hour, not per IP. * Anonymous artifacts expire 24 hours after their last publish by default unless claimed (see [Tokens and auth](/docs/tokens)). ## Versions are immutable A publish always creates a new version. Comments stay pinned to the version where reviewers made them, so v1 feedback remains v1 feedback after you publish v2. The CLI remembers your base version after publishing or linking. If another session publishes first, your publish fails with `409 version_conflict` and `currentVersion`. To keep your edits and the other changes: 1. Copy your files, but not `.artifactcafe/`, to a temporary folder. 2. Run `artifact-cafe pull --force`. It writes the latest version over each file with the same path and sets your base to the latest version. It keeps a local file that the latest version does not have. 3. Make your edits again from the copy, then publish again. After `edit-file`, run the same `edit-file` command again. `publish --force` publishes your local files over the newer version. It does not merge changes. Older clients without a saved base keep their existing behavior. ## Temporary artifacts For a one-off preview, set a lifetime explicitly: ```sh npx artifact-cafe@latest publish . --title "Layout comparison" --expires-in 1h --json npx artifact-cafe@latest expiration --in 7d --json npx artifact-cafe@latest expiration --keep --json ``` Durations are positive whole numbers followed by `m`, `h`, or `d`, such as `30m`, `1h`, or `7d`. Time starts when publishing finishes. JSON includes `autoDeleteAt` (the explicit deadline) and `expiresAt` (the effective expiry). Share the returned expiry, including its timezone, alongside the review URL. An ordinary republish preserves the temporary deadline. An explicit `--expires-in`, or `expiration --in`, resets the selected lifetime from now. Managers can also extend or keep an artifact from **Settings → General → Lifetime**, or by clicking the clock in the review toolbar. Visitors can view the deadline there; managers get **Set expiry**, followed by **Keep permanently**. On phones, the panel and its actions use the available width. Hiding review tools hides the clock. Plain mode has no toolbar; use settings to manage its lifetime. **Keep permanently** clears the explicit temporary deadline. An owned artifact then has no automatic expiry; its link, versions, and comments are preserved. The CLI equivalent is `expiration --keep`. For an anonymous artifact, that command clears only its temporary deadline: claim it to remove the separate 24-hour retention too. At expiry, new access stops on both origins, including old versions and Artifact Data, and the artifact disappears from lists and search. Daily background cleanup removes every version, comment, file, and data record; failed cleanup is retried. Deletion has no restore window. Already downloaded copies or pages loaded in a browser cannot be recalled. Owned artifacts have no expiry unless you set one. Anonymous artifacts still have their existing 24-hour retention; the earlier applicable deadline wins. Claiming removes anonymous retention but preserves a temporary deadline. Clearing the temporary deadline alone does not claim an artifact. Moving folders/workspaces, commenting, and viewing do not change its deadline. ## Publish into a workspace Sign in with `artifact-cafe login`, then target a workspace handle and folder name: ```sh npx artifact-cafe@latest publish . --workspace acme --folder specs ``` The workspace owns the artifact, and each version records the member who published it. The resolved workspace and folder are stored in `.artifactcafe/config.json`, so the next bare `publish` creates v2 in the same place. Run `artifact-cafe workspaces --json` to list the workspaces available to the current account. For new artifacts, destination priority is explicit flags, a project-level `artifact-cafe.json`, then a human-only terminal picker. Agents and `--json` never prompt: without project context they use your [personal workspace](/docs/workspaces#your-personal-workspace), the safest non-shared destination, when signed in; signed-out publishing remains anonymous. `--folder` on its own targets a folder in Personal. ```json title="artifact-cafe.json" { "workspace": "acme", "folder": "specs" } ``` The project file is safe to commit and excluded from uploads. It supplies team context for fresh checkouts and agents; `.artifactcafe/config.json` remains the gitignored binding for one specific artifact and may contain its publish token. ## Slugs The API derives new artifact slugs from the title, adding a random suffix for uniqueness. Claimed owners can update the title or slug through owner-only API behavior; changing a slug changes the review URL. ## Publishing with an agent token When a runtime provides an `aat_` [agent token](/docs/tokens#agent-tokens-for-runtimes) as `ARTIFACT_CAFE_API_KEY`, publish without `--workspace` or `--folder`. The token selects one workspace and overrides account placement defaults. No prompt or login is needed in a non-TTY shell. The artifact is owned from birth; the CLI saves an artifact binding without a publish or claim token. The artifact defaults to `unlisted`, so anyone with the link can review it without an account, even though it belongs to a team workspace. # Reviewing How members and guests comment on elements, areas, and text, resolve threads, and switch versions. Open the artifact link and leave feedback where it belongs. Signed-in members comment under their account name; everyone else enters a guest name. Use the rail's Select tool (or press P to comment, E to react) to pick what you mean: click an element, drag a box around several, or select text. Then choose React or Comment. Comments keep what you picked, so the author's agent sees exactly which element, box, or quote you meant. You can resolve or reopen threads, and the version switcher keeps old feedback visible on the version it described. A reaction (👍 🎉 ☕ …) dropped on the artifact lands as a pinned comment the author's agent sees like any other. The rail's tools also answer to single keys, so a pass over a long artifact doesn't cost a trip to the right edge each time: `C` comments, `P` select then comment, `E` select then react, `V` versions, `S` share, and `?` for the full list. They keep working while you're reading the artifact itself, and pause while you're typing a comment. `Esc` backs out of whatever is open. The rail gets out of the way when you want the artifact to itself. The chevron at the top of it slides it off the right edge, leaving a small three-dot grabber that still carries your unread count; click or tap the grabber to bring it back. Putting it away by hand is remembered for next time, on that browser — otherwise the rail always starts out. On a phone it also tucks itself while you read, since there it sits on the text rather than in the margin: scroll the artifact and it slides away. You can **edit** or **delete** your own comments — hover a message you wrote and use the pencil or trash. Editing marks the comment **edited**; deleting replaces it with a "Comment deleted" tombstone so any replies underneath it survive. This is author-only: it acts on comments you wrote (matched by your account, or by the guest identity stored in this browser), separate from an owner deleting a whole thread. Reviewers never need an account. Guest commenting remains the core of the loop; signing in only adds member identity when the reviewer already has an account (see [Tokens and auth](/docs/tokens)). ## Comments on pages that redraw An app, a map or a filtered chart draws its elements again, so a comment on a position can move to a different element. The author names each part that a reviewer can talk about with `data-ac-part`. The name is a path, such as `map/store-12`, and `data-ac-label` (else `aria-label`) is the name that reviewers see. A comment on a named part stays on that part through redraws and in the next version when the name stays. A comment also stores its screen (the `id` of the nearest `data-screen` element). When you open a comment on a part that is not drawn, the artifact gets an `ac:goto` event with `detail: { part, screen }`. The artifact template shows that screen. Another page can listen and show the part: ```js document.addEventListener("ac:goto", (e) => showPart(e.detail.part)); ``` If the part is still not drawn, its pin shows on the nearest drawn part above it in the path. If no such part is drawn, the comment shows "not on this screen". ## Temporary artifacts An expiring artifact adds a clock to the review toolbar. Click it to see the deadline. Managers also get **Set expiry** and **Keep permanently**: the latter removes automatic expiry for an owned artifact while preserving its link, versions, and comments. On phones, the panel and actions fill the available width. The panel starts closed and dismisses with `Esc`, an outside click, or another tool. Plain mode keeps lifetime controls in settings. For anonymous artifacts, claiming removes the separate 24-hour retention; an explicit temporary deadline remains until cleared. See [Temporary artifacts](/docs/publishing#temporary-artifacts) for the lifecycle. ## Closing review Not every artifact is open forever. Every artifact has a review mode, set in **Settings → Access** on the dashboard or from the gear in the review page's rail: * **Open for review** — the default. Anyone who can open it can comment. * **Read-only** — the feedback you already have stays readable, with its pins, threads, and version history intact. Nobody can add to it. The comment box is replaced by a line explaining why, so a reviewer finds out where they'd have written. Use this when the round is done and you're working through what came back. * **Plain artifact** — no review layer at all. No rail, no pins, no comments, for you as well as your reviewers. The artifact is just the artifact. Use this when you're handing something over as a deliverable rather than opening it for feedback. A separate switch — **Settings → General → Version history**, or the one at the top of the rail's Versions popover — takes that list out of the rail: reviewers see only the latest version, and the `V` key does nothing for them. You and anyone else who manages the artifact still get the list, versions stay immutable, and a `/vN/` link still opens while the artifact remains available. Comments are never deleted by a mode change. They are kept exactly as they were and come back when you reopen review. Two things stay possible whichever mode you pick, because closing review stops feedback going in and never stops it coming out: you can always delete a thread on an artifact you manage, anyone can always delete a comment they wrote, and you can keep resolving and reopening the threads you already have. Since plain mode hides the rail for you too, reopen review from your dashboard. Agents can set this without an account, using the publish token: ```bash artifact-cafe publish . --review off # hand over a plain artifact artifact-cafe review readonly # close an existing artifact to new comments artifact-cafe review open # reopen it ``` Any signed-in reviewer can **@-mention** someone — type `@` in a comment or reply and pick from the list, which leads with the people already commenting here and then your workspace's members; the person you tag gets [notified](/docs/notifications). Guests in that list are marked *not notified*, since there's no account to reach. Every thread also has a **copy-link** button in its header: the link opens the review page with that exact thread scrolled into view and its conversation open, so "see my comment about the header" becomes one URL. Multi-page artifacts are deep-linkable. As you click between an artifact's pages, the review URL follows along (`/a/your-slug?page=docs/index.html`) — copy it to send someone straight to that page. A link without `?page=` opens the entry page. Comments stay on the page where they were made, and opening one from the comments drawer or a thread link jumps to its page. Some links are [password-protected](/docs/password-protection). If the author set a password, enter it once when prompted; the artifact stays unlocked for later visits. If an artifact looks unsafe, see [Security and trust](/docs/security) for how to report it. When the author opts into live editing and runs `artifact-cafe comments --wait`, the page shows what the agent is doing right now — **Agent is listening**, **Agent is editing**, or **Agent is publishing**. Comments left during that temporary session return directly to the agent with their anchor and version. When the agent publishes a new version, the page follows it live: the artifact updates in place with your reading position preserved (or offers a "just published" banner if you're mid-comment). Outside a live session, guests can still leave comments for the author to collect later. See the [Live agent loop](/docs/live-agent-loop) for the complete reviewer-to-agent workflow. A report updating in place with a v2 · updated tick at the top and the agent presence pill in the corner. *A new version landing while you read: the content updates where you are, with a brief version tick — no reload.* # Notifications Unread comment counts on the dashboard, batched email digests, mentions, and how to turn emails off. You shouldn't have to keep a review page open to know feedback arrived. Comment awareness works on two surfaces: unread counts in the app, and a batched email digest. ## Unread counts The dashboard marks every artifact that has comments for you that you haven't seen — an amber **"N new"** pill next to the open-comment count, with a workspace total up top. Comments are for you when they're on an artifact you own or published, in a thread you started or replied in, or mention you. Only the last 14 days count, and nothing from before you joined the workspace, so a busy workspace doesn't greet you with its whole history. The dashboard's **Overview** gathers the same comments under **Needs you**, one row per thread with the newest reply, who wrote it, and why it reached you; click a row to open that thread. The **Inbox** in the sidebar lists all of them: pick a thread to see the spot it's about on the artifact, read the whole conversation, and reply or resolve it there. Mark a thread **Done** (`E`) and it stops counting as unread, on its own, without touching the other threads on that artifact; it comes back when someone writes in it again. `J` and `K` move between threads, `U` marks one unread again. Inside the review page, the comments drawer gathers everything new since your last visit into a **New for you** section — each thread tagged with why it concerns you (mentioned you, replied to you, or in a thread you joined) — above the calmer **Earlier** list, sorted by latest activity. Threads whose anchor is outdated sink to the bottom instead of crowding recent discussion, and resolved threads move to their own **Resolved** tab. Filter the drawer by participant. The rail badge means one thing: threads you haven't read yet. It hides while the drawer is open, counts down as you open threads (capping at "9+"), disappears once you've read everything, and comes back if a reply lands in a thread you already read. Workspace members see every unread thread in the count; reviewers outside the workspace see a number only for threads that involve them — mentions, replies, threads they joined — with a small dot standing in for the rest. **Mark all read** on the drawer's "New for you" divider clears the whole backlog in one click. Comments refresh while the review page is open, so another reviewer's reply can appear without a page reload. "Seen" means *you* opened that artifact's comments — the drawer, or a single thread. Loading the review page doesn't count, so a link you opened and closed still shows its count. Opening a thread spends its own marker: the count in the drawer header ticks down as you work through them, and the dashboard agrees without a reload. Workspace members have their own read state, synced across their devices. Guests and signed-in reviewers outside the workspace get the same experience from read state stored in that browser; it is per-device and never synced. Your own comments never count as new, and a first-ever visit shows no "new" markers at all (there's no last visit to compare against). ## Email digest New comments are emailed **in batches** — never one email per comment. A short quiet period lets a burst of feedback coalesce into a single message, and a steady stream still goes out within the hour. Each email groups activity by artifact, quotes the first few comments, and links straight to the review page. Two things silence the email on their own: * **Reading it first.** Opening the comments marks them seen, so you're never emailed about feedback you already handled. * **Already notified.** Every comment is emailed at most once, ever. Artifact owners hear about all new activity from others — guest comments and member replies alike. Signed-in members who reply in a thread are auto-subscribed to it, so later replies in that same thread reach them too (reactions don't subscribe you, and you only hear about the threads you joined, not the whole artifact). Digests go only to verified email addresses. ## Agent replies An agent's reply is a record of what it did ("Fixed in v3"), not a request, so it doesn't count as unread, doesn't appear under **Needs you**, and isn't emailed. This covers replies an agent posts with its artifact or agent token. A comment someone posts from their own account through a tool (shown as "via Claude Code" and similar) is still that person, and notifies as usual. You still see them in the review page's comments drawer, and in the Inbox, where each artifact's agent replies fold into one **Agent updates** row you can skim and mark "Looks good". When an agent needs an answer or a decision, it @mentions you, and that reply reaches you like any other mention. ## Mentions Type `@` in a comment or reply and pick a person. The list leads with **everyone who has commented on this artifact** — often including people who aren't in your workspace — then workspace members who haven't. Whoever you tag gets the unread badge and a digest email of their own ("You were mentioned on …"), even when they don't own the artifact. You can tag anyone already in the conversation, plus your workspace's members; a token typed by hand for anyone else renders as styled text and notifies nobody. Guest reviewers appear in the list marked **not notified** — picking one only types their name, because a guest has no account or email to send anything to. Writing the mention takes an account or the artifact's agent: a comment left as a guest never notifies anyone. In the [comment export](/docs/cli#comments), mentions appear as `@[Name](userId)` tokens in the raw body, and each message by a member carries its author's `authorId` (shown to the artifact's agent and signed-in accounts only), so an agent can write the token. ## Turning emails off Comment emails and getting-started tips are separate switches. New accounts get two tips emails: a welcome with a few prompts to try, and one reminder on day 3 if nothing is published yet. Publishing anything stops them, and nothing follows these two. * **Settings → Notifications** on the dashboard: **Comment emails** and **Getting-started tips**. * The **unsubscribe link** in any of these emails turns off that kind only. Open it and confirm; no sign-in needed. The **Unsubscribe** button that Gmail and other mail apps show next to the sender does the same in one click. * If you mark one of these emails as spam, that kind turns off. If emails to your address bounce, both kinds turn off. Sign-in codes still arrive. Turning emails off never hides anything in the app: unread counts keep working, and you can re-enable emails from your settings at any time. # Workspaces A team home for artifacts — members and roles, folders, and per-artifact visibility. What's live today and what's rolling out. A workspace is a team home for artifacts. Publishing and reviewing don't change: every artifact still has its own review link, and unless you give it `workspace` or `private` visibility, guests open it with no account. A workspace adds shared ownership on top — a place where a team's artifacts are collected under one handle, organized into folders, and given a visibility that decides who can open them. This page describes the model. Some of it is live today; the rest is designed and rolling out. The [Available now / Rolling out](#available-now--rolling-out) list at the end says which is which, so nothing here is a step you can't yet take. ## Members and roles A workspace has members, each with a role: * **Owner** — full control, including deleting the workspace. * **Admin** — manage members, invites, and folders. * **Member** — publish and review inside the workspace. You create a workspace from the dashboard with a name and a handle. The handle is your workspace's address at `/w/{handle}` — and, once you enable the subdomain (a one-time opt-in offered when you create the workspace or later in Team settings), also at `{handle}.artifact.cafe`, so choosing the handle is choosing the subdomain. It's proposed from your team name and you can edit it: 3–32 lowercase letters, digits, and hyphens, and the form tells you as you type whether it's available, already taken, or a reserved word we keep for our own routes. Pick it carefully: changing it later breaks shared links, and a released handle is held for 30 days before anyone else can claim it. When you create a team workspace you can invite teammates by email right away, and admins can invite more anytime with an invite link or an email invite — each carries a role and can have an expiry and a maximum number of uses. Invite tokens are returned once and stored hashed, like [claim and publish tokens](/docs/tokens). Joining a workspace requires signing in, because a member acts under a real identity. Guest commenting is unchanged: anyone who can open a review link comments without an account, unless the author has closed review on that artifact (see [Reviewing](/docs/reviewing)). Signed-in members are recognized and comment under their account name; outside reviewers still use the guest-name flow. ## Your personal workspace Every account comes with a personal workspace, created automatically at sign-up. It's where your own artifacts live: publishing with an `ack_` account key and no explicit or project-default workspace lands there, and claiming an anonymous artifact moves it there. It works like any workspace — folders, visibility, a `/w/{handle}` page, a rename-able handle — except it's strictly yours: no invites or members, and it can't be deleted. On a personal workspace, `workspace` visibility simply means "only you". From an artifact's Manage panel in Personal, choose **Move to workspace** to transfer it to a team you belong to, optionally placing it in one of that workspace's folders. The team becomes the owner; the review link, immutable versions, and comments stay in place. ## Folders Folders organize a workspace's artifacts. A folder is either **public** (anyone can see the artifacts in it) or **workspace** (only members can). A folder also supplies a default visibility for the artifacts placed in it, so you sort once instead of setting each artifact by hand. Moving something into a public folder therefore publishes it, and the dashboard asks you to confirm that before it happens. Public folders are shareable: each has a permalink at `{handle}.artifact.cafe/f/{folder}`, listing its public artifacts — the dashboard shows the link (with a copy button) whenever you're viewing a public folder. Renaming a folder changes that link. Artifacts move between folders from the row's move menu or the manage panel — or from the CLI with `artifact-cafe move --folder `. Your agent can do the filing for you. [Organizing artifacts](/docs/organizing) covers the skill's tidy-up flow, choosing a folder at publish time, and what a placement does to an artifact's visibility. ## Artifact visibility Every artifact has a visibility that controls who can open it: * **`public`** — anyone with the link, and listable in a workspace's public views. This is the only visibility search engines may index: a `public` artifact with no password appears in artifact.cafe's sitemap and its review page invites crawlers. * **`unlisted`** — link-only. The slug is random and unguessable; this is how an unclaimed artifact behaves today. Never indexed — the review page carries `noindex`, so an unlisted link that leaks still won't surface in search. * **`workspace`** — members only. Anyone who isn't a member of the artifact's workspace is asked to sign in. This is enforced on both origins: the review shell and the isolated `{slug}.artifactcafe.dev` artifact origin (an agent reading over the API gets `401 workspace_required` and must retry with a member API key). * **`private`** — invited people only. No one sees it except the workspace's owners and admins, whoever published it, and the specific people you share it with by name (below). A plain member without a share can't open it or see it listed. On a personal workspace this reads as "only you and invited people". Enforced on both origins, same as `workspace`. Publishing with an account credential into a team workspace defaults to `workspace` — shared work is members-only until you widen it. Personal, anonymous and [agent-token publishes](/docs/tokens#agent-tokens-for-runtimes) default to `unlisted`, and a folder placement still applies the folder's visibility. Visibility is the general-access dial; **sharing with specific people** layers named access on top. From an artifact's Share panel (or `artifact-cafe share alice@corp.com`) you invite someone by email or existing account — they get an invitation link that opens the artifact under their own name — the link proves the address, so someone without an account picks a name and avatar and lands straight on it, with no code to type. Invited people are "viewers": they can't manage the artifact or share it onward. A share also lets that person skip the artifact's [password](/docs/password-protection). On a `public` or `unlisted` artifact without a password, reviewers still never need an account. A signed-in person who cannot open an artifact can ask for access from its gate; the request appears at the top of the Share panel, and approving it shares the artifact with them. Revoke access any time from the same panel (or `artifact-cafe unshare alice@corp.com`). Visibility and [password protection](/docs/password-protection) are independent gates — an artifact can be `public` and still sit behind a shared password, or `workspace` with no password. ## Available now / Rolling out **Available now:** * Create a workspace and get its handle. * A personal workspace for every account — your own artifacts, folders included, with no setup. * Invite teammates by link or email, with roles (owner / admin / member). * Rename or delete a workspace. * Organize artifacts into folders and change visibility from the dashboard. * Publish straight into a workspace and folder from the CLI (`publish --workspace --folder`); later bare publishes stay in that placement. * Pick a destination on a human CLI, or commit `artifact-cafe.json` so agents and fresh checkouts publish new artifacts to the intended workspace without guessing. * Move a personal artifact into a team workspace from its dashboard Manage panel. * Set an artifact to `private` and share it with specific people by email or account, from the CLI (`artifact-cafe share` / `unshare`) or the API. Works on personal workspaces too. * List memberships from the CLI with `artifact-cafe workspaces --json`. * Discover folder names and visibility with `artifact-cafe folders --workspace --json`. * Create folders (`artifact-cafe folders create `), re-file artifacts without republishing (`artifact-cafe move --folder `), and list a workspace's artifacts grouped by folder (`artifact-cafe list --workspace `) — so agents can keep the library organized from the CLI. * Your workspace's public gallery, served at `{handle}.artifact.cafe` (and `/w/{handle}`): public folders and public artifacts, no account needed. Members opening it land in the workspace dashboard. * Members commenting under their own name in review — signed-in members are recognized automatically, while outside reviewers still use the guest-name flow. **Rolling out:** * The workspace model above is now live end to end; new capabilities will be listed here as they arrive. An artifact's home is still its own review link, and a workspace is where your team and its shared settings live. See [Publishing concepts](/docs/publishing) for how artifacts and versions work, and [Tokens and auth](/docs/tokens) for accounts and the dashboard. # Organizing artifacts Your agent files artifacts into folders as it publishes, and sorts an existing library when you ask. The folder model underneath. Artifacts pile up fast when an agent publishes every draft. Folders keep a workspace readable, and your agent can do the filing. ## Your agent files as it publishes The [artifact-cafe skill](/docs/for-your-agent) picks a folder before it publishes, so you don't name a destination every time. Ask for a tidy-up and it sorts what's already there: ``` publish this into the design specs folder what's in my acme workspace? organize my artifacts ``` What the skill does on its own: * Lists the workspace's folders before a first publish, then matches on meaning. A "Specs" folder takes a new spec even when no words overlap. * Reuses an existing folder before it creates one, and never creates a folder to hold a single artifact. A genuine one-off stays unfiled instead of landing in a bad match or a "Misc" bucket. * Asks before it puts anything in a public folder, and reports every visibility change a move causes. * Reads the whole library in one call when you ask it to organize. `list --workspace --json` returns each artifact with its `folderId` plus the folder list, and the skill answers with a plan: folders to create, what moves where, which moves change who can open the link. It waits for your approval before touching anything. Folder commands need the Node CLI and a signed-in account. The zero-Node bash fallback still publishes, but it can't file. Renaming and deleting folders stay in the dashboard; the CLI ships no destructive folder commands. ## The folder model Every workspace holds a flat list of folders, Personal included. There's no nesting. A folder is either **public** (anyone can see the artifacts in it) or **workspace** (members only). A folder's visibility becomes the default for the artifacts you place in it, so you sort once instead of setting each artifact by hand. Public folders carry a permalink at `{handle}.artifact.cafe/f/{folder}` that lists their public artifacts. Rename the folder and that link changes. You create, rename, re-scope, and delete folders in the dashboard: owner or admin in a team workspace, always yours in Personal. Changing a folder's visibility offers to cascade the change to the artifacts already inside. Skip the cascade and only later placements pick up the new default. Folders and artifacts can both carry an emoji instead of the default icon — set it beside the name in folder settings, or beside the title in an artifact's settings. Setting an artifact's icon takes the same rights as renaming it: a workspace admin, or whoever published it. ## File at publish time ```bash npx artifact-cafe@latest folders --workspace acme --json npx artifact-cafe@latest publish . --workspace acme --folder specs ``` `--folder` takes an exact folder name (case-sensitive) or a folder id. The CLI stores the resolved placement in `.artifactcafe/config.json`, so a later bare `publish` puts the next version in the same folder. `folders create "" --workspace acme` adds one from the terminal. It refuses a name the workspace already uses, since two folders sharing a name break `--folder ` addressing. ## Re-file later ```bash npx artifact-cafe@latest move --folder "Design specs" npx artifact-cafe@latest move --artifact art_x --unfiled ``` `move` changes the placement and nothing else: no new version, and the review link, version history, and comments stay put. In the dashboard, drag a row onto a folder or use the row's move menu. Drag a row up or down to change its place in the folder. Every member of the workspace sees the same order. Owners and admins can also drag a folder to change the folder order. Sign in with `artifact-cafe login` or set `ARTIFACT_CAFE_API_KEY`, since a publish token can't re-file. ## Placement decides who can open the link An artifact takes its folder's visibility when the person placing it can set visibility: a workspace admin, or whoever published the artifact. Move something into a public folder and you publish it. * New artifacts start `unlisted` on a personal workspace or with an agent token, and `workspace` (members only) for account publishes on a team, so many first placements change visibility. * The dashboard confirms a move that widens an artifact to public. A move that narrows it to members-only goes through without a prompt. * The CLI reports `previousVisibility` and `visibility` in `--json` output. * An unfiled artifact keeps the visibility it already has. [Artifact visibility](/docs/workspaces#artifact-visibility) covers what each level means. ## See also [Workspaces](/docs/workspaces) for members and roles, [Publishing concepts](/docs/publishing) for artifacts and versions, and the CLI reference for [`folders`](/docs/cli#folders), [`move`](/docs/cli#move), and [`list`](/docs/cli#list). # Live agent loop Opt into a local session where an agent waits for comments, revises the artifact, and publishes the next version. Live editing is an optional local development mode for active review sessions. An agent stays attached to the local artifact, receives new comments as they arrive, revises it, and publishes the next immutable version without asking anyone to copy feedback back into chat. Publishing does not start this mode. The agent shares the review URL first and asks whether you want to enter live editing mode. Decline when you want to send the link to guests and collect comments asynchronously without keeping a local agent session active. ```text publish → listen → human comments → agent revises → publish again ``` ## Start listening After opting in, run `listen` from the same artifact folder: ```sh npx artifact-cafe@latest listen --json ``` `listen` is the live-loop entry point — the same thing as `comments --wait`, named for what it does. It does not run a local server or auto-republish on save; cutting the next version stays an explicit `publish`. The command snapshots the comments that already exist, then waits for a new thread or a new reply. While it runs, the review page shows **Agent is listening**, so reviewers know feedback left now can be acted on now. When feedback is handed over, the indicator flips to **Agent is editing**, and publishing shows **Agent is publishing** — reviewers watch the whole loop. ## What reviewers see One pill, morphing through the agent's states as the loop runs: