---
title: "Institutional knowledge doesn't scale: Building an agentic data analyst"
description: "incident.io built an internal \"data brain\" agent that answers business questions against BigQuery by encoding institutional analyst knowledge rather than relying on raw text-to-SQL."
url: "https://swe.quest/articles/institutional-knowledge-doesn-t-scale-building-an-agentic-data-analyst-d1fa65e5edaa8194"
canonical: "https://incident.io/blog/agentic-data-analyst-pt-i"
source: "incident.io"
published: "2026-08-03"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["ai-agents","analytics","llms","observability","sql"]
---

# Institutional knowledge doesn't scale: Building an agentic data analyst

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2026-08-03, 10 min read, Case study. Original: [https://incident.io/blog/agentic-data-analyst-pt-i](https://incident.io/blog/agentic-data-analyst-pt-i)

## Summary

incident.io built an internal "data brain" agent that answers business questions against BigQuery by encoding institutional analyst knowledge rather than relying on raw text-to-SQL. A query skill routes the agent through per-domain themes, vetted SQL examples and schema subsets hydrated at compile time by a Go CLI from the semantic layer, dbt manifest and BigQuery metadata. A guarded data\_query tool dry-runs SQL, enforces table allow-lists and scan limits, and logs every call with the guidance consulted. Examples are bootstrapped from certified dashboard SQL, and a theme-audit routine catches guidance rot such as stale examples, missing coverage and trigger-phrase collisions. Over half the company uses it weekly, with near 60% week-on-week retention.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- SQL and data warehouses ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- dbt and semantic layers
- LLM agent tool use ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

BigQuery, dbt, Claude Code, Cowork, data brain, text-to-SQL

## Related posts

- [Inside OpenAI’s in-house data agent](https://swe.quest/articles/inside-openai-s-in-house-data-agent-55ba2e68b590558a.md): OpenAI · 2026-01-29 · Medium · 13 min read · AI agents, RAG & retrieval, Analytics & OLAP, Evaluation, LLMs
  OpenAI built an internal GPT-5.2-powered data agent that answers natural-language analytics questions over a platform of 600+ PB and 70k datasets, available via Slack, web, IDEs, Codex CLI and ChatGPT through MCP.
- [Building a RAG pipeline for Google Analytics with ClickHouse and Amazon Bedrock](https://swe.quest/articles/building-a-rag-pipeline-for-google-analytics-with-clickhouse-and-amazon-bedrock-e2945701d51424da.md): ClickHouse · 2023-11-21 · Medium · 26 min read · RAG & retrieval, LLMs, Vector search, Analytics & OLAP, Cloud platforms
  A natural language interface over raw Google Analytics data stored in ClickHouse is built as a multi-step RAG pipeline that generates SQL from user questions using Amazon Bedrock models.
- [Beyond the Dashboard: Accelerating Real-Time Intelligence in the Age of AI](https://swe.quest/articles/beyond-the-dashboard-accelerating-real-time-intelligence-in-the-age-of-ai-3e6b170ebab5c71e.md): Booking.com Engineering · 2026-08-27 · Easy · 9 min read · Analytics & OLAP, AI agents, LLMs, Data pipelines
  Booking.com built a "talk to your data" self-serve analytics setup on Snowflake: semantic views define consistent business metrics, dimensions and table relationships, and Snowflake Agents translate natural-language questions into SQL against them.
- [The Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5](https://swe.quest/articles/the-agentic-analytics-benchmark-round-two-gpt-6-claude-opus-5-5-claude-sonnet-5-f67c49a44d812e12.md): ClickHouse · 2026-10-20 · Medium · 9 min read · Evaluation, AI agents, LLMs, Analytics & OLAP, SQL
  Five new models (GPT-6 Astra, Luna, Sol, Claude Opus 5.5 and Claude Sonnet 5.5) were added to a frozen 201-question agentic text-to-SQL benchmark over a synthetic ClickHouse warehouse.
- [Agent-Facing Analytics](https://swe.quest/articles/agent-facing-analytics-abbe75281484a032.md): ClickHouse · 2025-02-13 · Easy · 13 min read · AI agents, Analytics & OLAP, Databases, LLMs
  AI agents are emerging as a new user persona for real-time analytics databases, generating high volumes of concurrent, iterative exploratory SQL queries on behalf of users.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
