Skip to main content

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 cascai writes a small amount of module-load telemetry (~10 lines) to ~/.cascai/runs.jsonl (or $CASCAI_STATE_DIR/runs.jsonl if 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 score accuracy with standalone ingest: when using cascai ingest directly (without real Anthropic SDK interception), input_tokens is not captured and defaults to 0. Since the Cascai Equation's theta term depends on input_tokens variance, cascai score will return a constant equilibrium value (V≈5.0) regardless of actual agent health for standalone-ingested data. Use cascai status for accurate regime/health assessment in this case — it does not depend on input_tokens. cascai score is fully accurate only when used with real SDK-intercepted data.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cascai-0.2.1.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cascai-0.2.1-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file cascai-0.2.1.tar.gz.

File metadata

  • Download URL: cascai-0.2.1.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for cascai-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d7aedab82efd73c0929a6325f397f8153f7f25759dd505ede260f509db6bf361
MD5 85c1e4dcaeb5eb536ca67f2b38726683
BLAKE2b-256 e78e8ff31ea1953d5269879a5b4aa0afe353a9a9c07e138fcc556ecb3d4d8fd9

See more details on using hashes here.

File details

Details for the file cascai-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cascai-0.2.1-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

Hashes for cascai-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc756cca801510dd544eedb69637f6f4166451cf50448dcaca0a23d67cbb3c36
MD5 abead7ca5cf50efbda34183d6058f397
BLAKE2b-256 60edf7fdcb80d5fc3d6f4926555a5652178ed96ae9f45d951af6388786ffb706

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page