Microsoft Foundry Adds Managed Copilot Harness for Multi-Step AI Agents
Microsoft Foundry is adding a managed execution layer for teams building agents that need to coordinate tools, files and multi-step work. The Microsoft Copilot harness is now in public preview in Foundry Agent Service, giving developers a way to define agents declaratively while Microsoft manages the agent loop and sandbox. Separately, long-running resilience for hosted agents is generally available.
The two capabilities address different engineering choices. The harness packages execution machinery for teams that want to focus on an agent’s knowledge and outcomes. Hosted agents let teams bring their own framework and runtime while Foundry handles hosting. For complex workflows, the practical question is how much control an application needs over that machinery.
A managed execution layer
Building an agent often means writing the code that coordinates model and tool calls, keeps track of working context, handles files and determines what happens when a task spans multiple steps. That infrastructure is necessary, but it may not be what makes an application distinctive.
With the Copilot harness, developers describe an agent in Foundry Agent Service and supply the instructions, procedures and tools specific to their use case. Microsoft runs the execution loop and sandbox. Developers can select a supported Foundry model without rebuilding the surrounding orchestration for each model choice.
The preview brings together four capabilities:
- Reusable skills: Instructions, scripts and related resources can be packaged into procedures that an agent applies across tasks.
- Connected tools: Agents can use supported Foundry tools and Model Context Protocol (MCP) tools, with authentication and approvals configured explicitly.
- Execution and delegation: Agents can work with code and files, and delegate bounded tasks to built-in subagents while the main agent coordinates the result.
- Source-controlled definitions: Agent definitions and supporting resources can be managed alongside application code, or created and tested in Foundry.
The harness manages working context as a task develops and coordinates model and tool steps within configured limits and policy boundaries. That can reduce the amount of execution infrastructure an application team needs to build and maintain. The remaining work is still substantial: teams must supply relevant expertise, decide which tools an agent may use, and assess whether its results meet the task’s requirements.
Skills define how an agent works
A research brief is one example of a workflow that benefits from separating the requested outcome from the method. The agent’s instructions can define the task, a reusable skill can establish the research procedure, and tools can provide access to evidence or support calculations.
Microsoft’s example packages a procedure in skills/research-brief/SKILL.md. It asks the agent to confirm the question, audience, scope and time period; gather evidence with approved tools; cite sources and dates; distinguish facts from interpretation; and flag conflicting evidence. It also directs the agent to use Code Interpreter when calculations or charts would help, and to return findings, evidence, limitations and open questions.
The procedure sets two clear boundaries: retrieved content should be treated as data rather than instructions, and confidential information should not be included in web queries. Those details show how a reusable skill can carry both a working method and task-specific safeguards across agent runs.
In the accompanying azure.yaml example, the project defines a Foundry project, registers the research skill, and creates a prompt agent using the microsoft_copilot_preview harness. The agent is configured with a model deployment, the research skill, web search and Code Interpreter tools, and an automatically provisioned container. Its instructions tell it to use public evidence, cite sources, use the interpreter for analysis and identify assumptions and evidence gaps.
Developers can deploy and invoke the example with the preview Azure Developer CLI surface, azd. Foundry portal and Foundry Toolkit for Visual Studio Code are other authoring options. In the GitHub Copilot app, the Microsoft Foundry plugin and Microsoft Foundry Skill offer a conversational route for creating and managing prompt agents.
Hosted agents add recovery for extended work
Some teams need more control than a managed harness offers. Foundry hosted agents allow developers to bring their own framework, agent loop, middleware, dependencies and runtime behavior while Foundry manages hosting. Long-running resilience for these agents is now generally available, supporting work that may continue for hours or days.
When an interruption occurs, Foundry detects it and restarts the work with its original input. The application code must save progress and intermediate results so the agent can resume from a useful point. Conversation history by itself does not restore unfinished work.
That responsibility matters when a workflow also changes another system. An agent processing a large dataset might save completed stages and continue from its last checkpoint after a restart. If it creates a report elsewhere, the workflow should check whether that report already exists before creating it again. Without that safeguard, a retry could repeat an action.
Foundry supplies the recovery foundation; the application determines what state to save and how to continue. Teams designing long-running workflows need to plan for both resumable work and actions that could be duplicated after an interruption.
Match the approach to the application
Foundry Agent Service offers three levels of control. A prompt agent without the Copilot harness may be enough when instructions and supported tools cover the task. The harness fits teams that need reusable skills, managed execution, files, subagents and more involved tool coordination without owning the execution layer. Hosted agents suit applications that need to choose or change the framework, loop, middleware, dependencies or runtime behavior.
That choice affects where engineering effort goes. A managed harness can shorten the path to an agent workflow when the provided execution model fits. A hosted agent gives a team room to shape runtime behavior, while leaving hosting with Foundry. Neither option removes the need to define task boundaries, manage tool access and evaluate outputs.
During the preview, developers must select the Copilot harness when creating an agent. Existing agents remain as they are, and the harness cannot be changed after creation. Foundry also manages CPU, memory and idle settings for the execution environment, so teams should account for those managed settings when designing workloads.
Availability and pricing
Developers can start in the Microsoft Foundry portal or use azd to keep agent definitions with application code. Microsoft points users to a web research quickstart, Foundry samples, and documentation covering supported regions, models, tools and preview limits. The broader announcement is by Tina Schuchman and Vladimir Federov.
Harness runtime usage is free before December 1, 2026. Billing begins on that date with consumption-based pricing. Model inference, separately billed tools and connected services remain subject to their applicable charges. From December 1, sandbox compute is priced at USD $0.0994 per vCPU-hour and memory at USD $0.0118 per GiB-hour; prices may vary by region and agreement.
For teams evaluating the preview, the key decision is whether the managed execution loop matches the workflow’s needs. If it does, reusable skills and connected tools offer a direct way to encode how the agent should work. If a workflow requires custom runtime behavior or must recover across extended processing, hosted agents provide a different control surface, with checkpointing and duplicate prevention left to the application.
The post Introducing the Microsoft Copilot harness in Foundry Agent Service appeared first on Microsoft Azure Blog.