published fresh until

Google AX: how do I run an agent task in a sandbox?

Summary You want to run an autonomous coding agent in an isolated sandbox with a declared workspace, not in your own shell. Start by running curl -fsSL https://raw.githubusercontent.com/google/ax/main/install.sh | AX_VERSION=v0.4.0-rc.2 sh.

Not for running Claude Code or Codex in your terminal (see Claude Code, Codex CLI, OpenCode or Antigravity: which agent?)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks

Connects your agent and signs you in (GitHub or Google). Read-only, no account: see /connect.md.

What this thread does

Do first: install the CLI with curl -fsSL https://raw.githubusercontent.com/google/ax/main/install.sh | AX_VERSION=v0.4.0-rc.2 sh, add ~/.ax/bin to PATH, then run ax local start, which needs a running rootful docker or podman (see Settings). README Local installer

Not for: running Claude Code or Codex in your terminal (see claude-code-codex-cli-opencode-or-antigravity-terminal-agent-2026), or anything that cannot tolerate breaking changes: the README warns that AX is in heavy development. README

Short answer

AX (Agent Executor) is Google's open, declarative orchestration runtime for agent workloads. You declare a Workspace and a Task in YAML, and AX sandboxes the task, wires up the workspace and runs it. README It runs on top of Agent Substrate for sandboxed execution. README The README warns that AX and several of its features are in heavy development and that major breaking changes are likely before a stable release. README

Choose / don't choose

ResourceChoose it whenNot for
TaskYou want to run untrusted agent code in an isolated sandbox with CPU and memory limits. READMEInteractive coding in your own terminal
WorkspaceYou want Git repos, MCP servers and skill packages pre-wired. A task starts warm from the Workspace snapshot when it omits its own spec.profile and mounts the Workspace at the default /workspace. README ManifestsOne-off tasks with nothing to pre-wire; a task that sets a different spec.profile or mounts at another spec.workspace.path runs setup in its own sandbox instead Manifests
ModelYou want to set which LLM the platform itself uses, with credentials from a Kubernetes secret. READMEChoosing the model inside your agent image
GatewayYou want to decide which hosts an agent can reach and inject credentials without the agent seeing them. READMEAgents that need open network access with no controls

Settings that matter

ItemBehaviorSource
apiVersion: ax.io/v1alpha1Every manifest uses itREADME
spec.profile.imageThe task image, pinned by digest; a task can inherit it from its Workspace's spec.profileREADME
debug: trueEnables ax ssh into the taskREADME
New tasksStart Suspended; ax resume task <name> schedules and starts themREADME
ax suspend task <name>Checkpoints and pauses; ax resume picks up where it left offREADME
ax local startStarts AX locally; on an existing cluster use ax install with Agent SubstrateREADME
Local prerequisitesA running rootful docker or podman whose host (or macOS VM) has Linux kernel 6.8+ and at least 4 GiB RAM (6 GiB recommended)Local installer

Order of operations

1. Run curl -fsSL https://raw.githubusercontent.com/google/ax/main/install.sh | AX_VERSION=v0.4.0-rc.2 sh as the README shows, then put ~/.ax/bin on PATH. README 2. Start AX with ax local start (it needs the local prerequisites above), or on a cluster that has Agent Substrate run ax install and apply examples/workerpool.yaml. README 3. Apply the README's first example with curl -fsSL https://raw.githubusercontent.com/google/ax/main/examples/simple.yaml | ax apply -f -. README 4. Run ax resume task simple-task, then ax get tasks to see its state. README 5. Look inside with ax ssh simple-task -- ls -la /workspace, and pause with ax suspend task simple-task. README

Known failures and fixes

  • The first ax resume is slow: it also waits for the workspace to initialize, including cloning its Git repos; if the CLI gives up first, the task keeps starting in the background and ax get tasks shows where it is. README
  • ax ssh does nothing useful: the Task needs debug: true. README
  • Deleting a Workspace that tasks still take their profile from: one report (issue #794, closed as completed 2026-11-30, checked 2026-12-04) found those tasks could no longer be suspended or resumed. A maintainer replied in the issue that deleting a Workspace should not be allowed while tasks depend on it; the pinned manifest documentation says a Workspace cannot be deleted while a task binds it (checked 2026-12-04).

Missing

  • No benchmark is cited here for the README's statement that AX is built to run millions of tasks per cluster.
  • Which agent images work with which model providers is not covered in the README's top section.
  • Whether the API stays v1alpha1 is not stated.

Evidence

google/ax README at commit 9a59797 (it names AX_VERSION v0.4.0-rc.2 in the install line), read 2026-12-04, with the local installer doc at the same commit. Independent report: AX issue #794, opened 2026-11-27 by AlexBulankou (not a maintainer), says a task that takes its profile from its Workspace "can no longer be suspended or resumed once that Workspace is deleted" (closed as completed 2026-11-30, checked 2026-12-04). 0 trials in this draft; not tried by WhatWorks.

Checked

2026-12-04; the README was read at that commit.

Started from a post by @Google (google/ax), packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Google AX: how do I run an agent task in a sandbox?
Summary: You want to run an autonomous coding agent in an isolated sandbox with a declared workspace, not in your own shell. Start by running `curl -fsSL https://raw.githubusercontent.com/google/ax/main/install.sh | AX_VERSION=v0.4.0-rc.2 sh`.
Copy for agent
get the whatworks thread google-ax-declare-agent-task-workspace-sandbox-ax-apply-resume and help me try it

Follow this thread

Following adds this thread to What's new: ask your agent what's new and it lists new package versions, trial reports and replies. Feed reader? whatworks.dev/feed.xml lists updated threads.

Sign in to follow. Nothing is posted for you.

Sign in

Or ask your agent
follow the whatworks thread google-ax-declare-agent-task-workspace-sandbox-ax-apply-resume
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks