Go deep on multi-agent systems built on Microsoft Foundry, featuring Claw agent patterns and the hosted agents architecture. Explore long-running agents with triggers, state management, and file access—all natively supported on Foundry. See how coding agents built with GitHub Copilot SDK and Claude Agent SDK integrate into multi-agent workflows using Microsoft Agent Framework. Learn how to coordinate, host, and operate these systems with observability and continuous evals.
If you're following these steps at your own pace:
- Clone this repository
- Set up your development environment
- Configure Azure AI environment variables (see "Run the Agent Harness samples" below)
This repository includes runnable .NET samples under src/Agent-Harness.
- Install prerequisites:
- .NET 10 SDK
- Azure CLI (
az login)
- Set environment variables:
$env:AZURE_AI_PROJECT_ENDPOINT = "https://<your-project>.services.ai.azure.com/api/projects/<your-project-name>"
$env:AZURE_AI_MODEL_DEPLOYMENT_NAME = "gpt-5.4"- Build all sample projects from the repo root:
$projects = @(
".\\src\\Agent-Harness\\ConsoleReactiveFramework\\ConsoleReactiveFramework.csproj",
".\\src\\Agent-Harness\\ConsoleReactiveComponents\\ConsoleReactiveComponents.csproj",
".\\src\\Agent-Harness\\Harness_Shared_Console\\Harness_Shared_Console.csproj",
".\\src\\Agent-Harness\\Harness_Shared_Console_OpenAI\\Harness_Shared_Console_OpenAI.csproj",
".\\src\\Agent-Harness\\Harness_Step01_Research\\Harness_Step01_Research.csproj",
".\\src\\Agent-Harness\\Harness_Step02_Research_WithBackgroundAgents\\Harness_Step02_Research_WithBackgroundAgents.csproj",
".\\src\\Agent-Harness\\Harness_Step03_DataProcessing\\Harness_Step03_DataProcessing.csproj",
".\\src\\Agent-Harness\\Harness_Step04_CodeExecution\\Harness_Step04_CodeExecution.csproj"
)
foreach ($p in $projects) {
dotnet build $p -nologo
}- Run individual steps:
dotnet run --project .\src\Agent-Harness\Harness_Step01_Research\Harness_Step01_Research.csproj
dotnet run --project .\src\Agent-Harness\Harness_Step02_Research_WithBackgroundAgents\Harness_Step02_Research_WithBackgroundAgents.csproj
dotnet run --project .\src\Agent-Harness\Harness_Step03_DataProcessing\Harness_Step03_DataProcessing.csproj
dotnet run --project .\src\Agent-Harness\Harness_Step04_CodeExecution\Harness_Step04_CodeExecution.csprojFor per-sample details and prompts to try, see src/Agent-Harness/README.md.
| Resource | Description |
|---|---|
| https://aka.ms/build26-next-steps | Explore lab and session repos to further your learning from Microsoft Build |
The Microsoft Learn MCP Server gives your AI agent direct access to Microsoft's official documentation — grounded, up-to-date answers about the products and services covered in this session.
VS Code — One click installation:
GitHub Copilot CLI — Run this to install the Learn MCP Server as a plugin:
/plugin install microsoftdocs/mcp
For more info, other clients, and to post questions, visit the Learn MCP Server repo.
![]() Shawn Henry 📢 |
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit Contributor License Agreements.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

