Consta
Consta collects evidence for a question about contributing to an open-source project: issues, merged PRs, commit activity on a module, docs, and alternative projects. It writes a report with a link for every item and, optionally, a short LLM summary in which every claim quotes its source.
The name is Spanish and Italian for "it is on record".
pip install consta
consta assess -q "Is reviving torch.masked worth an upstream contribution?" \
-r pytorch/pytorch -p torch/masked -e pytorch --no-synthesis
CHECKLIST.md is the same method by hand, with gh, git and rg.
examples/ has two real reports and explains how a report is built.
ARCHITECTURE.md describes the code.
Install
pip install consta # CLI
pip install "consta[web]" # CLI and web UI
pip install -e ".[dev,web]" # from a checkout, with test dependencies
Configure
cp .env.example .env
Consta reads ./.env and ~/.config/consta/.env.
| Variable | Required | Purpose |
|---|---|---|
CONSTA_GITHUB_TOKEN |
Yes | GitHub token (fine-grained, or classic with public_repo) |
CONSTA_LLM_PROVIDER |
No | anthropic (default), openai, openrouter, huggingface or claude-code |
CONSTA_ANTHROPIC_API_KEY |
No | Key for anthropic |
CONSTA_OPENAI_API_KEY |
No | Key for openai |
CONSTA_OPENAI_BASE_URL |
No | Base URL for openai, for any OpenAI-compatible server (default https://api.openai.com/v1) |
CONSTA_OPENROUTER_API_KEY |
No | Key for openrouter |
CONSTA_HF_TOKEN |
No | Key for huggingface; also used to read gated Hugging Face Hub discussions |
CONSTA_CLAUDE_CLI |
No | Path to the claude CLI for claude-code, if it is not on PATH |
CONSTA_LLM_MODEL |
No | Model id, if not the provider's default |
Without an LLM key the report has no summary; everything else works.
claude-code sends the summary prompt through the local Claude Code CLI (claude -p, tools
off), so it uses whatever account claude is logged in with, including a Claude
subscription. It needs no API key; the model defaults to sonnet.
Usage
consta ping # check GitHub and LLM access
consta list-profiles
consta assess \
--question "Is reviving torch.masked worth an upstream contribution?" \
--repo pytorch/pytorch \
--path torch/masked \
--ecosystem pytorch \
--tier 2 \
--output report.md
| Option | Effect |
|---|---|
--path |
Scope commit activity and issue counts to one directory |
--ecosystem |
Use a profile from profiles/ (synonyms, labels, alternative projects) |
--tier 2 |
Add merged PRs and forum threads |
--no-synthesis |
Skip the LLM summary |
--json |
Print the report as JSON |
--allow-stale-profile |
Use a profile older than its max_age_days |
consta check report.json re-runs the citation check on a report saved as JSON
(--output report.json). It works offline; a summary whose quotes do not match its
sources is withheld.
Web UI
consta-web # http://127.0.0.1:5050
The home page offers six preset questions from eval/sample_cases.yaml. See docs/WEB_UI.md.
Profiles
A profile is a YAML file with hints for one ecosystem. Without one, Consta works from the question and path alone.
| Profile | Source | Covers |
|---|---|---|
pytorch |
pytorch/pytorch |
torch.masked, torch.nested |
numpy |
numpy/numpy |
numpy.ma, NEPs, missing data |
sklearn |
scikit-learn/scikit-learn |
SLEPs, metadata routing |
apertus |
swiss-ai/apertus-format, Hugging Face Hub |
Model repo discussions |
To add one, copy profiles/_template.yaml.
GitHub Action
action/action.yml runs Consta on new issues and posts the report as
a comment. It skips the LLM summary unless you set synthesize: "true".
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
brief:
runs-on: ubuntu-latest
steps:
- uses: sulimovp/consta/action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ecosystem: pytorch
Development
./scripts/verify.sh # tests; must pass before merging
CONSTA_RUN_LIVE=1 pytest tests/test_live.py # against the real GitHub API
./scripts/run_sample_assessments.sh # regenerate reports/ (needs .env)
See docs/VERIFICATION.md and docs/STATUS.md.
License
Apache-2.0. No CLA.
Metadata
Release files for consta 0.2.3
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 |
|---|---|---|---|---|
| consta-0.2.3.tar.gz | 469.1 kB | With provenance | Details for consta-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| consta-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for consta-0.2.3-py3-none-any.whl |
Total release size: 580.7 kB
Release files / consta-0.2.3.tar.gz
| Download URL | consta-0.2.3.tar.gz |
|---|---|
| Size | 469.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09affa88d1b3aa67f5275a7f3530dae577365786f260058cd484e31569322b50
|
|
BLAKE2b-256 checksum How to use checksums |
9408cd89c5e0f230c9ebfa6b5fd71b9e9a49675dd0fa57520e0c6b2e4d904bdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / consta-0.2.3-py3-none-any.whl
| Download URL | consta-0.2.3-py3-none-any.whl |
|---|---|
| Size | 111.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2ddc06b820aa0bfb16e3f9aac90adf4e5490f55d1bd2cdf12601888c77099da
|
|
BLAKE2b-256 checksum How to use checksums |
dfb693e91bb4f5f57b8fa5eda968d25ba737148c8986dff6fb9b9f96d3897984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logSecurity for consta 0.2.3
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 consta-0.2.3.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 Oct 17, 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.