Skip to content
SecondStack SecondStack Docs

Agent workspaces and sandboxes

Updated · Checked against SecondStack v3.7.2This page as Markdown
On this page
Labels on this page
Aster, the personal agent
Personal Assistant
the workspace file browser
Agent workspace
taking over the browser
Take control (pauses the Agent)
handing the browser back
Give back and resume
capability switches on a named agent
Agent capabilities

An agent workspace is the isolated sandbox where an agent runs its tools and keeps its files for the conversation, with a browser you can watch and take control of. Every conversation with Aster (Personal Assistant in the app) or with a named agent gets its own workspace the first time the agent needs one, and your model keys, tokens and other conversations never enter it. On the product map this is the Workspaces node between Agents and SecondGuard.

The screen below shows the live browser card in a chat, with the agent on a web page and the Take control (pauses the Agent) button that hands the browser to you.

Live browser· Chat App · agent turn
https://portal.example.com/invoices Agent is browsing
The Agent asks you to take control of the browser. Decline Take control (pauses the Agent)
The live browser card at v3.7.2: the agent's browser streamed into the chat, the address of the page it reads, and Take control (pauses the Agent) to sign in or pass a check yourself.

One workspace per conversation

Each conversation gets one workspace of its own, and the agent starts it only when a task needs it.

A workspace belongs to one agent in one thread: a Project thread gives each agent its own, a forked conversation starts a fresh one, and the helpers an agent spawns share their parent’s. Reading a file, a Collection or your Memory never starts one; the first shell command, file write or web page does, and the chat shows Waiting for a free workspace when every workspace is busy, for up to five minutes, before it gives up.

Inside the workspace the agent has a shell, a file system, Python with common data and document tools, and a headless Chromium browser. Outside it, and never inside, run the reads of your Chat files, Collections, Memory and Project, and every connection and MCP tool: a connection’s credentials are signed in by the platform, so the workspace holds no token and no model key. The workspace has no direct network. Its traffic goes through an egress proxy over HTTPS on port 443 only, so plain HTTP, WebSockets and other ports fail.

Under the hood each workspace is a SecondBox microVM on Firecracker, or on gVisor on an amd64 host without KVM; Self-hosting covers the host side. The workspace’s compute stops after 60 seconds idle and starts again on the next command, which keeps /workspace and drops everything else: a package installed outside /workspace, a file in /tmp and any running process, including the browser.

Files in the workspace

You can browse, upload and download the agent’s files from the composer, and they stay with the conversation.

  1. Choose the Agent workspace button in the composer. Before the agent has used a workspace, the button offers to open one so you can add files.
  2. Upload files adds yours, New folder organizes them, and Download or Download selected items fetches what the agent made. Delete frees space when the workspace is full.
  3. Write your next message. On its next turn the agent finds the files you added.

A file you attach to a message is copied into the workspace on request, with the step Copy file to workspace, and a named agent gets every attachment as is. A file the agent makes reaches the chat only when the agent sends it, and a named agent can also publish one to a Collection. One file may be 100 MiB at most, in either direction, and the agent sends up to 10 files and 100 MiB per turn.

Files last as long as the conversation: idling, archiving and the compute stop never delete them, and deleting the chat deletes its workspace files too. /clear starts the context fresh and keeps the files and processes. In a Job set to start a fresh conversation, every run gets a new workspace, so files from earlier runs are not kept. In a Project thread you can browse the workspace, and the agent adds files on its own turns.

The live browser and Take control

The agent browses in its workspace, you watch the page in a card in the chat, and you can take the browser over to sign in or pass a check.

The card streams screenshots of the agent’s browser at 1280 by 800 pixels; it is not video. The agent can ask you to take over, which you accept or Decline, and you can take over yourself with Take control (pauses the Agent). The app then shows a notice before you start: the agent pauses while you are in control and continues when you give the browser back, and anything you enter, including logins and passwords, stays in the agent’s workspace browser, where the agent can read it. In control you click the page to type into it, with Back, Forward, Reload, an Address bar for HTTPS pages and New tab, up to 8 tabs. Give back and resume returns the browser, and the agent continues in the tab you left active. A session you hold ends after 10 minutes without input, and a login you made stays in that workspace’s browser for the rest of the conversation.

Everyone with the right to post in the thread can watch and take control. In a shared thread, a participant without that right sees a static picture. A named agent whose Internet access is off has no browser at all.

For administrators and agent owners

A site turns capabilities off per chat profile, a named agent’s manager turns them off per agent, and the operator sets the workspace size.

  • On a named agent’s page, Settings → Tools lists Agent capabilities with the line “Turn off what this Agent does not need.” The switches are Shell and files, Send files, Ask questions, HTML widgets, Task plan, Charts, Delegation, Helpers, Boards, Chat actions and Sites, with separate toggles for Web search, Code execution and Image generation, and the Internet access switch, on by default. There is no browser switch: the browser follows Shell and files and Internet access.
  • A site switches capabilities off per chat profile with metadata.agentPlatform.tools in its chat-profiles.yaml. Named agents covers the per-agent switch in its context.
  • The operator sizes new workspaces with the SECONDBOX_AGENT_WORKSPACE_VCPU_COUNT, _MEMORY_MIB and _DISK_MIB settings; left blank they give 1 vCPU, 1024 MiB and 2048 MiB, up to 4 vCPU, 8 GiB and 50 GiB per workspace on Firecracker. An existing workspace keeps its size. The wait for free capacity is AGENT_PLATFORM_WORKSPACE_CAPACITY_WAIT_MS, 300000 by default.

What agent workspaces do not do

  • A workspace never holds your model keys or connection tokens. The one exception is the SSH key the platform makes for an SSH Server connection.
  • A workspace never carries over between conversations. What persists across them is your Memory, your Collections and your files in the Chat App, never the sandbox.
  • A workspace has no direct internet. Everything goes through the egress proxy on port 443, so plain HTTP and WebSockets fail.
  • A workspace cannot be resized once it exists, and an arm64 host has no gVisor fallback.
  • The browser view is a stream of screenshots, and the browser restarts with the workspace after an idle stop.
  • The file browser, the live browser view and site publication do not wait for free capacity. Only the agent’s own tool call waits.