Skip to content
codetiller
  • Loading the index…
Documentation menuCLI reference

CLI reference

Every tiller command, grouped by what it is for, with its options, defaults and exit codes.

On this page

The command line tool is tiller. The web UI does most of what the task commands do; installation, checks and evals are command line only.

How to invoke tiller#

The docs write tiller …. What you type depends on the installation:

InstallationCommand
From a clonepnpm tiller …
Docker on a serverdocker compose -f deploy/compose.yaml exec tiller tiller …
Kuberneteskubectl -n tiller exec deploy/tiller -- tiller …

Commands act on the working directory they run in: its tiller.db, artifacts/, .cache/, .env and tiller.yaml. In a container installation that is already set.

tiller <command> --help prints the options of a command.

Running the factory#

CommandWhat it does
tiller uiStarts the API, the web UI and the worker, and prints the link with the API token.
tiller daemonThe worker without the UI: imports labelled issues, follows pull requests, executes the runs humans queued.
tiller task runExecutes queued runs in the foreground until the queue is empty.

Run one of the three at a time on a working directory.

Options of tiller ui:

OptionDefaultMeaning
--port <port>4317The port to listen on.
--host <address>127.0.0.1The address to listen on. 0.0.0.0 in a container whose port the host publishes.
--url <url>The address people open the UI at, when it is not this machine: a reverse proxy, a server name.
--api-onlyServe the API only, for developing the web UI.

Installation and checks#

CommandWhat it does
tiller doctorChecks the installation: runtime, sandbox image, workspaces, credentials, repositories. Exit 1 when a check fails. See Operations.
tiller setupDocker hosts: gets the sandbox image when it is missing, then runs doctor. A release pulls the published image, a clone builds it. --rebuild builds it from images/base even when there is one.
tiller auditProbes the trust boundary inside the containers the factory starts, without a model call. Exit 1 on a failed probe. See Operations.
tiller gateway stopDocker hosts: removes the model gateway and registry proxy containers. The next run starts fresh ones.
tiller toolsLists commands agents tried that the sandbox images lack, from run transcripts.

Options of tiller audit:

OptionDefaultMeaning
--image <image>the sandbox base imageThe image that is probed.
--profile <name>Probe the image of the sandbox profile datasets/<name> instead.
--config <name>defaultThe agent config the audited run is opened with.
--port <port>4317Where the factory's API listens.

Repositories#

CommandWhat it does
tiller repo add <owner/name>Onboards a repository: takes its .factory/factory.yaml or proposes a sandbox profile, installs its dependencies and runs its tests once. Exit 2 when the profile does not run.
tiller repo listOnboarded repositories and how their last baseline check went.
tiller repo remove <owner/name>Forgets an onboarded repository. Its tasks stay.

Options of tiller repo add:

OptionDefaultMeaning
--config <name>defaultThe agent config of its tasks.
--label <label>tillerIssues with this label are imported. none: no intake.
--no-checkDo not install and run the tests.

See Add a repository.

Tasks#

Create and queue#

CommandWhat it does
tiller task create --repo <owner/name> --title <title>Creates a task in state IMPORTED. Nothing runs until it is queued.
tiller task importImports labelled issues now. Imported tasks are not queued.
tiller task enqueue <id> [message...]Queues a run. The message — an answer, feedback — goes to the agent.
tiller task split <id>Approves the split the preflight proposed: its parts become tasks, the original is cancelled.
tiller task complete <id>Marks a task completed.
tiller task cancel <id>Cancels a task.

Options of tiller task create:

OptionDefaultMeaning
--repo <owner/name>requiredThe repository.
--title <title>requiredThe task's title.
--body <text>The description.
--body-file <file>Read the description from a file.
--config <name>defaultThe agent config.
--ref <ref>the default branchThe branch to start from.
--model <id>Run on this model instead of the default. One of factory.models.
--enqueueQueue the first run right away.
--dataset <name>Use the sandbox profile datasets/<name>/profile.yaml of the working directory instead of the repository's own.

Options of tiller task enqueue:

OptionMeaning
--no-preflightStart the first run without the read-only assessment.
--model <id>Run on this model from now on. default: back to the default.
--out-of-orderA part of a split: start without waiting for the part before it.

Look#

CommandWhat it does
tiller task listAll tasks with their state.
tiller task show <id>The timeline of a task: human messages, agent questions and summaries, runs.
tiller task manifest <runId>What a run was made of: repository commit, skills, model, image, prompt. --check verifies every input is still there and unchanged; exit 1 on drift.
tiller task metricsDelivery, first pass, human interventions and cost, over all tasks and per repository, config and model.

Pull requests, verification, CI#

CommandWhat it does
tiller task syncReads pull request feedback now: queues tasks with a new /tiller comment, closes merged and closed ones.
tiller task update <id>Brings the default branch into the task. A clean merge is verified and pushed; conflicts are queued for the agent.
tiller task verify <id>Verifies the task branch again without an agent run, and pushes when it passes.
tiller task ci <id>What the repository's CI says about the task's pull request. --fix sends the failing checks and the end of their logs to the agent.
tiller task review <id>Runs the second reader on its own. Nothing is recorded on the task.

Options of tiller task verify:

OptionMeaning
--accept-removedThe tests the last verification found removed may go.
--accept-checksThe changed files that decide the checks are fine: no second run with the old ones.

Options of tiller task review:

OptionMeaning
--base <commit>Read the change from this commit. Default: the task's base.
--head <commit>Up to this commit. Default: the head of the task branch.
--jsonPrint the report as JSON.
--task-onlyGive the reader the task text without the human messages that came later.

Models and experiments#

CommandWhat it does
tiller task modelPrints the default model and the models on offer.
tiller task model <model>Sets the default. none: each task's config decides.
tiller task model <id> <model>Sets the model of one task, from its next run. default: no own choice.
tiller task experiment <ids...>Marks tasks as experiments, left out of the metrics. --off unmarks them.

Evals#

CommandWhat it does
tiller benchmark --dataset <name> --config <name>Runs a config over a dataset, in parallel, with a hard budget cap.
tiller run --task <id> --config <name> --dataset <name>One task, one config: agent in the sandbox, verification, stored. --dataset <name> names the dataset; --keep-workspace keeps the workspace.
tiller compare <a> <b>Paired per-task comparison of two benchmarks. --split train|holdout|all.
tiller gate <baseline> <candidate>The eval gate for a skill or config change: evidence as markdown. Exit 2 when the rule says keep.
tiller noise --dataset <name>Rerun noise of a dataset from stored benchmarks: what delta a comparison can detect, at what cost.
tiller improve --benchmark <name> --dataset <name> --skill <name>Failed train runs → labelled clusters → a proposed learned skill, for review.
tiller config add <file>Resolves an agent config and prints its content hash.
tiller skill generate --dataset <name> --at <commit> --name <name>An agent writes an onboarding skill from the repository at a commit.

Options of tiller benchmark:

OptionDefaultMeaning
--split <split>alltrain, holdout or all. Needs the dataset's split.yaml.
--repeats <n>1Runs per task.
--concurrency <n>3Parallel runs, each about 2 CPUs and 4 GB.
--budget <usd>10Stop starting runs once this much is spent.
--name <name>A name for the benchmark.
--only <ids>Comma-separated task ids.

Options of tiller gate:

OptionDefaultMeaning
--split <split>alltrain, holdout or all.
--out <file>stdoutWrite the evidence to a file.
--reference <benchmark>The config from before any promotion: the candidate must not be below it by more than rerun noise either.

Options of tiller noise:

OptionDefaultMeaning
--metric <name>successsuccess, or a per-run metric of tiller compare.
--delta <x>0.05The effect to plan for, in units of the metric. 0.05 is five percentage points.

Options of tiller improve:

OptionDefaultMeaning
--split <split>trainLearn only from this split.
--max-words <n>500The size limit of the proposed skill.

Options of tiller skill generate:

OptionDefaultMeaning
--config <name>defaultThe agent and model that write the skill.
--prompt <file>prompts/onboarding.mdThe prompt for writing it.

See Evals.

Datasets#

CommandWhat it does
tiller dataset mine <dir> --repo <owner/name>Proposes task drafts from merged pull requests that close an issue and change tests. --since <date>, --limit <n> (default 300 pull requests scanned).
tiller dataset infer <dir>Drafts → tasks: runs the hidden tests at base and fix, derives the tests that must go from failing to passing, keeps the valid ones. --repeats <n> (default 2), --only <id>.
tiller dataset validate <dir>The oracle check per task: hidden tests fail at base, pass at fix. --task <id>, --repeats <n> (default 2).
tiller dataset split <dir>A seeded train and holdout split, written to split.yaml. --holdout <ratio> (default 0.4), --seed <n> (default 1).
tiller dataset audit <dir>Curation evidence per task from stored runs, without agent runs.

Exit codes#

CodeMeaning
0Done.
1An error, or a failed check: doctor, audit, task manifest --check, a sync or import with errors.
2A negative answer that is not an error: repo add when the profile does not run, gate when the verdict is to keep the baseline.