Forty-eight agents on Langfuse, every run traced and every answer checked

Ruby, an AI sales-coaching platform, runs 48 agents in production. Langfuse is where its team looks to see what an agent did, what it cost, and whether its answer was any good. Bonneville built that layer, and still runs it.

48
agents in production, every run that calls a model traced, no sampling
46 of 48
agents load their prompt from Langfuse; a change is live in about 2 minutes
2
live LLM judges grading real answers for made-up facts and the wrong company
14 of 14
of Langfuse Academy's recommended practices in place

The company

Ruby helps sales teams run their deals. Its agents write deal health reviews, meeting briefs, account research, one-pagers and outreach drafts, and an analyst agent answers reps' questions about their pipeline.

Company
Ruby AI
Platform
Multi-agent AI sales coaching
Langfuse
Langfuse Cloud, US region, on the v4 platform
Instrumentation
Official Python SDK over OpenTelemetry
Engagement
Bonneville built the Langfuse layer and still runs it

Ruby

“Langfuse is where we look when we want to know what an agent did, what it cost, and whether its answer was any good.”

Ruby engineering team

Why do anything?

Ruby fires more than forty agents in parallel after every sales interaction. Before Langfuse, nobody could trace what each agent did, why outputs varied, or where the spend went.

Most of what the agents write is customer-facing. A made-up fact or an answer about the wrong company lands in front of a rep, and through them, in front of a prospect.

Why Langfuse?

One place for the whole loop Langfuse describes for AI engineering: trace, monitor, build datasets, experiment, evaluate.

Tracing, prompt management, scores, judges, datasets, dashboards and alerts all work from the same traces, so a quality drop can be followed back to the exact run, prompt version and model.

Why it holds up

Every judge is tested against known answers before it is trusted, and every model or judge change is decided by a side-by-side experiment, not by feel.

Langfuse's own migration check marks the project compatible with its v4 platform, with nothing to change before v3 is removed on 16 Nov 2026.

What a trace looks like

One agent run is one trace: a tree of every step, so you can see exactly what happened and in what order.

  1. analystagent run (the root), named after the agent type
  2. run_startsmall marker so the trace is labelled early
  3. bedrock.invokean AI call: model, prompt version, tokens, cost, timing
  4. tool:draft_outreach_emaila tool the agent called, with input and output
  5. bedrock.invokean AI call made by that tool, linked to the tool's own prompt
  6. agent:<worker>a helper worker, with its own AI calls inside
  7. bedrock.invokethe agent's final answer
Every AI call is linked to the exact prompt version it used, so scores can be compared by prompt version.

The Bonneville approach

  1. 01

    Tracing, with no sampling

    Every agent run that calls a model is one trace, with each AI call, tool and helper worker nested inside. Generations record the model, prompt version, tokens including cached tokens, time to first token and cost, taken from the same price table the database uses.

  2. 02

    Sessions, reps and privacy

    All runs for a deal share one session, the rep is the Langfuse user so runs and cost show per rep, and tags carry agent type, deal stage and model. Email addresses and phone numbers are redacted before anything leaves the app.

  3. 03

    Prompts out of the code

    80 prompts live in Langfuse, 26 of them rubrics. Each environment reads its own label, so a version is promoted by moving a label and is live in about 2 minutes; rolling back is moving it back. Every agent keeps a built-in prompt in case Langfuse can't be reached.

  4. 04

    Scores on every run

    Code scores the agent's confidence, the answer's length and structure, whether it has the shape its screen expects, and whether raw tool-call text leaked into it. Reps' thumbs and Tell Ruby feedback land on the exact run, and a changed vote updates the score rather than duplicating it.

  5. 05

    Two live judges

    A grounding judge (Claude Haiku 5.5, on 20% of runs across 30 agents) checks every name, number and date against the run's context. A wrong-entity judge (Claude Sonnet 4.6, on 10% of runs across 13 customer-facing documents) checks the answer is about the prospect. Each checks one thing and lists its reasoning.

  6. 06

    Dashboards and alerts

    Production and staging dashboards track cost by agent and model, both judge scores over time, and run volume by level. Six alerts fire on more than 5 errors in an hour, grounding below 0.4 or wrong-entity below 0.8, and the judges' claim-by-claim reasoning makes the cause quick to find.

  7. 07

    Datasets and experiments

    Golden sets are built from real production runs plus hard cases, such as failed research and thin context. A script replays each case through the candidate prompt, model or judge, and the judges score experiments in their own environment so tests never mix with live scores.

  8. 08

    Human review

    An annotation queue lets a person grade answers on the same two settings the judges use. Every judge is checked against 40 human-labelled known-answer cases, measuring false alarms and missed mistakes separately, before it is trusted.

The loop in practice

Langfuse describes AI engineering as a loop. This is how each step looks at Ruby.

01

Trace

Every agent run, every AI call, tool, token and dollar.

02

Monitor

Live judges, dashboards, alerts and rep feedback.

03

Datasets

Golden sets from real runs, plus known-answer judge checks.

04

Experiment

Old against new prompt, model or judge, on the same cases.

05

Evaluate

Compare case by case, then ship by moving the prompt label or switching the model.

How it plays out

A real example: the grounding judge flagged made-up facts on research runs. Reading the traces showed the judge could not see the research the agent had used. We changed what the trace carries so the judge sees the full context, tested it, and shipped it. Experiments the same way decided the move to Sonnet 5.5 and the grounding judge's switch to Haiku 5.5; the wrong-entity judge stayed on Sonnet 4.6 because the cheaper model raised a false alarm there.

Following Langfuse's playbook

Langfuse Academy sets out recommended practice for each step of the loop. All fourteen are in place at Ruby.

Langfuse recommendsHow Ruby does it
One trace per request, with nested stepsOne trace per agent run, with AI calls, tools and workers nested inside
AI calls recorded as generations with model, tokens and costEvery Bedrock call, with cached tokens and an exact cost figure
Group related traces into sessionsAll runs for a deal (or an account) share one session
Manage prompts in Langfuse with versions and labelsVersioned in Langfuse with environment labels, with a built-in fallback in code
Link each AI call to its prompt versionLinked on every generation, and stored on the run's database row
Do error analysis before building judgesThe judges target failures found by reading real traces
One criterion per judge, with reasoning before the scoreGrounding and wrong-entity each check one thing and explain the score
Test a judge against known answers before trusting it40 known-answer cases, measuring false alarms and misses separately
Give the judge the context the agent usedEach trace carries the request, the context given and every tool result
Capture user feedback as scoresThumbs and Tell Ruby feedback land on the exact run
Build datasets from real traces, including hard casesGolden sets from real runs, plus failed-research and thin-context cases
Run experiments before shipping a changeModel and judge changes are decided by side-by-side experiments
Alert on quality and errorsSix alerts on errors and judge scores
Combine human review, code checks and LLM judgesAn annotation queue, code scores on every run, and two live judges

What's next

Experiments now run on demand, whenever a prompt, model or judge change needs proof before it ships. The same setup is what we install for clients, starting with a Langfuse Launch and closing the loop with Evals and Prompts.

See what fast looks like on your stack.

A review of your current setup, with a phased path to ClickHouse that's live in weeks.