Introduction

Introduction

Lesson 1 4 min + about 45 min setup

We built Coalesce to be the most efficient way for enterprises to build, govern, and observe data with best practices built in by default. When we first introduced the platform in 2022, code was expensive and time-consuming.

Since then, nearly everyone has adopted AI for writing code. Code is no longer the bottleneck it used to be, and data teams can build pipelines faster, with fewer people and less human review. But delivering reliable data pipelines at scale still requires human judgment. Agreeing on modeling standards, designing the architecture, deciding what governance applies, and knowing whether the numbers are actually right are still hard problems to solve. The 2026 State of Data Engineering Survey highlights this: 82% of practitioners say AI helps most with writing code, while only 13% say it helps with data modeling and 11% with governance and quality checks.

Anthropic recently shared how they’re seeing this play out in their AI-Native SDLC playbook, as companies transform their development lifecycle and compress the time spent on coding.

With agentic coding compressing the build cycle, the emphasis shifts to where human judgment still matters most: planning, design, and maintenance. Source: Anthropic

First, we believe a platform should serve the full development lifecycle, both the ~80% of code a data engineer generates quickly with Claude Code, Cortex, or similar tools, and the 20% that still needs a human to review, debug, and iterate on.

Second, in an agentic world, governance is more important than ever. As more pipelines are written entirely by agents without human review, guardrails and standards should be baked into the development workflow.

Finally, transformation, cataloging, and quality tooling should share a context layer so they're managed and deployed together, not as separate parts.

What you’ll see is that this workflow doesn’t look like “build the pipeline, merge, and you’re done.” Instead, it’s a series of iterative steps where AI writes code, but specs and reviews are done carefully, with context and business understanding in mind. The tools’ main job is to get out of the way and be helpful.

The future data development lifecycle in Coalesce

For most data teams, even if the build phase has been shortened, the data development lifecycle hasn’t changed significantly. Typically, a requirement lands in a document or a Slack thread, a data engineer builds it, sped up by agentic coding tools, a review is added, the code is merged, and in some cases, monitoring and context are added manually in the quality tool and catalog.

The best data teams are already adopting a different approach, and we expect most to catch up soon.

Instead of the sequenced approach, the agent takes on larger parts of the data development loop. Humans focus more on questions that still need a human answer, such as the nuances of a specific business problem, what the company-wide governance and quality policies should be, whether the numbers are intuitively right, and which data challenges matter most to the business.

This changes the role the humans play. ~80% of the build and governance work happens automatically based on standards the team set up centrally. The other 20% that’s specific to the spec is where the data engineer’s attention goes.

A typical workflow could look like this. The operations team needs a new data model around trip distance for their pricing work. The operations lead and the data engineer set up a call. The initial spec is mostly drafted from the call transcript, with the data engineer only needing to confirm the data's purpose and which metrics should be available. The model includes standards such as PII tagging, data quality checks and monitors, and automatically added descriptions. Once the engineer has sign-off from operations on the spec, it’s pushed to production, and the data product is available for everyone to find, with monitoring already in place. This is the example we follow through the rest of the guide.

This only works if transform, catalog, and quality tools share the same context layer. If a production incident never makes it back to the definitions the agent builds from, the next update may repeat the same mistake.

Over the last year, we've rebuilt the Coalesce platform around these ideas. This guide covers a set of real-world examples of what this looks like.

Before you start

To follow along in your own environment, you need a Snowflake account, a Coalesce workspace connected to GitHub, and a few command-line tools. If you already have these, skip to Define, step 0. Otherwise, the setup below takes about 45 minutes, and every step has commands you can copy and paste.

Set up Snowflake, Coalesce and Claude Code About 45 minutes · optional MCPs

What you need

  • A Mac with Homebrew installed. The commands are for macOS and the zsh shell.
  • A personal email address with no existing Snowflake account.
  • A GitHub account.

Values to replace

The commands use these placeholders. Write your own values down as you go, since later steps reuse them.

Placeholder What it is Example Where you get it
<SNOWFLAKE_USER> Your Snowflake username janedoe Step 1
<ACCOUNT> Your Snowflake account identifier, in the form orgname-accountname abcdefg-xy12345 Step 1
<GITHUB_USER> Your GitHub username janedoe-gh Step 5

All trial resources go into new objects, so nothing here touches an existing environment.

Step 1: Create a Snowflake trial

  1. Go to signup.snowflake.com and sign up with your personal email.
  2. Choose these options: Edition: Enterprise, Cloud: AWS, Region: US East (Ohio) or US West (Oregon).
  3. Activate the account from the email, set a username and password, and log in to Snowsight.
  4. Find your two values: click your name in the bottom left, then your account. The menu shows your organization name above your account name.
    • <SNOWFLAKE_USER> is your username, for example janedoe.
    • <ACCOUNT> is the organization name, a dash, and the account name, all lowercase, for example abcdefg-xy12345.

Use the orgname-accountname format everywhere in this guide. The short account locator alone (xy12345) only works for accounts in US West (Oregon).

Step 2: Create a Coalesce trial

  1. In Snowsight, go to Data Products > Partner Connect and search for Coalesce. If Coalesce isn’t there, search for it under Data Products > Marketplace instead.
  2. Click Connect and keep the defaults. Partner Connect creates a database (PC_COALESCE_DB), a warehouse, and a role for Coalesce.
  3. Click Activate, set your Coalesce password, and click Start Free Trial.

If activation shows “Something went wrong, please try again later”, your account has usually been created anyway. Click Log in, choose Forgot password, and set your password from the reset email.

You should land on a project called Default Project. Leave it for now; you’ll connect it to GitHub in Step 6.

Step 3: Create a role for the course

The course creates its own database, so it needs a role with permission to do that. In Snowsight, open a new SQL worksheet (Projects > Worksheets > +).

First, check your warehouses:

Snowsight worksheet
SHOW WAREHOUSES;

You should see COMPUTE_WH and the Partner Connect warehouse. The course uses COMPUTE_WH.

Then run the following, replacing <SNOWFLAKE_USER> in three places. Run all lines with Cmd+Shift+Enter, not just the line your cursor is on.

Snowsight worksheet
USE ROLE ACCOUNTADMIN;
CREATE ROLE IF NOT EXISTS TAXI_COURSE;
GRANT CREATE DATABASE ON ACCOUNT TO ROLE TAXI_COURSE;
GRANT USAGE ON WAREHOUSE COMPUTE_WH TO ROLE TAXI_COURSE;
GRANT ROLE TAXI_COURSE TO USER <SNOWFLAKE_USER>;
ALTER USER <SNOWFLAKE_USER> SET DEFAULT_ROLE = TAXI_COURSE;
ALTER USER <SNOWFLAKE_USER> SET DEFAULT_WAREHOUSE = COMPUTE_WH;

Step 4: Set up key pair authentication

Both command-line tools sign in to Snowflake with a key pair instead of a password. In Terminal, create the keys:

Terminal
mkdir -p ~/.snowflake/keys && cd ~/.snowflake/keys
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt
openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub
chmod 600 rsa_key.p8

Copy the public key to your clipboard as one line, without the header lines:

Terminal
grep -v "PUBLIC KEY" ~/.snowflake/keys/rsa_key.pub | tr -d '\n' | pbcopy

In the Snowsight worksheet, paste it between quotes and run all three lines. Note the space between the username and SET.

Snowsight worksheet
USE ROLE ACCOUNTADMIN;
ALTER USER <SNOWFLAKE_USER> SET RSA_PUBLIC_KEY='<paste here>';
DESC USER <SNOWFLAKE_USER>;

In the DESC USER result, RSA_PUBLIC_KEY_FP should start with SHA256:.

The public key is safe to paste into Snowflake. Never paste the private key (rsa_key.p8) into a chat, a document or a screenshot.

Step 5: Create the GitHub repo and a token

Install the GitHub CLI and sign in. This lets git use your GitHub login, so you never paste a password where Git expects a token.

Terminal
brew install gh
gh auth login

Answer: GitHub.com, HTTPS, Y to authenticate Git, log in with a web browser. Paste the one-time code in the browser when asked.

Create a private repo with a README and clone it to your home folder. The README matters: Coalesce can’t branch from an empty repo.

Terminal
cd ~
gh repo create taxi-course --private --add-readme --clone
cd ~/taxi-course && git log --oneline

Then create a token for Coalesce. Use a classic token; a fine-grained token failed in testing.

  1. Go to github.com/settings/tokens/new.
  2. Note: coalesce. Expiration: 30 days.
  3. Tick only the top-level repo scope.
  4. Click Generate token and copy it. GitHub shows it only once.

Paste the token straight into Coalesce in the next step. Don’t click the eye icon to reveal it on screen, and don’t share it in screenshots.

Step 6: Connect Coalesce to GitHub and create the workspace

6a. Set up version control. On Default Project, click set up version control in the yellow banner.

  • Repository URL:https://github.com/<GITHUB_USER>/taxi-course.git
  • Add Version Control Account: Account Nickname GitHub, Username <GITHUB_USER>, Token the classic token from Step 5, and Name and Email how you want your commits labeled.

Create only one version control account. If you end up with two, delete one under your user settings, since the project may pick the wrong one.

6b. Create the workspace. Click Create Workspace and name it taxi-course. Then fill in the remaining wizard steps:

Wizard step What to enter
Snowflake Account URL <ACCOUNT> between https:// and .snowflakecomputing.com. Leave Snowflake OAuth disabled.
Snowflake credentials Username <SNOWFLAKE_USER> (Check your browser didn’t autofill another name), your Snowflake password, role TAXI_COURSE, warehouse COMPUTE_WH. Click Test Connection before Next.
Version control Click Fetch, pick branch main and its latest commit.
Storage locations Delete SRC with its trash icon. Map TARGET to database PC_COALESCE_DB, schema PUBLIC. Set TARGET as the default.

Two storage locations can’t point to the same schema, which is why SRC goes. The course creates its own locations later.

6c. Commit and push.

  1. In the workspace, check the bottom left. It should show a branch name, not “No current git branch”. If it doesn’t, click branch in the yellow banner, click Fetch, and attach main.
  2. Click the Git icon in the bottom left, commit with the message Initial commit, and push.
  3. Note the branch name shown in the bottom left. You need it in Step 7.

Step 7: Pull the Coalesce files

Replace main if Coalesce showed a different branch in Step 6c.

Terminal
cd ~/taxi-course
git fetch
git checkout main
git pull
ls -la

You should see data.yml, locations.yml and a nodeTypes folder next to the README. If you only see the README, Coalesce hasn’t pushed yet: go back to Step 6c.

Step 8: Install the Snowflake CLI

Terminal
brew install pipx && pipx ensurepath
pipx install snowflake-cli --backend pip
snow --version

Add the connection in one command. Use the full path to the key; the CLI doesn’t understand ~. $HOME below fills it in for you.

Terminal
snow connection add \
  --connection-name taxi \
  --account <ACCOUNT> \
  --user <SNOWFLAKE_USER> \
  --role TAXI_COURSE \
  --warehouse COMPUTE_WH \
  --authenticator SNOWFLAKE_JWT \
  --private-key-file "$HOME/.snowflake/keys/rsa_key.p8" \
  --default \
  --no-interactive

Test it:

Terminal
snow sql -c taxi -q "SELECT CURRENT_USER(), CURRENT_ROLE(), CURRENT_WAREHOUSE();"

The result should show your user name, TAXI_COURSE and COMPUTE_WH.

Step 9: Install the Coalesce CLI

The Coalesce CLI (coa) supports Node 20. Install it and put it first on your path:

Terminal
brew install node@20
echo 'export PATH="/opt/homebrew/opt/node@20/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
node --version

node --version should print v20.x. If it still shows another version, open a new Terminal window and check again.

Terminal
npm install -g @coalescesoftware/coa
coa --version

You need version 7.35 or later. A warning that the AWS SDK will require Node 22 is safe to ignore.

Create a profile. coa asks for your details, tests the connection, and saves only if the test passes.

Terminal
coa profile create taxi --platformKind Snowflake --snowflakeAuthType KeyPair
Prompt Answer
Snowflake account <ACCOUNT>
Username <SNOWFLAKE_USER>
Private key Full path, for example /Users/janedoe/.snowflake/keys/rsa_key.p8
Passphrase Leave empty
Role TAXI_COURSE, or leave empty to use your default role
Warehouse COMPUTE_WH

Bind the repo to the profile and check everything:

Terminal
cd ~/taxi-course
coa profile use taxi
coa profile list
coa doctor --fix

Under Project, coa doctor should show green checks for .gitignore, data.yml, locations.yml, and workspace.yml. Under Connection, the account and warehouse should both pass. You can ignore the Cloud warnings about domain, token, and environmentID: the course only runs local commands.

--fix adds workspace.yml to .gitignore. Commit that change:

Terminal
git add .gitignore
git commit -m "Ignore workspace.yml"
git push

Step 10: Final check and start Claude Code

Run this block. Every line should succeed.

Terminal
cd ~/taxi-course
snow sql -c taxi -q "SELECT CURRENT_USER(), CURRENT_ROLE();"
coa --version
coa doctor
git status

git status should say nothing to commit, working tree clean.

Install Claude Code if you don’t have it, then start it from inside the repo:

Terminal
npm install -g @anthropic-ai/claude-code
cd ~/taxi-course
claude

Always start Claude Code from ~/taxi-course, since the setup prompt scans that folder. Paste the setup prompt from Define, step 0. When it asks, answer:

Question Answer
Snowflake connection taxi
coa profile taxi
Warehouse COMPUTE_WH

Step 11 (optional): Connect the Coalesce MCPs

The course works without them. With them, your agent can look up tables and owners in Catalog, check environments and runs in Transform, and read and triage issues in Quality, as in the Define, Govern, and Observe lessons. The commands below are for Claude Code; each product’s docs also cover Claude Desktop, Cursor, VS Code, and other clients. Run them in Terminal, then restart Claude Code.

Transform. Needs your Coalesce app host (the host you sign in to) and your access token from the Deploy tab, or the token= value in ~/.coa/config. Keep the token out of chats and screenshots. See Transform MCP.

Terminal
claude mcp add --transport http coalesce-transform "https://<APP_HOST>/api/v1/mcp" --header "Authorization: Bearer <COALESCE_TOKEN>"

Catalog. Needs a Coalesce Catalog account. Use the URL for your Catalog region; the first connection opens a browser to sign in. If it doesn’t, run /mcp inside Claude Code. See Catalog MCP.

Terminal
# US region
claude mcp add --transport http coalesce-catalog https://api.us.castordoc.com/mcp/server

# EU region
claude mcp add --transport http coalesce-catalog https://api.castordoc.com/mcp/server

Quality. Needs a Coalesce Quality workspace. The first connection opens a browser to sign in and choose a permission level. Read-only access covers most of the course; grant Write access if you want the agent to update issues and incidents in the Observe lesson. See Quality MCP.

Terminal
# US region
claude mcp add synq --transport http https://mcp.us.synq.io/mcp

# EU region
claude mcp add synq --transport http https://mcp.synq.io/mcp

# AU region
claude mcp add synq --transport http https://mcp.au.synq.io/mcp

Check which servers are connected:

Terminal
claude mcp list

Troubleshooting

Every error below came up during testing.

Where Error Fix
Coalesce activation Something went wrong, please try again later The account exists. Click Log in, then Forgot password.
Snowsight ALTER USER fails Check there is a space between the user name and SET, and run all lines.
Coalesce workspace Snowflake user authentication unsuccessful: Request to Snowflake failed Use <ACCOUNT> (orgname-accountname) as the account URL, not the short locator. Check the browser didn’t autofill another user name.
Coalesce workspace Fetching Unsuccessful: Please review your credentials Make sure the repo has a README commit. Use a classic token with the repo scope. Delete duplicate version control accounts.
Coalesce workspace Duplicate Mapping Delete SRC. Only one location can point to PC_COALESCE_DB.PUBLIC.
Coalesce workspace No current git branch Click branch in the yellow banner, Fetch, attach main.
git push Password authentication is not supported Run gh auth login (Step 5), then push again.
pipx install pipx needs uv>=0.9.17 Add --backend pip to the install command.
snow connection add Path ~/.snowflake/keys/rsa_key.p8 does not exist Use the full path or $HOME, as in Step 8.
coa doctor data.yml not found, locations.yml not found Commit and push in Coalesce (Step 6c), then git pull (Step 7).
coa NodeVersionSupportWarning about Node 22 Safe to ignore for now.