惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
量子位
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
博客园 - 聂微东
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Agents assemble. One agent is a hire. Many agents are a w...
The Pragamat · 2026-05-10 · via DEV Community

The shift from monolithic prompts to coordinated agents is the most consequential architectural change in applied AI since RAG. This issue maps the canonical patterns, picks one production-ready use case, and builds it end-to-end in Semantic Kernel.

Single-agent systems hit a wall the moment a task needs separation of concerns. You feel it in the prompt, the giant system message that tries to be analyst, writer, fact-checker, and policy enforcer in one breath. It works until it doesn't, and the failure modes are exactly what you'd expect when one mind plays five roles: tone drift, forgotten constraints, hallucinated tool calls, and reasoning that quietly skips steps.

Multi-agent systems decompose the problem. Each agent has a narrow remit, a smaller toolset, a tighter system prompt, and clearer evaluation criteria. The orchestration layer becomes the actual product surface and that's where the patterns matter.

Multi-Agent System Use case: Autonomous Incident Response

When PagerDuty fires at 3 a.m., the on-call doesn't need a chatbot, they need a team. A triage agent that reads the alert, a diagnostic agent that pulls logs and metrics, a knowledge agent that searches runbooks and past incidents, a remediation agent that proposes (and after approval, executes) fixes, and a communications agent that drafts the status-page update. This is the canonical multi-agent shape: short-lived, high-stakes, tool-heavy, with a human-in-the-loop gate before anything writes to production.

Behind Semantic Kernel, LangGraph, AutoGen, and CrewAI: The Same 6 Patterns

Most production agentic systems are built as a composition of these six patterns. Memorize the shapes. Every framework like Semantic Kernel, AutoGen, LangGraph, or CrewAI may call them something different, but the core topology is the same.

1. Sequential / Pipeline: Each agent's output is the next agent's input. Used when stages are strictly ordered and outputs accumulate. Incident analogy: Triage → Diagnose → Remediate → Communicate.

A → B → C · Linear chain

2. Concurrent / Parallel: A dispatcher fans the same task to N specialist agents in parallel; an aggregator merges results. Incident analogy: simultaneously query logs, metrics, traces, and runbooks then merge findings.

Fan-out → Fan-in · Map-reduce

3. Group Chat / Debate: All agents see one shared message thread; a selector picks who speaks next. Useful when answers benefit from disagreement and critique. Incident analogy: root-cause debate between Diagnostic and Knowledge agents, refereed by a Lead.

N agents, shared transcript

4. Handoff / Routing: An agent decides based on the conversation to transfer control (and context) to another, more specialized agent. Incident analogy: Triage hands off to a Database specialist when the alert is a slow-query alert; Likewise to a Network specialist or app specialist.

Conditional, context-passing

5. Magnetic / Orchestrator-Worker: A central orchestrator maintains a task ledger, assigns the next step to the best worker, and re-plans on failure. The most flexible and the most expensive. Incident analogy: the on-call's "brain" coordinating specialists across an evolving incident timeline.

Planner re-plans dynamically

6. Hierarchical / Team-of-teams: A tree of agents. Each manager owns a sub-team and exposes only its summarized result upward. Scales to large problems by hiding complexity. Incident analogy: SRE Manager → (DB Lead → DB workers) + (App Lead → App workers).

Manager → sub-managers → workers

The orchestration layer is the product. Models are commodities; coordination is the moat.

Reference architecture

SEMANTIC KERNEL · C#

Here's how the patterns compose for the incident-response use case. Triage runs first (sequential), then a concurrent fan-out across investigators, followed by a group-chat root-cause debate. The orchestrator chooses a remediation specialist via handoff, gates on a human approval, and finally hands off to a communications agent.

Autonomous Incident Response powered by multi-agent system

Building it in Semantic Kernel

.NET 8 · SK 1.x

The full repo is in github. Below: the three pieces that matter most.

a. Defining a specialist agent
Each agent is a ChatCompletionAgent with its own kernel, tool plugins, and instructions.

Agents/TriageAgent.cs C#

using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;

public static class TriageAgentFactory
{
    public static ChatCompletionAgent Create(Kernel kernel) => new()
    {
        Name = "TriageAgent",
        Instructions = """
            You are the on-call triage agent. Given an alert payload, output JSON:
              { severity: 'P1'|'P2'|'P3', system: string, suspected_cause: string }
            Do not speculate beyond the evidence. Do not call remediation tools.
            """,
        Kernel = kernel.Clone(),
        Arguments = new(new PromptExecutionSettings
        {
            FunctionChoiceBehavior = FunctionChoiceBehavior.Auto()
        })
    };
}

Enter fullscreen mode Exit fullscreen mode

b. Concurrent fan-out across investigators
SK ships ConcurrentOrchestration for exactly this. Three investigators run in parallel, each with their own tool plugin (Loki, Prometheus, vector store).

Orchestration/InvestigationFanOut.cs C#

using Microsoft.SemanticKernel.Agents.Orchestration.Concurrent;
using Microsoft.SemanticKernel.Agents.Runtime.InProcess;

var orchestration = new ConcurrentOrchestration(
    LogAgentFactory.Create(kernel),
    MetricsAgentFactory.Create(kernel),
    KbSearchAgentFactory.Create(kernel));

await using var runtime = new InProcessRuntime();
await runtime.StartAsync();

var result = await orchestration.InvokeAsync(triageResult.AsJson(), runtime);
var findings = await result.GetValueAsync(TimeSpan.FromSeconds(90));

// findings is string[] — one per agent. Hand to the debate stage next.
await runtime.RunUntilIdleAsync();

Enter fullscreen mode Exit fullscreen mode

c. Group-chat root-cause debate, with a human gate
Two specialists debate the root cause; a "Lead" agent terminates the chat once a confident conclusion is reached. The remediation step then asks a real human for approval before any tool with side effects fires.

Orchestration/RootCauseDebate.cs C#

using Microsoft.SemanticKernel.Agents.Orchestration.GroupChat;

var debate = new GroupChatOrchestration(
    new RoundRobinGroupChatManager { MaximumInvocationCount = 6 },
    DiagnosticAgentFactory.Create(kernel),
    KnowledgeAgentFactory.Create(kernel),
    LeadAgentFactory.Create(kernel))   // terminates when confident
{
    ResponseCallback = msg => { Console.WriteLine($"[{msg.AuthorName}] {msg.Content}"); return ValueTask.CompletedTask; }
};

var hypothesis = await (await debate
    .InvokeAsync($"Findings:\n{string.Join(\"\\n---\\n\", findings)}", runtime))
    .GetValueAsync(TimeSpan.FromSeconds(120));

// Human-in-the-loop gate — block until SRE approves remediation plan.
if (!await ApprovalGate.RequestAsync(hypothesis))
    throw new OperationCanceledException("SRE rejected remediation plan.");

Enter fullscreen mode Exit fullscreen mode

**Production checklist
**Before you put any of this on-call rotation:

  • Token budget per stage. Each agent gets a hard token cap. Long debates drain wallets.
  • Tool allow-lists. The triage agent should have read-only access. Only the remediation agent gets write tools, and only after approval.
  • Tracing. Every agent invocation, every tool call, every handoff instrumented (OpenTelemetry → Honeycomb / Datadog).
  • Eval harness. Replay the last 90 days of incidents nightly and grade the agents' output against the human resolution.
  • Kill switch. A feature flag that puts the system back into "advise-only" mode in one click.
  • Cost guardrails. Per-incident max spend; per-day max spend; alarm at 80%.

Final Thoughts

We need to stop viewing agentic workflows as a creative exercise and start viewing them as an engineering one. The winners in this space treat agents as decoupled microservices:

  • Independently Deployable: Update one component without risking the entire swarm.
  • **Individually Testable: **Identify exactly where logic fails before it hits production.
  • ** Ruthlessly Observable:** Trace every decision and handoff in real-time.

Operational discipline is the entire game. Everything else is just noise.


Satish Gopinathan is an AI Strategist, Enterprise Architect, and the voice behind The Pragmatic Architect. Read more at eagleeyethinker.com or Subscribe on LinkedIn.

agenticai aiops incidentmanagement autonomousagents multiagentsystems enterpriseai itoperations aiarchitecture generativeai aiengineering semantickernel dotnet csharp azureai azureopenai llmops agentops observability intelligentautomation sre cloudoperations platformengineering enterprisearchitecture workflowautomation devops digitaltransformation aiforitops incidentresponse futureofoperations