CLI Alpha
The Helix CLI α release focuses on reproducible design loops that mirror Studio sessions: pack snapshots, run CRISPR/Prime/PCR engines locally or on OGN, compare results, and emit reports for sharing or automation.
Status: Behind the feature flag
HELIX_STUDIO_ALPHA=1. Commands + spec stabilize forrelease/v1.1.
Core Commands
Run
helix run \
--snapshot session.hxs \
--kind Prime \
--params params.json \
--engine local \
--out runs/prime/
--snapshotaccepts.hxsbundles (see Snapshot Spec v1).--kindmaps to runtime plugins (Prime,CRISPR,PCR).--enginesupportslocalorogn; additional engines register via plugin API.- Outputs include
run_id.txt, DAG JSON, metrics summaries, provenance logs.
Compare
helix compare \
--run runs/prime/run_id.txt \
--run runs/crispr/run_id.txt \
--out compare/prime_vs_crispr.json
- Accepts two run IDs or manifest paths.
- Emits verdict payload (
improved|worse|tradeoff|inconclusive) + metric deltas. - Optional
--report compare.mdto emit Markdown table.
Report
helix report \
--run $(cat runs/prime/run_id.txt) \
--format md \
--out reports/prime_run.md
- Formats:
md,html,json(PDF later). - Pulls snapshot metadata + compare verdict (if present) for context blocks.
Snapshot Pack & Inspect
helix snapshot pack \
--session studio_session.json \
--out session.hxs \
--include-runs runs/prime runs/crispr
helix snapshot inspect session.hxs
packaccepts Studio-exported session JSON and run folders; produces.hxsbundles.inspectvalidates manifest, prints run kinds, compare verdicts, and report inventory.
Remote Execution via OGN
helix run \
--snapshot session.hxs \
--kind CRISPR \
--engine ogn \
--queue gpu-a100 \
--out s3://lab-bucket/helix/A123/
- Requires
HELIX_OGN_TOKEN. - CLI streams job status + perf overlay when
--watchis set.
Pipeline Integration
Nextflow Module
process HELIX_PRIME {
container 'helixstudio/cli:1.0'
input:
path snapshot
path params_json
output:
path "out/**"
path "report.md"
script:
"""
helix run \
--snapshot ${snapshot} \
--kind Prime \
--params ${params_json} \
--engine ogn \
--out out/
helix report --run $(cat out/run_id.txt) --format md --out report.md
"""
}
Cromwell / WDL Task
task HelixCRISPR {
input {
File snapshot
File params_json
}
command <<<'
helix run --snapshot ~{snapshot} --kind CRISPR --engine ogn --out out/
helix report --run `cat out/run_id.txt` --format json --out report.json
>>>
output {
File report = "report.json"
Directory artifacts = "out"
}
}
Instrumentation & Telemetry
- Each command emits structured logs with
loop_id,ttfv_ms,compare_used,report_exportedfor KPI tracking. --traceflag sends anonymized telemetry (opt-in, documented indocs/privacy.md).
Roadmap to 1.0
- Improve ergonomic defaults (auto-naming runs, implicit
--snapshotfrom cwd session). - Support
helix compare --diff vizfor inline panel exports. helix report --template custom.mdsurfaces Template Gallery presets.- CLI smoke tests gate merges via
helix cli smoke --engine localin CI.