How do I build a multi-agent system with LangGraph? Define the agents’ responsibilities, the state they can read and update, and the graph’s control flow—including how it pauses, resumes, and recovers. LangGraph provides orchestration infrastructure for those decisions; it does not make them for you. The practical companion question is: Should you use a supervisor or let agents hand off work to one another? Choose based on who should route the work and what information should cross each handoff.
What LangGraph provides—and what your application must decide
The LangGraph reference maintained by LangChain describes it as “a low-level orchestration framework for building, managing, and deploying long-running, stateful agents.” In practice, the framework gives an application explicit graph state and control flow, along with mechanisms for persistence, streaming, and human-in-the-loop pauses.
Your team still designs the system: which agents exist, which tools they may use, how work is routed, which state each agent sees, and what happens when a node or external action fails. A graph can make those choices visible and manageable; it does not guarantee correct delegation, useful specialist responses, lower costs, or safer actions. Those outcomes depend on the models, prompts, tools, application policies, and evaluation.
LangGraph’s lower-level control is suited to workflows where explicit composition of deterministic steps and agent behavior matters. LangChain’s prebuilt agent architectures may be a better fit when their built-in structure matches the task and a quicker setup matters more than custom workflow control.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problems#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Supervisor, handoff, or custom graph?
The key difference between supervisor and handoff designs is routing ownership: a central supervisor chooses the next specialist, while a handoff-capable agent can yield control to another agent as the task develops. A custom graph gives the application more direct control over those transitions and other workflow steps.
| Pattern | Who routes the work? | What information crosses a transition? | Useful when |
|---|---|---|---|
| Supervisor | A central agent selects and coordinates specialists. | The parent can be configured to receive a worker’s last answer or fuller history; choose deliberately. | One component should own task decomposition and specialist selection. |
| Handoff or swarm-style routing | An agent can transfer control to another agent through a tool-based handoff. | The swarm package documentation says subagent state updates are applied to the parent graph state by default during handoff. | Responsibility may move among agents as the task develops. |
| Custom graph or subgraphs | The application defines graph nodes and transitions, including where agent decisions occur. | State crossing a subgraph boundary depends on the graph and persistence design; visibility should not be assumed. | Workflow control, specialist encapsulation, or a mix of deterministic and agentic steps warrants the implementation effort. |
What a supervisor adds
A supervisor centralizes task decomposition and routing. That can make the decision about which specialist runs next explicit, and hierarchical systems can use multiple levels of supervisors. The trade-off is an additional central decision point: the supervisor must choose appropriate workers and provide enough context for them to succeed. Its presence alone does not make delegation accurate or efficient.
Also decide what the parent receives when a worker finishes. Passing only the worker’s last answer can keep the parent’s view focused; passing fuller history can preserve context the worker used. These are different information boundaries, not just display options.
What handoffs change
With handoffs, routing can follow the task’s evolving needs rather than always returning to one central selector. That flexibility makes the transition contract especially important. Since the swarm package applies subagent state updates to the parent graph state by default, review which messages and structured values travel onward. Broad propagation may preserve continuity, but it can also carry unnecessary, sensitive, or oversized history.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteRank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
“Swarm” describes a routing style here, not a guarantee of unconstrained autonomy or a claim that it is better than a supervisor. The meaningful design choice is whether a central router or a worker chooses the next agent, and whether the transition carries selected outputs or shared state.
When to build a custom graph
Choose a custom graph when you need explicit control over routing, state transitions, deterministic checks, or the placement of human review. Subgraphs can encapsulate a specialist workflow, but a parent graph may not immediately see a subgraph’s updates. When data must cross that boundary, the persistence documentation describes using shared Store state or writing to the parent checkpoint as possible approaches.
More control also means more workflow behavior for your team to define and maintain. If a prebuilt agent architecture already fits the application, using it can avoid unnecessary orchestration code.
Design state boundaries before adding agents
Multi-agent systems often fail in less visible ways than a bad model response: a worker lacks necessary context, the next agent receives irrelevant history, or durable user information is confused with the current conversation. Define what belongs in each state scope before adding more agents.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
- Worker input: Specify the messages and structured fields a specialist needs, rather than assuming every worker should see the full conversation.
- Worker output: Decide whether the worker returns a concise result, structured updates, or conversation history, and which of those the parent retains.
- Handoff scope: Review the default propagation of subagent updates in a swarm design; restrict or shape information where the application needs a narrower boundary.
- Subgraph boundary: Identify what remains inside a subgraph and what the parent must be able to read. Use a shared Store or parent-checkpoint writes when cross-boundary data needs call for them.
- Sensitive and bulky data: Avoid propagating information that the next agent does not need, particularly where user data or large histories are involved.
Checkpoints, stores, and recovery are different jobs
LangGraph’s persistence documentation distinguishes a checkpointer from a Store. A checkpointer records graph-state snapshots associated with a thread, supporting continuity, interruption, time travel, and recovery. A Store holds application-defined information across threads, such as durable facts or preferences. Thread-local conversation state is not automatically the same thing as cross-session or cross-user memory.
Make thread persistence durable on purpose
In-memory savers such as MemorySaver or InMemorySaver keep checkpoints in process memory. They lose those checkpoints when the process restarts, so they are not durable storage for production recovery. The documentation identifies persistent backends such as PostgreSQL and SQLite for durable checkpointing. Checkpoints can accumulate over time; define a retention or pruning policy rather than allowing storage growth to be accidental.
Thread-scoped persistence also depends on consistently passing the same thread_id when accessing a thread. The JavaScript persistence guide states that PostgresSaver limits thread IDs to 255 characters. If an external identifier might exceed that limit, use a short stable identifier or a hash while preserving a reliable mapping in the application.
Understand what resumption does—and does not—promise
Checkpointing can preserve successful node writes when another node fails, allowing the graph to resume without rerunning completed work. This recovery behavior is not a blanket exactly-once guarantee for external side effects. If a node calls a payment service, sends a message, or changes another system, design that operation’s retries and duplicate protection separately.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
A shared Store can make durable information available across threads, but the framework’s cross-thread capability does not define who is authorized to read or update each user’s data. Establish tenant boundaries and authorization checks in the application before storing user information there.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Use interrupts for review and resumption
An interrupt pauses graph execution to request external input. The interrupt guide describes saving the state and waiting until the caller resumes the run by invoking the graph with a Command carrying the resume value. This supports approval gates, edits to proposed tool calls, and collection or validation of user input.
For tool-call review, the documented interaction options include approving and continuing, manually modifying the call, or giving the agent natural-language feedback. Choose a review point where the consequences justify human attention, and make the interrupt payload clear enough for the reviewer to understand what they are being asked to approve or change. The application must still enforce its own permissions and action policies; pausing for review does not automatically make an action safe.
Stream progress and inspect nested work
LangGraph’s streaming guide describes graph stream modes and nested subgraph streaming. Namespaces can identify which subgraph emitted a message, helping developers distinguish parent activity from nested specialist work. Decide which events are appropriate to show end users; internal tool activity or intermediate reasoning may be useful for debugging without belonging in the product interface.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
For development, tracing and debugging streams can help follow agent and tool activity. The documentation also describes a typed-projection event-streaming API introduced in LangGraph v1.2 and recommends it for new applications on that guide page. Because API surfaces and recommendations can change, check the installed LangGraph version and its matching documentation before adopting that API.
Streaming makes activity observable; the documented capability does not establish that streaming improves model quality or reduces latency.
Evaluate the design against your workload
The official material describes capabilities and architecture, not an apples-to-apples performance comparison of supervisor, swarm, and custom-graph implementations. It establishes no universal winner for latency, cost, or accuracy. Test representative tasks using your own workload and evaluation criteria before committing to a pattern.
Quick Recap
- Compare whether routing choices are appropriate, including cases where a specialist is unavailable or returns an unusable result.
- Inspect what context each worker receives and what state is propagated to the parent or next agent.
- Exercise interruption, resumption, node failure, and external-action retry behavior.
- Measure the operational costs that matter to your application, including model calls, latency, and persistence needs, rather than inferring them from the pattern name.
- Check that streamed events and stored data respect your product’s user-facing and authorization boundaries.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

