Skip to content

hack: add a basic tour of features - #753

Merged
rakyll merged 9 commits into
mainfrom
tour
Nov 25, 2026
Merged

rakyll merged 9 commits into
mainfrom
tour

Conversation

@rakyll

@rakyll rakyll commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Adds hack/tour.sh, a guided tour of AX against the AX server of the current kube context. It prints each command before running it, waits for task state changes, and deletes everything it created on exit.

Steps:
0. Where AX runs: the current context and the runner image.

  1. The smallest Task: apply, resume, and inspect a minimal Task.
  2. A Gateway: the only way out of a sandbox.
  3. A Workspace with git, inline files, and commands setup, prepared once, snapshotted, and reused by every task.
  4. Bring your own agent: a stand-in agent that reads its goal, config, and MCP servers through the launcher contract.
  5. Suspend and resume, with progress kept in the workspace.
  6. Tasks are immutable: updating a Task's spec is rejected.
  7. Fan out: two tasks from one workspace snapshot, each with its own isolated copy.
  8. An agent on the Gemini API SDK (gemini-4-hydrogen) whose API key the Gateway injects, so the key never enters the sandbox. Skipped when GEMINI_API_KEY is unset.
  9. Atespaces: the same Task name in separate tenants.
  10. Models: create, update in place, and delete.

Usage: run make build-local-cluster, then ./hack/tour.sh.

  • AX_TASK_IMAGE defaults to the ax-runner image in bin/ax-runner.digest on localhost:5001.
  • TOUR_PAUSE=1 waits for Enter between steps, for presenting.
  • GEMINI_API_KEY enables step 8. The tour stores it in Secret default/tour-gemini-key.
  • TOUR_TIMEOUT sets the seconds to wait for a task state change (default 180).

Also:

  • hack/build-local-cluster.sh passes the runner volume image it builds to ax local start --runner-volume-image, so prebuilt agent images without a runner, such as Antigravity's, run on the local cluster.
  • AGENTS.md lists tour.sh under hack/.

hack/tour.sh walks through AX against the current context: a minimal
Task, a Gateway, a Workspace with setup, a Task bound to both, suspend
and resume, immutability, and Models. It prints each command, waits for
task states, and deletes what it creates on exit.
@rakyll rakyll self-assigned this Nov 24, 2026
@rakyll
rakyll marked this pull request as draft November 24, 2026 07:14
The tour now runs a stand-in agent that reads its goal, config, session
and MCP servers through the launcher contract and the metadata server,
shows Gateway allow and deny, keeps progress across suspend and resume,
fans out tasks from one workspace snapshot, isolates tasks by atespace,
and, when GEMINI_API_KEY is set, runs a Gemini API SDK agent whose key
the Gateway injects.
A temporary genai.Client() is garbage collected before the request is
sent, closing its HTTP client. Also end the answer with a newline.
build-local-cluster now passes the runner volume image it builds to
ax local start, so prebuilt agent images without a runner, such as
Antigravity's, run on the local cluster.
@rakyll
rakyll marked this pull request as ready for review November 24, 2026 20:11

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very useful. Left one check on the gemini-4-hydrogen model string and two small script nits inline; happy to approve once the model name is confirmed.

Comment thread hack/tour.sh Resolved
Comment thread hack/tour.sh Resolved
Comment thread hack/tour.sh Resolved

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM to unblock, saw c1398e2 switched intentionally to gemini-4-hydrogen. The two script nits (piping the secret via stdin and polling instead of fixed sleep) are fine as a follow-up.

@rakyll
rakyll merged commit 0bbe4f6 into main Nov 25, 2026
11 checks passed
@rakyll
rakyll deleted the tour branch November 25, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants