Skip to main content
Glama

๐Ÿš€ Live Dashboard ยท โšก Quick Start ยท ๐Ÿ“– SDK Reference ยท ๐Ÿ“ฆ PyPI ยท ๐Ÿ› ๏ธ Deployment Guide

๐Ÿงญ Why Agent Control Room

Autonomous agents fail in ways traditional APM tools were never designed to catch โ€” runaway loops, silent cost overruns, degraded reasoning quality, and multi-step tool chains that are impossible to debug from logs alone.

Agent Control Room (ACR) is an open-source reliability layer purpose-built for agents. Drop it into an existing stack in seconds and immediately get full-fidelity tracing, live cost tracking, and safety guardrails โ€” no code changes required.

# Before ACR โ€” flying blind, must add callbacks everywhere manually
llm = ChatMistralAI(model="mistral-small-2506", callbacks=[acr_cb])
chain.with_config(callbacks=[acr_cb])   # โ† tedious, error-prone

# After ACR v0.3.0 โ€” TRUE zero-effort, zero code changes
acr-run python agents.py
# โ†‘ That's it. Every LLM call, tool, loop, cost โ†’ ACR dashboard instantly.

Every LLM call, tool invocation, and agent decision is captured, costed, and monitored in real time. When an agent starts looping, blows through budget, or degrades in quality, ACR flags it before it becomes a production incident.

Related MCP server: Cordum_io

โœจ Features

๐Ÿ” Real-Time Tracing

Every LLM call, tool use, chain, retrieval, and agent step captured as OpenTelemetry-aligned spans โ€” visible in the Trace Inspector with exact latency and payloads.

๐Ÿ’ฐ Cost Intelligence

Token usage and spend broken down per run, per agent, and per model. Supports OpenAI, Anthropic, Google, Mistral, Meta Llama, and more.

๐Ÿ›ก๏ธ Guardrails & Safety

Cost limits, latency budgets, loop detection, quality gates, and PII redaction โ€” enforced client-side and server-side.

๐Ÿ” Enterprise & Security

SAML/OIDC SSO, immutable audit logging, field-level encryption, SOC 2 readiness, and PII redaction out of the box.

๐Ÿ“Š Live Dashboard

A real-time control room for runs, spans, costs, guardrails, evaluations, and audit logs โ€” all in one place.

๐Ÿค– Universal Auto-Instrumentation

acr-run CLI auto-detects and patches every installed AI framework at startup โ€” no callbacks, no decorators, no code changes.

๐Ÿงช LLM-as-a-Judge Evaluations

Auto-score agent outputs for hallucination, faithfulness, correctness, and relevance using Groq (free, fast).

๐ŸŒ Multi-Agent Support

Hierarchical run trees link orchestrator runs to sub-agent runs via parent_run_id, visible in the dashboard.

๐Ÿ”Œ Supported Frameworks (v0.4.0) โ€” 13 Frameworks

Framework

Integration

How

LangChain

ACRCallbackHandler

Attach to any LLM or chain

LangGraph

instrument_langgraph()

One call, patches all graphs

CrewAI

instrument_crewai()

Patches Crew.kickoff, Agent.execute_task, BaseTool.run

AutoGen / AG2

instrument_autogen()

Patches initiate_chat, reply hooks, function execution

LlamaIndex

instrument_llamaindex()

Patches LLM, Retriever, QueryEngine, Embeddings

OpenAI

wrap_openai()

Wraps openai.OpenAI() / AsyncOpenAI() โ€” sync + async + streaming

Groq โญ

wrap_groq() / instrument_groq()

Llama3, Mixtral, Gemma via Groq cloud

Anthropic โญ

wrap_anthropic() / instrument_anthropic()

Claude 3.5 / Opus 4.x โ€” tool use spans included

Google Gemini โญ

wrap_gemini() / instrument_gemini()

google-generativeai and new google-genai SDK (2025)

Mistral AI โญ

wrap_mistral() / instrument_mistral()

Native Mistral API โ€” large, small, codestral

Ollama โญ

wrap_ollama() / instrument_ollama()

Local inference โ€” tokens tracked, cost always $0.00

Google ADK โญ

instrument_google_adk()

Monkey-patch + OTel exporter for Google Agent Dev Kit

Pydantic AI โญ

instrument_pydantic_ai()

Wraps Agent.run / Agent.run_sync with full token attribution

Any Python

@trace.agent / @trace.tool

Decorator-based, framework-agnostic

Any language

REST API

POST /api/v1/ingest/traces โ€” works from JS, Go, Java, etc.

โญ New in v0.4.0

Install all integrations at once:

pip install "agentcontrolroom[all]"

Or install only what you need:

pip install "agentcontrolroom[groq]"
pip install "agentcontrolroom[anthropic]"
pip install "agentcontrolroom[gemini]"
pip install "agentcontrolroom[mistral]"

๐Ÿ—๏ธ Architecture

flowchart TB
    A["๐Ÿค– Your AI Agents\nLangChain ยท CrewAI ยท AutoGen ยท LlamaIndex ยท Custom"] -->|"acr-run python app.py\n(zero code changes)"| B

    subgraph B["๐ŸŽ›๏ธ Agent Control Room"]
        direction TB
        C["๐Ÿ“ฅ Ingest API\n/api/v1/ingest/traces"]
        D["๐Ÿงช Groq LLM Judge\nAuto-evaluation"]
        E[("๐Ÿ—„๏ธ PostgreSQL + Redis")]
        F["๐Ÿ“Š React Dashboard\nRuns ยท Spans ยท Costs ยท Guardrails"]
        G["๐Ÿ” Enterprise Layer\nSSO ยท Audit Logs ยท PII Redaction"]

        C --> E
        D --> E
        E --> F
        G --> E
    end

    B --> H["๐Ÿšจ Guardrail Alerts\nCost ยท Latency ยท Loops ยท Quality"]

    style A fill:#0ea5e9,color:#fff,stroke:#0369a1,stroke-width:2px
    style B fill:#f8fafc,stroke:#6366f1,stroke-width:2px
    style E fill:#6366f1,color:#fff,stroke:#4338ca,stroke-width:2px
    style F fill:#22c55e,color:#fff,stroke:#15803d,stroke-width:2px
    style H fill:#ef4444,color:#fff,stroke:#b91c1c,stroke-width:2px

Stack: FastAPI ยท SQLAlchemy ยท PostgreSQL ยท Redis ยท Dramatiq ยท React ยท Vite ยท OpenTelemetry

โšก Quick Start

Get from zero to a fully traced agent in under 60 seconds.

Option 1 โ€” acr-run (TRUE zero-effort, no code changes)

# 1. Install
pip install agentcontrolroom

# 2. Set ONE environment variable โ€” that's all
export ACR_API_KEY=your-api-key-here
# (endpoint defaults to ACR cloud automatically)

# 3. Run your EXISTING, UNMODIFIED project
acr-run python agents.py

What you'll see:

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  ACR Auto-Instrumentation Runner  v0.3.0
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Scanning for AI frameworks...

  โœ… LangChain  โ€” global callback injected (zero-effort)
  โœ… LangGraph  โ€” monkey-patched (zero-effort)
  โœ… CrewAI     โ€” monkey-patched (zero-effort)
  โœ… AutoGen    โ€” monkey-patched (zero-effort)
  โœ… LlamaIndex โ€” monkey-patched (zero-effort)
  โœ… OpenAI     โ€” client auto-wrapped (zero-effort)

  6 frameworks instrumented. All traces โ†’ ACR dashboard.
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Option 2 โ€” Manual (per-framework, one line)

# LangChain / LangGraph
from agentcontrolroom.instruments.langchain import ACRCallbackHandler
llm = ChatMistralAI(model="mistral-small-2506", callbacks=[ACRCallbackHandler()])

# CrewAI
from agentcontrolroom import instrument_crewai
instrument_crewai()   # call before Crew/Agent creation

# AutoGen
from agentcontrolroom import instrument_autogen
instrument_autogen()  # call before creating agents

# LlamaIndex
from agentcontrolroom import instrument_llamaindex
instrument_llamaindex()  # call before using any index/query engine

# OpenAI direct
from agentcontrolroom import wrap_openai
import openai
client = wrap_openai(openai.OpenAI())

Option 3 โ€” Decorator-based (any Python framework)

from agentcontrolroom import trace, configure

configure(api_key="acr-dev-xxxx")

@trace.agent(name="research-agent")
def research(query: str):
    result = my_llm.invoke(query)
    return result

@trace.tool(name="web-search")
def search(query: str):
    return requests.get(f"https://api.search.com?q={query}").json()

Verify Setup

acr-check
==========================================================
  Agent Control Room โ€” System Health Check
==========================================================
  โœ… Backend reachable   (version: 0.3.0)
  โœ… API key valid
  โœ… Test trace ingested (1 span stored)
  โœ… Dashboard reachable
  ๐ŸŽ‰ All checks passed! (4/4)
==========================================================

๐Ÿ”Œ Model Context Protocol (MCP) Server

Connect your AI coding assistants (Cursor, Windsurf, Claude Desktop, Antigravity, VS Code) directly to Agent Control Room. Ask your IDE's assistant to debug failed runs, audit token spend, and inspect traces in chat without leaving your code editor!

1. Cursor Setup (Settings -> MCP -> Add New MCP Server)

  • Name: acr

  • Type: command

  • Command: uvx agentcontrolroom mcp

  • Environment Variables:

    • ACR_API_KEY: acr-dev-xxxx

    • ACR_ENDPOINT: https://acr-backend-xlj5.onrender.com

2. Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "acr": {
      "command": "uvx",
      "args": ["agentcontrolroom", "mcp"],
      "env": {
        "ACR_API_KEY": "acr-dev-xxxx",
        "ACR_ENDPOINT": "https://acr-backend-xlj5.onrender.com"
      }
    }
  }
}

3. Available MCP Tools:

  • acr_list_runs: List recent agent runs with latency, cost, and status.

  • acr_get_run_trace: Fetch full execution tree, child spans, prompts, and completions.

  • acr_diagnose_failure: Pinpoint the exact failing span, triggering input, and stack trace so the AI can fix your code.

  • acr_get_cost_summary: Analyze token spend across LLM models and detect anomalies.

  • acr_list_guardrails: View active budget, latency, and loop detection rules.

  • acr_create_guardrail: Create or adjust safety rules via natural language.

  • acr_analyze_prompt_bloat: Detect duplicate prompt prefixes, token bloat, and prompt caching advice.

  • acr_run_assertions: Run deterministic checks (schema validation, secret leaks, tool idempotency, grounding).

  • acr_check_deadlock: Diagnose multi-agent alternating cycles and semantic deadlocks.

  • acr_replay_step: Replay a single failed step with prior cached context and revised prompt/model in IDE.

4. Smithery 1-Click Install

To install Agent Control Room for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install agentcontrolroom --client claude

Deployment Options

pip install agentcontrolroom
export ACR_API_KEY=<your-key>
# ACR_ENDPOINT defaults to cloud automatically โ€” nothing else needed

Deploy to Render

Deploys PostgreSQL, Redis, the FastAPI backend, and the React dashboard automatically.

git clone https://github.com/Darshan-1812/Helm-AI
cd Helm-AI
cp .env.example .env  # fill in your values
docker compose up -d

Then open http://localhost:3000.

Full guide including Railway, VPS, and enterprise VPC setups: docs/deployment.md

๐Ÿ“š Examples

Example

Description

MSME Hallucination Demo

(Recommended) Visual demo triggering LLM-as-a-Judge and Cost Guardrails

LangChain Quickstart

Zero-config LangChain monitoring

CrewAI Integration

Multi-agent crew with full trace hierarchy

AutoGen Integration

Conversational agent tracing

LlamaIndex RAG

RAG pipeline with retrieval + reranking spans

Manual Tracing

Instrument any framework by hand

Cost Guardrails

Set budget limits with alerts

Health Check

Verify your ACR setup

๐Ÿ—‚๏ธ Repository Structure

Helm-AI/
โ”œโ”€โ”€ backend/                    FastAPI + PostgreSQL + Redis
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ api/                REST endpoints (runs, ingest, guardrails, auth, ...)
โ”‚   โ”‚   โ”œโ”€โ”€ models/             SQLAlchemy ORM models
โ”‚   โ”‚   โ”œโ”€โ”€ services/           Business logic (tracing, eval, cost, PII, ...)
โ”‚   โ”‚   โ””โ”€โ”€ workers/            Dramatiq background workers
โ”‚   โ”œโ”€โ”€ alembic/                Database migrations
โ”‚   โ””โ”€โ”€ Dockerfile.prod
โ”œโ”€โ”€ sdk/                        agentcontrolroom Python package (PyPI)
โ”‚   โ””โ”€โ”€ src/agentcontrolroom/
โ”‚       โ”œโ”€โ”€ instruments/
โ”‚       โ”‚   โ”œโ”€โ”€ langchain.py    LangChain + LangGraph handler
โ”‚       โ”‚   โ”œโ”€โ”€ crewai.py       CrewAI monkey-patcher
โ”‚       โ”‚   โ”œโ”€โ”€ autogen.py      AutoGen / AG2 monkey-patcher
โ”‚       โ”‚   โ”œโ”€โ”€ llamaindex.py   LlamaIndex monkey-patcher  โ† NEW v0.3.0
โ”‚       โ”‚   โ””โ”€โ”€ openai.py       OpenAI client wrapper
โ”‚       โ”œโ”€โ”€ tracer.py           @trace.agent / @trace.tool decorators
โ”‚       โ”œโ”€โ”€ guardrails.py       Client-side guardrail engine
โ”‚       โ”œโ”€โ”€ cost.py             Token cost calculator (OpenAI/Anthropic/Mistral/...)
โ”‚       โ””โ”€โ”€ _cli.py             acr-check + acr-run CLI  โ† NEW v0.3.0
โ”œโ”€โ”€ frontend/                   React + Vite dashboard
โ”‚   โ””โ”€โ”€ src/components/
โ”‚       โ””โ”€โ”€ DashboardView.tsx   Main dashboard (Traces, Cost, Guardrails, Agents, ...)
โ”œโ”€โ”€ sdk-node/                   @agentcontrolroom/node TypeScript SDK
โ”œโ”€โ”€ docs/                       Documentation
โ”œโ”€โ”€ examples/                   Working code examples
โ”œโ”€โ”€ render.yaml                 One-click Render deploy
โ””โ”€โ”€ docker-compose.yml          Local development

๐Ÿ•’ Changelog

  • 7 new framework instruments โ€” Groq, Anthropic, Google Gemini, Mistral AI, Ollama, Google ADK, Pydantic AI

  • 13 total supported frameworks โ€” most universal AI agent observability SDK in the Python ecosystem

  • Prompt Playground โ€” built-in UI to prototype prompts directly from the dashboard with real inference and automatic trace capture

  • Comprehensive pricing tables โ€” updated cost calculator with Claude 4.x, Gemini 2.5, Groq-hosted models

  • pip install agentcontrolroom[groq/anthropic/gemini/mistral/ollama] โ€” granular provider installs

  • 5 new unit test files โ€” test coverage for all new framework wrappers

  • acr-run CLI โ€” TRUE zero-effort auto-instrumentation. Run any project with no code changes: acr-run python agents.py

  • Full LlamaIndex support โ€” instrument_llamaindex() patches LLM, Retriever, QueryEngine, Embeddings and Reranker

  • pip install agentcontrolroom[all] โ€” installs all framework integrations at once

  • Dynamic model extraction โ€” dashboard correctly shows Mistral, Claude, Llama, etc. from live telemetry instead of hardcoded values

  • Live Trace Inspector โ€” clicking a run fetches and renders all child spans with prompts and tool outputs

  • CrewAI auto-instrumentation โ€” instrument_crewai() with full crew/agent/tool hierarchy

  • AutoGen / AG2 support โ€” instrument_autogen() for both v0.2 and v0.4

  • LangGraph support โ€” instrument_langgraph() for graph-based agents

  • OpenAI direct wrapper โ€” wrap_openai() for the raw OpenAI Python SDK

  • LangChain ACRCallbackHandler with zero-config integration

  • Groq LLM-as-a-Judge auto-evaluation (hallucination, faithfulness, correctness, relevance)

  • acr-check CLI health checker

  • SOC 2 Phase 4: data retention policies, encryption at rest

๐Ÿ“– Documentation

๐Ÿ“„ Citation

If you use Agent Control Room in research or production, please cite:

@software{agentcontrolroom2026,
  author  = {Darshan Girase},
  title   = {Agent Control Room: Reliability Layer for Autonomous AI Agents},
  year    = {2026},
  url     = {https://github.com/Darshan-1812/Helm-AI},
  version = {0.3.0}
}

๐Ÿ“œ License

MIT License โ€” see LICENSE for details.

Available Tools

10 tools
acr_analyze_prompt_bloatB

Analyze prompt redundancy, token bloat, and prompt caching advice for a run.

Args: run_id: The UUID or string ID of the agent run.

Inputs: run_id (required). Returns: result

acr_check_deadlockB

Check multi-agent execution for ping-pong dialogue cycles and semantic deadlocks.

Args: run_id: The UUID or string ID of the agent run.

Inputs: run_id (required). Returns: result

acr_create_guardrailB

Create a new safety guardrail to actively prevent runaway agent costs or loops.

Args: name: A descriptive rule name, e.g. 'Daily Max Spend' or 'Search Loop Breaker'. rule_type: Guardrail type: 'cost_limit', 'latency_limit', or 'loop_detection'. threshold: Numeric limit (e.g. 1.50 for $1.50 cost, 30.0 for 30s latency, 5 for max iterations). action: Response behavior when violated: 'block', 'alert', or 'kill'.

Inputs: name (required), rule_type (required), threshold (required), action. Returns: result

acr_diagnose_failureA

Diagnose the root cause of an agent failure by analyzing failed spans and error logs.

Args: run_id: Specific run ID to diagnose. If omitted, diagnoses the most recent failed run. agent_name: Optional agent name to narrow search when run_id is omitted.

Inputs: run_id, agent_name. Returns: result

acr_get_cost_summaryC

Analyze LLM token spend, costs by model, costs by agent, and detect cost spikes.

Args: days: Historical time window in days (default 7).

Inputs: days. Returns: result

acr_get_run_traceA

Retrieve full trace details, spans, prompts, and tool calls for a specific run.

Args: run_id: The UUID or string ID of the agent run.

Inputs: run_id (required). Returns: result

acr_list_guardrailsA

List all active agent guardrails and safety policies (cost limits, latency caps, loop detection).

Inputs: no named parameters. Returns: result

acr_list_runsA

List recent agent runs tracked by Agent Control Room.

Args: limit: Maximum number of runs to return (default 10, max 50). status: Filter by run status: 'running', 'completed', 'failed', or 'error'. agent_name: Filter by agent name (e.g. 'financial_analyst', 'code_reviewer').

Inputs: limit, status, agent_name. Returns: result

acr_replay_stepB

Reconstitute prior context and re-execute a single failed or revised step in Cursor / IDE.

Args: run_id: The UUID or string ID of the agent run. span_id: The specific span to replay. updated_prompt: Optional revised prompt or instructions to substitute for this step. updated_model: Optional alternative LLM model to test for this step.

Inputs: run_id (required), span_id (required), updated_model, updated_prompt. Returns: result

acr_run_assertionsC

Run deterministic assertion checks (schema validation, secret leaks, tool idempotency, grounding).

Args: run_id: The UUID or string ID of the agent run.

Inputs: run_id (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    A3.6/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: run listing, trace retrieval, cost summary, guardrail listing/creation, prompt bloat analysis, deadlock detection, failure diagnosis, step replay, and assertions. Although several tools take a run_id and analyze runs, their outputs and intended use cases are well separated by names and descriptions. There is no meaningful risk of confusing one tool for another.

    Naming Consistency5/5

    All tools use a consistent acr_ prefix followed by snake_case verb_noun naming such as acr_get_run_trace, acr_list_runs, acr_create_guardrail, and acr_diagnose_failure. The pattern is predictable across the entire set. acr_run_assertions fits the same convention.

    Tool Count5/5

    Ten tools is well-scoped for an agent control room focused on observability, diagnosis, replay, and safety. Each tool maps to a distinct monitoring or control workflow without obvious filler. The count is neither thin nor bloated.

    Completeness4/5

    The surface covers core workflows well: run listing, trace inspection, cost analysis, failure diagnosis, prompt bloat analysis, deadlock checking, replay, assertions, and guardrail creation/listing. The main gap is guardrail management beyond create/list, such as update, delete, or get-by-id for individual guardrails. Agents can likely work around these gaps, but the lifecycle is not fully closed.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A unified MCP server providing observability, safety control, and behavior evolution for high-agency AI agents through tracing, replaying, and auditing. It features real-time firewall guardrails and ML-driven anomaly detection to monitor, block, or fork agent actions based on risk.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables autonomous AI agents to proactively poll event queues, evaluate document compliance, retrieve grounded knowledge via semantic RAG, enforce human-in-the-loop approval gates, and track multi-model cost budgets.
      10
      MIT