A unified visual dashboard for LLM interpretability — real-time token streams, hallucination scoring, and prompt cost analysis in one interface.
Combines the power of three tools:
- Every-Other-Token — token-level stream interception & perplexity
- LLM-Hallucination-Detection-Script — confidence scoring & flag detection
- Token-Visualizer — prompt cost & compression analysis
- Live Token Stream Panel — watch tokens arrive with perplexity heatmap coloring
- Hallucination Score Panel — real-time confidence levels and flagged tokens
- Prompt Cost Panel — token count, cost estimate, compression suggestions
- Side-by-side comparison — run two prompts simultaneously and diff the results
- Export — save sessions as JSON or HTML reports
pip install prompt-observatory
observatory --api-key $ANTHROPIC_API_KEYOr run from source:
git clone https://github.com/Mattbusel/prompt-observatory
cd prompt-observatory
pip install -e ".[dev]"
python -m observatoryOpen http://localhost:7860 in your browser.
prompt-observatory/
├── observatory/
│ ├── __init__.py
│ ├── __main__.py
│ ├── app.py # Gradio UI entrypoint
│ ├── core/
│ │ ├── stream.py # Token stream interceptor
│ │ ├── hallucination.py # Hallucination scorer
│ │ └── cost.py # Prompt cost analyzer
│ ├── ui/
│ │ ├── panels.py # Gradio panel components
│ │ └── export.py # Session export
│ └── providers/
│ ├── anthropic.py
│ └── openai.py
└── tests/
- tokio-prompt-orchestrator — production-grade Rust orchestration for LLM pipelines
- Every-Other-Token — token stream interceptor (core component)
- llm-cpp — C++ single-header LLM infrastructure libraries
MIT