Load any source into Snowflake, ready for Cortex Analyst: the dltHub AI Harness for Snowflake Cortex Code
dltHub AI Harness for Snowflake Cortex Code (CoCo) is now in private preview. CoCo can find, build, run and maintain pipelines into Snowflake, and a toolkit built for Snowflake prepares the new data for Cortex Analyst with a semantic view your team approves.

Matthaus Krzykowski
Co-Founder & CEO
8 min read
On this page
- Example: ServiceNow incidents: from a CoCo chat to answers in CoWork
- 4. Builds the semantic view
- 5. Shows the semantic view in Snowsight
- 6. Checks the Snowflake AI readiness score
- 7. Creates and tests a Cortex Agent
- 8. A business user asks in CoWork
- 9. The answer: 21 urgent incidents are overdue, and 8 have no owner
- 2. Bonus example: Snowflake dbt projects
- Get access to the private preview
Today, the dltHub AI Harness for Snowflake Cortex Code (CoCo) launches in private preview. We are working with Snowflake to bring it to general availability.
Over 1,500 organizations use dlt to ingest data into Snowflake today. More and more of their teams build by chatting with AI. Many of them use CoCo, Snowflake’s AI coding assistant.
With the dltHub AI Harness for Snowflake Cortex Code, your team can now chat its way from a new source to business answers. CoCo builds the dlt pipeline, models the data, creates the semantic view, and sets up a Cortex Agent. Your business users then ask their questions in Snowflake CoWork.
- With greater speed: one chat covers the whole path, from the first request to the first answer.
- With better quality: CoCo validates the loaded data, fixes errors and checks the semantic view against plain SQL.
- With more trust: your team approves the semantic view and the agent, and checks the Snowflake AI readiness score before relying on the answers.
Example: ServiceNow incidents: from a CoCo chat to answers in CoWork
Say you run the team that handles your company's incidents, and you need to know where urgent work is piling up. Your team watches incidents. The data sits in ServiceNow, and the analysis happens in Snowflake. In the GIF, one CoCo chat with the dltHub AI Harness for Snowflake Cortex Code takes you from the first to the second. Your analyst team describes what they need in plain English and approves the key steps. It starts with this request:
The request
Using dltHub, build a pipeline that loads ServiceNow incidents from my instance into Snowflake. Start locally on DuckDB, then load to Snowflake.
1. Finds the source and sets up the pipeline
find-source · collect-snowflake-context · create-and-update-verified-source · setup-snowflake-destination · setup-secrets
CoCo starts from a proven source and checks that you don't already have the data.
- Uses the verified ServiceNow source (v1.1.0). Its docs specify basic auth and incremental loading on
sys_updated_on. - Checks Snowflake first: the Business Ontology has nothing on incidents, and there is no existing copy.
- Loads
incident,sys_user_groupandsys_choice, with DuckDB on dev and Snowflake on prod. - You add your login to
.dlt/secrets.tomlyourself. No Snowflake key sits in the workspace.
2. Validates the data and loads it into Snowflake
validate-data · setup-snowflake-destination
CoCo checks row counts, keys, types and labels on DuckDB. It finds missing priority labels, fixes them and loads 67 incidents into Snowflake.
CoCo tests the data and fixes gaps before it reaches your users.
- Checks row counts, keys, types and labels on DuckDB. No jobs failed.
assignment_groupholdssys_idvalues, not team names. The model will joinsys_user_group. Choice labels come fromsys_choice.- Priority labels are missing because ServiceNow defines priority on the parent table
task. CoCo fixes the filter. - Loads into
ANALYTICS.SERVICENOW: 67 incidents with 14 fields, merged onsys_id, and 52 assignment groups.
3. Builds the gold layer
create-transformation · debug-transformation
Working from a business ontology and data model, CoCo builds one incident table and four lookup tables. One run fails. CoCo fixes it and runs it again.
CoCo turns raw ServiceNow tables into clean tables for analysis.
- Starts from a business ontology (
ontology.md) and a data model (CDM.dbml). - Builds
fact_incident,dim_assignment_group,dim_priority,dim_incident_stateanddim_categorywith SQL-first transformations. - Adds
UNKNOWNrows, so there are noNULLforeign keys. - Fixes a failed run: a top-level
UNION ALLis not a singleSELECT, so each union is wrapped inSELECT * FROM (...). - Runs on DuckDB first, then Snowflake (
ANALYTICS.INCIDENT_BACKLOG). 0 orphan foreign keys, 0 duplicate incidents.
4. Builds the semantic view
create-snowflake-semantic-view
Your business terms become definitions that Cortex Analyst uses.
- Creates
INCIDENT_BACKLOG_SVwith 5 tables and 4 relationships. - Adds synonyms such as "ticket" and "team", plus the metrics
incident_countandopen_incident_count. - Defines
critical_backlog: open P1 and P2 incidents opened more than 7 days ago. - You approve the design. All 7 checks match plain SQL on the data model.
5. Shows the semantic view in Snowsight
Your team can inspect what was built.
- The diagram links
INCIDENTStoASSIGNMENT_GROUPS,CATEGORIES,INCIDENT_STATESandPRIORITIES.
6. Checks the Snowflake AI readiness score
You see how prepared the data is before people rely on it.
- CoCo's bundled skill measures demand coverage and semantic view readiness (coverage and quality).
- The score is high: 86
7. Creates and tests a Cortex Agent
agent-studio (CoCo's own skill)
CoCo makes the data available to business users.
- Creates
Incident Backlog (ServiceNow)after your approval. - Gives it one tool, Cortex Analyst on
INCIDENT_BACKLOG_SV, and three sample questions. - Tests it with: "Which teams are falling behind on urgent incidents?"
8. A business user asks in CoWork
The user asks in plain English. No SQL needed.
- Picks the
Incident Backlog (ServiceNow)agent and asks the question. - Gets a table, a chart and next steps.
9. The answer: 21 urgent incidents are overdue, and 8 have no owner
Which teams are falling behind on urgent incidents?
- 21 urgent incidents are overdue. These are open P1 and P2 incidents older than 7 days.
- The biggest problem has no owner. 8 incidents have no assignment group: 5 critical and 3 high. The first fix is to assign them.
- Software has the most critical incidents of any named team: 4.
- Some tickets are years old. They may be outdated records, so the answer suggests a cleanup review.
The user gets a table, a chart, and next steps. CoWork also offers to set up a weekly backlog report.
What this shows
- Greater speed: one CoCo chat went from a new ServiceNow source to this answer. It covered the dlt pipeline, the data model, the semantic view and the Cortex Agent.
- Better quality: the answer shows team names and priorities because CoCo planned the join for team names and fixed the missing priority labels. All 7 semantic view checks matched plain SQL.
- More trust: "overdue" follows your team's definition of
critical_backlog. Your team approved the semantic view and the agent, and checked the AI readiness score before relying on the answer.
2. Bonus example: Snowflake dbt projects
In the demo above, we used Python-based transformations, but you can easily use them with dbt by invoking the CoCo skill: dbt-projects-on-snowflake
a. Use the transformation toolkit within the dltHub AI harness to create the data model for the gold layer
b. Use the dbt skills within Snowflake to run the gold layer as a dbt model
The dltHub AI Harness for CoCo is optimised for Snowflake and dltHub on Snowpark
If you know the dltHub AI Harness, you know the core. Finding the source, building the pipeline and creating transformations work the same way.
Everything around that core is optimised for Snowflake. The harness checks whether the data is already there, sets up Snowflake as the destination and builds semantic views for Cortex Analyst and CoWork. It can keep the data model fresh with dynamic tables, take over tables from another tool and let agents such as Claude Code or Codex hand Snowflake work to CoCo.
It is also optimised to work with dltHub on Snowpark (Private Preview), which runs your pipelines in a Snowpark container inside Snowflake. The pipeline code needs no credentials to connect to Snowflake, and source credentials stay in Snowflake Secrets.
| dltHub AI Snowflake Harness Workflows | What it does for you | Skill |
|---|---|---|
| Checks first | Stops and asks you if the data is already in Snowflake | collect-snowflake-context |
| Finds the source | Uses the source's own docs, not third-party providers | find-source, find-sql-database-source |
| Builds the pipeline | Gets the data from any REST API, database, or file storage source. | create-rest-api-pipeline, create-sql-database-pipeline, create-filesystem-pipeline |
| Create Transformation | Generates ontologies and prepares the transformation layer (Python-based / SQL / or dbt) | create-ontology, create-transformation, generate-cdm |
| Sets up Snowflake | Connects to Snowflake and sets table names and types before the first load | setup-snowflake-destination |
| Builds a semantic view | Builds a view on the data model for Cortex Analyst and CoWork | create-snowflake-semantic-view |
| Keeps the data fresh | Refreshes the data model on its own with dynamic tables, after your approval | create-snowflake-dynamic-tables |
| Works with other agents | Lets other coding agents (like Claude Code or Codex) safely hand Snowflake work to CoCo | delegate-to-cortex-code |
| Takes over tables | Moves tables from another tool without breaking reports | migrate-existing-tables |
Get access to the private preview
Once you have access, open CoCo and ask:
Use uvx dlthub-init@latest --agent cortex ServiceNow to load my ServiceNow incidents into Snowflake and build a semantic view, so I can ask about them in CoWork.The dltHub AI harness for CoCo is source available and requires a dltHub subscription for commercial use. It’s included in your dltHub annual commitment contract or in your dltHub subscription via the “dltHub on Snowpark Container Services” native app on the Snowflake marketplace.
For dltHub consulting and solution partners, we offer reselling and training for your customers, along with standalone licenses for the dltHub AI harness on CoCo, helping them improve existing dlt setups without a subscription to the dltHub managed service or dltHub native applications on the Snowflake Marketplace.
Request access to the private preview and set up the harness with your team.


