Desk tabs

Each agent's browser tabs, beside its chat.

Edit on GitHub

Every agent has a desk: the pane beside its chat where it opens pages, files and process terminals for you. ⌘J shows or hides the desk of the agent in front.

Its tabs, web pages, files, terminals, mods and a simulator, sit in one strip in the order they arrived. + at its end opens Browser, File, Terminal, Simulator (on a Mac) or Artifacts, and Show desk alone (⌘K) gives the desk the whole view. Tabs keep a title you can read, and when many are open the strip scrolls. Asks, behind the bell, and Tasks stay in the corner. The bell counts the asks the agent has waiting on you; Asks shows each as a tab named by its title, where you answer it.

Simulator, under +, shows the iOS simulator or Android device the agent attached. Before it attaches one, the desk shows a device already running, else an iPhone, else an Android device; click the device’s name to pick another, and Start to boot one that is off. Beside Home, Lock and Turn (and Back on Android), its bar saves a screenshot to the Desktop and shuts the device down, asking first while an agent is using it. The agent’s device tools then use the device you picked.

An agent that asks for a simulator without naming one takes the warmest free device: one already running, else one booted before, else its project’s own. How many simulators run at once follows your Mac, counting every one that runs, whoever started it: about one for every three cores, fewer when free memory would not hold another, and none more while the Mac is busy. A device that was never booted boots alone, since a first boot is the heaviest. When there is no room, a booted device no agent is using gives way at once; otherwise the agent waits in line and is told its place and which agents hold the running devices, for up to five minutes; an agent that has not used its device for ten minutes gives it up to one waiting.

Android emulators run with no window of their own and show only on the desk. Phones plugged in with USB debugging on are listed too, and don’t count toward how many simulators may run. When an agent attaches an emulator, display size, density and font scale left changed by an earlier session go back to the emulator’s own. When an emulator is short of space, installing an app clears caches first, and then removes the old copy before installing again. With no Android SDK on your computer, the device menu offers Set up Android Emulator. Nothing connects to dl.google.com until you press Set up: Sikemux then downloads Google’s platform tools, emulator and one Google Play system image, about 2.6 GB, into its own folder, makes a Pixel to run them on and starts it, with no Android Studio or Java. An SDK you already have, such as Android Studio’s, is used instead. Settings → Developer → Phones and simulators shows how the iPhone and iPad simulators and Android stand at a glance, and offers the same setup on the Android row.

A page’s tab shows a spinner in place of its site icon while it loads, and a globe when the site has no icon. The bar over the page has back, forward and reload (⌘[, ⌘], ⌘R) and the page’s address. Open in default browser, beside the snip button, opens the page in your own browser, a local page as its file. ⌘⇧T opens a new page. Right-click a tab to close it, copy a page’s link, or copy a file’s path or relative path, or reveal it in Finder.

⌘L opens an address field over the middle of the page, which dims under it. As you type, it finishes a site you have visited before and lists the pages that match, with a Google search when what you typed reads as one. With nothing typed it lists the sites you visit most. The arrow keys pick a row, Return opens it, and Escape or a click anywhere else closes the field.

When you ask an agent to open, show or preview a page, it opens the page on its desk rather than in your own browser, so you watch the same page it reads.

A link in an agent’s reply opens on its desk too, as a tab of its own; ⌘-click opens it in your own browser instead.

Snips

The snip button at the right of the address bar (⌘⇧X) turns on snip mode. Drag a box over the page and it goes straight into the draft of the project’s chat in front, as a picture at the cursor, like a pasted one, so where you put it in your message says what it is about. The agent also gets the page’s address and the elements inside the box. A click, rather than a drag, adds the element under the pointer the same way, outlined as you move over it. Snip mode stays on, so each drag or click adds another; press Escape on the page or the button again to turn it off. With no chat open, Sikemux starts one with your first agent.

To leave notes on an agent’s artifact instead, use its Pin mode.

Browser profiles

A browser profile keeps its own cookies and sign-ins, so one site can be open as two accounts. Each tab opens in one, picked in this order: the profile the project pins on the Playbook’s General, then its Space’s profile, then the global default.

The pill in a tab’s address bar shows its profile; with only one profile it’s just an icon. Click it to switch the tab, which reloads it as that profile, or to open a new tab in another from the button on that profile’s row. New profile… opens a box asking for a name, with Agent access folded under it, and creates it in place: from the pill it also switches the tab. The same picker sets a Space’s profile, from Browser Profile when you right-click the Space or in Edit Spaces…, and the Playbook’s pin, where Follow space leaves it to the Space.

Settings → Browser lists every profile under Profiles, the default one marked Default on its row. Click a row to fold it open: rename it, write What it’s for so agents know when to pick it, see what uses it under Used by, and set Agents may use it. Its More menu has Make it the default, Clear its site data… and Delete profile…. Agent access is one of:

  • Standard: agents pick it on their own.
  • Ask outside project: agents ask before using it outside its project.
  • Manual only: only you pick it; agents never do.

Agents open tabs in the profile the project resolves to, and can name another on browser_navigate or browser_drive where its access allows.

Tabs agents leave behind

An agent goes back to its own tab on a site rather than opening another. When its turn ends, Sikemux closes the agent’s tabs but the one in front and those showing a page or file from your Mac, such as artifacts; the one in front stays open until a later turn moves on from it, and closing the chat or teammate closes them all. A finished teammate stays open while any of its tabs is still live on its desk. A teammate working in the background puts its desk beside yours without switching your tab or taking focus, so its tabs are there as soon as you open it. Tabs you opened, clicked or typed in are yours: the agent can still use them, but they stay open until you close them or the agent takes one to another site. An agent holding six tabs of its own closes the one it used least recently before opening another. ⌘⌥T opens the tab closed last on the desk in front again.

What tabs open

  • http and https pages.
  • Local files and folders: give the agent an absolute path, a ~/ path or a file:// URL; a folder opens its index.html. Sikemux serves the page from a private address on your computer. Inside a git project, the files beside it load too, so relative links and images work. Anywhere else, including Downloads, Desktop and other folders that gather files from anywhere, a page sees only itself. Folders are never listed.

Downloads

Files a page downloads wait in a folder of Sikemux’s own, marked as downloaded from the internet, and Sikemux shows a notice for each, unless it came from a tab in the background. Click Keep in Downloads to move it into your Downloads folder and show it in Finder; files you don’t keep are cleared after a week. A page that starts more than eight downloads in half a minute is stopped.

Size

A tab’s page follows the pane’s size. The width chip at the right of the address bar names the size the page lays out at. Its menu, or an agent checking a layout, holds the tab at a set size instead: Phone (390×844), Tablet (820×1180) or Desktop (1440×900). Fit lets it follow the pane again. The page is scaled down to fit the pane, never up. The phone size also sends iPhone Safari’s user agent, so sites serve their phone version. Each tab keeps its size.

All three keeps the page live at one width, the phone’s unless the tab was held at another, and shows pictures of it at the other two widths beside it, each with the time it was taken. Sikemux takes them in a view of its own off screen, loading the page again at each width, so the live page and whatever you’re typing in are left alone. It takes them again once the page has loaded anew and stayed still for a moment, so a dev server reloading on every save is taken once its reloads stop. Click a picture to make that width the live one. When the agent’s turns took the page in front, as a chat shows under its replies, All shows those pictures and when they were taken in place of its own.