Multi-agent failure detection for production AI systems
Project description
Pisama
Multi-agent failure detection for production AI systems. Runs locally, no API key needed.
Install
pip install pisama
Quick Start
import pisama
result = pisama.analyze("trace.json")
for issue in result.issues:
print(f"[{issue.type}] {issue.summary} (severity={issue.severity})")
CLI
# Analyze a trace file
pisama analyze trace.json
# List available detectors
pisama detectors
Detectors
Pisama ships with 18 failure detectors that run locally:
| Detector | Catches |
|---|---|
| loop | Exact, structural, and semantic loops |
| corruption | State corruption and invalid transitions |
| persona_drift | Persona drift and role confusion |
| coordination | Agent handoff and communication failures |
| hallucination | Factual inaccuracy in agent output |
| injection | Prompt injection attempts |
| overflow | Context window exhaustion |
| derailment | Task focus deviation |
| context | Context neglect in responses |
| communication | Inter-agent communication breakdown |
| specification | Output vs specification mismatch |
| decomposition | Task breakdown failures |
| workflow | Workflow execution issues |
| withholding | Information withholding |
| completion | Premature or delayed task completion |
| cost | Token and cost budget overruns |
| convergence | Metric plateau, regression, and divergence |
| repetition | Repetitive output patterns |
Docs
Full documentation: docs.pisama.ai
License
MIT
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
pisama-0.1.0.tar.gz
(31.5 kB
view details)
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
pisama-0.1.0-py3-none-any.whl
(41.2 kB
view details)
File details
Details for the file pisama-0.1.0.tar.gz.
File metadata
- Download URL: pisama-0.1.0.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c96be751625251fa2c93592c5ca58cb391598f94582b47ab8c679c72d105b206
|
|
| MD5 |
b516e8c76b2fe818261bd00b9c18376f
|
|
| BLAKE2b-256 |
2dba6cac4ad9224985aae42ff3fd46a7fbd45c972989bfacd07d760398310672
|
File details
Details for the file pisama-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pisama-0.1.0-py3-none-any.whl
- Upload date:
- Size: 41.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47ee5c15fb3b4a623dbbe2632d25a0bb6fb2fac90d92750c2f171684908b5936
|
|
| MD5 |
8ea898e6107561e3c86812f183d54928
|
|
| BLAKE2b-256 |
f8cdba7d5f06e1efdb15abbd68497863ff1eafb2f7ca257d3442f50e467de103
|