惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
有赞技术团队
有赞技术团队
博客园 - 司徒正美
量子位
N
News and Events Feed by Topic
T
Threatpost
Last Week in AI
Last Week in AI
D
Darknet – Hacking Tools, Hacker News & Cyber Security
酷 壳 – CoolShell
酷 壳 – CoolShell
C
CERT Recently Published Vulnerability Notes
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
Intezer
人人都是产品经理
人人都是产品经理
T
Tenable Blog
IT之家
IT之家
雷峰网
雷峰网
腾讯CDC
博客园 - 聂微东
V
Visual Studio Blog
S
SegmentFault 最新的问题
Scott Helme
Scott Helme
Spread Privacy
Spread Privacy
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
N
Netflix TechBlog - Medium
J
Java Code Geeks
宝玉的分享
宝玉的分享
F
Full Disclosure
WordPress大学
WordPress大学
A
Arctic Wolf
小众软件
小众软件
AWS News Blog
AWS News Blog
Attack and Defense Labs
Attack and Defense Labs
NISL@THU
NISL@THU
AI
AI
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
N
News | PayPal Newsroom
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org

Databricks

Why Talent Transformation Is the Missing Focus of Enterprise AI Public Health Intelligence Shouldn't Require a Data Scientist Mean Time to Detect Is a Data Access Problem First-party audience data is the ad sales relationship now Rethinking Distributed Systems for Serverless Performance and Reliability The AI Scaling Gap Hiding in Digital Native Companies 10 trillion samples a day: Scaling beyond traditional monitoring infra at Databricks AI success starts with clean data, not just better models How nOps Rebuilt Their Cloud Optimization Platform on Databricks Lakebase, and Why Other ISVs Should Too Peril Predicts: Precision Payouts for a Volatile World The foundation of AI scalability: one team, one platform, one operating model The Federal Data Paradox: Rich in Data, Poor in Access Driving Budapest Forward: How BKK Uses Databricks to Transform City Mobility LLM Vs AI: A Practical Guide to Differences, Use Cases, and Tools Model Risk Governance Is Not the Same as Risk Intelligence Generative AI for Business: A Complete Strategy and Implementation Guide Data Science vs Data Engineering: Choosing Analysis or Infrastructure AI Applications: Tools, Use Cases, and Platforms MLOps vs DevOps: A Practical Guide for Data Scientists and IT Teams Top Data Warehouse Tools For Modern Data Analytics Unlocking SAP Business Context in Databricks with Semantic Metadata Delta Sharing The marketing activation gap has a fix: Databricks and Stitch partner to turn data infrastructure into marketing performance Alert Fatigue Is a Business Risk Backstage with Lakebase Shipping Faster isn’t Learning Faster Why Your OEE Dashboard Is Lying to You The Turbine That Tried to Tell You It Was Failing Predicting Readmissions Isn't Enough. Acting in Time Is. Clinical Trials Run Longer Than They Have To. That's a Patient Problem Network Quality Is a Revenue Problem, Not a Technical One Shelf Availability Starts with Better Demand Visibility When Predicting the Next Hit Requires More Than Intuition Approximate Answers, Exact Decisions: New Sketch Functions for Analytics Companies Winning with AI Built the Data Layer First Rethinking SQL ETL for modern data platforms Stripe data now available on Databricks via Databricks Marketplace Databricks and Stripe Projects: Infrastructure Built for Agents Agents are ready but your architecture probably isn't Interoperability Between Unity Catalog and Google BigQuery via Catalog Federation Built In, Not Bolted On: What AI-Native Actually Means in Cybersecurity Operationalizing AI for public sector fraud prevention From months to minutes: Building real-time clinical data pipelines with natural language Agentic Data Engineering with Genie Code and Lakeflow Securely send first-party conversion signals with Snapchat Conversions API on Databricks Marketplace How leading tech companies are killing the builder’s tax with Lakebase Inside one of the first production deployments of Lakebase: LangGuard's agentic workflow governance engine The next generation of Databricks Genie Model Risk Management in 2026: A Banker’s Guide to the Revised Interagency Guidance OpenAI GPT-5.5 now available on Databricks, fully-governed through Unity AI Gateway Operational databases: How they work and when to use them Databricks partners with OpenAI on GPT-5.5 Announcing the Public Preview of Lakeflow Designer Are LLM agents good at join order optimization? How conversational analytics removes the BI bottleneck How to transform document activation workflows with Genie and Agent Bricks Beyond the spreadsheet: how Databricks is delivering the modern CFO in Financial Services AI App Development: Guide To Building AI-Powered Apps IoT in Manufacturing: Strategy, Components, Use Cases, and Challenges Stop Hand-Coding Change Data Capture Pipelines Multimodal Data Integration: Production Architectures for Healthcare AI Personalization Strategies for Media Companies A Modern AI Risk Management Framework Introducing the Databricks Excel Add-in for Business Users Real-Time Decisioning for AI Agents: Why you Need a Customer Context Layer First A Practical Guide to LLM Fine Tuning AI Data Transformation Guide for Data Engineers and Data Scientists Concurrency Control in DBMS: How Locking, MVCC and Optimistic Strategies Keep Data Consistent Bridging data science and marketing: Databricks unveils Delta Sharing integration for Adobe Experience Platform and agentic marketing workflows Take Control: Customer-Managed Keys for Lakebase Postgres Get hands on with agents, vibe coding and more at Data+ AI Summit Mercedes-Benz Builds a Cross-Cloud Data Mesh with Delta Sharing and Intelligent Replication, Cutting Costs by 66% What Is a Transactional Database? Introducing Genie Agent Mode Governing coding agent sprawl with Unity AI Gateway Governing Coding Agent Sprawl with Unity AI Gateway What is pgvector? Banks Don’t Have an AI Problem – They Have a Data Platform Problem Open Platform, Unified Pipelines: Why dbt on Databricks is Accelerating Why Your Agents Can’t Read Enterprise Documents — and How to Fix It Building with Databricks Document Intelligence and Lakeflow Databricks on Google Cloud: Innovate Faster. Smarter. Together. Introducing the Databricks Connector for Google Sheets: Real-Time, Governed Lakehouse Data in the Sheets Users Love Unity AI Gateway: How to connect agents to external MCPs securely Expanding agent governance with Unity AI Gateway Agentic reasoning in practice: Making sense of structured and unstructured data Agent Bricks: The Governed Enterprise Agent Platform 8 AI and data trends shaping financial services in 2026 Building real-time product search on Databricks Lovable + Databricks: Build Data-Driven Apps at the Speed of Thought Memory scaling for AI agents Powering clinical research innovation: How TriNetX uses Databricks to accelerate drug development Database Branching in Postgres: Git-Style Workflows with Databricks Lakebase How Zalando built a unified data foundation for AI and analytics on Databricks The next era of the open lakehouse: Apache Iceberg™ v3 in Public Preview on Databricks How FSIs eliminate silos between clients, operations, and finance How MakeMyTrip achieved millisecond personalization at scale with Databricks A multi-agent approach to audience intelligence AiChemy: Next-generation agent with MCP, skills and custom data for drug discovery Accelerate business insights with Lakeflow Connect, now with a Free Tier Unlocking Next-Gen Customer Experiences with Data Intelligence for Marketing
What is an AI agent harness?
Databricks Staff · 2026-06-18 · via Databricks

An AI agent harness is the software infrastructure that wraps around a large language model (LLM) and enables it to act on tasks, not just respond to prompts. The model reasons through a problem and decides what to do next. The harness connects it to the tools, systems, memory and execution environments needed to carry out those actions.

Agent = Model + Harness

Think of the model as the “brain” that generates reasoning and decisions. The harness is everything around it that helps the agent operate safely and reliably, including:

  • Tools: APIs, code execution, search, databases and business applications
  • Memory: Prior context, user preferences and workflow history
  • Workspace: Files, data, environments and systems the agent can access
  • Guardrails: Permissions, policies, approvals and monitoring

Without a harness, a model can answer questions, but it can’t reliably run code, call APIs, access files, remember prior work or complete multi-step workflows on its own.

In this guide, we’ll cover the core components of an AI agent harness, why harnesses shape agent performance, how production agent systems are built and why harness engineering is emerging as its own discipline.

Why AI agents need both a model and a harness

AI agents rely on two complementary layers: a model that reasons and a harness that acts.

The model, whether GPT-5.5, Claude, Llama or another LLM, reads context and decides what to do next. The harness turns those decisions into actions by connecting the model to tools, memory and external systems.

Modern agent systems are increasingly built around this separation between reasoning and execution. Together, the two layers allow agents to complete tasks reliably across real-world workflows.

The reason → act → observe loop

At the core of many AI agents is a repeating cycle. Understanding this loop makes the role of the harness easier to see.

  1. Reason. The model reads everything in its context, including the task, relevant memory and previous results, then decides what action to take next.
  2. Act. The harness carries out that action by running a tool, executing code in a sandbox, calling an API or writing to storage.
  3. Observe. The harness captures the result and feeds it back to the model as new context.
  4. Repeat. The model uses that result to decide what to do next. The loop continues until the task is complete.

This pattern is often called the ReAct loop, short for “reasoning and acting,” and it forms the foundation of many production agent systems today. The ReAct loop was introduced in the paper ReAct: Synergizing Reasoning and Acting in Language Models by Shunyu Yao et al. in 2022.

Consider a coding agent tasked with fixing a bug. The model proposes a code change. The harness runs the code in an isolated sandbox, captures the test results and returns them to the model. If the tests fail, the model reasons about what went wrong and tries again. The harness manages the interaction with the underlying system while the model focuses on solving the task.

Agent, model and harness: what’s the difference?

“Agent,” “model” and “harness” are often used interchangeably, but they refer to different parts of the system. Clarifying the distinction helps teams understand what they’re actually building, debugging or improving.

ComponentWhat it doesPlain-language analogy
ModelReasons, predicts and generates text or other outputsThe "brain" of the system
HarnessExecutes actions, manages memory, runs tools and enforces rulesThe “body” and workspace around the brain
AgentThe full working system that combines the twoA worker who can think and act

Eight building blocks every production harness needs

Most operational harnesses are built from the same foundational components, each designed to solve a different limitation of the raw model.

System prompts

A system prompt is the standing set of instructions given to the model every time it runs, telling it who it is, what it is trying to accomplish and what rules it must follow. System prompts shape the agent’s behavior, personality and guardrails before any user input arrives. Poorly written prompts are one of the most common causes of inconsistent or unpredictable behavior.

Tools and tool execution

Tools are pre-built functions the model can call to interact with external systems, such as searching the web, querying a database, sending an email, running code or calling an API. The model decides which tool to use and when. The harness is what actually runs the tool and returns the result to the model.

Developers are moving away from large collections of narrowly defined tools. Instead, they are giving agents a more general-purpose capability: the ability to write and execute code. This allows the model to build workflows dynamically instead of relying on a fixed set of predefined actions.

Sandboxes and execution environments

A sandbox is an isolated workspace where an agent can run code or take actions without affecting anything outside the environment. This matters because running agent-generated code directly on a real system is risky.

By isolating the environment, sandboxes let agents experiment safely and give teams a contained workspace they can monitor, reset or shut down cleanly if something goes wrong. They also make it possible to run many agents in parallel at scale.

Filesystem and durable storage

A filesystem gives the agent a place to read and write files such as code, notes, plans and intermediate work that persist between sessions.

Persistent storage allows agents to accumulate progress across long-running tasks and collaborate with humans or other agents through a shared workspace of files, not just chat messages.

Memory and context management

Base models don’t retain memory beyond their current context window. The harness manages memory both within a task and across sessions. As conversations grow longer, the harness decides what stays active and what gets summarized, a process known as context compaction.

In practice, this means trimming older parts of the conversation so the model does not become overwhelmed as the context grows. Across sessions, the harness stores and retrieves relevant history. This allows the agent to resume work with awareness of what it has already done.

Feedback loops and self-verification

Good harnesses do not just let the model act — they check the work. After each action, the harness can run tests, inspect results or prompt the model to review its own output before continuing.

These feedback loops are what allow agents to handle long or complex tasks reliably by repeatedly attempting work, checking results, catching errors and correcting course automatically.

Guardrails and human-in-the-loop controls

Guardrails are rules built into the harness that block unsafe or unapproved actions. Examples include requiring human approval before an agent deletes a file, sends a customer message or makes a purchase.

One common type of guardrail is a human-in-the-loop control, where a person reviews or approves certain actions before they go through. In enterprise environments, these approval checkpoints are often mandatory.

Observability and logging

Observability means being able to see what the agent did, why it made each decision and where things went wrong through logs, traces and dashboards. For developers, observability helps diagnose and debug agent behavior. For enterprise teams, it’s often a compliance requirement. Regulated industries need audit trails that show exactly what an agent did and on whose authority.

At scale, observability also feeds evaluation infrastructure — systems that continuously measure whether agents are performing correctly across thousands of runs, not just demos.

The same model, a better harness, better results

As models converge in raw capability, the harness increasingly determines performance. Memory, tool orchestration, feedback loops, and guardrails drive reliability. On public benchmarks, the same model can place significantly higher or lower depending entirely on how the harness is built. For many workflow-heavy tasks, a strong harness around a mid-tier model can outperform a weak harness around a stronger model.

The impact is measurable. When Databricks paired GPT-5.5 with the OfficeQA Pro Agent Harness — designed for complex, multi-part enterprise document tasks — it scored 52.63%, up from 36.10% with GPT-5.4, cutting errors nearly in half. The model improved, but the harness is what made that improvement translate into reliable production performance. AI agent evaluation frameworks help teams measure exactly this: whether harness design is turning model capability into consistent, trustworthy results.

Prompt engineering, context engineering and harness engineering

Harness engineering is the newest stage in a broader shift in how developers work with AI systems. As models have become more capable, the focus has gradually moved outward. It has shifted from writing better prompts, to controlling what information the model sees, to designing the entire system around the model.

DisciplineWhat it focuses onMain artifactTypical applications
Prompt engineeringWording the input to get a better responseA well-crafted promptEarly LLM applications
Context engineeringCurating what information the model sees and whenRetrieval pipelines, memory designRAG-era applications
Harness engineeringDesigning the full system around the model — tools, sandboxes, loops, guardrailsThe harness itselfAgentic systems and autonomous workflows

Prompt and context engineering both live inside harness engineering. The harness is the system around the model; prompts and context are pieces of that system.

Common failure modes in production AI agent harnesses

Harnesses are powerful but easy to get wrong. Most operational agent failures come from the harness, not the model itself. These are some of the most common problems teams encounter in real-world systems:

  • Context rot. As conversation history grows, the model’s reasoning quality degrades. Without a strategy to trim or summarize older context, performance often breaks down on long-running tasks.
  • Tool overload. Giving the model too many tools at once increases confusion and slows decision-making before any work begins.
  • Brittle tool wiring. Small changes to how tools are described or called may cause the model to use them incorrectly, leading to silent failures that are difficult to diagnose.
  • Latency. Multi-step agents with many tool calls may take 10 seconds or longer to respond, creating a frustrating user experience.
  • Irrelevant retrieval. When the harness pulls in the wrong information from memory or search systems, the model may confidently generate incorrect answers.
  • Weak verification. Without testing loops or self-checks, agents may stop too early or declare success on incomplete work.
  • Missing guardrails. Agents take irreversible actions — sending messages, deleting data or making purchases — without sufficient oversight or human approval.

How AI harnesses fit into enterprise AI strategy

Most companies are not building a single AI agent. They are building dozens across different teams, workflows and underlying models. Without a consistent approach to harness design, that quickly creates agent sprawl: disconnected agents that no single group can reliably govern, evaluate or improve.

Agent sprawl creates an enterprise control problem

As agents move closer to production workflows, teams need centralized control over what agents can access, which actions they can take and how their outputs are evaluated. They also need auditability, observability and the flexibility to swap underlying models without rebuilding the systems around them.

Shared harness infrastructure makes agents easier to govern

Platforms like Databricks Agent Bricks are designed around this control-plane approach to agent harnesses. Rather than every team building and maintaining its own harness infrastructure, organizations get a shared layer for building, deploying, governing and evaluating agents grounded in enterprise data.

Governance is enforced through Unity Catalog, while observability and evaluation are managed through MLflow. Agent Bricks also works across models from OpenAI, Anthropic, Google and open-source ecosystems, helping teams reduce dependence on any single provider while evaluating performance against benchmarks built from their own data.

What happens to harnesses as models improve

As AI models become better at planning, multi-step reasoning and error correction, some of the work currently handled by harnesses will likely move closer to the model itself. Models will become better at staying on task, verifying their own work and recovering from mistakes without as much external coordination.

Harness engineering isn’t likely to disappear. Execution environments, tool orchestration, guardrails, observability and feedback loops still determine whether a model can operate reliably in real systems. Better tools, cleaner workspaces and stronger safeguards make every model more useful, regardless of how capable the model becomes on its own.

Two emerging ideas help illustrate where the field may be heading:

  • Disposable harnesses. Lightweight, task-specific harnesses are created for a single workflow and discarded afterward instead of operating as long-running infrastructure. As execution environments become faster and cheaper to provision, this approach is becoming more practical.
  • Natural-language agent harnesses (NLAHs). Instead of configuring harnesses through code, engineers describe how an agent should behave using plain-language instructions. A shared runtime interprets and executes those instructions, lowering the barrier for who can build, modify and reuse harnesses across projects.

The model contains the intelligence. The harness turns that intelligence into reliable work. As long as that remains true, harness design will matter.

Frequently asked questions

What is the difference between an AI agent and an AI harness?
An AI agent is the complete working system made up of both the model and the harness. The harness is the execution layer that provides tools, memory, guardrails and workflow control. You interact with the agent. The harness makes it work.

What is the difference between harness engineering and prompt engineering?
Prompt engineering focuses on crafting better inputs for the model. Harness engineering focuses on designing the full system around it, including tools, execution environments, safety controls and feedback loops. Prompt engineering is one part of a larger harness architecture.

What are the core components of an AI agent harness?
Most production harnesses include system prompts, tools, sandboxes, memory management, feedback loops, guardrails and observability. Each solves a different limitation of the raw model.

Why does the harness matter more than the model?
As AI models become more capable, harness quality increasingly shapes real-world performance. Strong harnesses improve reliability through better memory management, tool orchestration, validation and guardrails. In many live systems, upgrading the model alone produces smaller gains if the infrastructure remains unstable.

How do enterprises govern AI agent harnesses at scale?
Effective enterprise governance requires centralized control over data access, evaluation systems, auditability, cost controls and support for multiple underlying models. Platforms like Databricks Agent Bricks address these challenges through shared governance, observability and evaluation infrastructure powered by Unity Catalog and MLflow.

From AI models to AI systems

The harness is what turns a language model into a working agent by providing the tools, memory, guardrails and feedback loops that make reliable work possible. Strong harnesses make average models useful. Weak harnesses waste the best models. As AI agents move into production, harness design is becoming where much of the engineering work — and much of the value — now lives.

See how Databricks Agent Bricks helps you build, govern, and continuously improve production-grade AI agents on your own data.