---
title: "Microsoft Ships Copilot Harness to Run Multi-Step AI Agents Without Infrastructure"
subtitle: "Microsoft's new managed agent harness in Foundry handles orchestration, tools, context, and sandboxing so developers can skip rebuilding the execution layer."
url: "https://alphasignal.ai/news/microsoft-ships-copilot-harness-to-run-multi-step-ai-agents-without"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "Microsoft Developer"
company_url: "https://alphasignal.ai/company/msdev"
published: "2026-10-28T16:58:30.000Z"
updated: "2026-10-28T20:05:03.563Z"
type: "News"
topics:
  - "Agents"
  - "Development"
subtopics:
  - "Agent Frameworks"
  - "Tool Use"
  - "Code Agents"
  - "Code Agents"
upvotes: 440
read_time: "4 min"
source_url: "https://devblogs.microsoft.com/foundry/microsoft-copilot-harness-in-foundry/"
comments: 0
---

# Microsoft Ships Copilot Harness to Run Multi-Step AI Agents Without Infrastructure

> Microsoft's new managed agent harness in Foundry handles orchestration, tools, context, and sandboxing so developers can skip rebuilding the execution layer.

Microsoft has released the Copilot harness in Foundry Agent Service as a public preview, according to its [preview announcement](https://devblogs.microsoft.com/foundry/microsoft-copilot-harness-in-foundry/). Developers define an agent and choose a supported Foundry model; Microsoft runs the agent loop, working context, tool coordination, file handling, sandboxed code execution, and recovery logic.

The managed execution layer comes from the harness built by the GitHub Copilot engineering team and now shared across Microsoft products. It reduces the infrastructure required for multi-step agents while leaving developers responsible for instructions, skills, tool access, evaluations, durable state, and application-specific safeguards.

## Inside the managed loop

The public preview combines four components that teams commonly build for themselves:

- **Reusable skills:** Packaged instructions, scripts, and supporting resources that agents can apply across tasks.
- **Connected tools:** Supported Foundry tools and Model Context Protocol tools, with explicit authentication and approval controls.
- **Execution and delegation:** File and code operations inside a managed sandbox, plus bounded tasks delegated to built-in subagents.
- **Versioned definitions:** Agent configuration authored in Foundry or stored with application code in source control.

During a run, the harness maintains working context and coordinates model and tool calls within configured limits and policies. Developers still need to specify the desired outcome, grant appropriate permissions, test failure cases, and evaluate the resulting behavior.

## Authoring is YAML plus Markdown

Each skill is a Markdown file with YAML frontmatter under `skills/`. The agent definition lives in `azure.yaml`, where developers select the model deployment, skills, tools, and harness:

```
research-brief:
  host: azure.ai.agent
  kind: prompt
  harness:
    type: microsoft_copilot_preview
  model: ${MODEL_DEPLOYMENT_NAME}
  skills:
    - research-brief-skill
  tools:
    - type: web_search
    - type: code_interpreter
```

The preview version of Azure Developer CLI provides the direct deployment path. Run `azd deploy --all` to deploy the project, then `azd ai agent invoke` to invoke the agent. Developers can also author agents in the Foundry portal, the Foundry Toolkit for Visual Studio Code, or the Microsoft Foundry plugin and Skill in the GitHub Copilot app.

## Recovery needs durable checkpoints

Microsoft has separately made long-running resilience for hosted agents generally available, with implementation details in its [resilience guide](https://learn.microsoft.com/en-us/azure/foundry/agents/concepts/long-running-agent-resilience). The feature targets work that may continue for hours or days and encounter infrastructure interruptions.

When Foundry detects an interruption, it restarts the work with the original input. Application code must persist checkpoints and intermediate results so the agent can identify completed steps and resume safely. Workflows that modify external systems also need idempotency controls to prevent repeated messages, transactions, file writes, or API calls after a restart. Conversation history does not provide a complete record of in-progress work.

## Pick the execution tier

Foundry now offers three execution approaches with different levels of control and operational responsibility:

| Approach | Best fit | Developer responsibility |
| --- | --- | --- |
| Prompt agent | Instructions and supported tools cover the workflow. | Prompts, tool configuration, permissions, and evaluation. |
| Prompt agent with Copilot harness | The workflow needs skills, files, subagents, sandbox execution, or coordinated tool use. | Agent definitions, skills, access controls, durable state, and evaluation. |
| Hosted agent | The application requires a custom framework, agent loop, middleware, or runtime behavior. | The custom runtime and its operational infrastructure. |

## Preview constraints and costs

- The harness must be selected when an agent is created.
- Existing agents remain unchanged, and an agent cannot switch harnesses after creation.
- Foundry controls the sandbox CPU, memory, and idle settings.
- Model inference and separately billed tools incur their usual charges during the preview.

The harness is available through the [Foundry portal](https://ai.azure.com/nextgen) and the preview Azure Developer CLI. Microsoft says consumption billing begins December 1, 2025. Harness runtime usage remains free before that date, excluding model and tool charges. After billing starts, sandbox compute costs US$0.0994 per vCPU-hour and US$0.0118 per GiB-hour of memory.

Early design partner Confluence Technologies reported deploying a solution in under a week, although that vendor account does not provide a comparative benchmark. The practical tradeoff is clearer: teams can transfer agent-loop and sandbox operations to Microsoft, but they retain ownership of agent behavior, security boundaries, persisted state, external side effects, and evaluation.

## Sources

- [X post by @msdev](https://x.com/msdev/status/2115488391043449336)
- [Introducing the Microsoft Copilot harness in Foundry Agent Service](https://devblogs.microsoft.com/foundry/microsoft-copilot-harness-in-foundry/)
- [Use tools and skills with the Copilot harness](https://learn.microsoft.com/azure/foundry/agents/how-to/use-tools-skills-copilot-harness)
- [Long-running agent resilience for hosted agents](https://learn.microsoft.com/en-us/azure/foundry/agents/concepts/long-running-agent-resilience)
- [Microsoft Foundry portal](https://ai.azure.com/nextgen)
