Skip to content
SecondStack SecondStack Docs

Agent Claude: Claude Code in a sandbox

Updated · Checked against SecondStack v3.7.2This page as Markdown
On this page
Labels on this page
Agent Claude, in the picker
AGENT CLAUDE
the sandbox dialog
Agentic Sandbox
the platform runtime
Cloud runtime
your computer as the runtime
Desktop App
the thread's files
Workspace
the Skills you add
User skills

Agent Claude is SecondStack’s way to run Claude Code in a long-lived sandbox per thread, on the platform host or on your own computer. It is a Chat App mode for developers, separate from the three kinds of agent. Every request it makes still passes SecondGate and SecondGuard.

The screen below shows Agent Claude in its thread at v3.7.2. The Agentic Sandbox dialog is open with the runtime, the SSH command, Open in VS Code and the workspace files.

Agent Claude· Chat App · AGENT CLAUDE
Add a /healthz endpoint to the API and run the tests.

Added GET /healthz in api/routes/health.py, registered it in api/app.py and ran the suite: 42 passed. The endpoint returns the service name, the version and the database check.

api/routes/health.py
Type your message here...
Attach files Tools Open runtime and sandbox files Sonnet 5.5 Agent Claude:-)
Agent Claude in its thread at v3.7.2: Claude Code works in the thread's sandbox, and the Agentic Sandbox dialog shows the runtime, the SSH command, Open in VS Code and the workspace files.

How a thread runs

Each Agent Claude thread gets one Docker container that runs Claude Code, and the container stays up while the thread needs it.

  1. In the Chat App, open the model picker and choose Agent Claude in the AGENT CLAUDE group. The entry with a smiley badge runs on your company’s Claude subscription. The entry with a $$$ badge bills the API and charges your budget. Your site shows one or both.
  2. Pick the runtime before the first message: Cloud runtime on the platform host, or your own computer through the desktop app. The choice is pinned for the thread.
  3. Write the task. Claude Code works inside the container with a terminal, the files you attach and the Skills your site provides. The answer returns to the thread with the files Claude Code made.

The container runs as a non-root user with sudo inside it, so Claude Code can install what a task needs. The default configuration allows up to 100 MiB per file transfer.

Where the sandbox runs

A sandbox runs on the platform host by default, and on your own computer when your administrator allows desktop runtimes and you turn Agent Claude on in the desktop app.

  • Cloud runtime uses a thread workspace on the platform host. An administrator turns it on with SERVER_RUNTIMES_ENABLED.
  • The desktop runtime uses a thread workspace or a folder you register, so Claude Code works on your own files. An administrator turns it on with DESKTOP_RUNTIMES_ENABLED, and the desktop app asks you once after sign‑in, with Use Agent Claude on this computer?, Turn on and Not now. It needs Docker on your computer. Chats and local connectors work without Docker.
  • In the default configuration a sandbox stops after 1 hour without workspace or SSH activity and after 48 hours in any case. An open connection alone does not count as activity. Add time in the Agentic Sandbox dialog extends the sandbox by 1 hour.
  • The default limits are 2 CPUs, 3 GB of memory and 20 GiB of disk, with a warning at 10 GiB.

SSH and VS Code

You can open the sandbox in your terminal over SSH, and in VS Code through its Remote - SSH extension, as long as your administrator has turned SSH access on.

  1. Add your public key under Settings in the Chat App. The Agentic Sandbox dialog then shows your SSH command, in the form ssh <user>@<host> -p <port>, with Copy SSH command beside it.
  2. Run the command in a terminal. The user name is derived from the thread, and only the person who started the thread can connect.
  3. Choose Open in VS Code to open /workspace in VS Code over Remote - SSH, which the extension must provide.

On the platform host the operator deploys the SSH gateway with SSH_PIPER_DEPLOY=true on port 2222 and lists the groups that may use it in SSH_RUNTIME_ALLOWED_GROUPS. The Kubernetes install uses port 32222. A sandbox fixes its SSH settings when it starts, so a change takes effect on the next sandbox. On your computer the desktop runtime keeps SSH off by default. When you turn it on, it listens on the loopback address only.

Skills in the sandbox

The sandbox ships 15 built-in Skills at v3.7.2, and you add your own under User skills.

The built-in set covers draw.io diagrams, a browser you can watch, retrieval over your Collections, managing your own Skills, and Anthropic’s Skills for Word, Excel, PowerPoint and PDF files, web artifacts, front-end and canvas design, themes, the Claude API and MCP server building, and co-authoring documents. Your administrator can add Skills for the whole organization. A Skill you add appears under User skills in the file dialog. Agent Claude does not offer the /schedule command, because Jobs belong to the three kinds of agent.

When a named agent is the better choice

Pick Agent Claude for software work, and a named agent when other people need the result or a role should outlive one conversation.

Agent Claude works under your own identity. A named agent has its own name, an owner, a budget, a record under its own name and a place in Projects and channels. The project agent answers for a whole Project. Which agent do I use? sets the four side by side.

What Agent Claude does not do

  • Agent Claude is a Chat App mode, separate from the three kinds of agent. It joins no Project, holds no Jobs and has no channel.
  • A sandbox on the platform host works on a thread workspace only. Your own folders need the desktop runtime.
  • The subscription entry and the API-billed entry never fall back to each other. A subscription out of capacity returns an error rather than billing the API.
  • The guardrails indicator of a turn does not show in an Agent Claude thread, although every request still passes SecondGuard.
  • Only the person who started a thread can connect to its sandbox over SSH.
  • Agent Claude does not run Git, gh and HTTP commands with your connected accounts in its own sandbox. At v3.7.2 those commands run in disposable agent workspaces.