Data and analytics
An analyst that reads every database you have.
A harness with read-only access to your warehouses that writes the queries, runs them in parallel, and answers with the rows it used. Your analysts check its work instead of doing it.
6sources per answer
92%eval pass rate
3×faster than by hand
Sample customerMeridian Health
The problem
What goes wrong today.
01Six sources, one questionThe answer lives across a warehouse, a CRM and a billing database.
02Answers without sourcesA number nobody can trace back to a query is a number nobody trusts.
03Slow queries, stuck turnsOne slow table shouldn't stall the whole answer.
The harness
Built from four parts.
The whole agent is this builder, in your repository. Each part is a crate you can read.
- toolsOne read-only tool per database.How it works ▸
- loopParallel calls fan out in a single step.How it works ▸
- sub-agentsA researcher for long, open questions.How it works ▸
- evalsChecks the rows it cited are the right ones.How it works ▸
1Agent::new("analyst", MODEL) 2 .tools(databases().read_only()) 3 .subagent("researcher", researcher()) 4 .compaction(Compaction::keep_plan()) 5 .evals(evals())
A run
One task, every step.
The trace the Console keeps for this harness, down to the tool call. Sample run.
“Which regions grew last quarter, and why?”7.4 s · $0.0094
model · plan940 ms
warehouse · revenue by region2.1 s
crm · new accounts640 ms
billing · churn1.3 s
subagent · researcher2.9 s
model · answer1.4 s
model tool approval subagent sandbox
The evals
What it must pass to serve.
These cases run on a fresh copy at every deploy. A version that fails one is held back.
| Case | Checks that | v13 |
|---|---|---|
| cites-rows | Every number has a query | pass |
| read-only | No write reaches a database | pass |
| right-quarter | Date ranges match the question | pass |
| retrieval-recall | Finds the rows a person would | failing · v13 held |
Sample customerMeridian Health
Questions across many databases, answered with sources.
“We test the agent like we test the rest of our code. It ships when it passes.”
6sources per answer
92%eval pass rate