惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
小众软件
小众软件
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog

Coralogix

Automate Product Analyticsreports with your agent and the CX CLI - Coralogix How iGaming Operators Trace Revenue Problems to Root Cause What is the Parquet file format? A complete guide Zero-Code Instrumentation in Kubernetes Without the Instrumentation CRD - Coralogix Olly says Hi: Scheduled tasks now report to Slack and email - Coralogix Introducing Coralogix Product Analytics - Coralogix Introducing the new Coralogix Metrics Engine - Coralogix Set a monthly budget on every Olly API Key - Coralogix Best Sentry Alternatives for Error Tracking (2026) Coralogix | Magic Quadrant 2025 How Redpin achieved full-stack observability across a £10 billion international payments platform - Coralogix Coralogix vs Sumo Logic: Pricing & Features Coralogix vs New Relic: Comparison Guide (2026) Where did all my Claude Code tokens go?  - Coralogix The AI bill arrived. Now what? - Coralogix The Data Plane Reality: OTel Scales, While Topology UX Lags - Coralogix The Observability Dataset: Architecture That Takes Agents From Junior to Senior - Coralogix Un-observable AI is Un-trustworthy AI - Coralogix Dataspaces and Datasets: A faster, goverened, observability data layer - Coralogix Stop Guessing Why Your Pods Are Crashing Coralogix Raises $200M to Scale the Observability Backbone for the Age of AI DataPrime at ingest (DPXL): See the impact of any routing decision New Explore: Faster answers, less friction, and a better way to investigate your data Explore for Spans: One View with Infinite Depth What Is Log Monitoring? Pipeline, Pitfalls, and Practices for 2026 What Is APM? A Guide to Application Performance Monitoring What Is an Incident Commander? Role, Skills, and Best Practices Managing OpenTelemetry at Scale: Why OTel Pipelines Need a Control Plane The cost of knowledge Introducing the Coralogix CLI: Headless Observability for Every Agent
Loop Engineering Guardrails for iGaming with Claude Code ...
Chris · 2026-08-29 · via Coralogix

Tuning guardrails can take time. To accelerate this, we combined the power of Claude Code, Coralogix Telemetry and the CX CLI, to build a loop that iterates on guardrails. To test our loop, we built a fictional chat interface for an iGaming operator, that took bets, gave odds on markets and more, but with a catch: this agent was not permitted to make predictions about where the market was going. With our goal in place, we got to work designing our loop.

The application under test

We built a simple, iGaming operator chat interface. It was powered by a simple AWS Bedrock model, and instrumented using OpenTelemetry. This simple interface captured messages, ran them through Coralogix Guardrails, and created our test bed. This was our production workload.

The instrumentation writes the span and attribute structure according to the OpenTelemetry GenAI semantic conventions. Browser sessions arrive through Real User Monitoring, so a full conversation is tracked as a simple OpenTelemetry trace, from front end application to all backend services and infrastructure.

Everything the application does lands in one telemetry lake in Coralogix, enabling CX CLI and Claude to access this data at will. This is essential for autonomous agents making informed decisions that are grounded in reality.

How the loop runs

Claude Code ran the whole cycle, grading its own policy against live traffic and rewriting it until the tests came back clean.

Our loop ran simply. First, the running application is invoked using Playwright scripts. It was important that we use this as a user would, and not simply bypass the UI. This way the loop can also take into account whether the interface is performing correctly too. A known prompt that should violate the prompt is pushed through (or indeed, an innocent one for a positive test case), and the result is recorded. A positive score typically indicates that the guardrail fires, and a score of 0 indicates the guardrail didn’t block the prompt.

Why you can afford to run it a hundred times

Reading observability data into a model consumes most of a loop’s budget. The Coralogix CLI (cx) aggregates server-side, so the command returns the answer instead of the rows. This transforms thousands of JSON documents into a few hundred tokens, enabling models to ask dozens or hundreds of questions, and still preserve a healthy context window and keep costs down. This, combined with the -agents format in CX CLI, based on TOON, means that each iteration of the loop cost hardly any tokens, but delivered high quality insights.

How did the loop perform?

As the loop iterated, it expanded the set of examples and instructions within the guardrail configuration.

It did this by invoking the CX CLI on each loop to apply the amendments, keeping examples that worked and removing examples that didn’t. It also generalised rules that it put in. In some previous iterations, it would put a certain prompt in verbatim, but after iterating on the next example, Claude decided to generalise a certain instruction to make it work for a broader set of answers. Of course, this translated into a chat interface that guarded its inputs and outputs much more accurately.

Telemetry is the secret sauce of loop engineering

For any loop to survive and iterate closer to a true solution, it must have a connection to reality. Telemetry is the most accurate data in any organisation, and Coralogix makes that data available through a Telemetry lake, that can ingest data, and make it available, at no cost per query. This is the essence of effective, agentic iteration, and it was all done from the agent, without opening a single interface.