How shaswatabarua/agentops-guardian works
AgentOps supervises scripted or Gemini-backed agents: a supervisor starts a run, the runner mediates each tool call through loop, trust, and injection controls, and records results for human oversight. The API and dashboard provide run controls; MCP exposes supervisor controls to MCP clients. SQLite persists run, step, and trust state, while optional OpenTelemetry exports traces. Major documented capabilities are represented; relationships for unsampled MCP and dashboard internals are limited to README evidence.
Main entry points: runner.py Run Orchestrator · api.py Control API · agents.py Scripted Agents · trust.py Trust Policy
Components 17
Human Oversight
- Control API
api.py - Live Dashboard
dashboard.html - MCP Controls
mcp_server.py
Agent Execution
- Run Orchestrator
runner.py - Scripted Agents
agents.py - Shop Tools
agents.py - Gemini Agent
llm_agent.py
Run Controls
- Circuit Breaker
breaker.py - Semantic Loop Detector
semantic.py - Injection Shield
shield.py - Trust Policy
trust.py
State & Observability
- SQLite State
store.py - OpenTelemetry Export
telemetry.py
Other components
- Human Supervisor
- MCP Client
- Gemini API
- OTLP Collector
Connections 20
- Human Supervisor → Control API: controls runs
README.md - Control API → Live Dashboard: serves dashboard
README.md - Human Supervisor → MCP Controls: uses controls
README.md - MCP Client → MCP Controls: invokes tools
README.md - Control API → Run Orchestrator: starts runs
api.py - Control API → SQLite State: reads and updates
api.py - Control API → Trust Policy: requests trust data
api.py - Run Orchestrator → Scripted Agents: requests agent steps
runner.py - Run Orchestrator → Shop Tools: dispatches tool calls
runner.py - Scripted Agents → Run Orchestrator: yields tool calls
agents.py - Run Orchestrator → Circuit Breaker: checks each step
runner.py - Run Orchestrator → Semantic Loop Detector: configures detector
runner.py - Run Orchestrator → Injection Shield: scans tool results
runner.py - Run Orchestrator → Trust Policy: checks action policy
runner.py - Run Orchestrator → SQLite State: reads and writes run state
runner.py - Run Orchestrator → OpenTelemetry Export: records run spans
runner.py - Scripted Agents → Gemini Agent: registers agent
agents.py - Gemini Agent → Gemini API: sends requests
llm_agent.py - Trust Policy → SQLite State: records trust events
trust.py - OpenTelemetry Export → OTLP Collector: exports traces
telemetry.py