Blog
Foundry Agent ServiceCopilot harnessmanaged agent harness

Microsoft Copilot Harness in Foundry Agent Service Explained

Microsoft's managed Copilot harness in Foundry Agent Service runs the agent loop and sandbox for you. What you get and the lock-in trade-offs to weigh.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS

For Engineering, IT and Executives

A young woman developer holds a circular loop track out toward the camera by two edges, with a small glass capsule of blank sheets circling it and a padlock with chain hanging beneath.

What is the Microsoft Copilot harness in Foundry Agent Service?

It is Microsoft's managed version of the machinery that runs its own Copilot products, offered to companies that want to build custom AI agents. Microsoft runs the agent loop (the cycle where the AI decides, acts and checks results) and the sandbox (the locked-down space where the agent does its work). You bring the knowledge, the procedures and the tools. At Ignite, CEO Satya Nadella said the same harness that powers Copilot and GitHub Copilot is available to customers.

TL;DR

  • The harness is everything around the AI model: the loop, the tools, the context it receives, which model handles each step, and the sandbox it runs in.
  • Microsoft's managed offering means Microsoft operates the loop and sandbox while you supply your own knowledge, procedures and tools.
  • In an airline demo, an inaccurate agent was fixed by the Foundry optimizer rewriting the system prompt and tool descriptions, not by swapping in a better model.
  • Microsoft IQ is pitched as giving agents only the context they need, which is a standard technique called context engineering under a product name.
  • The trade-off is lock-in: the parts you can take with you are your harness, your evals and your context, and a managed harness gives you less control over them.
  • Most of the performance claims from the event came from Microsoft's own evaluation platform, so test on your own work before believing them.

What exactly is a harness, and why does it matter?

An AI model does the thinking. The harness decides what the model thinks about and what happens with its answer.

Say you ask an agent to process a refund. The model reads the request and proposes a step. The harness gives it the refund policy, lets it call the billing system, checks what came back, and decides whether to loop again or stop. It also decides which model handles which step, and where the code runs safely.

Two people can use the same model and get very different results because their harnesses differ. That is why a lot of attention has shifted from "which model is best" to "how well is the system around it built."

Microsoft's keynote reflected that shift. According to a creator's breakdown of the event, only about 12 minutes of a roughly two and a half hour keynote were about models. The rest covered the harness, the context and governance around it. Nadella described Copilot as the new operating system for work, with apps as plugins to it.

What do you get with the managed harness?

Based on Microsoft's announcement as relayed in coverage of Ignite, the split looks like this:

Who handles itWhat
MicrosoftThe agent loop, the sandbox, a set of built-in tools, access to models Microsoft approves
YouYour knowledge (documents, data), your procedures (how work gets done), your tools (systems the agent can call)

The appeal is plain. You skip building and securing the plumbing, and you get the same infrastructure Microsoft uses for its own products. The catch is that it is a fairly locked-down version of an agent system: Microsoft's sandbox, Microsoft's tools, and models Microsoft has approved.

I have not seen the product documentation, so questions about pricing, supported models, regions and exact limits are not answered here. Check Microsoft's current Foundry pages before planning around any of them.

How does the Foundry optimizer improve an agent?

This was the most practical idea in the announcement. In a demo, an airline agent was not accurate enough. The fix was not a bigger model. The Foundry optimizer rewrote the agent's system prompt (the standing instructions it follows) and its tool descriptions (the text that tells it what each tool does and when to use it).

That matters because tool descriptions are easy to overlook. If an agent has a "look up booking" tool and a "look up flight" tool and the descriptions are vague, it picks the wrong one. Clearer descriptions fix that without touching the model.

This kind of automatic rewriting is not unique to Microsoft. Other agent projects have used similar loops to refine their own instructions and skills so they work better with fewer tokens. The video's creator noted that Nous Research, which pioneered many of these ideas through its Hermes agent, had done some kind of partnership with Microsoft.

What is Microsoft IQ?

Microsoft IQ was pitched as a way to give agents only the context they need: load what is relevant, skip the rest, and save tokens (the units AI usage is billed in). If you have heard the term context engineering, this is that idea packaged as a product. The same goes for much of what Microsoft discussed around memory, using databases efficiently with agents, and routing tasks across models. All of it is harness work.

Routing is the other cost lever. Microsoft said the model router in Foundry can be up to 65% cheaper than sending everything to a frontier model. That is Microsoft's claim, and your savings depend on how much of your work is simple enough for a cheaper model.

Should you build on it?

It depends on what you are building and how much you want to own. Here is a way to think about it.

A managed harness makes sense when:

  • You already run on Microsoft's stack and your security team prefers one vendor.
  • You want a working agent quickly and do not have engineers to maintain agent infrastructure.
  • Your use case is routine (internal Q&A, ticket triage, document handling) and does not need exotic tools.

Be more careful when:

  • You expect to switch models as prices and quality change. Models are changing every few months.
  • Your agent's tools and workflows are a competitive advantage you do not want tied to one vendor's sandbox.
  • You need to see and control exactly how the loop makes decisions.

One detail deserves attention. The video noted that Microsoft's newer models were built to fit its harness. Microsoft's own post on an earlier coding model said it was post-trained within GitHub Copilot, and the latest one was, at the time of recording, only available inside Copilot. That works well for Microsoft. If you tune everything around a harness you do not control, leaving later gets harder.

What should you own no matter what?

The strongest argument in the coverage is about portability. Three things travel with you if you build them well:

  1. Your harness logic. The instructions, tool definitions and workflow steps that make the agent do your job.
  2. Your evals. A set of test cases with known good answers, so you can measure any agent or model against your real work.
  3. Your context. Your documents, data and procedures, organized so an agent can use them.

If you own those, switching from one model to another, or from one model to a router, becomes routine. If they live only inside a vendor's platform, switching means rebuilding.

A practical step for any team piloting agents: write down 20 to 50 real tasks with the correct outcome for each. That is a starter eval set. Run every candidate, Microsoft's harness or anyone else's, against it.

Can you trust the performance numbers?

Treat them as claims to verify. Microsoft's headline figures at Ignite included a model reaching 96% of a leading competitor's performance at 5% of the cost. As the video points out, that price was at a 50% promotional rate, and other comparisons look much less dramatic once the promotion is factored in. The benchmarks also came from Microsoft's own evaluation platform, not an independent party.

Even the strongest coding result of the week came from a system that coordinates several models, not from a single new model. That supports the point of this whole topic: the harness is often doing more of the work than the model.

Could you build a simpler version of this yourself?

For many teams the real need is smaller than a full agent platform: a request form that routes work, a tracker for agent pilots, or a dashboard comparing results across test cases. Remy builds and deploys full-stack business apps from a plain-English description, and the apps it builds can call nearly 400 AI models, use your own provider keys, and run task agents against the app's own data. Every app is standard TypeScript in a git repo you own. So an eval tracker or an internal agent-request tool could be something you keep, not another subscription you rent.

Frequently Asked Questions

5 questions

What is an agent harness in simple terms?

It is everything around an AI model that turns it from a chatbot into something that does work. That includes the loop of deciding and acting, the tools it can call, the context it is given, and the sandbox where code runs. The model thinks. The harness directs and contains it.

Does Microsoft's managed harness lock you in?

It can. Microsoft runs the loop and sandbox, and the models it supports are ones it approves. Your knowledge, procedures and tools are yours, but how portable they are depends on how tightly you write them to Microsoft's setup. Keep your evals and instructions in formats you can move.

What does the Foundry optimizer actually change?

In the demo, it rewrote the agent's system prompt and tool descriptions to improve accuracy. It did not change the underlying model. The idea is that better instructions and clearer tool descriptions can fix many agent errors cheaply.

Is Microsoft IQ a new technology?

It is a Microsoft product name for giving agents only the context they need. The underlying practice, context engineering, is widely used. The value is in having it built into the platform, not in the idea being new.

How should a non-technical manager evaluate an agent platform?

Ask for a trial on your own tasks, not a vendor demo. Build a small set of real examples with known right answers, and compare cost and accuracy. Also ask what you can export if you leave.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.