Technology

Omnigent Policies Get Smarter

Databricks' Omnigent introduces contextual policies, allowing AI agents to govern actions based on session history for enhanced security and cost control.

StartupHub.ai Staff

By StartupHub.ai Staff, reviewed by Daniel Singer, Editor

3 min read

Diagram illustrating the flow of contextual policies in Omnigent for AI agent governance
Omnigent's contextual policies enable smarter AI agent governance by using session state.
Contents(3)

AI agents are rapidly moving from experimental toys to tools handling real-world tasks, but governing their actions remains a significant challenge. Databricks is tackling this with Omnigent, an open-source meta-harness that introduces a new approach: contextual policies.

Traditional agent controls offer basic rules like allowing or denying specific tool calls. This approach struggles with nuanced scenarios where the safety or appropriateness of an action depends on what has already occurred within an agent's session.

Omnigent's contextual policies, however, maintain a memory of the agent's session state. This allows them to evaluate subsequent actions based on historical context, such as prior data access or accumulated costs.

Context is Key for Agent Control

The inherent risks of AI agents, from prompt injection to unintended data exposure, necessitate robust governance. Simple allow-lists often lead to overly restrictive controls that hinder usability.

Conversely, constant user prompts lead to fatigue. Contextual policies offer a middle ground by learning from the agent's activity.

For instance, an agent pushing code to GitHub might be acceptable if it's working on a feature, but risky if it previously downloaded a potentially malicious webpage.

How Omnigent's Policies Work

Omnigent policies can monitor agent events like tool calls and LLM interactions. Crucially, they can update arbitrary session-specific state variables.

The Omnigent server stores this state for each policy and session, feeding it back into the policy handler for subsequent decisions.

Writing a contextual policy involves defining a function that accepts previous state and new events, returning state updates and a decision.

Omnigent supports popular coding agents like Claude Code and Codex, as well as custom agents built with frameworks like OpenAI Agents SDK and Claude Agents SDK.

Example Use Cases

  • Cost Control: A budget policy tracks session spending. It can issue warnings at soft thresholds and block expensive model calls at a hard cap, encouraging the use of cheaper alternatives. Platform teams can layer per-user daily caps on top of session limits.
  • Document Access: A Google Drive policy restricts writes to documents the agent created during the current session. It can also tighten access dynamically if the agent reads a designated confidential document, implementing a 'no write-down' rule.
  • Dynamic Risk Scoring: A risk score policy accumulates a score based on agent actions, such as reading sensitive documents or making routine tool calls. As the score rises, actions like sending emails may require user approval.
  • Intent-Based Authorization: Permissions are tied to the user's initial prompt. If a session starts with a request to update a Google Slides presentation, the agent is limited to that task, preventing it from executing unrelated, potentially harmful actions like running shell commands.

These capabilities move beyond simple action-based rules to a more intelligent, state-aware form of AI governance.

The takeaway is that robust AI agent control requires understanding their history.

Omnigent's contextual policies provide a powerful, flexible, and open-source solution for making AI agents both safer and more practical for enterprise use.

Mentioned in this story

Sources

TopicsAI AgentsDatabricksOmnigentPolicy ManagementCybersecurityOpen SourceClaude CodeCodex

StartupHub.ai StaffDaniel SingerWritten by StartupHub.ai Staff, Editorial teamReviewed by Daniel Singer, EditorAbout

StartupHub.ai Staff, Editorial team

The staff writers of StartupHub.ai, ranging from investment analysts to avid AI tool users, early adopters and critical enthusiasts. Backgrounds span engineering, business and the arts. We hold every piece to rigorous standards of research and review.

Daniel Singer, Editor

Daniel Singer is an AI expert who has been writing about, covering and building AI technology since 2018.

More from Daniel Singer

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 64,000 other subscribers.

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute.

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.