yesterday
Updated December 1, 2026: what Genie Code CLI does, how it compares with other coding agents, where Unity Gateway and Omnigent fit, and how to build and debug Lakeflow pipelines with AI. Every product fact links to the Databricks docs.
Coding agents now touch almost every part of data engineering on Databricks. The hard part is picking one. Below are direct answers to the questions developers ask most about Genie Code CLI and the agents around it, sorted by the decision you are trying to make. Each answer starts with a one-line reply, then gives the details and the doc to check.
Status as of December 1, 2026
Item | Status | Source --------------------------------------------+---------------------------------------------+---------------------------- Genie Code CLI | Generally available since November 18, 2026 | November 2026 release notes Genie Code CLI sign-in | OAuth user-to-machine (U2M) only | Genie Code CLI limitations Omnigent on Databricks | Beta | Omnigent on Databricks SSH tunnel | Beta | SSH tunnel Databricks SQL MCP server (system.ai.dbsql) | Beta | Databricks SQL MCP
Short answer: Genie Code CLI is a Databricks coding agent that runs in your local terminal and arrives already set up for data and AI work, so reach for it when your code lives on your laptop or in git.
databricks genie ask for data questions.~/.genie/skills/.system/) and models that Databricks provides, so there is no separate model subscription to buy.Use Genie Code in the workspace instead when you want the full in-product feature set. Docs: Genie Code CLI.
Short answer: Yes: Genie Code CLI runs on macOS, Linux or Windows, in any terminal or IDE terminal, while signing in to a workspace for models and data.
genie in a project folder, and pick a Databricks CLI profile when prompted. That profile decides model access and billing.Docs: Install and set up Genie Code CLI.
Short answer: The workspace version of Genie Code acts on notebooks, queries, pipelines and dashboards inside Databricks, while Genie Code CLI acts on local files from your terminal, and each keeps its own tools, skills and instructions.
| Genie Code in the workspace | Genie Code CLI -------------+---------------------------------------------------------------------------------------+--------------------------------------------------------------------- Runs in | Notebooks, MLflow, AI/BI dashboards, the Lakeflow Pipelines Editor and the SQL editor | A local terminal or IDE terminal Works on | Workspace assets, with Unity Catalog tables, columns and lineage as context | Local files, shell commands and git, plus Databricks through the CLI Instructions | User and workspace instructions, plus AGENTS.md and CLAUDE.md files in the workspace | AGENTS.md in the project root Skills | Workspace skills in /Workspace/.assistant/skills/ | Local folders such as ~/.genie/skills/ and .agents/skills/ Feature set | The complete experience | Not yet every workspace capability
The CLI doesn't share its skills or instructions with the workspace today. Docs: Genie Code and how the CLI differs.
Short answer: Genie One is the simplified Databricks UI where business users ask data questions in plain language, while Genie Code is the agent developers use to write, run and fix code.
databricks genie ask.Docs: Genie One and Genie Code.
Short answer: Claude Code is Anthropic's general-purpose agentic coding tool; Genie Code is the Databricks-native agent, so choose Genie Code for zero-setup Databricks work and Claude Code when your team already standardizes on it.
ug claude gives it Databricks-served models, managed MCP servers and shared skills.ug claude you can switch models with /model, and your admin can even route a Claude Pro, Max, Team or Enterprise subscription through Unity Gateway.Docs: Connect Claude Code.
Short answer: Cursor is an editor with AI built in, while Genie Code CLI is an agent that lives in a terminal, so the two combine well: edit in Cursor and open the CLI in Cursor's built-in terminal.
/import in Genie Code CLI copies your existing Cursor configuration across.ug mcp add --agents cursor then adds the managed MCP servers and the skills.Docs: Connect Cursor and Databricks IDE extension.
Short answer: GitHub Copilot lives in your editor and terminal across any codebase, while Genie Code lives in Databricks and in Genie Code CLI, so use Copilot through Unity Gateway if your team runs on Copilot and Genie Code for Databricks-first work.
ug copilot launches GitHub Copilot CLI with Databricks models, MCP servers and skills.ug configure --agents copilot also sets up GitHub Copilot in Visual Studio Code; MCP servers there need Visual Studio Code 1.142 or later.Docs: Connect GitHub Copilot and supported agents.
Short answer: For pipeline work in the workspace, start with Genie Code in the Lakeflow Pipelines Editor; for code in git, pick Genie Code CLI for no setup, or Claude Code or Cursor through Unity Gateway if your team already lives in them.
| Genie Code CLI | Claude Code via ug claude | Cursor via Unity Gateway -----------------+------------------------------------------------+------------------------------------------------+------------------------------------------------------------------ Databricks setup | Built in: skills, the Databricks CLI and Genie | ug configure, then ug claude | Custom models in Cursor settings, plus ug mcp add --agents cursor Model choice | Databricks provides the models | Choose with /model from what your admin allows | Choose from the custom models you configure Billing | Genie pay-as-you-go and Genie budgets | Unity Gateway usage and budgets | Unity Gateway usage and budgets for Databricks models Best for | Data and AI work in local repos | Teams that already use Claude Code | Teams that live in the Cursor editor
Docs: capability matrix and Genie Code for pipelines.
Short answer: Pick Genie Code if you'd rather not configure anything and want help that already knows Unity Catalog; pick Claude Code if your team already runs it and has wired it to Databricks through Unity Gateway.
databricks aitools install --agents claude-code.Docs: Genie Code for pipelines and agent skills.
Short answer: For ML on Databricks, Genie Code is the stronger default because it plans and runs notebook work against your data; Claude Code suits local, code-heavy ML repositories.
ug claude, or run it on Databricks compute through the SSH tunnel (Beta).Docs: Genie Code for data science and SSH tunnel.
Short answer: Choose Genie Code when you want an agent Databricks already tuned for data and ML; choose Codex, OpenAI's coding agent, when your team already uses it, and run it with ug codex.
ug codex connects Codex to Databricks models, MCP servers and skills after you pick a workspace and sign in.Docs: Connect Codex.
Short answer: Genie Code is usually the better fit for data practitioners because it works on governed tables, notebooks and pipelines; Cursor fits engineers who mostly write local application code.
Docs: Genie Code and custom instructions.
Short answer: Inside the workspace, stay with the built-in Genie Code; once the code moves into a local git repository, switch to a terminal agent.
/fix proposes a fix in a diff view, and "Accept and run" applies it and continues.ug.Docs: Genie Code in notebooks and Unity Gateway CLI.
Short answer: Unity Gateway supplies and tracks the models Genie Code CLI uses, while billing follows Genie Code: Genie pay-as-you-go pricing and Genie budgets.
system.billing.usage, CLI rows carry usage_metadata.genie.surface = GENIE_CODE_CLI.ug CLI launches other agents (Pi, OpenCode, Gemini CLI, GitHub Copilot CLI, Codex and Claude Code) with Databricks models and tools.Docs: Unity Gateway, Genie Code CLI billing and Genie budgets.
Short answer: There's no integration today: Omnigent is a meta-harness, one control layer above several agents including Claude Code, Codex, Cursor and Pi, and Genie Code CLI isn't on its supported-harness list.
Docs: Omnigent on Databricks and Omnigent supported harnesses.
Short answer: Yes: launch Claude Code with ug claude, and connect Cursor through custom models in its settings plus ug mcp add --agents cursor.
uv tool install git+https://github.com/databricks/unity-gateway (it needs uv).ug claude in your project and sign in; switch models with /model.ug mcp add --agents cursor then wires in the managed MCP servers and the skills.ug cursor adds Databricks MCP servers and skills, but model requests still go through your Cursor account.databricks aitools install --agents claude-code,cursor.Docs: Connect Claude Code and Connect Cursor.
Short answer: ug codex is the shortest path: install the Unity Gateway CLI once, launch Codex through it from your project, and it handles sign-in and model setup.
ug with uv tool install git+https://github.com/databricks/unity-gateway.ug codex, pick the workspace and sign in.ug mcp add, or name them, for example ug mcp add --names system.ai.genie_one_mcp. MCP connections apply to every configured agent that supports MCP.ug skills add.ug codex --provider main.default.chatgpt_subscription --workspace https://<workspace>.databricks.com.Docs: Connect Codex and add MCP servers and skills.
Short answer: Launch Claude Code with ug claude, give it the Databricks skills, and ask for the job as a Declarative Automation Bundle that it validates, deploys to a development target and runs.
databricks auth login, and add skills with databricks aitools install --agents claude-code.ug claude and describe the job: what it runs, when, and on which compute. Ask it to keep the schedule paused at first.databricks bundle validate, then databricks bundle deploy -t dev, then databricks bundle run <job-key> -t dev.Bundles (formerly Databricks Asset Bundles) keep the job definition in git, so it gets code review like any other change. Docs: Declarative Automation Bundles.
Short answer: Stay in Cursor for editing, open Genie Code CLI in Cursor's built-in terminal, and bring your Cursor settings across with /import.
genie resume --last to pick up yesterday's conversation instead of re-explaining context.Docs: Genie Code CLI and Databricks IDE extension.
Short answer: You don't need to switch: add Databricks to Cursor through Unity Gateway, and use Genie Code where it is strongest, in the workspace and for Databricks-heavy terminal work.
Docs: Connect Cursor.
Short answer: In the workspace, Genie Code reads Unity Catalog tables, columns and lineage within your permissions; in the terminal, Genie Code CLI reads your repository and asks Databricks for data through the CLI and Genie.
Docs: Genie Code and Genie Code memory.
Short answer: Write lasting rules as instructions, let memory collect working context as you go, and save repeatable workflows as skills.
~/.genie/skills/.Docs: custom instructions, memory and skills.
Short answer: Commit the standards as AGENTS.md plus shared skills in the repository, and have a workspace admin add workspace instructions for the same rules in the UI.
.agents/skills/ in the repository.Docs: Genie Code CLI skills and Genie Code skills.
Short answer: Keep approvals on, read every diff, and run the change on a development target before production.
databricks bundle validate, then deploy to a development target with databricks bundle deploy -t dev.Docs: approvals and deployment modes.
Short answer: Yes: describe the pipeline in plain language to Genie Code in the Lakeflow Pipelines Editor or in Lakeflow Designer, or to a terminal agent that writes a bundle; then review the plan and the diffs before anything runs.
Docs: Genie Code for pipelines and November 2026 release notes.
Short answer: Open the Lakeflow Pipelines Editor, ask Genie Code for the pipeline in one description that names sources, targets, rules and schedule, then approve its plan step by step.
A description that works well covers five things:
Genie Code shows which files it changes and the diff in each, and it can run single files, dry-run or run the pipeline, or do a full refresh. Docs: Genie Code for pipelines.
Short answer: Start a new pipeline in the Lakeflow Pipelines Editor, describe the tables and quality rules to Genie Code, approve its plan and edits, then dry-run before the first full run.
Lakeflow pipelines run on Apache Spark Declarative Pipelines, the open declarative framework for batch and streaming work in SQL or Python. Docs: Lakeflow pipelines and Genie Code for pipelines.
Short answer: Ask Genie Code for the pipeline plus a Lakeflow job that schedules it, packaged as a Declarative Automation Bundle, and deploy it to a development target first.
Docs: Declarative Automation Bundles and expectations.
Short answer: Ask Genie Code to read the failed update and propose a fix; it works through the error across files until it is resolved, and you approve each change.
/fix proposes a fix in a diff view, and Diagnose Error handles harder failures, including environment errors.Docs: Genie Code for pipelines and Genie Code features.
Short answer: For hands-off triage, add a Genie Code task to the pipeline's job and run it only when the pipeline task fails, using a Run if condition.
Know the trade-off: a Genie Code task runs with auto-approve as an autonomous agent. After the run, you can open its chat and continue. Docs: Genie Code task and Run if dependencies.
Short answer: Yes, and treat the generated code like a pull request from a new teammate: validate the bundle, check the deployment mode, test row counts, add expectations, and dry-run.
databricks bundle validate before every deploy.sparkContext, DBFS mounts and hive_metastore names that your compute may not support.Docs: expectations and deployment modes.
Short answer: Describe each step, its order and its failure handling in one prompt, ask for a Lakeflow job in a Declarative Automation Bundle, and review the task graph before you deploy.
Docs: Run if dependencies and Genie Code task.
Short answer: Run genie in your project folder, pick a CLI profile, and ask the question in plain language; the CLI finds the data through Databricks and writes local Python for the analysis.
databricks auth login.genie in the project folder and select that profile.For questions in business terms, connect the Genie One MCP server with genie mcp add, using a token from databricks auth token. Docs: Genie Code CLI.
Short answer: Connect the agent to the Databricks SQL MCP server when you need precise SQL, to the Genie One MCP server when the question is phrased in business terms, or let it use the Databricks CLI and the SQL Statement Execution API from a terminal.
poll_sql_result, execute_sql_read_only and execute_sql, running with the caller's permissions. It allows writes by default; set disallow_writes to true in system.ai.dbsql_policy to make it read-only. It needs the Enhanced Unity Gateway preview, which an account admin turns on; until then, use the /api/2.0/mcp/sql endpoint.databricks genie ask, or the SQL Statement Execution API against a SQL warehouse.Docs: Databricks SQL MCP and built-in MCP services.
Short answer: All four, each for a different job: MCP for AI agents, SDKs for application code, the CLI for scripts and deployments, and the REST API for everything else.
system.ai, such as system.ai.genie_one_mcp and system.ai.dbsql.Each call runs as a Databricks identity, so Unity Catalog permissions decide what it can see. Docs: SDKs and built-in MCP services.
Short answer: For the terminal there's the Databricks CLI and Declarative Automation Bundles; for editors, the Databricks IDE extension; for code, the SDKs, SQL connectors and REST API; and for agents, Genie Code CLI, the ug CLI and agent skills.
ug for Claude Code, Codex, Copilot, Gemini CLI, OpenCode and Pi; databricks aitools install for skills.Docs: Databricks IDE extension, SSH tunnel and Databricks Sandbox.
Short answer: Explore data, notebooks, dashboards and pipeline graphs in the workspace; do git-based work, testing and refactoring in your own IDE; bundles let one project move between the two.
Docs: Databricks IDE extension and SSH tunnel.
Short answer: Store each pipeline as a Declarative Automation Bundle in git, then work on whichever surface suits the task (the Lakeflow Pipelines Editor, a local IDE or a terminal agent), because all three deploy the same bundle.
My rule of thumb: every change, from any surface, goes through databricks bundle validate and a dev deploy before production. Docs: Declarative Automation Bundles.
If you want to… | Use -------------------------------------------------------+--------------------------------------------------------- Start a Databricks-tuned agent in your terminal | genie (Genie Code CLI) Resume yesterday's CLI conversation | genie resume --last Bring your Claude Code or Cursor setup into the CLI | /import Give the CLI business-level data answers | genie mcp add with the Genie One MCP server Use Databricks models in Copilot, Codex or Claude Code | ug copilot, ug codex or ug claude Add Databricks MCP servers to Cursor | ug mcp add --agents cursor Install Databricks skills into other agents | databricks aitools install Make the SQL MCP server read-only | disallow_writes in system.ai.dbsql_policy Triage pipeline failures automatically | A Genie Code task with Run if set to At least one failed Test a change safely | databricks bundle validate, then deploy -t dev
How is Genie Code CLI billed? Like Genie Code: Genie pay-as-you-go pricing, sharing each user's free monthly Genie usage and counting toward the same Genie budget. Unity Gateway tracks the usage. See Genie Code CLI billing.
Can Genie Code CLI run in CI with a service principal? No. It signs in only through OAuth user-to-machine (U2M), using a Databricks CLI profile you create with databricks auth login; machine-to-machine OAuth and personal access tokens aren't supported. For MCP servers you connect yourself, you pass a token through --bearer-token-env-var, and an expired token returns 401 until you restart with a fresh one.
Where is Genie Code CLI unavailable? In regions without Genie pay-as-you-go billing, which the docs list as Azure West Central US, Qatar Central, AWS Asia Pacific (Jakarta) and government regions. Availability also depends on the Designated Services geography setting.
All Databricks documentation pages above were checked on December 1, 2026. Release dates come from the November 2026 release notes. Product names and status labels change quickly, so check the linked page before you rely on a detail.
Opinions here are my own.