You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once TaskSpec is finalized, publish prebuilt Task images for common workloads, so running one doesn't require writing and maintaining a Dockerfile:
Antigravity: runs a program that uses the Antigravity SDK.
Claude Code: Node.js and the claude CLI (@anthropic-ai/claude-code).
Codex: Node.js and the codex CLI (@openai/codex).
Jupyter: Python with Jupyter installed, so a task can run notebooks, for example with jupyter nbconvert --execute.
Browser: Playwright with headless Chromium, for web-browsing agents and end-to-end tests of web apps.
The images take care of the plumbing: MCP servers, skills, and other configuration declared in the task's Workspaces are set up in each harness automatically, so users don't have to configure every agent themselves.
apiVersion: ax.io/v1alpha1kind: Taskmetadata:
name: fix-testsspec:
image: gcr.io/ax-substrate/ate-images/claude-code # name to be decidedcommand: ["claude", "-p", "Fix the failing tests"]workspaces:
- name: default-workspace
API server
The coding agent images (Antigravity, Claude Code, and Codex) can also expose an API server, so clients can interact with the agent running in a task instead of only passing it a prompt through command. The protocol is TBD.
Live E2E check: Claude Code task image + mock Anthropic fake
We ran the Claude Code task image end to end on AX, using the mock-anthropic fake from agentexecutor/images#2 instead of the real API. These are the results and how the test is set up.
main @ 6887762 (ax-server + PostgreSQL, built from source)
Claude Code task image
Dockerfile.claude-code on top of the ax-task-runner image from the same commit; Claude Code 2.1.325
Fake inference server
fakes/mock-anthropic from agentexecutor/images#2 @ a1a71b4, unmodified, running as a Deployment and Service in its own namespace, outside the sandbox
How it fits together:
sequenceDiagram
participant H as Test harness
participant AX as ax-server
participant CC as Claude Code (runner, gVisor actor)
participant E as Substrate egress
participant F as mock-anthropic (in cluster)
H->>F: POST /_mock/reset
H->>AX: ax apply (Gateway + Task), ax resume
AX->>CC: resume actor, runner starts claude --print
CC->>E: POST /v1/messages (x-api-key from spec.env)
E->>F: allowed by the Gateway http rule
F-->>CC: SSE reply (MOCK_OK) or 401
H->>F: GET /_mock/requests (count, auth_ok)
Loading
Gateway: a single egress rule, http to the fake's Service hostname on port 8080. No allow-all.
Task:
spec.config sets prompt, model, maxTurns: 3 and dangerouslySkipPermissions: true.
spec.env sets ANTHROPIC_BASE_URL (pointing at the fake) and ANTHROPIC_API_KEY, a throwaway value that matches the fake's EXPECTED_KEY.
spec.gateway points at the Gateway above.
Assertions:
The fake's request log: count, path, auth_ok, key_presented.
The runner's log line for the command exit, plus the Claude Code output.
The AX task state.
Results
Case
Fake request log
Claude Code
AX task state
Happy path (correct key)
1 × POST /v1/messages?beta=true, auth_ok=true
Printed MOCK_OK, exit 0 about 1.4 s after start
Working / Ready=True
Wrong key
11 × POST /v1/messages?beta=true, all auth_ok=false
Invalid API key, exit 1 after about 3 min
Working / Ready=True
What we learned:
The image, the launcher, egress and the fake work together. The narrow Gateway rule was enough. With CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 (set in the image), Claude Code sent only /v1/messages: no count_tokens, no model listing, no side requests.
AX doesn't move a task to Completed or Failed when its command exits. Task state follows the actor's state only, so the task stays Working and keeps its worker until it is suspended or deleted. runner.Config.OnCommandExit exists but isn't wired to anything that reports the exit to the server. Until it is, "task reaches Completed/Failed" can't be asserted in E2E tests. This deserves its own issue.
A wrong key doesn't fail fast. Claude Code retried the rejected request 11 times over about 3 minutes before exiting. Every request had x-stainless-retry-count: 0, so these are Claude Code's own retries, not the SDK's. E2E time budgets for auth-failure cases need to allow for this, or the image should set a Claude Code retry limit.
Scripted tool use, fault modes, the Vertex path, suspend/resume and gateway credential injection aren't covered yet. They're next on the same setup.
Activity
MushuEE commentedon Nov 14, 2026
Live E2E check: Claude Code task image + mock Anthropic fake
We ran the Claude Code task image end to end on AX, using the
mock-anthropicfake from agentexecutor/images#2 instead of the real API. These are the results and how the test is set up.Setup
v1.0.0(published images), gVisor sandbox class, 3-worker gVisorWorkerPoolon GKEmain@ 6887762 (ax-server+ PostgreSQL, built from source)Dockerfile.claude-codeon top of theax-task-runnerimage from the same commit; Claude Code2.1.325fakes/mock-anthropicfrom agentexecutor/images#2 @ a1a71b4, unmodified, running as a Deployment and Service in its own namespace, outside the sandboxHow it fits together:
httpto the fake's Service hostname on port 8080. No allow-all.spec.configsetsprompt,model,maxTurns: 3anddangerouslySkipPermissions: true.spec.envsetsANTHROPIC_BASE_URL(pointing at the fake) andANTHROPIC_API_KEY, a throwaway value that matches the fake'sEXPECTED_KEY.spec.gatewaypoints at the Gateway above.auth_ok,key_presented.Results
POST /v1/messages?beta=true,auth_ok=trueMOCK_OK, exit 0 about 1.4 s after startWorking/Ready=TruePOST /v1/messages?beta=true, allauth_ok=falseInvalid API key, exit 1 after about 3 minWorking/Ready=TrueWhat we learned:
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1(set in the image), Claude Code sent only/v1/messages: nocount_tokens, no model listing, no side requests.CompletedorFailedwhen its command exits. Task state follows the actor's state only, so the task staysWorkingand keeps its worker until it is suspended or deleted.runner.Config.OnCommandExitexists but isn't wired to anything that reports the exit to the server. Until it is, "task reaches Completed/Failed" can't be asserted in E2E tests. This deserves its own issue.x-stainless-retry-count: 0, so these are Claude Code's own retries, not the SDK's. E2E time budgets for auth-failure cases need to allow for this, or the image should set a Claude Code retry limit.test/e2e: run a pure image with a launcher on the mounted runner
test/e2e: run a pure image with a launcher on the mounted runner
build: add the runner volume image (#619)
test/e2e: run a pure image with a launcher on the mounted runner
controller, substrate: mount the runner from a read-only image volume (…
test/e2e: run a pure image with a launcher on the mounted runner
runner: hand the task to the image's launcher as files (#621)
test/e2e: run a pure image with a launcher on the mounted runner
test/e2e: run a pure image with a launcher on the mounted runner (#622)
runner, substrate, e2e: address review follow-ups from #620–#622 (#624)
runner: use MkdirTemp for non-root RunDir fallback (#644)
hack/hero-demo: wire Step 3 to the starter launcher contract
hack/hero-demo: wire Step 3 to the starter launcher contract (#643)
rakyll commentedon Nov 25, 2026
This is done now.