How agents use pages

What an agent can do with a tab, the artifacts it makes for you, and pages that need a password.

Edit on GitHub

An agent drives its desk tabs through Sikemux’s browser_* tools. It can:

  • read a page as numbered elements and text, or just the part around a phrase or at its end;
  • click, type, press keys, scroll and drag;
  • run a script in one page with browser_evaluate, or a whole flow across tabs with browser_drive, a sandboxed script that drives several tabs at once, picks options, uploads files, answers page dialogs and saves downloads;
  • wait for a page to reach a state, such as text appearing, a streamed answer settling, the network going quiet or a script’s check coming true;
  • take screenshots, draw on them and record the tab;
  • read the network calls and console messages of the page.

You see each of these happen on the desk. Every browser tool can name the tab it works on, so an agent can drive several at once; a tab it opens in the background never takes the front from you.

A page’s alert, confirm or prompt shows inside its own tab, never as a box over the whole window. One raised in a tab you aren’t looking at waits for the agent to answer it.

In YOLO, an agent can upload any file to a page with browser_upload. In the other modes it takes files only from the project and its checkout, temporary folders, attachments, downloads and recordings; for anything else, the agent asks you to add the file.

Artifacts

When an agent has something to show you, such as a report, a comparison or a mockup, it writes it as a web page, or as a Markdown file that Sikemux sets as a plain page that reads well in light and dark. An artifact keeps its own look: it doesn’t take on Sikemux’s theme. It checks the page off screen first with page_preview, which shows it the top of the page at desktop size and warns of text running off the side, fonts that failed, text too faint to read and controls left unstyled, then shows it with page_show, and its reply carries a card with the top of the page and its title. A write-up opens with the point and what to do, and folds its evidence away.

An artifact opens on the desk of the chat you open it from, in the desk’s preview tab, whose title is in italics: the next artifact you open takes its place. Double-click the tab, or ⌘-click or middle-click the artifact, to pin it in a tab that stays; pin and unpin from the tab too, and right-click it to copy its link or close the other tabs or every unpinned artifact. A new version of an artifact with the same title replaces it in its tab, but never while you are reading it: the bar then offers the update instead. An agent working on its own, with you elsewhere, posts its card without opening a tab. Unpinned artifact tabs don’t come back after a restart. From a notification or the notch it opens on the desk of the agent that asks, and from the Artifacts page or a sikemux://artifact link, on the desk of the agent in front. A page loads the pictures, frames, stylesheets and scripts it names by a relative address from the folder it was written in, unless that folder is your home folder, Downloads or the like, and holds up to 25 MiB.

Artifacts on the tab rail (⌘⌥8, or Ctrl+Alt+8 on Linux and Windows), beside Agents, Terminals and Files, lists what agents showed in the project, one line each with its title and the time it has left. Window › Artifacts opens the same page. Search finds one by title, by its agent or by its ID. Working comes first: the artifacts open in a tab on any agent’s desk of the project, with a coloured icon, where a click goes to the tab. The rest sit in Kept, Shared and Expiring. Each section has the last updated first.

An artifact’s header on the desk starts with the artifact icon and a dot before its title, with its icons on the right: its history, Share and the bookmark, Keep. Click the title to switch between the artifacts this chat and its workers showed, or close them together, or step through them with ‹ i/N ›. The address and the back and forward buttons come once a link in it takes the tab to a website. Only the composer floats over the artifact, and sends to the desk’s agent with the artifact attached. On an artifact an ask links, what you type goes to the asker as a note and leaves the ask open; Open in Asks in the artifact’s bar opens the ask to answer it.

  • Keep holds an artifact until you let it go. Its icon is a timer until then, and hovering it says when the artifact goes; kept, it is a lit pin. One you don’t keep goes 7 days after it was shown, or a day after its ask settles. An agent can show one already kept.
  • Share makes a link, for 1 hour to 30 days, that anyone with it can open or only people signed in to Sikemux, at app.sikemux.com/p/. Sharing keeps the artifact, and the link shows its latest version. Sent in a chat app, the link previews with a picture of the artifact’s title and the sharer’s name; the share dialog says Sikemux’s server and chat apps can read those two, while the artifact itself stays sealed. A link shared before keeps the plain preview until it is shared again. An agent can share or stop sharing an artifact for you too, signed-in Sikemux accounts only unless you ask for anyone, and so can your phone. An open link checks for a newer version when you come back to its tab, and keeps your place on the page. Small video, audio, scripts and stylesheets beside the page go along, up to 25 MiB in all; Sikemux says so when media is over that or can’t be shared.

Showing the same title again makes a new version. Ask an agent for one you saw before and it finds it with page_list and shows it again rather than making it anew.

On a Mac, pinch or double-tap with two fingers to zoom an artifact or an HTML file’s preview, and move around it with two fingers. The bar’s −, 100%, + and Fit do the same, as do ⌘+, ⌘− and ⌘0. The next one opens at its own size. Export saves the artifact as a PNG or a PDF.

Reviewing a mockup

Pin in an artifact’s bar turns on pin mode. Click an element, write what to change, and the pin is numbered on the page; add as many as you like, then send them together, or send a single one straight away. The agent gets each note with where the element is, its markup and a picture of the spot. Pins stay on their elements in the artifact’s later versions. Shift-click an element to put it in the composer as a chip instead, and change an element’s text or hide it right on the page to hand the agent that edit.

The Vault

Settings → Vault keeps what agents fill into forms for you, encrypted on this host:

  • Contact details: your personal or business profile, addresses, tax numbers and fields of your own.
  • Passwords & keys: API keys, logins and 2FA seeds, kept in Sikemux’s Vault or linked from 1Password by an op:// reference (see Secrets from 1Password). A 2FA code is made on the host as it fills.
  • Cards: a card’s number and CVC never reach an agent, and a CVC is never saved.
  • Documents: files such as an ID or an agreement, up to 25 MB, for a page to upload.
  • History: every fill, upload, approval and save, without the values.

Search vault… looks through every tab at once. Click an item to fold it open: it shows its fields, whether it will Ask before filling, and Who can read it. Add custom field adds a field of your own to any item, and its More menu has Edit… and Delete….

An agent fills a page from the Vault without seeing what it fills: Sikemux types the values into the page on the host, and uploads a document without the agent reading the file. Each item can name the sites it may go to. When an agent meets a form whose values aren’t in the Vault yet, its chat shows a card to enter them, with Save to Vault & fill or Use once. The agent may fill in what isn’t secret ahead, such as a company name or a document’s number, and name a file on the host to attach, so saving a document can be one click. Secrets, card details and their fields are always yours to type. The card scrolls with the chat, and its foot says the values are Sealed on this host. A fill that needs your yes shows Approve with Touch ID in the chat, and a card payment always does; Always allow on a site stops asking there.

Pages that need a password

An agent never asks you to paste a password into its chat. When it needs one, it asks a secret question. You type or paste into a field that hides your text and keeps its line breaks, your answer goes straight to the agent as a file only your account can read, and the transcript shows only that it was answered.

A site that asks for a username and password before it loads, by HTTP Basic or Digest sign-in, gets a banner in its own tab rather than a box over the window: type them there, with the eye to show the password, and it says so when they were wrong. An agent can fill it from a Vault item you allowed for that site, without seeing what it fills; the first time on a site it asks you.

Fields inside a frame from another site, such as a card field or a sign-in widget, can’t be read by the agent. It can still click into them and type at the caret.

Apps on your computer

Agents can drive other apps on your computer, not only pages, with desktop_drive, on a Mac, Windows or Linux. Sikemux downloads a small helper, sikemux-desktop, the first time an agent needs it. The agent reads a window as its accessibility tree, then only what changed, and takes screenshots. Most clicks and typing go to the app in the background; one that has to bring the app to the front waits for its turn and checks the window is still the one it meant. It fills from the Vault without seeing what it fills, as on a page. Press Escape to stop an agent driving an app at once.