Insights/Engineering & AI

Beyond the Agent Harness

·Semin Ibisevic

As AI models are advancing rapidly, raw capability is only part of the equation in enterprise investment operations. An agent cannot investigate a NAV break without the right data, resolve an exception without a defined workflow, or operate at scale without auditability, monitoring, and cost discipline.

The system around the model that provides this structure is the agent harness. It connects the model to data, tools, memory, checks, permissions, and human approvals, turning raw intelligence into controlled execution.

A well-designed harness can make one agent reliable. But an operation will rarely run only one. As more agents are introduced, often built by different teams, each may come with its own permissions, credentials, rules, and audit trail. Making every harness individually reliable does not automatically make the overall operation consistent or controlled.

That is why, at Next Gate Tech, we do not stop at the harness. We add a governance control layer above it: a shared environment in which policies, identities, access rights, approval rules, ownership, and evidence are defined once and inherited by every agent. Each harness applies those controls during execution, while the governance layer keeps them consistent across the entire agent estate.

This article explains what an agent harness is, what makes one reliable, where the harness ends, and how a governance control layer turns multiple agents and harnesses into one coherent operation. Throughout, we show how these principles are implemented in SPARK.


What is an agent harness? A recap

Model, harness, agent: the three words get used interchangeably, but they name different things.

The model is the intelligence. It reads text and produces the next piece of text: no memory between calls, no access to your systems, no way to check its own work. Pure reasoning, no hands.

The harness is everything built around it. The original meaning of the word is the right picture: the straps that turn a horse's raw strength into a plough moving in a chosen direction. LangChain defines it as "every piece of code, configuration, and execution logic that isn't the model itself." The harness cannot think, but it decides what the model sees, what it can touch, and when it must stop.

The agent is the combination: intelligence plus environment, the unit that actually gets work done.

Code
agent = model + harness

What does the harness actually consist of? Across the industry, the same components keep appearing:

  • Instructions. The system prompt: who the agent is, what it is responsible for, which rules are non-negotiable.
  • Tools. The model only produces text; the harness gives it hands via MCP and APIs, and decides which tools exist. Often fewer is better: a cluttered toolbox confuses an agent the way a cluttered desk confuses a person.
  • Knowledge and context. The harness curates what the model sees, so it reasons over your operational reality rather than its general recollection of the internet.
  • Memory. Models forget everything between sessions; the harness writes the handover notes. And as LangChain warned, with a closed harness you do not own your memory.
  • The loop. Plan, act, inspect, adjust, repeat. The harness runs the loop and decides when work is genuinely finished, not merely declared finished.
  • Checks. Rerun the calculation, run the tests, let an independent step judge the work. Checks are also what make agents measurable, as covered in Building Agents We Can Measure.
  • Guardrails and permissions. Hard lines enforced in code: which data is out of scope, which actions are forbidden, which need human sign-off first.

These seven components are also a fair summary of what we had to build into SPARK before agents could be trusted with investment operations.

AGENTHARNESSMODELINSTRUCTIONSKNOWLEDGE & CONTEXTMEMORYTOOLSTHE LOOPCHECKSGUARDRAILS & PERMISSIONSreasons, decidessystem prompt, identity, rulescurated view of your datahandover notesacross sessionsquery and actvia MCP and APIsplan, act, inspect, adjustrerun, test, judge the workhard lines enforced in codewritesreadsactsresults

Why the harness matters

The strongest results are not coming from better models alone.

In February 2026, LangChain lifted its coding agent from 52.8% to 66.5% on Terminal-Bench 2.0 without touching the model. OpenAI had agents write essentially all of a million-line production system while humans designed the environment. And Anthropic showed the inverse: without harness structure, even a frontier model drifts, overreaches, and declares untested work finished. Addy Osmani compressed the lesson into one line:

A decent model with a great harness beats a great model with a bad harness.

The same qualities recur across these write-ups: a good harness verifies instead of trusts, stays simple, enforces boundaries in code rather than prompts, and directs human attention to where it matters most. The model provides capability; the harness provides control, for one agent at a time.

We drew one further conclusion at Next Gate Tech: a component this decisive should not be rebuilt from scratch for every agent or team. In SPARK, the harness is part of the platform, engineered and hardened once, so every agent starts from the same controlled foundation.


Beyond the harness

A good harness can make one agent reliable. But an operation rarely runs only one. One agent reconciles positions, another investigates NAV movements, and a third drafts client correspondence. They may be built by different teams, yet each arrives with its own permissions, credentials, escalation rules, and control logic.

This is where harness engineering alone stops being enough. As the number of agents grows, controls that work well at the individual-agent level can become fragmented across the operation. We called this agent sprawl in Build With Agents. Run Without Them: multiple capable agents, each operating within its own environment, but without a consistent view of what they may access, what they may do, or who is accountable for them. It is the most common pattern we encounter in investment operations today: pilots multiply quickly, consistent control does not.

The answer is not to replace the harness, but to extend its principles across every harness. Shared policies define which data and tools agents may use, how identities and credentials are issued, which actions require approval, who owns each agent, and what evidence must be retained. Each harness then applies those policies at runtime, agent by agent and action by action.

The two layers therefore overlap, but operate at different scopes. The harness controls execution within a single agent. The layer above it creates consistency across the entire agent estate. One makes an agent dependable; the other ensures that many dependable agents still form a controlled operation.


From harness to control layer

That principle is what we turned into product. The Agent Builder in SPARK is one governed harness shared by every agent a client runs, purpose-built for investment operations. Governance lives in a workspace that defines, once and centrally, the rules, accesses, and scope available to everything running inside it. When a new agent is created, its harness is assembled from the workspace: whoever builds it selects which pieces to enable for that agent's job, and can never grant more than the workspace allows. In SPARK, every harness component becomes a managed, auditable feature:

  • Roles instead of prompts. An Oversight Investigator, a Reconciliation Analyst, an Onboarding Assistant, configured from reusable templates.
  • Trusted data and an entity model. Agents reason over certified, golden-source data and an entity model of your funds, share classes, positions, and counterparties, enabled per role.
  • Scoped tools. Connected through MCP and APIs, selected from the workspace's approved set: what the job requires, and nothing more.
  • Identity and secrets from the vault. Credentials for custodians, market data providers, and internal systems live in a central vault. A harness consumes them at runtime, scoped to the agent's role and rotated centrally. No key ever lives in a prompt or a script, every access is attributed, and revoking an agent revokes its access everywhere.
  • Policy enforced centrally. Defined once, enforced by code, inherited by every agent immediately. Sensitive actions wait for human sign-off: agents own progress, not decisions.
  • Versioning, evaluation, and end-to-end audit. Agents are versioned, test-run, and measured before and after every change; every run is traceable and replayable for an auditor.
  • Model agnosticism and routing. Instructions, permissions, and memory live in the control layer, so models can change without rebuilding governance, and each task is routed to the right model on quality, latency, risk, and cost.
  • Deterministic execution. Agents can design workflows that later run without a model: more reproducible, auditable, and cost-efficient.
OVERSIGHTINVESTIGATORRECONCILIATIONANALYSTONBOARDINGASSISTANT+ NEW AGENTsame rules from day oneMODELMODELMODELMODELHARNESSHARNESSHARNESSHARNESSdefined once, inherited by allCONTROL LAYERthe workspace: rules, access, scope for the fleetPOLICIES & ROLESIDENTITY & VAULTTRUSTED DATASCOPED TOOLSVERSIONING & AUDITMODEL ROUTINGDETERMINISTIC RUNSHUMAN OVERSIGHTtemplates, enforced in codecentral secrets, scoped per agentgolden source, entity modelMCP and APIs, least privilegeversioned, test-run, measuredmodel-agnostic, cost and risk awareworkflows run without a modelsign-off where it matterseach harness enables only the pieces its job requires, never more than the workspace allowsEVERY RUN LOGGED, TRACEABLE, REPLAYABLE

SPARK is deliberately not a chatbot. Investment operations need dedicated user journeys, not a single text box, and that is how the platform is built: dashboards to monitor processes, task views to manage exceptions, workflow and data views to investigate issues, with AI accelerating the work inside each of them. AI should adapt to how operations are performed, not force operations into a generic chat window.


What it looks like in SPARK: an unusual NAV movement

An agent notices an unusual NAV movement on a fund overnight and sets out to investigate.

Without governance, the same capable model can do real damage. It authenticates with a shared API key from an old script, pulls inconsistent market data, ignores your pricing hierarchy because it does not know you have one, and sends a client email that turns out to be wrong. Every step was intelligent; none of it was controlled or attributable.

Inside SPARK, the agent authenticates as itself with vault-issued credentials, uses golden-source data and your approved valuation policies, opens a workflow, assigns an owner, and waits for approval before anything leaves the building. Every decision is logged and replayable.

Same movement, same model, largely the same harness. What changed is where the authority lives. One version is a risk you would switch off; the other is something an operations team can trust and an auditor can verify.


Where this goes

Two shifts are already changing where the lasting value sits.

First, models are absorbing more of what used to belong to the harness. Tool use, memory, planning, and context management increasingly come built into the model or its surrounding platform rather than requiring custom engineering.

Second, harness design is becoming more standardized. As common patterns, frameworks, and playbooks emerge, organizations will build agents in increasingly similar ways. Harnesses will still matter, but they will become easier to replace, reproduce, or move between models.

As that happens, differentiation moves upward. The enduring asset is not a particular model or harness, but the operating logic unique to your organization: which agents may access which data, what actions they may take, which decisions require approval, how identities and credentials are managed, who is accountable, and what evidence must be retained.

No model provider or agent framework can define that layer for you, because it encodes how your operation actually works. It therefore needs to remain under your ownership and control, rather than being embedded inside a particular model, harness, or vendor platform.

That is the vision we are building toward at Next Gate Tech with SPARK's Agent Builder: models can change and harnesses can evolve, while the control layer, and the operating logic it encodes, stays consistent and stays yours, living in your workspace rather than inside any single model or harness. Defined once and inherited by every agent, it turns a collection of capable agents into an operation that can be controlled, evidenced, and audited.

As agents become easier to build, the scarce capability will not be creating them. It will be controlling them as one coherent operation.


Further reading


Next Gate Tech builds SPARK, the operating ecosystem for agentic AI automation of investment operations. Clean data, deterministic workflows, domain knowledge, and full traceability. Purpose-built for one of the most heavily regulated industries in the world. Trusted by BNP Paribas Securities Services, Amundi, Capital Group, Eurizon and others across €500bn+ in assets.

nextgatetech.com