Cascade AI — regime-aware HMM scoring for multi-agent systems
Project description
cascai
Cascade AI — regime-aware HMM scoring for multi-agent systems. Detects behavioral regimes in agent runs and scores system health using Hidden Markov Models.
Install
pip install cascai
Quickstart
# Print installed version
cascai version
# Show current agent health status from stored runs
cascai status
# Score a specific run by ID
cascai score <run_id>
# Ingest a JSONL log file of agent runs into the database
cascai ingest path/to/runs.jsonl
# Render an HTML dashboard with regime analysis and health-score trend
cascai visualize
Known Limitations
Non-ASCII paths: The cascai CLI may fail to locate its database when
installed in or run from a directory whose path contains non-ASCII characters
(e.g. Hebrew file names). Workaround: install into a plain-ASCII path and
set CASCAI_DB_PATH to point to your data directory explicitly. If the
cascai console script itself won't launch, run python -m cascai.cli
<command> instead (note: python -m cascai does not work — there is no
cascai/__main__.py — the module path must be cascai.cli).
-
Reverse-Effect Classifier: The Reverse-Effect Classifier module (
cascai.reverse_effect) has accuracy roughly at base-rate (no meaningful improvement over random guessing). It is not production-ready and should not be relied upon for critical decision-making. -
Import-time telemetry:
import cascaiwrites a small amount of module-load telemetry (~10 lines) to~/.cascai/runs.jsonl(or$CASCAI_STATE_DIR/runs.jsonlif set) as a side effect of package initialization. This happens on any import, with no explicit user action. It does not affect functionality and contains no user data — only module-load timing markers. -
cascai scoreaccuracy with standaloneingest: when usingcascai ingestdirectly (without real Anthropic SDK interception),input_tokensis not captured and defaults to 0. Since the Cascai Equation's theta term depends on input_tokens variance,cascai scorewill return a constant equilibrium value (V≈5.0) regardless of actual agent health for standalone-ingested data. Usecascai statusfor accurate regime/health assessment in this case — it does not depend on input_tokens.cascai scoreis fully accurate only when used with real SDK-intercepted data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cascai-0.2.0.tar.gz.
File metadata
- Download URL: cascai-0.2.0.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1256ba5c45abfc39b6f992bbda820e5d2d4345c0f46bf81bb619b86e8f77f92d
|
|
| MD5 |
74a318c3ef9998cce90c2041ab633e85
|
|
| BLAKE2b-256 |
80ce551b75c33d0d1ecbee62c9cee2c28734b846463ebf535c2addc156db588b
|
File details
Details for the file cascai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cascai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 36.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b44b181b0109dd5f28f0761ba6382fb1e9ff1004bfe7d9ad7d93709e28e14f1c
|
|
| MD5 |
49cfcbe068974932ef064d39dd8be11d
|
|
| BLAKE2b-256 |
b4b6711581558edb58f6de1d09006cc56f13b21277c3316a5ade5cb662815ec7
|