Skip to content
Binay Dalai

2026 · hackathon · Google Cloud Rapid Agent hackathon

TracePilot

TracePilot’s console: a chat with the agent on the left, a panel of latency, cost and tool scores on the right, and a timeline below.
TracePilot’s screens from the hackathon demo: the console, the same question asked three times, what it has learned about its tools, and the log of what it changed.

A multi-agent system that chooses a tool for each query based on how well that tool has done before.

A background auditor reads the system’s own traces, spots tools that fail or slow down, and routes around them. A second model checks that the final answer addresses the question.

queryrouterhandbook searchdown · 0.23web searchup · 0.74ticket searchup · 0.61answer

Routed to web search, the tool with the best score.

A graph: a query goes to a router, the router to one of three tools, and the tool to the answer. Each tool has a score, and a query goes to the tool with the best one. One tool breaks. The next query sent to it fails, the auditor lowers its score, and the query after that goes to another tool. Then the tool is mended and queries return to it. It plays by itself and repeats. Press Space, or press on it, to pause or play; the arrow keys step it by hand.

Fig. 1. A simplified model of the routing logic. A tool breaks, and later queries go around it.
How this works

Each query goes to the tool with the best score.

One tool breaks. The router finds out the way the real system does: a call fails, the auditor reads the trace of that call and lowers the score of the tool, and the next query goes to another.

This is a small model of that logic, with made-up tools and scores. The real system scores a tool from its success rate, cost, latency and recovery cost.

Demo1 of 4

  1. On the left the agent answers queries. On the right is what it has learned about its own tools, and under that a log of what it changed.

  2. The first two attempts fail, because the tool it picked could not answer. After the auditor has read the traces, the third attempt goes to a tool that can.

  3. Each tool carries a score from earlier runs. The panel shows the scores, the route it selected, and the latency and cost of the last run.

  4. Every evaluation, correction and routing decision is logged in order, so a change of route can be traced to the run that caused it.

TracePilot’s console: a chat with the agent on the left, a panel of latency, cost and tool scores on the right, and a timeline below.
Click the screen to see a step larger, held still, and to go back and forward. A step’s name shows that step.Screens from the project’s repository, taken during the hackathon demo.

A walk through TracePilot

1 of 4. The console

On the left the agent answers queries. On the right is what it has learned about its own tools, and under that a log of what it changed. Screens from the project’s repository, taken during the hackathon demo.

Status

Google Cloud Rapid Agent hackathon, 2026.

Problem

A router that picks tools from a fixed prompt cannot notice when a tool starts failing. Someone has to read the traces and rewrite the prompt by hand.

Approach
  1. TracePilot scores each tool from four measurements in its own traces: success rate, cost, latency and recovery cost.
  2. While a tool’s score is high, it keeps using that tool. When the score drops below a threshold, it tries the others.
  3. A background auditor reads the system’s Arize Phoenix traces and finds failures the tool did not report, then lowers that tool’s score. One example is an “Access Denied” when the public web is searched for an internal handbook.
  4. A second model checks that the final answer addresses the question.
  5. Scores are kept in SQLite.
My role

I built it entirely by myself.

Stack
  • Python
  • Google ADK
  • Gemini 2.5 Flash
  • Arize Phoenix
  • OpenInference
  • OpenTelemetry
  • FastAPI
  • MCP
Scope and limits

A hackathon submission.