ARTICLE · AI AGENTS ON MICROSOFT

An agent project is no longer a platform project.

Microsoft now ships the runtime that turns a language model into an agent that finishes work. What the Agent Framework Harness is, what it switches on, how mature it is, and what it changes for teams that want agents in production.

Every AI agent you have seen is two things: a language model, and the software around it that makes the model useful. The model writes text. The software around it calls your systems, keeps track of a forty-step task, asks before it does anything risky, and knows when the job is done. Microsoft calls that software the harness, and since July 2026 it ships one, ready-made, inside the Microsoft Agent Framework.

That changes the shape of an agent project. Until this year, a team that wanted an agent in production first had to build that scaffolding, and most of the budget went there. Now the scaffolding is one call, maintained by Microsoft, and the effort can go where the value is: your workflow, your systems and your rules.

A model on its own only generates text

“A model on its own can only generate text,” as Wes Steyn, Principal Software Engineer at Microsoft, put it when the Harness was released. A model predicts the next words from the words it was given. It does not call anything, remember anything or know when it is done. Between the model and an agent that finishes work sits a layer that has to:

  • call tools and read their results,
  • keep state across many steps,
  • manage a context that grows with every step,
  • ask before risky actions,
  • keep going until the job is done, and stop when it cannot be.

Microsoft Learn calls this layer an agent harness: “the runtime scaffolding that turns a language model into an agent.” It drives model and tool calls, manages conversation state and context, applies approval policies, and keeps the agent progressing through a multistep task.

How much of a serious agent is harness? A 2026 line-count analysis by MBZUAI’s VILA-Lab classified about 98% of one widely used coding agent’s roughly 512,000 lines as harness infrastructure, and under 2% as AI decision logic. It is one estimate of one codebase, not a universal audit. But the proportion matches what anyone who has built an agent learns quickly: almost all the engineering is around the model, not in it. Until this year, every team built that part itself.

The model is the engine. The harness is the rest of the car: steering, brakes, dashboard and seatbelts.

Three names, one path

The naming confuses buyers and vendors alike, so it is worth a minute. There is no “Azure harness”. There are three names, and each does a different job.

What you build with
Microsoft Agent Framework
Microsoft’s single, strategic SDK for agents. Open source under the MIT licence, in .NET, Python and Go. Version 1.0 shipped in April 2026 and replaced Semantic Kernel and AutoGen, which are now in maintenance mode.
The ready-made runtime inside it
The Harness
One call gives an agent planning, memory, tool calling, approvals and telemetry. Its siblings in the framework are Workflows for multi-agent orchestration, and connectors to the GitHub Copilot SDK and the Claude Agent SDK.
Where it runs
Microsoft Foundry
Formerly Azure AI Foundry: Microsoft’s platform for models and agents. Foundry Hosted Agents is the managed runtime that hosts a Harness agent, billed on consumption, with identity, tracing and governance attached. It also runs agents built with other frameworks, such as LangGraph.

In one sentence: the Framework is what you build with, the Harness is the ready-made runtime inside it, and Foundry is where it runs.

What one call switches on

You bring three things: a chat client (which model, and where it runs), instructions (who the agent is) and your own tools (what it may touch). The Harness adds the rest. In .NET it is one extension method:

C# · .NETNuGet: Microsoft.Agents.AI.Harness
using Microsoft.Agents.AI;
using Microsoft.Extensions.AI;

// chatClient: any IChatClient (Foundry, Azure OpenAI, ...)
AIAgent agent = chatClient.AsHarnessAgent();
AgentResponse response =
    await agent.RunAsync("Plan a weekend trip to Seattle.");
Console.WriteLine(response.Text);

In Python, one function:

PythonPyPI: agent-framework
from agent_framework import create_harness_agent
from agent_framework.openai import OpenAIChatClient

agent = create_harness_agent(
    client=OpenAIChatClient(model="gpt-4o"),
)
session = agent.create_session()
response = await agent.run(
    "Plan a weekend trip to Seattle.", session=session)
print(response.text)

The result is still an ordinary framework agent, with the same sessions, providers and deployment path. The Harness is not a separate runtime but a curated configuration of building blocks the framework already has, so it inherits the framework’s stability and long-term support. What it switches on falls into three groups, and every default can be switched off on its own:

Making progress
A tool-calling loop with a per-request iteration limit. A task list the agent writes and updates itself. Plan and execute modes: it lays out the steps before it touches anything.
Not losing work
History saved after every model call. Compaction that keeps long runs inside the model’s context window. Durable file memory for notes and artifacts across turns.
Staying safe and visible
Tool approval, with standing rules and auto-approval for safe calls. OpenTelemetry traces for every agent, tool and model call. Web search and Agent Skills (opt-in in Python) complete the set.

Four further capabilities are opt-in and marked experimental or pre-release: background agents that run sub-tasks in parallel, file access tools, looping until an evaluator says the job is done, and shell execution. Microsoft warns when you enable them, and their APIs may change. They are where the “autonomous agent” headlines come from, and also where the risk is, so we keep them out of a first phase and scope them in later by explicit agreement.

How the loop works

One request becomes many steps. The Harness runs the loop; your agent and your systems make it yours.

Request
Arrives from Teams, Microsoft 365 Copilot or your own app.
Your agent
The instructions, tools, approval rules and domain skills that make it specific to your business.
Plan
Starts in plan mode and writes a task list before it touches anything.
Call tools
Works through the list, reaching your systems through tools and MCP servers.
Ask first
A tool that needs approval pauses the run until a person, or a standing rule, says yes.
Remember
Saves the history after every model call and compacts it as it grows.
Microsoft Foundry
Hosts the agent with its own identity, billing by use and one tracing pipeline.
The harness loop. The loop is Microsoft’s; the agent and the systems it touches are yours.

Two properties matter in operation. Because history is saved after every call, a forty-step job does not restart from zero when a container is recycled: it loses at most one model call. And because the task list and the traces are visible while the run is going, someone can see where the agent is and what it has done. That is the difference between a chatbot that answers and an agent that finishes a job, and can be interrupted, resumed and audited while it works.

The controls are in the runtime, not in a policy document

Risk-averse organisations ask the same four questions about any agent. The Harness answers each one with a property of the runtime.

Will it act without asking?
Approval gates
Tools that need approval pause the agent. Standing approvals and auto-approval for read-only calls keep it from nagging; write approval stays on unless the storage boundary is trusted.
Will it run up a bill?
Bounded loops
A per-request iteration limit caps tool calling, and optional looping only re-runs under an evaluator you define. Compaction keeps the cost per step flat.
Can it reach data it should not?
Scoped file access
File tools are scoped to a session or an explicit tenant key. With neither, they fail closed instead of falling back to a shared folder.
Can we see what it did?
Full telemetry
OpenTelemetry is on by default: every run, tool call and model call becomes a trace in your own monitoring or in Foundry.
Why stopping controls matter

In a benchmark by Aqib Sherwani, Principal Architect at Microsoft, reported by InfoQ in August 2026, the same model ran the same task on two runtimes. It shows what happens when the controls are off; it is not a ranking of vendors.

40round-trips, then Agent Framework halted its loop
300round-trips on the other runtime, its host-side stopping controls switched off

From laptop to production on Foundry

The same agent code runs on a laptop, in a container and on Microsoft Foundry; Microsoft puts the hosting change at two extra lines of code. On Foundry Hosted Agents, the agent gets:

Isolation
Each session runs in its own sandbox, with dedicated compute, memory and filesystem.
Billing by use
You pay for what runs, and nothing for idle infrastructure between runs.
One tracing pipeline
Model calls, tool calls and hand-offs flow into the Foundry control plane, and evaluations link back to the traces that produced them.
Identity and governance
The agent can get a Microsoft Entra Agent ID and be governed through Agent 365 in the Microsoft admin center, like any other identity.
Channels
Publishing to Microsoft Teams and Microsoft 365 Copilot, where your people already work.
Your data boundary
File memory and file access use a store you supply, so they can sit inside your own Azure subscription.

Microsoft names Twilio, KPMG and Iberdrola among its Hosted Agents customers.

NOTE
Several features around Hosted Agents were in public preview at Build 2026, among them Routines (scheduled runs), A2A endpoints, Autopilot agents and Voice Live. We check what is generally available on the day, before we plan around it.

How mature it is, honestly

The status as Microsoft Learn (updated in October 2026) and the July 2026 release post describe it:

StatusWhatWhat it means
ReleasedThe Harness for .NET and Python (July 2026). Agent Framework 1.0 with long-term support (April 2026). Foundry Hosted Agents, generally available.Safe to build on.
ExperimentalBackground agents, file access, looping.They work, but Microsoft warns when you enable them, and the APIs may change.
Pre-releaseShell execution, from a separate tools package.Alpha stage: keep it out of production.
PartialGo: a helper exists, but adds no compaction, looping, shell or background agents by default.Works, with more hand-wiring.
Not availableTypeScript and JavaScript.Use a small .NET or Python service, or call a hosted agent over an API.

Where it fits

  • The Harness for long-running, multistep work: research, data processing, task automation. Microsoft’s own default for these.
  • A plain framework agent for simple or single-turn assistants. A building block, and a smaller project.
  • The GitHub Copilot SDK when the job is coding, which it already solves. Agent Framework can delegate to it through a connector, so it is not always either-or.
  • LangGraph or another framework if you have already chosen one. Foundry Hosted Agents runs those too.

What it changes for your agent project

The Harness moves the line between what has to be built for you and what can be maintained for everyone. Read the stack top to bottom as a request flowing down and a result flowing back up:

Your people and channelsWhere users meet the agent
Microsoft TeamsMicrosoft 365 CopilotYour web and mobile appsOther agents
YOU
Your agentWhat makes it yours
Workflow designInstructionsTools into your systemsApproval rulesDomain skillsUser interface
GAIA BUILDS
Microsoft Agent FrameworkOpen source · .NET, Python, Go
Harness: planning, memory, approvals, tracingMulti-agent workflowsMiddleware
MICROSOFT MAINTAINS
Microsoft FoundryAzure · GAIA configures and runs it
Hosted Agents runtimeModel catalogEntra Agent IDTracing and evaluationBilled by use
MICROSOFT OPERATES
Your systems and dataWhere the work happens
CRMERP and financeDocumentsDatabasesInternal APIs
YOU
We build the parts that are specific to you. Microsoft maintains the parts that are the same for everyone.

For you, four things follow:

Faster to first value
The generic layer is one call, so engineering time goes to your tools, data and instructions.
Safer by default
Approvals, bounded steps, scoped data access and tracing are on from the first demo. A security review starts from a documented baseline, not a blank page.
Predictable cost
Iteration limits and compaction cap the spend per task, and billing by use means nothing runs up a bill while the agent is idle.
Aligned with Microsoft
Microsoft’s single, long-term-supported agent SDK, open source, with a migration path for Semantic Kernel and AutoGen users.

How we start: one workflow, four weeks

We start small enough to approve and real enough to learn from: one workflow, one measurable outcome, released features only.

Week 1
Choose the workflow
One multistep job your team does today, a success metric, and the two or three systems it touches.
Week 2
Build the agent
A Harness agent with tools for those systems, and approval on for every write.
Week 3
Deploy and observe
Live on Foundry with tracing on and a handful of real users. We tune instructions and approval rules from the traces.
Week 4
Measure and decide
The result against the metric, and your decision on production, its scope and its price.
What we need from you
  • One workflow you are willing to share
  • Access to the systems it touches
  • A named owner for four weeks
What you get back
  • A working agent on Microsoft’s platform
  • A trace log of everything it did
  • A number to decide with

Good candidates share a few traits: a repetitive, multistep job that touches two or three systems; people who already work in Microsoft 365, Teams and Azure; someone who will ask what the agent did, and why; and a process owner who can describe the job and measure the outcome.

Sources
  1. Microsoft Learn, Agent Harness, Agent Framework concepts, updated 23 October 2026.
  2. W. Steyn, The Microsoft Agent Framework Harness is now released, Microsoft Agent Framework blog, 22 July 2026.
  3. W. Steyn, Build your own claw and agent harness with Microsoft Agent Framework, Microsoft Agent Framework blog, 22 June 2026.
  4. InfoQ, Microsoft Agent Framework Harness and Hosted Agents Reach General Availability, August 2026. Also the source for the MBZUAI VILA-Lab line count (“Dive into Claude Code”, April 2026) and the stopping benchmark.
  5. Microsoft Foundry blog, Build and run agents at scale with Microsoft Foundry at Build 2026, June 2026.
  6. microsoft/agent-framework on GitHub (MIT licence), and its .NET Harness samples.

Microsoft, Azure, Microsoft Foundry, Microsoft 365, Teams and Copilot are trademarks of Microsoft Corporation. GAIA is an independent consultancy.

Have a workflow in mind?
Book a 30-minute conversation about one workflow and what an agent would change. No slides, just a straight conversation.
Book a Conversation →