Skip to content

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:

~/.abc-runner/config.yaml

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:

  1. the --task-dir <dir> CLI flag
  2. the TASK_PATH environment variable (colon-separated directories, left-to-right)
  3. the installed root ~/.abc-runner/tasks (populated by abc-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-task-groups [--task-dir PATH] [--config PATH]

abc-runner list-tasks

List valid tasks, optionally filtered to one task group.

abc-runner list-tasks [TASK_GROUP] [--task-dir PATH] [--config PATH]

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.

abc-runner list-containers [CONTAINER_OR_GLOB] [--built-only] [--task-dir PATH] [--config PATH]

Examples:

  • abc-runner list-containers
  • abc-runner list-containers opencode
  • abc-runner list-containers 'opencode*'
  • abc-runner list-containers 'base/opencode*'

abc-runner list-models

List configured models.

abc-runner list-models [--config PATH]

abc-runner list-agents

List configured agents.

abc-runner list-agents [--config PATH]

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.

abc-runner install [SOURCE ...] [--force] [--config 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 / .tgz archive of a task group.

Behavior:

  • with no SOURCE, seeds the bundled smoke_test group if nothing is installed yet
  • --force, -f overwrites an already-installed group of the same id
  • .sqfs sources require squashfuse (and mksquashfs to 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 base builds the shared base layer
  • abc-runner build-container opencode builds the harness layer
  • abc-runner build-container opencode-hybrid builds the hybrid harness layer
  • abc-runner build-container opencode/smoke_test builds the final runtime
  • abc-runner build-container opencode-hybrid/smoke_test builds the hybrid final runtime
  • abc-runner build-container --all builds all known artifacts

abc-runner delete-container

Delete built container artifacts.

abc-runner delete-container [CONTAINER_REF] [--all] [--force] [--task-dir PATH] [--config PATH]

Examples:

  • abc-runner delete-container base
  • abc-runner delete-container opencode
  • abc-runner delete-container opencode/smoke_test
  • abc-runner delete-container opencode-hybrid
  • abc-runner delete-container opencode-hybrid/smoke_test
  • abc-runner delete-container --all

abc-runner clear-cache

Remove runtime artifacts and Charliecloud build cache.

abc-runner clear-cache [--force] [--task-dir PATH] [--config PATH]

Run Commands

abc-runner run

Run a benchmark.

abc-runner run --task TASK --agent AGENT_ID [OPTIONS]

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.sh still 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-output is set
  • --no-sandbox-network disables that namespace isolation for both harness and verification
  • --no-repeat-tasks only checks the organized results archive, so it is intended for normal archived runs rather than --output-dir
  • if --timeout is 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.

abc-runner run-tasks 'GROUP/TASK_GLOB' ['GROUP/TASK_GLOB' ...] --agent AGENT_ID [OPTIONS]

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-runner sees 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-dir is intentionally not supported for batch runs; use --results-dir
  • by default, harness and verification run in a loopback-only network namespace; use --no-sandbox-network to opt out
  • build_env.sh is 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.

abc-runner restore-workspace RUN_DIR --dest DIR [--group-map OLD=NEW] [--task-dir PATH]

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; use abc-runner install to populate the installed root