Automaton¶
WARNING
This documentation is almost entirely "vibe coded"; while a helpful resource for humans and agents to understand this codebase, it should not be considered a source of ground truth in the way documentation normally is, and the user is responsible for verifying that all instructions given here are safe.
Automaton is a general-purpose engine for running autonomous coding agents inside hardened, reproducible sandboxes. It builds layered Charliecloud containers, brokers all model traffic through a loopback-only model proxy, runs an agent to produce a deliverable inside the container's workspace, and lets you run arbitrary non-agentic code against that deliverable.
Automaton is content-free: it ships no concrete harnesses, container templates, or tasks. You supply those as inputs. This makes it reusable across projects — for example, ABC Runner uses Automaton to run benchmark agents and then verifies their deliverables.
What it does¶
- Builds layered sandboxes. A generic
base -> harness -> runtimecontainer build pipeline. You provide the Dockerfile templates and describe your runtime layers; Automaton renders, builds, and materializes them. - Runs an autonomous agent in a sandbox.
Sandbox.run_agent(...)starts a loopback-only model proxy (which injects auth, honors provider TLS, records per-request usage/cost, and retries dropped upstream requests within a bounded deadline), launches the harness inside the container with no direct network access, and returns a content-agnosticExecutionResult. The agent's deliverable is left in the bind-mounted workspace directory. - Runs arbitrary code in the same sandbox.
Sandbox.run_command(...)runs any command inside the container (loopback-only by default, no model proxy) — the general-purpose path for setup, tooling, or verifying a deliverable.
Core concepts¶
AutomatonConfig— providers, models, agents, and harnesses.Agent— a harness paired with one or more resolved models.Harness— how an agent is invoked (run script + prompts), loaded from an explicit directory you supply.ContainerManager/ContainerLayout— the layered build mechanism; the layout tells Automaton where your templates live and what runtime layers exist.ModelProxy— the loopback-only broker between the sandboxed harness and upstream model APIs, with usage accounting.Sandbox/ExecutionResult— sandboxed execution of agents and commands.
Two entry points¶
Automaton exposes two ways to execute inside a built container:
run_agent¶
Runs an autonomous agent (a harness driving one or more models) inside a
Charliecloud sandbox. Model traffic is routed through the loopback-only
ModelProxy. Returns an ExecutionResult containing execution facts, the
workspace path, and per-request usage/cost records.
run_command¶
Runs an arbitrary, non-agentic command inside a container. By default runs with loopback-only networking and no model proxy. This is the general-purpose path for running setup, tooling, or verification code against a workspace.
Installation¶
Requires Python 3.10+ and, for container operations, Charliecloud
(ch-image, ch-convert, ch-run).
Status¶
Automaton is a young, one-person project extracted from ABC Runner. The public
API surface is exported from the top-level automaton package.
License¶
MIT