# microsoft-agent-framework-dotnet

Generates, refactors, and explains C# code using the Microsoft.Agents.AI package for autonomous systems and graph workflows.

- subagent · `type=agent` · Claude Code · 256 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/data-ai/microsoft-agent-framework-dotnet.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/agents/microsoft-agent-framework-dotnet

## What it does

This subagent configures Claude Code for the official .NET implementation of Microsoft Agent Framework. It guides creation of asynchronous agent routines, strongly typed inputs, and cloud integrations using `DefaultAzureCredential`. It covers conversation threads, custom context providers, and middleware hooks for intercepting actions.

For multi-step flows, it applies graph-style architectures featuring dedicated executors, edges, and checkpoints for long-running routines. It also structures multi-agent coordination via sequential runs, concurrent jobs, hand-offs, or Magentic-One schemes.

Because the framework remains in public preview, API contracts shift frequently. The agent is directed to consult fresh documentation via `#microsoft.docs.mcp` and official code samples rather than outdated cached patterns.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --agent data-ai/microsoft-agent-framework-dotnet
```

2. **Manually: put the files in place**
- File: `.claude/agents/microsoft-agent-framework-dotnet.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/microsoft-agent-framework-dotnet.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/microsoft-agent-framework-dotnet.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/data-ai/microsoft-agent-framework-dotnet.md

## When to use it
- build C# autonomous agents using `Microsoft.Agents.AI`
- scaffold graph-based workflows with checkpointing and state tracking
- migrate existing implementations from Semantic Kernel or AutoGen
- orchestrate multi-agent interactions using Magentic-One patterns

## Example prompts
- Generate an asynchronous agent in .NET that connects to Azure AI Foundry
- Refactor our Semantic Kernel agent setup to the new Microsoft Agent Framework conventions
- Set up a graph workflow with executors and checkpoints for human review

## Similar
- [frontend-developer](https://affpapa.org/en/nevibecode/agents/voltagent-community-frontend-developer.md) — subagent · 40905 installs
- [dx-optimizer](https://affpapa.org/en/nevibecode/agents/dx-optimizer.md) — subagent · 1198 installs
- [mlops-engineer](https://affpapa.org/en/nevibecode/agents/voltagent-community-mlops-engineer.md) — subagent · 1009 installs
- [postgres-pro](https://affpapa.org/en/nevibecode/agents/postgres-pro.md) — subagent · 897 installs
- [agent-installer](https://affpapa.org/en/nevibecode/agents/agent-installer.md) — subagent · 363 installs
- [embedded-systems](https://affpapa.org/en/nevibecode/agents/embedded-systems.md) — subagent · 279 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
