Skip to main content

Usage

If you omit the scenario argument, Archal looks for .archal.json in the current directory. Scored clone runs need a controlled runtime:
  • Use --docker to build and run a repo-local harness directory.
  • Use --sandbox for sandbox mode.

Arguments

Common options

These are the flags most runs need. Inline --task runs still execute your configured agent. Use .archal.json to tell Archal how to start that process, then pair --task with --clone when you want a one-off smoke test without writing a scenario file first.

Advanced options

These are available with archal run --advanced.
Advanced flags are hidden from normal help because they are for debugging or CI plumbing. Prefer the Common options above for project docs and stable scripts.

Examples

Exit codes

Environment variables

These configure archal run itself: These are set automatically for your agent process:

Local run artifacts

Every archal run also writes local artifacts under .archal/cache/:
  • .archal/cache/last-run.json
  • .archal/cache/runs/*.json
Use --output json when you want machine-readable stdout.

Saved scenarios

archal run always uses the local files you pass via --harness, the scenario path argument, or .archal.json. It does not auto-save them to your workspace. To make a scenario reusable across projects, push it explicitly:
Your harness stays local. Point archal run at it with --harness or the agent field in .archal.json.