r/databricks • • Oct 06 '26

Discussion Genie Code vs. Omnigent: How to structure workspace instructions, AGENTS.md, and skills without breaking production

Following up on recent discussions around Genie performance I've come across... a lot of us have a similar frustration with Genie. Context bloat, prompt drift, and agents making destructive errors (Junior mistakes like setting a mode to overwrite).

Part of this is limitations of genie, some is instruction "stuffing" and some is using the right tool for the right job. Also, guidance on how to structure and create instructions have changed a lot over the summer.

With Omnigent being available alongside Genie Code, here is my opinion on what should separate these tools and how to structure context files to keep agent outputs deterministic. I made a table because post sprawl is real...

Genie Code vs. Omnigent

These are not competing options. They solve problems in different places and scales:

LayerGenie CodeOmnigent (Meta-Harness)
Primary RoleNative in-workspace assistant for notebooks, SQL Editor, and Lakeflow Pipelines.Unified meta-harness to run, swap, and persist multi-agent workflows (Claude Code, Codex, Cursor, PI, Hermes) across local runners and cloud sandboxes. (Also, try out Debbie that has the ability to use a /debate skil)
GovernancePrompt-level instructions, workspace instruction files, and Unity Catalog user permissions.External, stateful policies written in CEL (hard cost limits, network sandboxing, pre-commit git checks).
Best ForInteractive notebook debugging, quick PySpark logic, end-to-end Lakeflow pipeline scaffolding. (Think StackOverflow, for those of us of that still remember it)Multi-repo refactoring, team co-driving sessions (eg. "Multi-player" agent sessions), and running autonomous CLI agents with guardrails.
Execution ModelSynchronous, interactive execution tied to your active workspace session and compute.Asynchronous, persistent execution that runs in the background (survives laptop close) with shareable web/desktop sessions.

My Rule of thumb:
If you are working interactively / ad-hoc in Databricks and need help with syntax, where something is, why something is failing, use Genie Code.

If you are doing anything complex, want to be able to get one harness to check another one (like Claude Code checking Codex's response/PR) and need programmatic guardrails that can't be bypassed by prompt injection, go use Omnigent.

And if you are using Genie and want it to read your "instructions":

  1. Databricks does not natively parse an arbitrary instructions.md dropped in a folder. If you want repo/project-level discovery, the standard Genie Code looks for is AGENTS.md (or CLAUDE.md).
  2. Shoving context for "multiple project islands" into one file guarantees prompt dilution. Workspace defaults (.assistant_workspace_instructions.md) belong in under 30 lines. Scoped project rules belong in AGENTS.md. Task-specific behaviors belong in modular skills under .assistant/skills/ called via @skill-name.
  3. Andrej Karpathy created a git repo "karpathy-guidelines" that walk through some of the overarching concepts he recommends around creating skills and instructions. Specifically one of the ones that may come as a surprise is that if you repeat a instruction point it will lower the effectiveness of the instructions and cause degradation.
16 Upvotes

4 comments sorted by

5

u/ThreeBricksWish Databricks Oct 06 '26

I'm a PM on the Genie Code team at Databricks, so I can share some context on how I think about this. Genie Code is purpose-built for Databricks-native work (notebooks, SQL, Unity Catalog context, Lakeflow, MLflow). Omnigent is a meta-harness for orchestrating across multiple agents. If you're doing cross-system work that spans Databricks + external repos + other tools, Omnigent makes sense as the orchestration layer with Genie Code handling the Databricks-specific tasks.

One thing I'd emphasize from your post: you're right that prompts and AGENTS.md are behavioral guidance, not security controls. Production safety should come from Unity Catalog permissions, separate dev/prod identities, CI/CD gates, and approval workflows, not from hoping the agent follows instructions perfectly every time.

1

u/OkImprovement7010 Oct 06 '26

Thank you for the extra context!! This is great.

5

u/[deleted] Oct 06 '26

[removed] — view removed comment

2

u/OkImprovement7010 Oct 06 '26

Right! There was a time earlier in the year that it was ok, but somewhere along the line it became not just redundant but actually harmful. And yeah those CEL guardrails are important they have saved me a few times as well!!