Theorizer CLI
The command line for Theorizer, which generates literature-grounded scientific theories from a corpus of papers.
Install and check
pip install asta-theorizer
export OPENAI_API_KEY=... # defaults to gpt-6-sol, and gpt-6-luna per paper
export ANTHROPIC_API_KEY=... # or this: claude-opus-5-5, and claude-sonnet-5-5 per paper
export S2_API_KEY=... # optional: faster paper fetching
export MISTRAL_API_KEY=... # optional: Mistral OCR for PDFs instead of local conversion
export NORA_RETRIEVAL_BEARER_TOKEN=... # optional, with NORA_RETRIEVAL_ENV: full text from nora-retrieval first
export NORA_RETRIEVAL_ENV=prod # (prod or dev); USE_NORA_RETRIEVAL_FULLTEXT=false opts out
theorize doctor
theorize -p vip/ init
theorize -p vip/ init --model gpt-5-mini --extraction-model gpt-5-mini # cheaper models for a first run
theorize --help
theorize papers --help
The models follow the key: whichever provider you have one for, OpenAI first when you have both. --model/--extraction-model override that and are saved in the project. theorize doctor exits non-zero when a key is missing, including when the model you chose belongs to a provider you have no key for.
Papers from your own files or a store
This build has no paper search (PaperFinder is removed). Find papers with s2 or asta-papers,
then import them, or fetch known corpus ids.
theorize -p vip/ papers import tests/fixtures/one-paper.md
theorize -p vip/ papers import my-papers/*.pdf # local conversion
theorize -p vip/ papers import my-papers/*.pdf --ocr mistral # Mistral OCR
theorize -p vip/ papers import my-papers/ --no-metadata # skip the metadata call
asta-papers search "VIP interneurons visual cortex" --limit 1 | asta-papers store > store.json
theorize -p vip/ papers import store.json
theorize -p vip/ papers fetch 225095372 244348308 # full text of these corpus ids
theorize -p vip/ show papers
theorize -p vip/ show papers --status metadata-only
The whole run in one command
theorize -p vip/ run "Build a theory of how VIP interneurons control response gain in mouse V1" --max-papers 1
theorize -p vip/ export html
open vip/html/index.html
Stage by stage
theorize -p vip/ plan "Build a theory of how VIP interneurons control response gain in mouse V1"
theorize -p vip/ show plan
theorize -p vip/ show plan --full
theorize -p vip/ extract --max-papers 1
theorize -p vip/ extract
theorize -p vip/ show extraction
theorize -p vip/ theories generate
theorize -p vip/ show theories
theorize -p vip/ export html
Refine the schema from what came out
theorize -p vip/ report
theorize -p vip/ show variable-report
theorize -p vip/ schemas extend
theorize -p vip/ schemas extend --max-suggestions 5 --save-as schema-wide
theorize -p vip/ show schema-extended
theorize -p vip/ extract --schema schema-extended --save-as extraction-extended
theorize -p vip/ theories generate --extraction extraction-extended
Let the papers propose the schema
theorize -p vip/ discover
theorize -p vip/ schemas from-discovery
theorize -p vip/ show schemas#0
theorize -p vip/ extract --schema schemas#0 --save-as extraction-discovered
theorize -p vip/ theories generate --extraction extraction-discovered
Other theory generators
theorize -p vip/ theories generate --objective novelty --save-as theories-novelty
theorize -p vip/ theories generate --no-reflection --max-laws 2 --model gpt-5.2
theorize -p vip/ theories generate --max-data-tokens 800000 # more evidence per call
theorize -p vip/ theories generate --suggestions variable-report
theorize -p vip/ theories sweep --debug-limit 2
theorize -p vip/ theories sweep --output-types "MECHANISTIC EXPLANATION" --inference-types none
theorize -p vip/ show theories
Symbolic laws
theorize -p vip/ schemas symbolic
theorize -p vip/ show symbolic-schema
theorize -p vip/ extract --schema symbolic-schema --save-as extraction-symbolic
theorize -p vip/ symbolic table
theorize -p vip/ symbolic solve
theorize -p vip/ symbolic solve --skip pysr_symbolic --skip gplearn_symbolic --timeout 60
theorize -p vip/ symbolic laws
theorize -p vip/ symbolic report symbolic-report
theorize -p vip/ symbolic report symbolic-report --out vip/laws.md
Evaluate the theories
theorize -p vip/ evaluate judge
theorize -p vip/ evaluate judge --only-novel --model gpt-5.2
theorize -p vip/ evaluate belief --samples 2 --limit 1
theorize -p vip/ evaluate novelty --limit 1
theorize -p vip/ show evaluation-novelty
theorize -p vip/ export html
Inspect and pipe
theorize -p vip/ show
theorize -p vip/ show 3
theorize -p vip/ load plan
theorize -p vip/ load plan --key output.paper_search_query
theorize -p vip/ load extraction > extraction.json
theorize -p vip/ --json show | jq '.data.items[].name'
theorize -p vip/ --json theories generate --no-reflection | jq '.data.theory_ids'
theorize -p vip/ -q show theories
Models and keys
theorize -p vip/ init --model gpt-6-sol --extraction-model gpt-6-luna # the defaults
theorize -p vip/ init --repair-model gpt-6-luna # malformed-JSON repair (default: the extraction model)
THEORIZER_MODEL=gpt-5.2 theorize -p vip/ theories generate
THEORIZER_REASONING_EFFORT=medium theorize -p vip/ theories generate # default high; THEORIZER_EXTRACTION_REASONING_EFFORT for extract and discover; none sends none
theorize -p vip/ theories generate --model gpt-5.2
LITELLM_BASE_URL=https://proxy.example/v1 LITELLM_USER_KEY=... theorize -p vip/ doctor
Resume and retry
theorize -p vip/ extract # reruns pick up where the last one stopped
theorize -p vip/ extract --llm-timeout 5400 # a slow extraction model: 90 minutes per paper call (default 3600, or MAX_GENERATION_TIME_SECONDS)
theorize -p vip/ theories generate --llm-timeout 7200 # a long-evidence generation on a slow model (default: MAX_GENERATION_TIME_SECONDS, else 3600)
theorize -p vip/ papers fetch 225095372 # a failed paper is fetched again
theorize -p vip/ theories sweep --debug-limit 2 --debug-seed 1
Exit codes
0 done
1 a stage ran and failed (no theories, nothing extracted, solver error)
2 usage (missing input, unknown reference, no papers)
3 preflight (another command holds the project, doctor found a problem)
Metadata
Release files for asta-theorizer 0.1.5
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 |
|---|---|---|---|---|
| asta_theorizer-0.1.5.tar.gz | 542.3 kB | Without provenance | Details for asta_theorizer-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asta_theorizer-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for asta_theorizer-0.1.5-py3-none-any.whl |
Total release size: 891.4 kB
Release files / asta_theorizer-0.1.5.tar.gz
| Download URL | asta_theorizer-0.1.5.tar.gz |
|---|---|
| Size | 542.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dead373f7ea8d2e1d6791fb7be69697623e502a86c83906f79ead389f8b2c02
|
|
BLAKE2b-256 checksum How to use checksums |
7928f8f46bb948e87dd41978585d0c68203b3bf0a41434624f983f80f16a5e18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / asta_theorizer-0.1.5-py3-none-any.whl
| Download URL | asta_theorizer-0.1.5-py3-none-any.whl |
|---|---|
| Size | 349.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbf66bc43191339d0a4e0706fc6e42b64ca07e3eaf7778acca0b5d853f2e2a43
|
|
BLAKE2b-256 checksum How to use checksums |
ccc52c7fe82d4de174d3d983523a473ab324b53c3149c97c657711ba0967e7b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Security for asta-theorizer 0.1.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.