ai newsMi., 25. Nov.
EilmeldungCan Claude’s storage webhooks miss an hour-long outage?

Claude Code, Codex und Gemini CLI unter Policy auf Sandscale betreiben

Ein Coding-Agent, der Dateien bearbeitet und Befehle ausführt, braucht zwei Arten von Grenzen: eine Abgrenzung seiner Laufzeitumgebung und Regeln für sein Verhalten darin. Der Beitrag zeigt, wie Sandscale beides für die drei gängigen Agenten Claude Code, Codex und Gemini CLI umsetzt.

dev.toFreitag 17:21 · 20.11.DE4 Min. Lesezeit
Bild: dev.to

Veröffentlicht am 20. November, ursprünglich publiziert auf sandscale.dev

Ein Coding-Agent, der Dateien bearbeiten und Befehle ausführen kann, benötigt zwei Arten von Begrenzungen: eine Grenze um den Ort, an dem er läuft, und Regeln dafür, was er innerhalb dieser Grenze tun darf. Dieser Beitrag behandelt, wie Sandscale beides für drei häufig genutzte Agents handhabt: Claude Code, Codex und Gemini CLI. Er zeigt außerdem auf, wo sich die Kontrollmechanismen zwischen ihnen unterscheiden, denn sie funktionieren nicht alle auf dieselbe Weise.

Alle Angaben hier stammen von sandscale.dev mit Stand vom 20. November 2026. Wir beschreiben ausschließlich Schritte, die die Seite dokumentiert. Wo ein Schritt nicht dokumentiert ist, sagen wir das, statt zu spekulieren.

1. Der Agent läuft innerhalb eines Sandscale-Workspace. Ein Workspace ist ein dauerhafter Cloud-Computer: Seine Festplatte bleibt erhalten, man öffnet ihn im Browser oder über SSH, und er stoppt bei Inaktivität. Man führt Claude Code, Codex, Gemini CLI oder einen eigenen Agent darin aus, und er arbeitet weiter, während der Laptop geschlossen ist. Workspaces sind ab dem Pro-Plan verfügbar. Stunden werden nur dem Plan zugerechnet, solange der Workspace läuft. Siehe Workspaces und die Workspace-Dokumentation.

2. Der Agent läuft auf dem eigenen Rechner und nutzt Sandscale-Sandboxes über MCP. Der Agent verbindet sich mit Sandscales MCP-Server und ruft Tools auf, um eine Sandbox zu starten, darin Befehle auszuführen, Dateien zu verschieben und sie zu stoppen. MCP funktioniert in jedem Plan.

Der dokumentierte Befehl für Claude Code lautet:

claude mcp add --transport http sandscale https://mcp.sandscale.dev/mcp Vollbildmodus öffnen Vollbildmodus beenden Beim ersten Verbinden öffnet der Agent eine Sandscale-Anmeldung und handelt danach in Ihrem Namen. Für Codex, VS Code, Windsurf, Claude und ChatGPT empfiehlt der Quickstart, einen Remote-MCP-Server mit derselben Adresse hinzuzufügen (https://mcp.sandscale.dev/mcp). Die Dokumentation zeigt zusätzlich eine Cursor-Konfiguration in ~/.cursor/mcp.json.

Was die Verbindung tun kann, laut Connect Claude or ChatGPT: Sandboxes starten, ausführen, pausieren, als Snapshot sichern und stoppen; Dateien hinein- und hinausverschieben; eigene Workspaces auflisten, starten und stoppen; Object-Storage-Buckets einsehen; und die Namen der eigenen Vault-Secrets auflisten. Was sie nicht tun kann: Vault-Werte lesen (nur Namen werden aufgelistet), im Namen einer anderen Person handeln oder ohne Aufzeichnung arbeiten. Jeder Aufruf landet mit Tool, Region, Ergebnis und App im Audit-Log der Organisation, niemals mit den Argumenten. Jede App kann bis zu 120 Aufrufe pro Minute tätigen, jede Person bis zu 60.

Das ist der Teil, den man genau lesen sollte. Sandscales Agent-Policy-Seite beschreibt drei Schritte:

Für Claude Code bedeutet das Durchsetzung: Jeder Prompt wird geprüft, und jeder Tool-Aufruf wird erlaubt, blockiert oder an eine Person weitergeleitet. Laut der Seite fragen Claude Codes Hooks vor jedem Tool-Aufruf und Prompt bei Sandscale nach.

Für Codex und Gemini CLI sagt die Seite, dass sie jeden Schritt melden, und die Sandboxes-Seite besagt, dass die Meldung über OpenTelemetry erfolgt. Die Seiten beschreiben für diese beiden Agents die Aufzeichnung; sie beschreiben nicht, dass ein Aufruf vor seiner Ausführung blockiert wird. Wer eine harte Blockade benötigt, sollte sich auf die Isolationsgrenze, die Network-Allowlist und die Richtlinien auf Planebene zu Templates, Größen und Laufzeiten verlassen und die protokollierten Aufrufe als nachträgliche Spur betrachten.

Der dokumentierte Umfang von Richtlinien, laut Approvals and Policies: welche Templates, Größen und Laufzeiten Mitglieder nutzen dürfen und welche Agents laufen dürfen. Approvals sind in jedem Plan enthalten; Richtlinien für Projekte gibt es mit Team und Enterprise. Außerdem existiert ein Kill-Switch auf Organisationsebene, der alle Agents sofort stoppt.

Wenn eine Richtlinie einen Aufruf als genehmigungsbedürftig einstuft, hält der Agent an dieser Stelle an. Eine namentlich benannte genehmigende Person genehmigt oder lehnt den Aufruf mit Begründung im Approvals-Postfach der Konsole ab, und niemand kann die eigene Anfrage genehmigen. Ein genehmigter Aufruf läuft einmal. Anfrage und Entscheidung landen im Audit-Log. Das funktioniert in jedem Plan, wobei Projekt-Richtlinien, die festlegen, welche Aufrufe eine Genehmigung benötigen, nur mit Team und Enterprise verfügbar sind.

Die Richtlinie liegt über der Isolationsgrenze, nicht an deren Stelle.

Für Coding-Aufgaben übergibt Agent Cloud eine Aufgabe an einen Agent wie Claude Code oder Codex, der in einem der eigenen Workspaces läuft. Man kann der Arbeit zusehen und sie pausieren oder stoppen. Das Ergebnis ist ein Branch und ein Pull Request zur Durchsicht. Jeder Schritt durchläuft die Richtlinien und Genehmigungen der Organisation und landet im Audit-Log. Agent Cloud ist ab Pro verfügbar, läuft in Workspaces und verbraucht die vCPU-Stunden des eigenen Plans.

Der Review-Schritt ist entscheidend: Das Ergebnis ist ein Pull Request, kein Merge. Eine Person liest den Diff, bevor er übernommen wird.

Wer es ausprobieren möchte: Die Preisseite zeigt, welcher Plan Workspaces und Richtlinien enthält, und der Quickstart enthält die MCP-Verbindungsbefehle.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

Posted on Nov 20 • Originally published at sandscale.dev

A coding agent that can edit files and run commands needs two kinds of limits: a boundary around where it runs, and rules about what it may do inside that boundary. This post covers how Sandscale handles both for three agents people commonly use, Claude Code, Codex and Gemini CLI. It also says where the controls differ between them, because they do not all work the same way.

Everything here comes from sandscale.dev as of 20 November 2026. We only describe steps the site documents. Where a step is not documented, we say so instead of guessing.

1. The agent runs inside a Sandscale workspace. A workspace is a persistent cloud computer: its disk survives, you open it in the browser or over SSH, and it stops when idle. You run Claude Code, Codex, Gemini CLI or your own agent inside it, and it keeps working when your laptop is closed. Workspaces come with Pro and up. Hours count against your plan only while the workspace runs. See workspaces and the workspace docs.

2. The agent runs on your machine and uses Sandscale sandboxes over MCP. The agent connects to Sandscale's MCP server and calls tools to start a sandbox, run commands in it, move files and stop it. MCP works on every plan.

The documented command for Claude Code is:

claude mcp add --transport http sandscale https://mcp.sandscale.dev/mcp Enter fullscreen mode Exit fullscreen mode The first time the agent connects, it opens a Sandscale sign-in and then acts as you. For Codex, VS Code, Windsurf, Claude and ChatGPT, the quickstart says to add a remote MCP server with the same address ( https://mcp.sandscale.dev/mcp ). The docs show a Cursor configuration too, in ~/.cursor/mcp.json.

What the connection can do, from Connect Claude or ChatGPT: start, run, pause, snapshot and stop sandboxes; move files in and out; list, start and stop your workspaces; look at your object storage buckets; and list the names of your Vault secrets. What it cannot do: read Vault values (it lists names only), act as anyone but you, or go unrecorded. Every call goes into your organization's audit log with the tool, region, outcome and app, and never the arguments. Each app can make up to 120 calls a minute, and each person up to 60.

This is the part to read carefully. Sandscale's agent policy page describes three steps:

For Claude Code, that means enforcement: each prompt is checked, and each tool call is allowed, blocked or sent to a person. Per the page, Claude Code's hooks ask Sandscale before each tool call and prompt.

For Codex and Gemini CLI, the page says they "report every step", and the sandboxes page says they report over OpenTelemetry. The pages describe recording for these two agents; they do not describe blocking a call before it runs. If you need a hard block, rely on the isolation boundary, the network allowlist and the plan-level policies on templates, sizes and run times, and treat the per-call record as an after-the-fact trail.

The documented scope of policies, from approvals and policies: which templates, sizes and run times members may use, and which agents may run. Approvals come with every plan; policies for projects come with Team and Enterprise. There is also an organization kill switch that stops its agents at once.

When policy marks a call as needing sign-off, the agent pauses on it. A named approver approves or denies it with a reason in the console's approvals inbox, and nobody can approve their own request. An approved call runs once. The request and the decision are in the audit log. This works on every plan, though project policies that mark which calls need approval are on Team and Enterprise.

Policy sits on top of the isolation boundary, not in place of it.

For coding tasks, Agent Cloud gives a task to an agent such as Claude Code or Codex running in one of your workspaces. You watch it work and can pause or stop it. The result is a branch and a pull request for you to review. Each step goes through your organization's policies and approvals and lands in the audit log. Agent Cloud comes with Pro and up, runs in workspaces, and uses your plan's vCPU-hours.

The review step matters: the output is a pull request, not a merge. A person reads the diff before it lands.

If you want to try it, pricing shows which plan includes workspaces and policies, and the quickstart has the MCP connection commands.

Originaltitel: Running Claude Code, Codex and Gemini CLI under policy on SandscaleQuelle: dev.to (dev.to). Original öffnen