All Topics

Agent Architecture

All agent patterns in one place: single-agent (ReAct, Reflection), multi-agent (Supervisor, Swarm, A2A), workflow (Router, Orchestrator-Worker), plus system design, memory, and frontend.

0/48
How to Design an Agent System

The decision framework for choosing between chains, single agents, and multi-agent systems — and how to scope your first agent correctly.

intermediate12 min
ReAct: The Core Pattern

The Reason-Act loop that powers every LangGraph agent: think, pick a tool, observe the result, repeat until done.

intermediate10 min
Reflection & Self-Critique

How to add a self-critique step so the agent evaluates its own output, catches mistakes, and iterates before responding.

intermediate10 min
Plan-and-Execute & Routing

Two patterns for complex agents: upfront planning that decomposes tasks into steps, and routing that dispatches to specialized sub-agents.

advanced11 min
Prompt Chaining: Sequential LLM Pipelines

Sequential LLM calls with gate functions for conditional flows — each step transforms data for the next, with optional quality gates between steps.

intermediate8 min
Evaluator-Optimizer: Self-Improving Loops

One LLM generates, another evaluates — loop until quality threshold met. The Evaluator-Optimizer pattern creates self-improving agents that refine outputs iteratively.

advanced9 min
Router: Classify and Dispatch

The Router pattern classifies input in a single step and dispatches to specialized handlers — a stateless, fast alternative to supervisor-based orchestration.

intermediate9 min
Orchestrator-Worker: Plan, Delegate, Synthesize

The Orchestrator-Worker pattern breaks complex tasks into subtasks, delegates to specialized workers via the Send API, and synthesizes results — ideal for parallel, multi-step work.

advanced11 min
Parallelization: Concurrent LLM Execution

Multiple LLMs work simultaneously on the same input, with results aggregated via voting, merging, or selection — for speed or confidence.

intermediate8 min
Skills: On-Demand Specialization

The Skills pattern loads specialized prompts and knowledge on-demand via progressive disclosure — the agent stays in control while skills inject expertise only when relevant.

intermediate10 min
Multi-Agent Systems

When and how to split work across multiple agents: architecture patterns, communication protocols, and shared state strategies.

advanced13 min
Supervisor Pattern

A central supervisor agent that routes tasks to specialized worker agents, aggregates results, and manages the overall workflow.

advanced11 min
Swarm & Handoffs

Peer-to-peer agent handoffs where each agent decides who to pass control to next, inspired by OpenAI's Swarm pattern.

advanced10 min
Async Subagents: Background Task Delegation

Launch background subagents that run concurrently while the supervisor continues chatting — with start, check, update, cancel, and list lifecycle management.

advanced10 min
A2A Protocol

Google's Agent-to-Agent protocol for inter-agent communication. Integration with LangGraph Agent Server. When to use A2A vs direct handoffs.

advanced10 min
Agent Memory Systems

Short-term, long-term, and episodic memory for agents — how to make your agent remember context across conversations and learn from experience.

intermediate11 min
LangMem SDK & Store API

The LangMem SDK for automatic memory extraction and the LangGraph Store API for persistent cross-thread storage.

advanced9 min
Agent Prompt Design

How agent system prompts differ from chatbot prompts: structuring instructions, defining tool use policies, controlling chain-of-thought, and setting behavioral boundaries.

intermediate11 min
Writing Effective Tool Descriptions

The art of tool descriptions: how the LLM reads them, what makes a description effective, and patterns for reducing tool selection errors.

intermediate9 min
Few-Shot Examples for Agent Tasks

Using few-shot examples to teach agents complex behaviors: example trajectories, tool call demonstrations, and dynamic example selection.

intermediate9 min
Prompt Versioning & A/B Testing

Managing prompts as code: version control, A/B testing frameworks, rollback strategies, and measuring prompt performance in production.

advanced10 min
Designing Agent Workflows

How to map business processes onto LangGraph workflows: identifying nodes, edges, state, and human checkpoints.

intermediate12 min
State Design Patterns

Advanced state management: reducers, private vs public state, state channels, and handling state in long-running workflows.

advanced10 min
Designing for Failure

Building agents that degrade gracefully: circuit breakers, fallback chains, timeout handling, and recovery strategies.

advanced11 min
Context Window Management

Token budgets, message trimming, compression strategies, and sliding window patterns to keep your agent within context limits.

advanced10 min
Application Structure

Monorepo patterns, project organization for LangGraph apps, and separation of graph definition vs node logic vs tools.

intermediate9 min
Classification & Routing Patterns

Intent-based routing, semantic routing, multi-level classification, and fallback strategies for directing queries to specialized handlers with confidence thresholds.

advanced11 min
Graceful Degradation

Building resilient agents with fallback chains, circuit breakers, stale cache serving, and feature degradation under load — so your agent always returns something useful.

advanced10 min
Generative UI

Building dynamic frontend components driven by agent output. Streaming UI updates, tool result rendering, and real-time state visualization.

advanced11 min
useStream: Real-Time Agent UI

The useStream React hook renders LangGraph agent output in real-time — per-node status indicators, streaming tokens, and custom events from tools. Works with StateGraph, create_agent, and create_deep_agent.

intermediate9 min
OpenAI Function Calling & Assistants API

Using OpenAI's native function calling and Assistants API directly — no framework required. Function definitions, parallel tool calls, structured outputs, and when to skip the LangChain wrapper.

intermediate11 min
Anthropic Tool Use & Extended Thinking

Claude's native tool use API: tool definitions, tool_choice modes, extended thinking for complex reasoning, computer use for desktop automation, and streaming with tool calls.

intermediate10 min
Vercel AI SDK: Frontend-First AI

Building AI-powered applications with the Vercel AI SDK: streaming by default, React hooks for chat UIs, server-side text generation, and tool integration with Zod schemas.

intermediate10 min
Agent Framework Comparison

Comparing LangGraph, CrewAI, AutoGen, and Mastra: features, trade-offs, learning curves, and a decision framework for choosing the right tool for your agent project.

intermediate11 min
The No-Framework Agent

Building production-ready agents with just the LLM API and a while loop. When frameworks add overhead without value, and how to write a complete agent in about 100 lines of code.

advanced10 min
Long-Running Agents

Architecting agents that run for hours or days: durable execution, checkpointing strategies, progress reporting, and timeout/budget management to prevent runaway costs.

advanced12 min
Browser Agents

Building AI agents that navigate and interact with websites: Playwright + LLM for web tasks, page understanding strategies, action spaces, and error recovery patterns.

advanced11 min
Computer Use Agents

Building agents that interact with desktop applications using Anthropic's Computer Use: the screenshot-analyze-act loop, safety boundaries, sandboxing, and practical use cases like legacy app automation.

advanced11 min
Code Execution Agents

Building agents that generate, execute, and iterate on code: the REPL pattern, sandboxing with Docker and E2B, validation through type checking and tests, and data analysis agents.

advanced11 min
Agent Supervision & Safety

Building supervision layers for autonomous agents: kill switches, permission systems, human approval gates, monitoring dashboards, and complete audit logging for post-mortem analysis.

advanced10 min
Project: Build a Research Agent

End-to-end walkthrough: build a multi-source research agent with planning, parallel web search, subagent delegation, filesystem persistence, and report synthesis using Deep Agents.

advanced15 min
Project: Build a Customer Support Agent

End-to-end walkthrough: build a customer support agent with query routing, RAG knowledge base, tool-calling for account actions, human-in-the-loop escalation, and multi-tenant auth.

advanced14 min
Project: Build a RAG Q&A System

End-to-end walkthrough: build a production RAG system with ingestion pipeline, hybrid search, self-corrective retrieval, answer validation, and continuous evaluation.

advanced14 min
Project: Build a Code Review Agent

End-to-end walkthrough: build a code review agent with Deep Agents + sandbox for safe code analysis, project-specific skills, parallel file review, and GitHub integration.

advanced13 min
Agents for Legal

How to build production agents for contract analysis, compliance checking, legal research, and document review — with the guardrails that regulated environments demand.

advanced14 min
Agents for Finance

Building production agents for financial research, risk assessment, portfolio analysis, and report generation — with the numerical accuracy, audit trails, and regulatory compliance that finance demands.

advanced15 min
Agents for Healthcare

Building production agents for clinical decision support, patient documentation, and medical Q&A — with HIPAA compliance, safety guardrails, and the principle that AI assists clinicians but never replaces clinical judgment.

advanced14 min
Agents for Customer Support

Design patterns for production customer support agents: multi-tier routing, RAG knowledge bases, account action tools, HITL escalation, session memory, and satisfaction tracking.

intermediate9 min