Data Analyst

Statistical reasoning

Owns analytical SoQL — deltas (yoy/qoq/mom), percentiles, correlations across datasets, top-N with ties broken. Returns structured findings + viz spec + confidence + caveats.

Triggered by orchestrator (delegate_to)on-demand

What this agent actually does, step by step.

  1. 01

    Receives (query, dataset_ids[], context) via callSpecialist()

  2. 02

    Picks an analytical SoQL shape: count + group by, percentile_disc, year-over-year delta

  3. 03

    Hits the cache layer first; falls through to live Socrata when stale

  4. 04

    Computes confidence based on row count + null density

  5. 05

    Surfaces caveats when columns have >20% nulls or values look bucketed

  6. 06

    Returns envelope: { findings: [{text, value, unit, baseline}], viz_spec, confidence, caveats }

Inputs & outputs.

Inputs

  • · query: string
  • · dataset_ids: string[]
  • · context: object

Outputs

  • · AgentEnvelope with findings + viz_spec + confidence + caveats

Where this agent lives in the codebase.

app/lib/specialists.ts

Live TS implementation — dataAnalyst()

Last 12 runs that touched this agent.

auto-refresh 60s

  • 03:29 AM

    Which zip had the highest simultaneous spike in permits and violations?

    22 events · 6wtj-zbtb

    Replay →
  • 03:28 AM

    Which restaurants in 78704 have shown the most improvement over 2 years?

    19 events · ecmv-9xxi

    Replay →
  • 03:27 AM

    Which request type has seen the largest increase in Dallas this year?

    11 events · gc4d-8a49

    Replay →
  • 03:26 AM

    Which agency saw the largest percentage increase in spending this year?

    12 events · 2zpi-yjjs

    Replay →
  • 03:26 AM

    Which agency has seen the largest increase in expenditures since 2023?

    12 events · 2zpi-yjjs

    Replay →
  • 03:25 AM

    What were the top 3 months for noise complaints in Austin vs Dallas?

    17 events · gc4d-8a49

    Replay →
  • 03:25 AM

    What trends have emerged in franchise tax holders over the last year?

    11 events · 9cir-efmm

    Replay →
  • 03:24 AM

    What specific crime types have increased in 78744 vs 78704 since 2024?

    13 events · fdj4-gpfu

    Replay →
  • 03:23 AM

    What is the trend of food truck permits in 78702 over the last year?

    17 events · 3syk-w9eu

    Replay →
  • 03:23 AM

    What are the trends for the top complaint type in District 3 over the year?

    15 events · xwdj-i9he

    Replay →
  • 03:22 AM

    What are the top crime types in District 1 compared to District 2?

    12 events · fdj4-gpfu

    Replay →
  • 03:18 AM

    What are the top 3 fastest-growing permit types in 2023?

    12 events · 3syk-w9eu

    Replay →