Taxi: A New System for Monitoring AI Agents at Scale
Researchers have introduced Taxi, a system designed to debug and monitor millions of AI agent steps through clustering and SQL-based querying.
Source: Grafy Research LabThe rapid deployment of AI agents has created a massive observability gap, as long-running autonomous processes generate millions of steps that are difficult to monitor. To address this, a technical report from Rival Research introduces Taxi, a system built specifically to debug, cluster, and monitor agent trajectories at an industrial scale.
How does the Taxi system work?
Taxi is designed to handle the immense volume of data produced by agents that run for hours or even days. According to the report by Guy Dar, the system operates across three distinct layers. At the base is a shared database containing trajectories, which are ordered sequences of messages, tool calls, and observations. This data layer includes text embeddings for every step to facilitate analysis.
The middle layer consists of a set of tools exposed via the Model Context Protocol (MCP). These tools allow users to query projects, build taxonomies, and publish evaluators. The top layer utilizes "skills," which are instruction documents that guide coding agents or chat models to use the underlying tools for specific tasks like data exploration or report generation. Figure 1 shows the architecture where clients share a primitive surface of MCP tools over a single database backbone.
What makes Taxi scalable for millions of steps?
Traditional observability methods often rely on Large Language Models (LLMs) to read every single trajectory. The authors note that this approach is often prohibitive at production volumes due to high costs, latency, and rate limits. Taxi avoids these bottlenecks by using a hybrid pipeline of three different analysis paths:
- Embedding and Clustering: This method uses vector clustering over embeddings to create a structured overview of the data. It is a low-cost way to group similar behaviors without requiring LLM calls.
- Querying and Textual Regularity: Many agent behaviors, such as specific error strings or tool names, can be identified using standard SQL and pattern matching. This allows engineers to ask complex questions without any AI involvement.
- Jev-style Decision Models: This is an experimental third path. Unlike generative models that produce text, Jev-style models map a state and a bounded question directly to typed, probabilistic decisions. This provides low-cost semantic routing and evaluation where simple text searches or geometric embeddings fall short.
Why is agent observability necessary?
As agents become more autonomous, they encounter "soft failures" that do not trigger traditional error messages. The report highlights several problematic phenomena, such as behavioral bugs that never raise an error, agents that quietly exceed their intended scope, or the repetitive execution of unnecessary steps.
At scale, these inefficiencies result in wasted tokens and extended work cycles. While standard trajectory logging records what happened, it does not provide a structured overview of behavior across a large corpus. Taxi aims to fill this gap by building a taxonomy—a hierarchical tree of clusters—over the steps in the data. This allows developers to see patterns in how agents behave across thousands of independent runs.
How are taxonomies constructed in Taxi?
Taxonomy construction in Taxi is designed to be modular. The system can use "Simple Flat Clustering" to create a basic grouping of steps. For more complex needs, it supports "Agentic Taxonomy Construction," where agents help build the hierarchy.
The report emphasizes that the system decouples data evolution from taxonomy evolution. This means that as new trajectories are synced to a data source, they can be assigned to existing cluster definitions, or old trajectories can be re-discretized into new, updated taxonomies without re-ingesting the entire corpus.
What are the practical implications for developers?
For engineers managing agentic workflows, Taxi provides a way to move from reactive debugging to proactive monitoring. By using the hybrid pipeline—where clustering and SQL queries narrow down the data before a generative model is ever called—teams can maintain high visibility into their agents' performance without the astronomical costs associated with constant LLM supervision. The system is designed to be "hackable," allowing individuals and teams to plug in new skills and tools as their specific agent architectures evolve.
If you are a researcher looking to dive deeper into technical reports like this one, you can use Grafy Reader to upload the PDF and ask specific questions about the mathematical frameworks or implementation details mentioned in the paper.
Frequently asked questions
Does Taxi use LLMs for every step of analysis?
No, Taxi is designed to avoid the high costs of using LLMs for every step. Instead, it relies on cheap embedding clustering and SQL pattern matching for most tasks. It only uses generative models as a last resort to analyze small, highly relevant samples identified by the other methods.
What is a Jev-style decision model?
Jev-style decision models are models that map a specific state and a bounded question directly to typed, probabilistic decisions rather than generating free-form text. This makes them much cheaper and faster than general-purpose LLMs, allowing for widespread semantic routing and evaluation.
Can Taxi handle large-scale production workloads?
Yes, Taxi is built with scalability as a primary design goal. By using a combination of vector clustering, SQL querying, and probabilistic decision models, the system can efficiently scale to millions of agent steps without incurring the prohibitive expenses typically associated with LLM-heavy observability tools.
Source: Grafy Research Lab — Taxi: Analyzing Agents at (Real) Scale


