cion
Most spec-to-code tools generate code and documentation separately, then try to link them after the fact. cion asks the model to produce the traceability graph as it generates — every class and method comes out already tagged with the requirement that justifies it. The links are structural, not scraped. That means impact analysis and coverage are computed from data the model committed to, not from pattern-matching on what it happened to produce.
Install
pip install "cion-cli[anthropic]" # Claude
pip install "cion-cli[openai]" # GPT-4o
pip install "cion-cli[ollama]" # local models via Ollama
See it in 60 seconds
$ cat requirements.txt
The system is a task management API.
Users can create tasks with a title and due date.
Tasks have a status: todo, in_progress, or done.
Users can list tasks filtered by status.
Users can delete a task by ID.
$ cion run requirements.txt
OK Traceability graph → graph.json
✓ Written: output/task.py
✓ Written: output/task_repository.py
✓ Written: output/task_service.py
✓ Written: output/task_controller.py
Done! Run cion coverage or cion trace to inspect the graph.
$ cion trace
Traceability Graph
├── REQ-001 Users can create tasks with a title and due date
│ ├── CLS-001 Task
│ │ └── task.py
│ └── CLS-003 TaskService
│ └── task_service.py
├── REQ-003 Tasks have a status: todo, in_progress, or done
│ └── CLS-001 Task
│ └── task.py
├── REQ-005 Users can list tasks filtered by status
│ ├── CLS-002 TaskRepository
│ │ └── task_repository.py
│ └── CLS-003 TaskService
│ └── task_service.py
└── REQ-007 Users can delete a task by ID
├── CLS-002 TaskRepository
│ └── task_repository.py
└── CLS-003 TaskService
└── task_service.py
$ cion impact REQ-001
REQ-001 Users can create tasks with a title and due date
├── Classes (2)
│ ├── Task
│ └── TaskService
├── Methods (3)
│ ├── Task.__init__
│ ├── TaskService.create_task
│ └── TaskController.create_task_endpoint
└── Files (2)
├── task.py
└── task_service.py
Commands
| Command | What it does |
|---|---|
cion run REQUIREMENTS_FILE |
Full pipeline: parse → class diagram → code |
cion trace |
Requirement → class → file tree |
cion coverage |
Table showing which classes and files cover each requirement |
cion impact REQ-ID |
Everything that changes if this requirement is modified |
cion run options: --provider / -p (anthropic · openai · ollama), --model / -m, --output-dir / -o, --graph / -g.
How it works
Three chained LLM calls with structured JSON output:
- Parse — plain text →
requirements[]with sequential IDs and priorities - Classes — requirements → class diagram; every class and method carries
traces_to: [REQ-...] - Code — class diagram → Python files; each file carries
traces_to(class IDs) andreq_traces(requirement IDs)
The traceability graph (graph.json) is built during generation. cion trace, cion coverage, and cion impact query it directly — no heuristics, no re-parsing the generated source.
Metadata
Release files for cion-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cion_cli-0.1.0.tar.gz | 11.5 kB | With provenance | Details for cion_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cion_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cion_cli-0.1.0-py3-none-any.whl |
Total release size: 23.2 kB
Release files / cion_cli-0.1.0.tar.gz
| Download URL | cion_cli-0.1.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caaeac2298d28115fc71b56258392e70784cf451f7c32dc90d85663f1d5854ba
|
|
BLAKE2b-256 checksum How to use checksums |
934c7514e01d490c4b833dd51a552e12f572bef288cf9cdb1882796ef1f27caa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 21, 2026.
Transparency logRelease files / cion_cli-0.1.0-py3-none-any.whl
| Download URL | cion_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8a2a3369515570b6f827ae1c81fc254be7366cd78e20f5c3309bccc54e59759
|
|
BLAKE2b-256 checksum How to use checksums |
c471cc001a01d32186dd558f86d99c49461ad7294fca240eb0034f7b749ccea0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 21, 2026.
Transparency logSecurity for cion-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cion_cli-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.