Sahasraksh - The All-Seeing Observer for AI Agents
Project description
Saksh (Sahasraksh) v1.0.0
"The All-Seeing Observer for your AI Agents."
Saksh (derived from Sahasraksh — "The One with a Thousand Eyes") is a lightweight, non-intrusive observability layer designed specifically for modern AI Agent ecosystems.
Think of it as a Sidecar for your agents. whether you're running a swarm of CrewAI workers, a complex LangGraph state machine, or raw LLM chains, Saksh sits quietly in the background, monitoring health, latency, and vitality without ever blocking your main event loop.
⚡ Why Saksh?
Building agents is hard. Debugging why they "hung" or "timed out" is harder. Saksh gives you a Mission Control dashboard out of the box, so you can stop guessing if your agents are actually working or just hallucinating silence.
- Universal & Agnostic: We don't care if you use CrewAI, LangGraph, or raw OpenAI calls. If it has an API key and a URL, we can watch it.
- Zero-Touch Dashboard: Just instantiate the class, and a full React/FastAPI dashboard spins up on port
2604. No React code required. - Vitality Scoring: We don't just check "Is it up?". We calculate a Vitality Score (0-100) based on latency spikes and auth failures.
- Non-Blocking Sidecar: Runs in a daemon thread. Your agents keep working even if Saksh takes a coffee break.
📦 Installation
Get it via pip:
pip install saksh
🛠️ Quick Start
You can attach Saksh to your existing stack in about 3 lines of code.
1. The Setup
from saksh import Saksh, CrewAINetra, LangGraphNetra
from crewai import Agent
# 1. Summon the Observer 👁️
# This auto-magically starts the dashboard at http://localhost:2604
observer = Saksh(start_dashboard=True)
2. Connect CrewAI
Saksh automatically detects the LLM configuration (URL, API Key) inside your CrewAI agents.
# Your standard CrewAI setup
researcher = Agent(
role="Researcher",
goal="Analyze market trends",
backstory="You are a data wizard."
)
# Open an Eye on it
observer.open_eye(CrewAINetra(researcher, "Market-Researcher-01"))
3. Connect LangGraph
Since LangGraph is stateful and abstract, we monitor the underlying LLM provider it relies on.
# graph_app = workflow.compile()
# Register the graph (defaults to checking OpenAI availability)
observer.open_eye(LangGraphNetra(graph_app, "Math-Graph-State-Machine"))
That's it. Your terminal will now log:
👁️ Saksh is watching...
🧩 Architecture
Saksh uses a Netra (Eye) Adapter Pattern.
- Saksh (Core): The singleton observer that manages the background thread and dashboard.
- Netra (Adapter): A standardized interface that knows how to "Gaze" at a specific type of agent and normalize its health data into a
HealthPulse.
🤝 Contributing
This is v1.0.0 — the "It Works on My Machine" release. We are actively looking for contributors to build Netras (Adapters) for:
- Autogen
- Semantic Kernel
- Local Ollama/Llama.cpp instances
PRs are welcome! Let's build the standard for Agent Observability together.
📜 License
MIT © 2026 Ram Bikkina
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 saksh-1.0.1.tar.gz.
File metadata
- Download URL: saksh-1.0.1.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ff1b0e3546e9b357f5d143454fd150ec791fa82cddae56ddb1f303d1368fa0c
|
|
| MD5 |
51da501df9751d11b74aaf66563bcf71
|
|
| BLAKE2b-256 |
87ce70c17717af102022c37803ea740764484a95e2cf2d87ce45bfcf4b08be20
|
File details
Details for the file saksh-1.0.1-py3-none-any.whl.
File metadata
- Download URL: saksh-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e5287d52eb006592ead002da70664d7455fd891c4d2ab6c85800c2ee81411dc
|
|
| MD5 |
8192a3cd04517548484f835d2ce66a24
|
|
| BLAKE2b-256 |
7de3c01ba4dd05b3e61ce2ab11eeb9945b885d3cfda681254e850026bdeaeb30
|