Build an AI code review team with .NET Microsoft Agent Framework background agents and Ollama

Authorised Territory demonstrates how to build a multi-agent AI code review workflow in .NET using Microsoft Agent Framework, coordinating specialist security, performance, and architecture reviewers via background agents. The setup runs fully locally with Ollama and adds OpenTelemetry tracing so you can see what each agent is doing during the review.

Overview

The video builds an AI-powered “code review team” where multiple specialised agents independently review an ASP.NET Core MVC application from different perspectives, and a lead agent consolidates the results into a single structured report.

Key ideas covered:

Multi-agent code review design

Roles in the review team

The workflow is structured as:

Specialist agents:

Lead Developer Agent responsibilities

The Lead Developer Agent coordinates the review using Microsoft Agent Framework’s BackgroundAgentsProvider:

Guardrails for specialist agents

The specialist agents are instructed to:

Implementation topics highlighted

The video’s build steps and features include:

Why run locally with Ollama

The approach keeps the LLM running locally (via Ollama), enabling experimentation with multi-agent code review workflows without relying on a cloud-hosted model.