← Blog

· 4 min read

LangGraph for Multi-Agent Systems: When You Need Control, Not Just Agents

Every agent framework promises "multi-agent". LangGraph promises something more useful to an engineering team: control. You decide the steps, where state is saved, and where a human must say yes.

LangGraph describes itself as a low-level orchestration framework and runtime for long-running, stateful agents (LangChain, 2026). It is MIT-licensed and installs from PyPI (PyPI, 2026), with about 45,200 GitHub stars when I checked (GitHub, 2026).

1. LangGraph or LangChain?

They are layers, not rivals. LangChain's create_agent is built on top of LangGraph. LangChain's own advice: use create_agent for a quick, flexible agent, and LangGraph when you need explicit control over state and flow (LangChain, 2026). LangGraph also works without LangChain.

What LangGraph gives you that a plain agent loop doesn't
FeatureWhat it means in practice
Durable executionCheckpoints state, so a crash or a pause resumes where it stopped
Human-in-the-loopPause, inspect or edit state, then continue
Mixed stepsFixed code and model-driven steps in one graph

2. A small demo: a subagent as a tool

Install with pip install -U langgraph langchain. This pattern, from LangChain's multi-agent docs, wraps one agent as a tool the main agent can call:

import os
from langchain.tools import tool
from langchain.agents import create_agent

MODEL = os.environ["AGENT_MODEL"]  # a "provider:model" id from your provider's docs

@tool("word_count", description="Count the words in a piece of text")
def word_count(text: str) -> int:
    return len(text.split())

editor = create_agent(model=MODEL, tools=[word_count])

@tool("edit", description="Tighten a draft and report its length")
def call_editor(draft: str):
    result = editor.invoke({"messages": [{"role": "user", "content": draft}]})
    return result["messages"][-1].content

main_agent = create_agent(model=MODEL, tools=[call_editor])

Our LangChain recipe shows the same ideas in more detail.

3. Where it fits, and where it doesn't

LangGraph earns its place in long-running work that must survive restarts and needs approvals: claims processing, onboarding, order exceptions. The docs themselves say not every complex task needs multiple agents, and list the costs: the user waits for every subagent, and each one re-derives what the parent already knew (LangChain, 2026). In my experience, one agent with good tools beats three agents with vague ones.

Do you need LangGraph?

Score each 0 (no), 1 (partly) or 2 (yes):

  • Length: runs take minutes or days, not seconds.
  • Recovery: losing progress on a failure would be costly.
  • Approval: some steps need a person to say yes.
  • Structure: you can draw most of the flow as a graph.
  • Team: someone can own and debug the graph.
What your score means (my recommendation)
ScoreNext move
8–10Build it in LangGraph with checkpoints from day one.
5–7Start with create_agent; move down a layer when you hit limits.
0–4A single agent or plain code will do.

Your next step

Take one process where a person approves something today. Draw it as boxes and arrows, mark the approval box, and build only that graph. For agent role definitions to start from, see our free subagent templates.

Sources

  1. LangChain (2026). LangGraph overview, LangChain overview and Subagents. Read 20 November 2026.
  2. PyPI (2026). langgraph. Read 20 November 2026.
  3. GitHub (2026). langchain-ai/langgraph repository. Stars read 20 November 2026.

NEW CODE EVERY MONTH.

Get a note when new Claude Code templates, code recipes or tools go live.

No account required

We email once to confirm. Unsubscribe anytime — it deletes your address.

New drops, every week

Free tools & Claude templates, landing regularly.

We keep shipping new free tools, code recipes and Claude Code templates. Follow @freeyantra on Instagram or join the newsletter so you never miss one.

Follow @freeyantra

or get them by email

Double opt-in. Unsubscribe any time. Privacy