The AX agent runtime is built on a simple claim: once an AI agent’s goal gets big enough, the work stops fitting in one process and starts looking like a distributed system. Its designers argue that the model, not a person, should decide how many agents to run and how to arrange them.
Why swarms behave like distributed systems
A big goal gets split into numerous tasks that run side by side, each in its own isolated environment. Something in the middle breaks the work down, hands it out, tracks progress and merges the results. Anyone who has run services will recognize the problems. Tasks lose time to coordination, compete for limited resources, disagree about shared state and fail independently.
Adding an agent is like adding a service. Capacity goes up, and so do waiting and the chance of agents stepping on each other. Past some point, keeping everyone in sync costs more than another agent contributes.
Six building blocks
AX treats a chat assistant, an autonomous agent that runs for hours and a swarm as one thing, assembled from the same parts in different amounts. Each part is its own object:
- Task: a stateful, sandboxed execution and the unit of work.
- Agent: the control loop that orchestrates tasks.
- Workspace: the image, data, files, skills, MCP servers and setup commands that produce a prepared filesystem snapshot.
- Gateway: the network rules for a task, which also injects credentials into outgoing requests.
- Model: the LLM used for inference.
- Session: an append-only log of inputs and outputs.
The same objects run a single agent or a swarm of a thousand, so moving between shapes doesn’t need a different system.
What a task guarantees
Each task gets its own filesystem and process tree. It has no network access beyond what its Gateway allows, and it has no view of sibling tasks, the host machine or the control plane. Raw credentials never enter it.
Tasks keep state: edited files, installed dependencies and running processes carry across steps. A task starts suspended, runs, can suspend again to wait for input, and finishes as completed or failed. Suspending saves a checkpoint of the sandbox and releases its compute, so parking a task costs disk space rather than processor time. Every task also has caps on processor, memory, wall-clock time, turns and tokens, and it stops by itself when it runs out. A task may not use a model at all; the same unit can wrap a coding agent, a plain test runner or a rollout script.
Who decides what the swarm looks like
Running a swarm is the mechanical part. Deciding its shape is harder: how many agents, whether they work alone or in teams, when they share findings and when to stop. Today those questions are answered either by letting a model improvise at each turn without firm limits, or by a person writing a fixed workflow in advance. The first is unbounded and the second is brittle, because the right answer changes from task to task.
AX splits the responsibility. Users own the trade-offs. They supply the goal, a spending budget, a deadline, limits and a means of checking the outcome. Models own the topology, including whether to swarm at all. The runtime owns enforcement, counting tokens, refusing task number 51 when the ceiling is 50 and killing runaway processes, without relying on the model’s good behavior. If a model overestimates how big to go, it should hit its budget instead of swamping the platform.
Five decisions and the verifier
Orchestration becomes a series of decisions revisited as results arrive. The five that matter most are whether to swarm, how to spend the budget, which model does what, what to share and with whom, and when to stop. Sharing is the delicate one. Share too much and large teams converge on one idea too early. Share too little and each lane walks into the same dead ends again. For now these are heuristics, with the longer-term aim of a trained policy learning them.
The verifier ends up being the most important input. Wide search only pays off when good results can be told from bad ones cheaply. With a test suite and benchmark, or a proof checker, it makes sense to try twenty ideas and keep what passes. A fuzzy check, like whether a report seems right, favors a single agent or a small team with a person reviewing. AX runs the verifier as a fresh, isolated task for each candidate so it shares no state with the work it judges.
What the runtime has to make cheap
Changing course is only practical if it’s cheap. AX starts every worker from the same prepared Workspace snapshot, so cloning repositories and installing dependencies happens once, and new tasks can start useful work within seconds. Parked tasks release compute that can be moved to a stronger lane and brought back later. Budgets are hierarchical: a child can never exceed its parent, with limits enforced at admission, at the Gateway and in the sandbox.
The Session doubles as a shared record of plans, discoveries, failed attempts and merges. The coordinator chooses what goes into each worker’s context, and a person can read the ledger afterward to see which lane found what. Each worker also sits behind the tightest Gateway that fits its role: exploration workers might see just the model API and package registries, and only rollout tasks get near production.
What to watch
The open question is whether models can judge swarm shape well enough to beat hand-built workflows. The designers say the current logic is heuristic, and a trained policy would come later. Teams evaluating the AX agent runtime should start with the verifier they can trust, since it sets how far a model should be allowed to scale.
Source: rakyll.org