Skip to article
Skip to main content

Hands-on demos of Squirro Neo, GraphRAG and our agents. No sign-up, no sales call. Try Them Now

Blog

What Is an AI Harness? What Enterprise Agents Need Around the Model

A high-speed train crosses a railway junction in daylight, the steel switch points set to send it onto a new track

Key Takeaways

  • An AI harness, also called an agent harness or agent scaffolding, is the software around a model that turns it into an agent. The model does the reasoning, and the harness supplies context, runs tools, keeps state, enforces permissions, and checks results.
  • Much of what's written about harnesses comes from coding agents. Enterprise deployments serve many people over shared data and systems, so identity, access, approval, and traceability need to be made explicit.
  • Four questions are a good test of an enterprise harness: whose permissions apply, what the agent can see and do, where people step in, and how its actions are recorded.
  • Approval should match an action's sensitivity, impact, and reversibility. Too few gates create risk, and too many create reviewers who stop reading.
  • Squirro is an AI context platform for the enterprise. It supplies governed context to search, applications, and agents, and it runs its own agents, with scoped tools and human approval.

In March 2026, LangChain's Vivek Trivedy defined the agent harness in one line: "If you're not the model, you're the harness." Is it an oversimplification? Maybe. Still, it's a useful place to start.

An AI harness, also called an agent harness or agent scaffolding, is the software around a model that turns it into an agent. On its own, a large language model reads text and writes text. It keeps nothing between calls and can't act on anything. The harness is the runtime, meaning the software that runs the agent while it works: it supplies context, runs tools, keeps state, enforces permissions, and checks results, so the model can work through a task over many steps. The model proposes each step. The harness decides whether that step is allowed, carries it out, and records what happened.

Much of the writing on harnesses comes from coding agents. A local coding workflow can lean heavily on one developer's environment, meaning the credentials configured on that machine and a developer reviewing each change. An enterprise deployment serves many people over shared data, tools, and systems, so identity, access, approval, and traceability have to be made explicit for every user and every source. A good deal of that work happens in the harness.

What Is an AI Harness?

An AI harness is the software that turns a language model into a working agent. The model does the reasoning, and the harness handles what the model can't do by itself. It runs the loop that calls the model, assembles the instructions and documents the model sees, executes the tools the model asks for, keeps track of progress between steps and across sessions, and applies the rules that limit what the agent may do. Usage of the term still varies, and LangChain's broadest version counts everything that isn't the model.

The harness has a measurable effect on results. LangChain reports that it moved its coding agent from the top 30 to the top 5 on the Terminal Bench 2.0 benchmark by changing only the harness (LangChain, "The Anatomy of an Agent Harness," March 10, 2026). The result is vendor-reported and comes from a coding benchmark.

The word has had a busy year. Until recently, "harness" in software usually meant a test harness, the scaffolding that runs code under controlled conditions. Outside software it mostly applied to horses. Today, harness engineering has become the name for designing and improving the software around the model. Much of the practical work on agents happens there, because most teams don't train the model they use and look for their gains elsewhere.

What Does an Agent Harness Do?

An agent harness runs a loop. It assembles context for the model and sends the request, then reads the response. When the model asks for a tool, the harness checks whether the call is allowed, runs it, and feeds the result back. The loop repeats until the task is done or a limit is reached, with each step recorded along the way.

The parts that make the loop work:

  • Context assembly. The harness decides what the model sees: instructions, retrieved documents, earlier results. Choosing what goes into the model's limited context window, and in what order, is called context engineering. The model brings what it learned in training, so task-specific context determines which current evidence it can use.
  • Tool execution. Search, databases, email, and business systems, increasingly connected through the Model Context Protocol (MCP), the open standard many harnesses use to reach external tools.
  • State and memory. What happened two steps ago, the current plan, what the user asked at the start. Some teams also keep decision summaries, evidence, approvals, and outcomes from earlier runs, an approach we describe in what a context graph adds to AI agent memory.
  • Limits and permissions. Which tools the agent may call, on whose behalf, and how many steps it may take before it stops.
  • Verification. Checks on outputs before they're accepted, such as a schema, a test run, or a citation against a source.
  • Observability. A trace of each step, so someone can see afterward what happened and the evidence recorded for it.

Most guides list some version of these components. In a single developer's environment they're mainly engineering concerns. On shared company data, the last three also become governance questions.

What Is the Difference Between an Agent Harness and an Agent Framework?

As a working distinction, an agent framework is a set of libraries for building agents, while an agent harness is the runtime that operates an agent while it works. Today, frameworks increasingly ship a harness: LangChain describes create_agent as "a minimal, highly configurable harness" (LangChain docs), and Microsoft Agent Framework includes a ready-made harness that applies approval policies, manages context, and drives multi-step tasks.

It helps to separate four layers that often get blurred together:

Layer What it's responsible for Typical examples Who usually runs it
Model Reasoning, generating text, proposing tool calls Any foundation model The model provider
Agent framework Libraries and abstractions for building agents LangChain, LangGraph, Microsoft Agent Framework Developers
Agent harness Operating the agent: context, tools, state, limits, approvals, logging The harness in Microsoft Agent Framework, coding-agent SDKs, runtimes built into agent platforms Developers or a platform team
AI context platform Governed, permission-aware access to company knowledge for search, applications, and agents Enterprise platforms such as Squirro IT, with business teams and developers as users

The boxes overlap, and some products cover several of them. For a buyer, the useful question is which responsibilities a product takes on, and which ones your team would be left to build and run.

What Changes When an Agent Works on Company Data?

The same four questions apply in both settings. What changes is how much has to be made explicit. A local coding workflow can rely on one developer's environment and attention. An agent on shared company data serves many people with different access rights, and it can act in systems that other people depend on.

Illustrative deployment differences

Question Local coding workflow Agent on shared company data
Whose permissions apply? Those set by the local environment and the credentials configured there The acting user's, enforced before content reaches the model
What can it see and do? The repository, a terminal, and configured tools Approved sources and tools, scoped per agent
Where do people step in? Developer review of changes Approval controls on sensitive tool calls, including runs nobody is watching
How is it recorded? Code changes, execution logs, and developer review Run history with sources, tool calls, approvals, and outcomes, retained to the organization's requirements

To see what that looks like, follow one request. A relationship manager at a European private bank asks an agent to prepare for a client review. She wants a summary of the client's holdings and recent correspondence, a note on anything that changed in the bank's product guidance since the last meeting, and a draft follow-up email. The example is illustrative.

Whose Permissions Apply?

The acting user's. Retrieval should apply that person's project permissions and, where the connector supports it, the source system's access controls before any content is supplied to the model.

Our relationship manager can see her own clients' files. She can't see her colleague's clients, the HR system, or the draft board minutes, and the agent working for her shouldn't either. Access rights change all the time, as people move desks, clients change advisers, and documents get reclassified, and a revoked right should stop working as soon as possible. How quickly that happens varies by connector.

In Squirro, retrieval applies the acting user's project permissions on each query, along with source-system access controls where the connector carries them (Squirro agentic AI). Enforcing access before retrieved content reaches the model reduces the risk of unauthorized disclosure through retrieval. These controls operate outside the prompt, and they're one part of a broader security architecture.

The central design question is where authorization is enforced and how the acting identity is established. A shared service identity with broad rights becomes dangerous when the application fails to enforce the requesting user's access before returning information or taking action. Google Cloud's agent harness explainer describes the same principle for its own stack, which is a fair sign of where expectations are heading. We cover the wider threat model in AI agent security: why the threat isn't at the perimeter.

What Can the Agent See and Do?

What its job requires. A well-designed harness gives each agent a defined set of sources and tools. It treats reading and writing separately, and it doesn't assume that reading is harmless: pulling a sensitive file into a summary that then leaves the bank is a read with consequences.

For the client-review agent, that means a short list: the CRM, the client's correspondence, the product guidance library, and a tool for drafting email. It has no reason to touch the trading system. In Squirro, tools are configured per agent, and connections to external systems can run through MCP servers alongside native Squirro tools, with the administrator choosing which of a server's tools the agent may call.

Then there's grounding. Agents can be instructed to ground answers in approved sources, cite supporting material, and say when the evidence is insufficient, and those behaviors should be evaluated for the intended use case. A citation shows where a claim came from. Whether the source supports the claim is a separate check.

Where an organization uses taxonomies, ontologies, or knowledge graphs, Squirro Graphite helps manage that business context, so retrieval can follow relationships between clients, products, and the concepts that connect them. A knowledge graph isn't a prerequisite for document retrieval. For the policy side of these limits, see our guide to guardrails for enterprise AI.

Where Do People Step In?

At the actions that carry real consequences. The harness should let you require approval on specific tool calls, pause the run when one is reached, and show the approver what is about to happen and on what evidence. Approval should be proportionate to an action's sensitivity, impact, and reversibility. Reviewers asked to approve everything tend, like most readers of terms and conditions, to stop reading.

Human oversight is part of the harness.

Squirro supports tool-level approval controls. How they're configured depends on whether a tool comes from an external MCP server, a Studio plugin, or the platform itself. Our InstaQuote agent, which turns spare-part requests into SAP quotations, shows this in its live demo: a quotation engineer approves the gate before the quotation and service notification are created in SAP.

Back at the bank, the agent gathers the holdings, the correspondence, and two changes in product guidance, then produces a draft email alongside the sources it drew on. The relationship manager rewrites the second paragraph, which is the usual fate of a second paragraph, and sends the email herself.

Now suppose she wants the same preparation every Monday morning for all of her clients. Scheduled runs follow the configured approval policy. A call that requires human approval can pause until someone approves it, or be blocked under the unattended-run policy, and tools explicitly permitted to run without approval may execute unattended. The sensible setup here is a scheduled workflow that only drafts, followed by a separate review-and-send step when she's at her desk. We cover the questions to settle first in six questions to ask before you schedule an AI agent, and approval design in human-in-the-loop AI agent approval.

How Are the Agent's Actions Checked and Recorded?

During the run and afterward. An enterprise harness should record which sources the agent retrieved, which tools it called with what inputs, who approved what, and how the run ended. Whether that record is enough for an audit depends on the audit requirement, so the fields, access controls, export options, and retention settings are worth checking against yours.

Checking happens while the agent works, through citations, approval gates, and evaluation of the use case before it goes live. The record is what remains. Squirro provides recorded agent activity and run outcomes for review, including runs a person took over (Squirro agentic AI). A tool trace shows what the agent did and the evidence it used. It doesn't necessarily establish why the model chose that path, which is one reason approvals and decision summaries belong in the record too.

Regulation points the same way. For systems classified as high-risk under the EU AI Act, Articles 12 and 14 address automatic logging capabilities and effective human oversight. Whether a particular deployment is high-risk depends on its intended purpose and use. These provisions don't, by themselves, establish that an agent transcript satisfies an organization's audit obligations. For the wider argument, see why auditability is the foundation of agentic AI.

Is Squirro an AI Harness?

Squirro includes one. The better description is an AI context platform for the enterprise that also runs its own agents. Squirro connects company knowledge, applies project and supported source permissions, and supplies sourced context to search, applications, and agents. Organizations can use Squirro's agents with scoped tools and human-approval controls, or connect agents built on other platforms, including coding assistants, through supported APIs and MCP interfaces.

On company data, the loop is the easier part to build. The harder parts are the connectors, keeping permissions in step with source systems, retrieval good enough to cite, and records that meet an organization's audit requirements. In our experience, many enterprises end up rebuilding that plumbing for each new AI project. With Squirro, each new agent can reuse the connectors, indexed content, and permission controls already in place, while adding the instructions, tools, approval rules, and evaluations its workflow requires. In our reading of Gartner's Top Strategic Technology Trends for 2027: AI Context Platforms (October 16, 2026), Gartner recognizes AI context platforms as an emerging category for supplying governed context to agents, and it names Squirro as a Sample Vendor.

Deployment options include Squirro Cloud, the customer's VPC, and on-premises installations. Model endpoints and external integrations belong in the same evaluation, because they shape where data flows. Squirro supports both self-hosted and external models, and the Squirro platform page covers the deployment options in more detail.

What Should You Ask of an Enterprise Agent Harness?

Seven questions to take into any evaluation, ours included:

  1. When the agent retrieves content, whose permissions are applied, and are source-system access controls carried through for each connector?
  2. How quickly do permission changes in a source system take effect?
  3. Can each agent be limited to specific sources and tools, including tools reached through MCP?
  4. Can approval be required per tool, and what happens when an unattended run reaches one?
  5. How are retrieved content and tool responses prevented from overriding the agent's instructions?
  6. What does the run record contain, who can access it, and how long is it retained?
  7. Where do the runtime, the models, and the logs run?

Strictly speaking, none of these questions needs Squirro to answer it. If you'd like to see how we answer them, our agentic AI page walks through the architecture, and in our demo center you can try Squirro Neo and our agents on sample data.

Frequently Asked Questions.

What is an AI harness?
An AI harness, also called an agent harness or agent scaffolding, is the software around an AI model that turns it into an agent. The model does the reasoning, and the harness assembles context, runs tools, keeps state between steps, enforces permissions, and checks results. The model proposes each action, and the harness decides whether it's allowed, carries it out, and records what happened.
What is harness engineering?
Harness engineering is the practice of designing and improving the software around an AI model so that an agent works reliably, covering context, tools, limits, verification, and feedback loops. The term spread in early 2026. LangChain reports moving its coding agent from the top 30 to the top 5 on the Terminal Bench 2.0 benchmark by changing only the harness, a vendor-reported result.
What is the difference between an agent harness and an agent framework?
An agent framework is a set of libraries developers use to build agents, while an agent harness is the runtime that operates an agent while it works, including its tools, state, limits, approvals, and logging. The distinction is a working one, since many frameworks, including LangChain and Microsoft Agent Framework, now ship a ready-made harness alongside their building blocks.
How does an AI harness enforce permissions on company data?
An enterprise AI harness should apply the acting user's permissions before any retrieved content reaches the model, so the agent works only with what that person may open. In practice, that means project permissions on each query, plus source-system access controls where the connector carries them. Teams should also confirm how quickly permission changes in each source system take effect.
Do you need a knowledge graph to deploy an enterprise AI agent?
No, a knowledge graph isn't required to deploy an enterprise AI agent, because grounded retrieval over indexed company content is the baseline. Where an organization already uses taxonomies, ontologies, or knowledge graphs, a tool such as Squirro Graphite can manage that business context, so retrieval can follow relationships between entities and concepts and classification becomes more precise.
Is Squirro an AI harness?
Squirro includes an agent harness, and it's best described as an AI context platform for the enterprise. It connects company knowledge, applies project and supported source permissions, and supplies sourced context to search, applications, and agents. Squirro runs its own agents with scoped tools and human-approval controls, and agents built on other platforms can connect through its APIs and MCP interfaces.