{"slug": "how-do-you-know-your-ai-agent-is-quietly-wrong-in-production", "title": "How do you know your AI agent is quietly wrong in production?", "summary": "OpenLIT, an open-source OpenTelemetry-native observability platform for AI agents, is pitching itself as the layer for \"agent harness engineering\" — tracing, evaluating, guarding and fixing the non-model parts of an agent such as tools, prompts, memory and guardrails. OpenLIT is free to self-host under Apache 2.0 and ships integrations for Claude Code, Codex, Cursor, the OpenAI Agents SDK, LangGraph, CrewAI and 70+ other tools, with Python and TypeScript SDKs installed via pip or npm and a Docker Compose quickstart. The project positions its run → observe → evaluate → fix → verify loop, including LLM-as-a-judge evals, CI gates, prompt-injection guardrails and GPU monitoring for NVIDIA, AMD and Intel hardware, as the way teams catch agents that fail quietly in production.", "body_md": "**Trace, evaluate, guard, and improve AI agents and coding agents with OpenTelemetry.**\nAgent observability · Evals · Guardrails · Prompt management · Cost & GPU monitoring · Self-host free (Apache 2.0)\n\n[Website](https://openlit.io) · [Documentation](https://docs.openlit.io/latest/overview) · [Quickstart](#-get-started-in-5-minutes) · [Compare](https://openlit.io/compare) · [Join Slack](https://join.slack.com/t/openlit/shared_invite/zt-2etnfttwg-TjP_7BZXfYg84oAukY8QRQ)\n\n**OpenLIT is an open-source** intelligence layer for AI ROI. It gives teams OpenTelemetry-native tracing, evaluations, guardrails, prompt and context management, and cost and GPU monitoring for the *harness* around their AI agents and coding agents, so every agent failure can be traced, scored, and turned into a harness fix. OpenLIT is free to self-host under Apache 2.0 and works with any model, framework, or harness: Claude Code, Codex, Cursor, OpenAI Agents SDK, LangGraph, CrewAI, and 70+ more integrations.\n\nAn AI agent is a **model plus a harness**. The harness is everything except the model: tools, context, prompts, memory, hooks, guardrails, and feedback loops. **Agent harness engineering** is the discipline of designing, measuring, and improving that harness so agents are reliable in production. The core loop is *run → observe → evaluate → fix the harness → verify*, and OpenLIT gives you each step:\n\n| Harness engineering step | OpenLIT feature | \n|---|---|\n| **Observe** every LLM call, tool call, MCP request, retrieval and agent step | Agent observability & OpenTelemetry LLM tracing | \n| **Evaluate** quality, safety and cost on real traces | Evals (LLM-as-a-judge, programmatic, human feedback) + CI gates | \n| **Guard** the agent at runtime | Guardrails (prompt injection, sensitive topics, topic restriction) | \n| **Fix** the harness without redeploying | Prompt Hub, Context, Rule Engine, Vault (secrets) | \n| **Compare** models and prompts before shipping | OpenGround | \n| **Account** for cost, latency and hardware | Cost tracking, custom pricing, GPU monitoring (NVIDIA, AMD, Intel) | \n\nA production agent can involve:\n\n``` php\nflowchart TD\n    U([User]) --> A[AI Agent]\n    A --> L[LLM calls]\n    A --> T[Tool calls]\n    A --> R[Retrieval]\n    A --> M[Memory]\n    A --> S[Sub-agents]\n    A --> P[Prompts]\n    A --> C[Code changes]\n    L & T & R & M & S & P & C --> E{{Evaluation}}\n    E --> O[[\"Cost / Quality / Errors\"]]\n\n    style U fill:#F97316,stroke:#7C2D12,color:#fff\n    style A fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style E fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style O fill:#F97316,stroke:#7C2D12,color:#fff\ngit clone https://github.com/openlit/openlit.git\ncd openlit\n\ndocker compose up -d\n```\n\nOpen:\n\n```\nhttp://127.0.0.1:3000\n```\n\nPython:\n\n```\npip install openlit\n```\n\nTypeScript:\n\n```\nnpm install openlit\n```\n\nPython:\n\n``` python\nimport openlit\n\nopenlit.init()\n```\n\nThat's it.\n\nOpenLIT automatically instruments supported LLM providers, frameworks, vector databases, and other AI infrastructure and exports OpenTelemetry traces and metrics.\n\nBy default, configure the OTLP endpoint:\n\n```\nexport OTEL_EXPORTER_OTLP_ENDPOINT=\"http://127.0.0.1:4318\"\n```\n\nOr:\n\n``` python\nimport openlit\n\nopenlit.init(\n    otlp_endpoint=\"http://127.0.0.1:4318\"\n)\n```\n\nOpen your dashboard and start exploring your AI application's traces, metrics, costs, and performance.\n\nAI coding agents are powerful — but understanding what they actually did can be difficult.\n\nOpenLIT gives you an OpenTelemetry-native view of coding-agent sessions.\n\nInstall the CLI:\n\n```\ncurl -fsSL https://raw.githubusercontent.com/openlit/openlit/main/cli/scripts/install.sh | sh\niwr -useb https://raw.githubusercontent.com/openlit/openlit/main/cli/scripts/install.ps1 | iex\n```\n\nConfigure OpenLIT:\n\n```\nopenlit configure --endpoint http://127.0.0.1:4318\n```\n\nInstall coding-agent instrumentation:\n\n```\nopenlit coding install --vendor=all\n```\n\nOr install individual integrations:\n\n```\nopenlit coding install --vendor=cursor\nopenlit coding install --vendor=claude-code\nopenlit coding install --vendor=codex\nopenlit coding install --vendor=opencode\n```\n\nCheck your installation:\n\n```\nopenlit doctor\n```\n\nNow OpenLIT can capture:\n\n``` php\nflowchart LR\n    S([Coding Agent Session]) --> P[User prompt]\n    S --> L[LLM calls]\n    S --> T[Tool calls]\n    T --> T1[File reads]\n    T --> T2[File edits]\n    T --> T3[Shell commands]\n    T --> T4[Search]\n    S --> SA[Sub-agent activity]\n    S --> TU[Token usage]\n    S --> CO[Cost]\n    S --> CI[Code impact]\n\n    style S fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style T fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n```\n\nExplore the resulting sessions in the **Coding Agents** dashboard.\n\nUnderstand exactly what happened during an AI request.\n\nAll represented using OpenTelemetry.\n\nTrack the cost of your AI applications across:\n\nSupport custom pricing for custom and fine-tuned models.\n\nAutomatically evaluate LLM and agent outputs using LLM-as-a-Judge evaluations.\n\nBuilt-in evaluation types include:\n\nUse evaluations to move from:\n\n**\"The agent produced an answer.\"**\n\nto:\n\n**\"The agent produced a good answer.\"**\n\nFind the requests that matter.\n\nInvestigate:\n\nGo from:\n\n`Something went wrong.`\n\nto a fully traced root cause:\n\n``` php\nflowchart TD\n    A[Agent] --> P[Prompt] --> L1[LLM] --> T[Tool call] --> R[Retrieval] --> L2[LLM] --> E([Error])\n\n    style E fill:#DC2626,stroke:#7F1D1D,color:#fff\n    style A fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n```\n\n| <sub>**Traces** — full agent conversation, spans & cost</sub> | <sub>**Evaluations** — hallucination, bias & toxicity checks</sub> | <sub>**Connectors** — plug in ClickHouse, Tempo, Loki, Prometheus & more</sub> | \n| <sub>**Prompt Hub** — versioned, centrally managed prompts</sub> | <sub>**Rule Engine** — conditional rules on trace attributes</sub> | <sub>**Dashboards** — cost, latency & usage charts at a glance</sub> | \n\nUse **Prompt Hub** to:\n\nExample:\n\n```\nprompt = openlit.prompts.get(\n    \"customer-support\"\n)\n```\n\nKeep prompt management separate from application code while maintaining version control and observability.\n\nUse **Context** to store reusable RAG content once and have the Rule Engine return the right piece at runtime. See the [Context docs](https://docs.openlit.io/latest/openlit/prompts-experiments/context/overview).\n\nDefine runtime rules based on trace attributes.\n\nUse rules to dynamically control:\n\nExample:\n\n```\nIF\n  environment = production\n  AND\n  model = expensive-model\n\nTHEN\n  run cost evaluation\n  + retrieve production prompt\n```\n\nUse OpenLIT SDK guardrails to detect and block risky prompts at runtime:\n\n- Prompt injection / jailbreak attempts\n- Sensitive topics\n- Topic restriction\n\nGuardrail checks are traced with OpenTelemetry so you can see when and why a request was blocked. See the [guardrails docs](https://docs.openlit.io/latest/sdk/features/guardrails) and [quickstart](https://docs.openlit.io/latest/openlit/quickstart-guard).\n\nStore LLM API keys and other secrets in **Vault**, then retrieve them at runtime via the SDK or API — without hard-coding credentials in application code. See the [Vault docs](https://docs.openlit.io/latest/openlit/developer-resources/vault/overview).\n\nRun the same prompt across multiple providers in **OpenGround** and compare cost, latency, and output quality before you ship. See the [OpenGround docs](https://docs.openlit.io/latest/openlit/prompts-experiments/openground/overview).\n\nMonitor NVIDIA, AMD, and Intel GPUs used for LLM inference with the OpenTelemetry GPU collector: utilization, memory, power, and temperature, correlated with your traces. See the [GPU collector docs](https://docs.openlit.io/latest/gpu-collector/overview).\n\nOpenLIT is built around **OpenTelemetry**, rather than creating a proprietary telemetry format. Traces and metrics follow OpenTelemetry GenAI semantic conventions (`gen_ai.*`).\n\nYour telemetry can flow through the OpenTelemetry ecosystem:\n\n``` php\nflowchart TD\n    A[\"AI App / AI Agent\"] -->|OTLP| R[OpenLIT OTLP receiver]\n    A -->|optional sidecar| C[Your OpenTelemetry Collector]\n    C --> R\n    C --> O[\"Other OTel backends<br/>(Datadog, Grafana, Honeycomb, ...)\"]\n    R --> B[ClickHouse]\n    B --> D[OpenLIT Dashboard]\n\n    style A fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style R fill:#F97316,stroke:#7C2D12,color:#fff\n    style C fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style B fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style D fill:#F97316,stroke:#7C2D12,color:#fff\n```\n\nOpenLIT listens for OTLP on `:4317` (gRPC) and `:4318` (HTTP). A bundled Collector is not required. You can still put your own Collector in front for fan-out or processing.\n\nThis means you can integrate OpenLIT into an existing OpenTelemetry architecture instead of replacing it.\n\nOpenLIT auto-instruments a growing ecosystem of AI providers, frameworks, vector databases, and GPU infrastructure with a single line of code. Click any badge to view its integration guide.\n\n**LLM Providers**\n\n**Vector & Data Stores**\n\n**AI Frameworks & Agents**\n\n**Governance & Protocols**\n\n**GPU Monitoring**\n\nSee the complete integration list in the [documentation](https://docs.openlit.io/).\n\nOpenLIT provides OpenTelemetry-native SDKs for:\n\n```\npip install openlit\nnpm install openlit\n```\n\nOpenLIT is designed to run in your infrastructure.\n\nA typical deployment looks like:\n\n```\nflowchart TD\n    subgraph App[\"Your application\"]\n        direction LR\n        Agent --> LLM --> Tools --> RAG --> DB\n    end\n    App -->|OTLP| Receiver[OpenLIT OTLP receiver]\n    Receiver --> CH[(ClickHouse)]\n    CH --> Dash[OpenLIT Dashboard]\n\n    style App fill:#1F2937,stroke:#F97316,stroke-width:2px,color:#fff\n    style Receiver fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style CH fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style Dash fill:#F97316,stroke:#7C2D12,color:#fff\n```\n\nRun OpenLIT inside your own infrastructure using Docker or Kubernetes.\n\nYour telemetry stays under your control.\n\n```\ndocker compose up -d\n```\n\nFor Kubernetes, see the [installation documentation](https://docs.openlit.io/latest/openlit/installation#kubernetes).\n\nObservability is only the beginning.\n\nOpenLIT is designed around a continuous AI engineering loop:\n\n``` php\nflowchart LR\n    T[Trace] --> E[Evaluate] --> A[Analyze] --> O[Optimize] --> M[Manage] -.-> T\n\n    style T fill:#F97316,stroke:#7C2D12,color:#fff\n    style E fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style A fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style O fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n    style M fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff\n```\n\nThe goal is simple:\n\n**Make AI systems observable, measurable, debuggable, and continuously improvable.**\n\n**What is OpenLIT?**\nOpenLIT is an open-source agent harness engineering platform. It provides OpenTelemetry-native tracing, evaluations, guardrails, prompt management, and cost and GPU monitoring for AI agents and coding agents, and it is free to self-host under Apache 2.0.\n\n**What is an agent harness?**\nAn agent harness is everything in an AI agent except the model: the tools, context, prompts, memory, hooks, guardrails, and feedback loops that turn a model into a working agent. Claude Code, Codex, and frameworks like LangGraph or CrewAI are harnesses.\n\n**What is agent harness engineering?**\nAgent harness engineering is the discipline of designing, measuring, and improving the harness around a model so agents are reliable in production. Teams run agents on real tasks, observe failures in traces, evaluate them, fix the harness (prompts, tools, rules, guardrails), and verify the fix with regression evals.\n\n**Is OpenLIT an agent framework or a harness runtime?**\nNo. OpenLIT doesn't run your agent loop. It instruments and improves whatever harness you already use, through OpenTelemetry, so you can switch models, frameworks, or harnesses without losing your traces, evals, or prompts.\n\n**How is OpenLIT different from Langfuse, LangSmith, or Arize Phoenix?**\nOpenLIT is Apache-2.0 and OpenTelemetry-native end to end, adds GPU monitoring, guardrails, Vault, and coding-agent observability in the same self-hosted platform, and exports to any OTLP backend. See [https://openlit.io/compare](https://openlit.io/compare) for feature-by-feature comparisons.\n\n**Does OpenLIT work with Claude Code, Codex, and Cursor?**\nYes. The `openlit` CLI ingests each coding agent's hook events and maps them to OpenTelemetry `gen_ai.*` conventions, with no SDK and no code changes.\n\n**Can I run agent evals in CI?**\nYes. Run LLM-as-a-judge and programmatic evals online on production traces, or offline through the SDK as CI/CD gates.\n\n**Is OpenLIT free?**\nYes. Self-hosted OpenLIT is free under Apache 2.0, with no license key and no per-trace fee. Organisation-wide governance features such as custom roles, audit logs, and alerts are part of [OpenLIT Enterprise](https://docs.openlit.io/latest/openlit/enterprise).\n\n**Does OpenLIT add latency?**\nNo proxy is required. SDKs instrument in-process and export telemetry asynchronously over OTLP.\n\n**Can I send data to Grafana, Datadog, or my existing OpenTelemetry Collector?**\nYes. OpenLIT emits standard OTLP traces and metrics, so they can go to OpenLIT, Grafana, Datadog, New Relic, SigNoz, or any OTLP backend.\n\nFeature-by-feature comparisons on [openlit.io/compare](https://openlit.io/compare):\n\nOpenLIT is open source and built with the AI engineering community.\n\nJoin us:\n\nIf OpenLIT is useful to you, **please consider giving the repository a ⭐**.\n\nIt helps other AI engineers discover the project.\n\nContributions are welcome.\n\nYou can contribute by:\n\n- fixing bugs\n- adding integrations\n- improving documentation\n- creating examples\n- improving SDKs\n- adding evaluations\n- building dashboards\n- reporting issues\n- sharing OpenLIT with other developers\n\nCheck the repository's issues for opportunities to contribute. To run OpenLIT from source, see [Run OpenLIT locally](https://github.com/openlit/openlit/blob/main/CONTRIBUTING.md#run-openlit-locally): one script, `scripts/dev-realtime.sh`, starts the UI, OTLP receiver, realtime engine, and NATS.\n\nOpenLIT is licensed under the Apache License 2.0.\n\nSee [LICENSE](https://github.com/openlit/openlit/blob/main/LICENSE) for details.\n\nNames for the same contributors are on [openlit.io/about-us](https://openlit.io/about-us).", "url": "https://wpnews.pro/news/how-do-you-know-your-ai-agent-is-quietly-wrong-in-production", "canonical_source": "https://github.com/openlit/openlit", "published_at": "2026-11-28 19:29:40+00:00", "updated_at": "2026-11-28 19:43:17.068972+00:00", "lang": "en", "topics": ["ai-agents", "mlops", "ai-tools", "developer-tools", "ai-safety"], "entities": ["OpenLIT", "OpenTelemetry", "Claude Code", "Codex", "Cursor", "OpenAI Agents SDK", "LangGraph", "CrewAI"], "also_reported_by": [], "takeaway": "OpenLIT auto-instruments supported LLM providers, frameworks and vector databases by calling openlit.init() and exporting OpenTelemetry traces to an OTLP endpoint such as http://127.0.0.1:4318, giving teams trace-level evals, guardrails and cost tracking for agent harnesses.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/how-do-you-know-your-ai-agent-is-quietly-wrong-in-production", "markdown": "https://wpnews.pro/news/how-do-you-know-your-ai-agent-is-quietly-wrong-in-production.md", "text": "https://wpnews.pro/news/how-do-you-know-your-ai-agent-is-quietly-wrong-in-production.txt", "jsonld": "https://wpnews.pro/news/how-do-you-know-your-ai-agent-is-quietly-wrong-in-production.jsonld"}}