Skip to content

Latest commit

 

History

238 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightcone-cli

License Python PyPI Tests

lightcone-cli (lc) is the execution layer for ASTRA (Agentic Schema for Transparent Research Analysis). Describe your analysis in an astra.yaml specification and lc takes care of the rest — execution, environments, and provenance.

Quick Start

lightcone-cli only requires you to have uv installed on your environment, and will take care of everything else. See how to install uv here: https://docs.astral.sh/uv/getting-started/installation.

Then to install lightcone-cli:

uv tool install lightcone-cli

Once the CLI is installed, you can use it to create an ASTRA project and generate outputs like so:

lc init my-analysis
cd my-analysis
# describe your analysis in astra.yaml, write your scripts,
# declare what they import through normal uv interactions:
uv add numpy
# When you are done with your edits, commit:
git add -A && git commit -m "First analysis"
# Use the lightcone CLI to generate your outputs with full provenance tracking
lc materialize

ASTRA specs are plain, structured YAML — they work well hand-written or drafted with any AI coding assistant.

Full getting-started guide

Capabilities

  • Multiverse analysis — declare methodological decisions with multiple defensible options; lc materializes your analysis across every universe you define
  • Provenance by construction — every output is committed to git together with a content-addressed manifest and a re-runnable run record; git-annex carries the bytes, so results travel with the repository
  • Locked, isolated execution — a project's environment is pyproject.toml + uv.lock; recipes run in it under a sandbox (Landlock on Linux, Seatbelt on macOS) that keeps undeclared files out and stray writes contained
  • Containers and HPC — declare [tool.lightcone.image] and recipes run in a content-addressed image archived in the repository itself; a SLURM allocation is detected and used automatically, every node included
  • Publication view — declare a license and lc materialize maintains an RO-Crate of the project and its provenance, ready to archive or deposit

Full documentation

License

BSD 3-Clause — see LICENSE for details.

About

Agentic layer for ASTRA — dedicated skills, workflow execution, and HPC/container management for reproducible research

Resources

Code of conduct

Contributing

Stars

20 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages