Skip to main content

How can I develop Databricks pipelines from my local agent setup, and what setup should I use?

Summary

  • Two local setups work. If you already use a coding agent, add Databricks agent skills with databricks aitools install, connect Databricks-provided MCP servers, and route models through Unity Gateway with ug. If you don't, Genie Code CLI (Beta) comes preconfigured for Databricks.
  • Skills and MCP servers do different jobs: skills teach the agent Databricks patterns, and MCP servers let it query data and run tools. Installing skills doesn't connect MCP servers for you.
  • The pipeline loop is the same in both setups: write Spark Declarative Pipelines (SDP) code with from pyspark import pipelines as dp, unit test plain PySpark functions locally, then validate, deploy and run with the databricks pipelines commands.
  • Pipeline updates launched from your terminal run in your Databricks workspace on the pipeline's compute, not on your laptop. Expectations and AUTO CDC run only on Databricks.
  • Agent work in the workspace runs under your identity, so Unity Catalog permissions apply. Local file edits and shell commands are not governed by Databricks.

How can I develop Databricks pipelines from my local agent setup, and what setup should I use?

Use your existing coding agent with Databricks agent skills, Databricks-provided MCP servers and Unity Gateway if you already have that agent configured. Use Genie Code CLI (Beta) if you want a terminal agent that arrives preconfigured for Databricks. Either way, the agent edits Spark Declarative Pipelines (SDP) source files on your machine and uses the Databricks CLI to dry-run, deploy and run them in your workspace. Pick the agent you'll keep using: the pipeline workflow underneath doesn't change.

What does a local agent setup for Databricks pipelines include?

A working setup has five layers, and most problems come from a missing one:

  • The agent harness, such as Claude Code, Codex, Cursor or Genie Code CLI.
  • Knowledge: Databricks agent skills, Markdown instruction files in the open Agent Skills format. The official set includes skills for pipelines, bundles, Lakeflow Jobs and metric views.
  • Tools: Databricks-provided MCPs that let the agent query Unity Catalog data and run SQL, governed by Unity Catalog.
  • The Databricks CLI, which authenticates and runs workspace operations such as databricks pipelines deploy.
  • Project instructions, such as an AGENTS.md file with your catalog names, conventions and test commands.

The docs put the split plainly: "Skills teach the agent how to work; MCP servers let it do the work."

Which setup should you use?

Setup Best when How you start
Your coding agent through Unity Gateway You already use Claude Code, Codex or a similar agent ug claude or ug codex, then ug mcp add and ug skills add
Your coding agent with skills installed directly You only need Databricks knowledge in the agent databricks aitools install (add --scope project for one repo)
Genie Code CLI (Beta) You want Databricks skills and data discovery preconfigured genie in your project directory
Genie Code in the workspace You want the fully featured experience inside the pipeline editor Open Genie Code from the pipeline editor

Genie Code CLI works like other terminal agents, but it ships with Databricks agent skills, uses the Databricks CLI and databricks genie ask to find and query data, and gets model access through Unity Gateway with no separate model subscription. It needs a workspace in a Unity Gateway supported region, Unity Catalog enabled and Databricks CLI version 1.0.0 or above. It's in Beta, so its commands and interfaces change often, and it doesn't yet include every capability of Genie Code in the workspace. If you already use Claude Code or Cursor, /import brings your configuration across.

How Databricks approaches local pipeline development

Write code your IDE and agent can check

Local development starts with the pyspark.pipelines module. Because it's part of Apache Spark, your IDE and agent get syntax checking, autocomplete and type checking:

from pyspark import pipelines as dp

Keep transformation logic in plain PySpark functions that take and return a DataFrame, and keep the @dp.table functions thin wrappers that call them. Your agent can then run pytest against that logic locally with no pipeline runtime. The spark-pipelines CLI can also initialize, validate and run a pipeline on local Apache Spark. Features unique to Databricks, such as expectations and AUTO CDC, run only in the workspace.

Validate, deploy and run from the terminal

These commands are the core of the agent's loop:

databricks pipelines init
databricks pipelines dry-run
databricks pipelines deploy
databricks pipelines run

A dry run validates the pipeline graph without publishing data, so make it the agent's default check before every deploy. The commands work with Declarative Automation Bundles, so a small project can grow into bundle configuration and CI/CD. Git folders and the Databricks IDE extension for Visual Studio Code are other ways to sync code with the workspace.

Keep the setup governed

Genie Code CLI runs under your Databricks identity, so it can only reach data and operations your permissions allow. Admins govern it through Unity Gateway, where usage and budgets apply. Some Databricks-provided MCPs, such as system.ai.dbsql, need an account admin to enable the Unity Gateway beta. Local actions, including file edits and shell commands, are not governed by Databricks, so review what the agent runs.

FAQs

Do pipeline updates run on my laptop?

No. Updates launched with databricks pipelines run execute in your workspace on the compute configured for the pipeline. Only spark-pipelines runs on local Apache Spark.

Does installing Databricks skills give my agent access to data?

No. Skills supply knowledge. To query live workspace data, connect the Databricks-provided MCP servers you need and authenticate.

Can I use Genie Code CLI inside my IDE?

Yes. Start it from the integrated terminal of any IDE. It works with the files in the directory where you launch it, on macOS, Linux and Windows.

I installed AI Dev Kit skills earlier. Should I keep them?

No. They're deprecated and their content is in Databricks agent skills. Uninstall them before installing Databricks agent skills to avoid conflicts.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.