Usage
.archal.json in the current directory.
Scored clone runs need a controlled runtime:
- Use
--dockerto build and run a repo-local harness directory. - Use
--sandboxfor 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 witharchal run --advanced.
Examples
Exit codes
Environment variables
These configurearchal run itself:
These are set automatically for your agent process:
Local run artifacts
Everyarchal run also writes local artifacts under .archal/cache/:
.archal/cache/last-run.json.archal/cache/runs/*.json
--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:
archal run at it with --harness or the
agent field in .archal.json.