CLI Reference

June 24, 2026 · View on GitHub

Twin: none — reference page (backing: []). The dispatch below is read directly from main() in src/fi/alk/cli.py.

1. What you are testing

agent-learn is one console script over the three vendored engines (simulate, evals, optimize). Every evidence-producing command takes a manifest (JSON or YAML) and an --output path, and writes a single JSON artifact whose kind identifies it — see reference/artifacts.md. Running agent-learn with no arguments prints help; an unknown command prints help plus unknown command: <name> and exits non-zero.

The regression-lifecycle subcommands (baseline, compare, replay, report, promote-to-regression, shrink) are also reachable through the simulate namespace; the top-level spellings below are the documented surface.

2. Run it

agent-learn doctor
from fi.alk import trinity
payload = trinity.trinity_status()
print(payload["summary"]["public_boundary_passed"])

3. What you built

python -c "from fi.alk import cli; assert callable(cli.main); print('ok')"

The command surface, one row per command (aliases from the main() dispatch):

CommandAliasesDoesArtifact kind
doctorenvironment + module diagnostics, config statusagent-learning.doctor.v1
release-checkv1-check, releaserun the full local gate matrixagent-learning.release-check.v1
release-proofv1-proofcut the seven-check release proofagent-learning.release-proof.v1
initscaffold manifests for a preset: ci (default), run, redteam, optimize, allagent-learning.init.v1
runexecute a run manifest (simulation; --no-eval skips attached evals)agent-learning.run.v1
benchbenchmarkrun a benchmark suite through the unified harness (--mode push / artifact_in / pull; any modality) — see benchmark-overviewagent-learning.bench-result.v1
evalexecute an eval suiteagent-learning.eval.v1
eval-artifacteval-reportevaluate an already-saved artifactagent-learning.artifact-evaluation.v1
eval-taskeval-evidence, eval-task-evidencesynthesize task evidence from task artifactsagent-learning.task-evidence.v1
redteamrun a red-team campaign manifestagent-learning.redteam.v1
redteam-corpusredteam-corpus-hook, redteam-hookrun a red-team corpus hookagent-learning.redteam.v1
optimizerun an optimization manifestagent-learning.optimization.v1
optimize-evaloptimize an eval suiteagent-learning.eval-optimization.v1
optimize-suiteoptimize a suiteagent-learning.suite-optimization.v1
suiterun a combined multi-step suiteagent-learning.suite.v1
baselinepin a regression baseline from a saved artifactagent-learning.baseline.v1
comparecompare current output against a baselineagent-learning.compare.v1
replayre-execute a kept artifact deterministicallyagent-learning.replay.v1
reportrender a report over saved artifactsagent-learning.report.v1
promote-to-regressionpromote a finding into the regression setagent-learning.regression-promotion.v1
shrinkminimize, minimize-counterexampleminimize an evolved attack to its smallest failing formagent-learning.attack-evolution-shrink.v1
actionslist-actionslist available actions for an artifactagent-learning.actions.v1
action-runrun-actionexecute one actionagent-learning.action-run.v1
action-optimizeoptimize-actions, actions-optimizeoptimize over the actions surfaceagent-learning.suite-optimization.v1
trustverify-trust, trust-cert, trust-certificate, certifyverify a saved suite trust certificate for CI(verification verdict)
capabilitiescapability-catalog, capsprint the capability catalog, optionally over saved artifacts(catalog output)
personapersona studio: create / validate / calibrate / admit / lint / list / import / pull — see persona-scenario-studioper subcommand
scenarioscenario studio: synth / expand / coverage / listper subcommand
simulationsimulation contract family: lift / validate / run — see simulation-contractagent-learning.simulation.v1
practicepractice loop: run / report / ladder / replay / ab / image / cua — see practice-loopper subcommand
runsledger (hidden)local run ledger: list / show / verify / sync / forget — see run-ledgeragent-learning.ledger-row.v1
simulatenamespace passthrough to the regression-lifecycle subcommandsper subcommand
eval-clifipassthrough to the vendored evaluation CLIper subcommand

4. When it fails

SymptomFirst-mile classDoctor check
<command> could not import the vendored Agent Learning Kit engineinfra — broken install; reinstall agent-learning-kitagent-learn doctorsummary.missing_engine_modules
unknown command: <name>config fault — alias typo; check the Aliases columnn/a (help text lists the surface)
command exits asking for an API keyconfig fault — platform-backed step without a keysummary.api_key_configured; see configure

5. Prove it / keep it

The release gate pins this surface: V1_REQUIRED_CLI_COMMANDS in src/fi/alk/trinity.py lists the commands release-check requires, so a removed or renamed command is a red gate, not a silent doc rot. Continue with prove/release-check-in-your-ci.md to run that check in your pipeline, or start producing artifacts with the run golden path.