CLI Reference¶
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.
Reference for the abc-runner command-line interface.
The CLI is small. Most commands either discover repository state, build or delete container artifacts, or run benchmarks.
Global Options¶
| Option | Description |
|---|---|
--config PATH |
Path to config file |
--verbose, -v |
Show verbose error output |
--help |
Show help |
Default config path:
Task Group Resolution¶
Commands that touch task groups resolve them from a prioritized set of search
roots, analogous to directories on the shell PATH. Each root is a directory
that contains task groups (<root>/<group>/ or <root>/<group>.sqfs).
Priority, highest first:
- the
--task-dir <dir>CLI flag - the
TASK_PATHenvironment variable (colon-separated directories, left-to-right) - the installed root
~/.abc-runner/tasks(populated byabc-runner install)
The first root that provides a given group id wins; lower-priority roots that also define it are shadowed, with a warning printed to stderr.
The --task-dir PATH flag is accepted by list-tasks, list-task-groups,
list-containers, build-container, delete-container, clear-cache, run,
and run-tasks. The bundled smoke_test group is auto-installed into the
installed root on first use of any command.
Discovery Commands¶
abc-runner list-task-groups¶
List available task groups across all resolved search roots.
abc-runner list-tasks¶
List valid tasks, optionally filtered to one task group.
Example:
Available tasks:
smoke_test
- eos-metropolis-1953
canonical: smoke_test/eos-metropolis-1953
- hello-world-python
canonical: smoke_test/hello-world-python
abc-runner list-containers¶
List known container refs, show details for one ref, or glob-match multiple refs.
Examples:
abc-runner list-containersabc-runner list-containers opencodeabc-runner list-containers 'opencode*'abc-runner list-containers 'base/opencode*'
abc-runner list-models¶
List configured models.
abc-runner list-agents¶
List configured agents.
Task Group Commands¶
abc-runner install¶
Install task group(s) into the installed root ~/.abc-runner/tasks so they can be
referenced by name without a filesystem path.
Each SOURCE may be:
- a task-group directory (contains
group.yaml), - a directory that contains task groups,
- a squashfs (
.sqfs) image of a task group, or - a
.tar.gz/.tgzarchive of a task group.
Behavior:
- with no
SOURCE, seeds the bundledsmoke_testgroup if nothing is installed yet --force,-foverwrites an already-installed group of the same id.sqfssources requiresquashfuse(andmksquashfsto build images)
Examples:
abc-runner install # seed bundled smoke_test if empty
abc-runner install /path/to/my_group # install a group directory
abc-runner install my_group.sqfs # install from a squashfs image
abc-runner install my_group.tar.gz # install from an archive
abc-runner install /path/to/groups # install every group in a directory
abc-runner install my_group.sqfs --force # overwrite an existing install
Container Commands¶
abc-runner build-container¶
Build a container artifact. Missing parent layers are built automatically.
abc-runner build-container [CONTAINER_REF] [--all] [--rebuild] [--task-dir PATH] [--config PATH] [-v]
Behavior:
abc-runner build-container basebuilds the shared base layerabc-runner build-container opencodebuilds the harness layerabc-runner build-container opencode-hybridbuilds the hybrid harness layerabc-runner build-container opencode/smoke_testbuilds the final runtimeabc-runner build-container opencode-hybrid/smoke_testbuilds the hybrid final runtimeabc-runner build-container --allbuilds all known artifacts
abc-runner delete-container¶
Delete built container artifacts.
Examples:
abc-runner delete-container baseabc-runner delete-container opencodeabc-runner delete-container opencode/smoke_testabc-runner delete-container opencode-hybridabc-runner delete-container opencode-hybrid/smoke_testabc-runner delete-container --all
abc-runner clear-cache¶
Remove runtime artifacts and Charliecloud build cache.
Run Commands¶
abc-runner run¶
Run a benchmark.
Task forms:
- canonical ref:
smoke_test/eos-metropolis-1953 - short task id:
eos-metropolis-1953 - short task id plus explicit
--task-group
Task groups matter here because the runner uses the task's group to resolve the final runtime container.
Required arguments:
| Argument | Description |
|---|---|
--task TASK |
Canonical group/task or short task |
--agent AGENT_ID |
Agent identifier from config |
Optional arguments:
| Argument | Description |
|---|---|
--task-group GROUP |
Explicit task group when --task is not canonical |
--task-dir PATH |
Directory containing task groups (highest resolution priority) |
--timeout SECONDS |
Optional benchmark timeout |
--results-dir PATH |
Organized archive root |
--output-dir PATH |
Standalone output directory |
--dry-run |
Print actions without running |
--no-stream-output |
Disable live log streaming |
--no-clean-env |
Preserve task environment |
--keep-workspace |
Keep the full final workspace (expanded result format) instead of a delta against the task |
--no-sandbox-network |
Disable loopback-only sandboxing for harness and verification |
--no-repeat-tasks |
Skip the run if organized results already exist for the same agent configuration |
--harness-memory-limit SIZE |
Fixed memory cap |
--harness-memory-limit-fraction FRACTION |
Fraction of available memory as cap |
--no-harness-memory-limit |
Disable harness memory cap |
Examples:
abc-runner run --task smoke_test/hello-world-python --agent opencode-default
abc-runner run --task eos-metropolis-1953 --task-group smoke_test --agent opencode-default
abc-runner run --task smoke_test/eos-metropolis-1953 --agent opencode-default --dry-run
Exit codes:
| Code | Meaning |
|---|---|
0 |
Benchmark finished; inspect result.json for PASS, FAIL, ENDPOINT_ERROR, or HARNESS_ERROR |
1 |
Runtime error |
2 |
Invalid arguments or configuration |
124 |
Harness timeout |
Sandbox behavior notes:
build_env.shstill runs with host networking- by default, harness and verification run in a loopback-only namespace
- sandboxed runs still stream live harness output to the terminal unless
--no-stream-outputis set --no-sandbox-networkdisables that namespace isolation for both harness and verification--no-repeat-tasksonly checks the organized results archive, so it is intended for normal archived runs rather than--output-dir- if
--timeoutis omitted, ABC Runner does not impose a benchmark-level timeout by default - the model proxy still applies a 15-minute per-attempt response timeout and a 1-hour total request deadline
abc-runner run-tasks¶
Run multiple benchmarks selected by quoted glob patterns over canonical
group/task refs.
Patterns are matched only against canonical task refs such as
smoke_test/hello-world-python. They are not matched against filesystem paths
under tasks/.
When --no-repeat-tasks is set, run-tasks skips matched tasks that already
have at least one existing run in the organized results archive for the same
resolved agent configuration.
Required arguments:
| Argument | Description |
|---|---|
PATTERN |
One or more quoted canonical task-ref glob patterns |
--agent AGENT_ID |
Agent identifier from config |
Optional arguments:
| Argument | Description |
|---|---|
--task-dir PATH |
Directory containing task groups (highest resolution priority) |
--timeout SECONDS |
Optional benchmark timeout per task |
--results-dir PATH |
Organized archive root |
--dry-run |
Print actions without running |
--no-stream-output |
Disable live log streaming |
--no-repeat-tasks |
Skip tasks that already have organized results for the same agent configuration |
--no-clean-env |
Preserve task environment |
--keep-workspace |
Keep the full final workspace (expanded result format) instead of a delta against the task |
--no-sandbox-network |
Disable loopback-only sandboxing for harness and verification |
--harness-memory-limit SIZE |
Fixed memory cap |
--harness-memory-limit-fraction FRACTION |
Fraction of available memory as cap |
--no-harness-memory-limit |
Disable harness memory cap |
Examples:
abc-runner run-tasks 'smoke_test/*' --agent opencode-default
abc-runner run-tasks 'smoke_test/*' 'smoke_test/eos-*' --agent opencode-default
abc-runner run-tasks '*/hello-world-*' --agent opencode-default --dry-run
Notes:
- quote patterns so your shell does not expand them before
abc-runnersees them - unmatched patterns produce warnings if at least one other pattern matched
- if no supplied pattern matches any canonical task ref, the command exits with an error
--output-diris intentionally not supported for batch runs; use--results-dir- by default, harness and verification run in a loopback-only network namespace; use
--no-sandbox-networkto opt out build_env.shis not sandboxed and retains host networking
Result Commands¶
See Workspace Storage for the result format these commands work with.
abc-runner restore-workspace¶
Rebuild a compressed run's final workspace from its task and stored delta.
The task named in the run's workspace_delta.json must be available, and its
workspace must match the recorded base digest. DIR must not exist.
abc-runner compress-results¶
Compress expanded runs (full workspace/ copies) in place.
abc-runner compress-results PATH [PATH ...] [--jobs N] [--group-map OLD=NEW] [--dry-run] [--task-dir PATH]
PATH may be a run directory or any archive root; it is scanned for runs that
still hold a workspace/. Each delta is verified before the workspace is
deleted. Every run's task is resolved before anything is compressed, so a
missing task fails the command up front. After that, the command stops at the
first run it cannot compress: no new runs start, runs already in progress
finish, and the failed run is left expanded.
--jobs N (-j N) compresses up to N runs in parallel worker processes;
--jobs 0 uses every CPU available to the process (on a Slurm allocation, the
CPUs it was given). The default is 1. An interrupted command can simply be
rerun: a run is only compressed once its workspace/ is deleted, so any run
interrupted partway is compressed again.
--group-map (repeatable)
resolves a recorded task group under its current installed name, for example
--group-map truchas=truchas-old.
Environment Variables¶
| Variable | Description |
|---|---|
TASK_PATH |
Colon-separated directories that contain task groups (like PATH) |
ABC_RUNNER_PACKAGE_ROOT |
Override the package root holding harnesses/ and containers/ |
ABC_RUNNER_CONTAINER_BASE |
Override container storage root |
ABC_RUNNER_RESULTS_DIR |
Default results archive root |
ABC_RUNNER_OUTPUT_DIR |
Standalone output directory |
HTTP_PROXY |
HTTP proxy for container network access |
HTTPS_PROXY |
HTTPS proxy for container network access |
Provider-specific API keys are also read from the environment according to the
configured api_key_env fields.
Notes¶
- container refs mirror the build tree:
base,<harness>,<harness>/<task-group> - built container artifacts are independent after build
- results are organized by agent archive, task group, and task id
- docs tooling lives under
docs/scripts/ - task groups are discovered via
--task-dir>TASK_PATH> the installed root~/.abc-runner/tasks; useabc-runner installto populate the installed root