---
title: "Agentic Data Engineering: Build Pipelines End-to-End with AI | MotherDuck"
description: "Watch an AI agent build a full data pipeline from scratch: ingestion with DLT, orchestration in Orchestra, staging and snapshots in MotherDuck, and a Dive for visual output."
canonical: "https://motherduck.com/videos/agentic-data-engineering-pipelines-ai/"
---

[BACK TO VIDEOS](/videos/)

[Webinar](/videos/?category=Webinar#videos-and-webinars-library)[AI, ML and LLMs](/videos/?category=AI,%20ML%20and%20LLMs#videos-and-webinars-library)[Data Pipelines](/videos/?category=Data%20Pipelines#videos-and-webinars-library)[MotherDuck Features](/videos/?category=MotherDuck%20Features#videos-and-webinars-library)

# Agentic Data Engineering: Building Pipelines End-to-End with AI

2026/05/19Featuring: [Jacob Matson](/authors/jacob-matson/)
, [Hugo Lu](/authors/hugo-lu/)

# TL;DR

Hugo Lu (Orchestra) and Jacob Matson (MotherDuck) demo an AI agent that builds a complete data pipeline from a single natural language prompt — ingesting data from Linear, landing it in a MotherDuck staging database, promoting it to production via snapshots, and visualizing results in a Dive — all orchestrated through Orchestra and wired together with MCP.

## Why AI changes how we build pipelines

AI models are good at writing SQL and structuring messy data, but they query differently than humans. Agents fire off lots of small, bursty queries to explore a database before they do anything useful. MotherDuck's DuckDB-based architecture handles this well — it's fast, runs queries in parallel via vectorization, and costs roughly 10x less than Snowflake or Redshift for comparable workloads.

## The demo: one skill, one agent, one pipeline

Hugo built a single [Claude Code skill](https://docs.anthropic.com/en/docs/claude-code/skills) that tells the agent how to scaffold an end-to-end pipeline. When triggered, the agent:

1. Generates a Python ingestion script using DLT (with a connector it created on the fly for Linear)

1. Writes an Orchestra pipeline YAML file to orchestrate the run

1. Pushes everything to a feature branch

1. Triggers the pipeline in Orchestra

The whole setup needs three sets of credentials (Linear, MotherDuck, Orchestra) and the [MotherDuck MCP server](/product/mcp-server/) for database operations. No custom skills needed for the warehouse layer.

## Staging, snapshots, and safe promotion

Rather than writing directly to production, the agent lands data in a staging database. MotherDuck [snapshots](/docs/getting-started/) create an immutable, zero-copy checkpoint of that database. If everything looks right, the snapshot gets promoted to production. If something breaks, you roll back. This keeps unattended agent workflows reversible and safe.

## Dives: BI as code from your pipeline

At the end of the pipeline, the agent also updates a MotherDuck Dive — a React-based visualization that lives in source control. The Dive shows when data was last refreshed and links back to the Orchestra run for full lineage. No dashboard tool to learn; the AI writes the TSX.

## Q&A highlights

- **Storage cost of snapshots:** MotherDuck keeps 7 days of snapshots by default. If you build incrementally, the overhead is minimal. Transient databases reduce retention further.

- **Token efficiency:** The demo used roughly 10,000 tokens. Both MotherDuck and Orchestra keep MCP tool descriptions concise to avoid blowing up context windows.

- **Semantic/modeling layers:** You can extend the Orchestra pipeline YAML to include dbt modeling steps between ingestion and snapshot promotion.

TABLE OF CONTENTS

- Why AI changes how we build pipelines
- The demo: one skill, one agent, one pipeline
- Staging, snapshots, and safe promotion
- Dives: BI as code from your pipeline
- Q&A highlights

Start using MotherDuck now!

[Try 7 Days Free](https://auth.motherduck.com/authorize?app_source=web&response_type=code&client_id=bza3KWQpxRAFlTlRFXUo29AOg9xD7zcp&redirect_uri=https%3A%2F%2Fapp.motherduck.com%2F&state=STATE&auth_flow=signup&screen_hint=signup&ext-ph_distinct_id=873824e1-dec3-4d07-bd17-f7752307be65)

## FAQS

### What is MotherDuck and how does it handle AI agent queries?

MotherDuck is a cloud data warehouse built on DuckDB. It runs SQL queries using vectorized, parallel execution on your CPU, so it's fast and cheap. In this webinar, Jacob Matson compares MotherDuck's cost and speed against legacy warehouses and walks through why the architecture works well for agents that hit the database constantly.

### What is Orchestra and how does it work with AI agents?

Orchestra is a serverless orchestration engine. You define pipelines in YAML, and it handles monitoring, metadata, alerting, and lineage. In the demo, Hugo has Claude Code generate the Python ingestion code and the Orchestra pipeline YAML, then kick off the pipeline — all from a single natural language prompt.

### How do MotherDuck snapshots keep agent pipelines safe?

MotherDuck snapshots are immutable, point-in-time copies of a database. They use zero-copy cloning, so promoting data from staging to production is fast and costs almost nothing in extra storage. They also work as an undo button — if an agent breaks something, you roll back to the snapshot instead of re-running the whole pipeline. MotherDuck keeps 7 days of snapshots by default, and for incremental workloads the extra storage is negligible.

### What is a MotherDuck Dive and how is it used in this pipeline?

A MotherDuck Dive is a set of TSX (React) files that render interactive visualizations from your warehouse data. Dives live in source control, so they're versioned and reproducible. In this demo, the AI agent generates and updates a Dive at the end of the pipeline — no manual dashboard building needed.

### How complex is the Claude Code skill used in the demo?

The demo used a single Claude Code skill — a markdown file with step-by-step instructions telling the agent how to scaffold the pipeline. Hugo's skill was verbose (AI-generated), but you could write the same thing in about 20 lines. The skill references the [MotherDuck MCP server](/product/mcp-server/) for database operations, so no custom MotherDuck-specific skills were needed.

## Related Videos

[60:29](/videos/ai-agents-semantic-layer/)[2026-08-26](/videos/ai-agents-semantic-layer/)

### [Do AI Agents Need a Semantic Layer?](/videos/ai-agents-semantic-layer/)

Do AI agents need a semantic layer? Evals comparing plain-text context with a Malloy semantic layer show where each wins, and what it costs.

Stream

AI, ML and LLMs

BI & Visualization

SQL

[63:17](/videos/agentic-data-engineering-stack/)[2026-08-18](/videos/agentic-data-engineering-stack/)

### [Beyond Copilots: We're Building a Data Stack Live with AI Agents](/videos/agentic-data-engineering-stack/)

Agentic data engineering in practice: AI agents build dlt ingestion into MotherDuck and a governed Lightdash semantic layer, live in an hour.

Stream

AI, ML and LLMs

Data Pipelines

Ecosystem

[52:41](/videos/guides-context-layer-ai-agents/)[2026-08-13](/videos/guides-context-layer-ai-agents/)

### [Introducing Guides: Warehouse-Native Context for AI Agents](/videos/guides-context-layer-ai-agents/)

Guides store business context inside your warehouse so AI agents write correct SQL. See how warehouse-native context works in MotherDuck.

Stream

AI, ML and LLMs

MotherDuck Features

[View all](/videos/)