Python CLI and SDK for working with ASTRA analysis specifications.
For an overview of ASTRA, the specification, concepts, and design rationale, see the main repository: astra-spec.
This repository provides the tooling layer: validation, CLI, paper management, and evidence verification.
Install the astra CLI globally from PyPI with uv:
uv tool install astra-toolsastra is then available on your PATH. For development (editable install with test/lint deps), clone the repo and run uv sync --extra dev, then invoke commands via uv run (e.g. uv run pytest).
astra init my-analysis
cd my-analysis
astra validate # validates every spec and universe file in the projectSee examples/iris/ for a complete working example.
Run astra --help for the full command list. Key commands:
astra init– scaffold a new analysis projectastra validate– validate the whole project, or one spec/universe file (add--verify-evidenceto check quotes)astra info/astra viz– inspect the analysis and decision spaceastra universe generate|check– manage universesastra spec– render the schema as agent-friendly reference textastra guide– print the agent briefing (llms.txt) shipped with astra-specastra schema export|show– work with JSON schemasastra paper ...– download, cache, and verify quotes against papers
astra validate and astra info accept --json to emit their report as a single JSON-encoded string (exit codes unchanged), convenient for embedding in agent tool output.
- astra-spec – specification, schemas, and primary documentation
BSD 3-Clause