LangGraph
LangGraph, in plain terms
LangGraph is an open-source Python framework (with a sibling JavaScript library, LangGraph.js) for building long-running, stateful agents. It comes from LangChain Inc., the company behind the LangChain framework, but you do not need to use LangChain to use it. The project is MIT-licensed, passes 40k stars on GitHub, and ships releases on a steady cadence, with version 1.2.x current as of mid-2026.
The honest way to describe it is as orchestration infrastructure, and the official docs say exactly this. LangGraph does not pick prompts or architecture for you. What it gives you is a graph runtime where each node is a plain function you write. Those functions can be deterministic steps, such as validation, routing, or database writes, or LLM-driven steps that call a model and decide what happens next. You wire the nodes together, including loops and branches, and the runtime takes care of state, scheduling, and persistence between steps.
What it actually adds over plain code
The fair question every team asks is whether they need a framework at all. A Hacker News thread from engineers who chose LangGraph for a coding agent captures the range of opinions well. Critics call the abstraction layer unnecessary and complain about breaking changes. Supporters, including LangChain maintainers, point to the concrete machinery you would otherwise build yourself.
- Durable execution. Graph state is checkpointed, so a run that fails or is interrupted can resume from where it stopped instead of starting over. This matters for agents that run for minutes or hours.
- Human-in-the-loop. You can pause a graph at any node, surface its state to a person, let them edit it, and continue. One HN commenter summarized the appeal as getting a state machine with time travel, where an analyst can fix an LLM output manually, try a branch, and roll back if it does not work.
- Loops without data races. LangGraph implements a variant of the Pregel/Bulk Synchronous Parallel model, which handles graphs with cycles and parallel branches without the races you get from hand-rolled async code.
- Memory. Short-term working memory within a run and long-term memory across sessions are first-class concepts rather than something you bolt on.
A typical workflow
A common shape is a support triage agent. A node classifies the incoming ticket with a cheap model. A deterministic node routes it by rule. An agentic node drafts a response with tools such as a knowledge base lookup. A human-in-the-loop interrupt holds the draft until an operator approves or edits it. If the process dies overnight, the checkpoint store lets it pick up the next morning. Teams pair this with LangSmith, the paid observability platform from the same company, to trace each run, though LangSmith is optional and there is no lock-in preventing you from using other tracing.
Working tips
- Install with
pip install -U langgraphin a fresh virtual environment. Python 3.10 or newer is required. If all you need is a standard chat-with-tools loop, try the higher-level LangChain agent abstractions or the Deep Agents package first, and drop down to LangGraph when you need custom control flow. - Put deterministic logic in plain nodes and keep LLM calls behind clear boundaries. This is the pattern the docs push, and it is what makes runs auditable, since the hand-coded parts behave the same every time.
- Pick a checkpointer (SQLite for local dev, Postgres or Redis in production) before you rely on durability. Without a persistent checkpointer, a crashed run starts from scratch.
- When a run misbehaves, inspect state transitions rather than only reading logs. LangGraph stores state per super-step, so you can usually find the exact hop where the output went wrong.
Limitations and friction
LangGraph is explicitly low-level. If you want a batteries-included agent out of the box, it is the wrong starting point. The API has gone through breaking changes across major versions, which is a recurring complaint in community threads. Debugging distributed runs still benefits from LangSmith, which is a commercial product, so a fully open-source stack means wiring your own tracing. And the learning curve is real. The graph-and-state mental model takes a few days to click if you have only used prompt chains.
LangGraph vs AutoGen Studio vs CrewAI
AutoGen Studio is a visual prototyping UI for Microsoft's AutoGen framework, aimed at experimenting with multi-agent teams, and the AutoGen project entered maintenance mode in 2026. CrewAI offers role-based orchestration that many teams find friendlier for quick setups. LangGraph demands more upfront engineering but gives the tightest control over execution, state, and recovery. For workflows that need structure, determinism, and auditability, LangGraph is usually the right pick among the three.
Who should use it
AI engineers and product teams building agent systems that need branching logic, persistent state, human review steps, or long-running reliability. If your use case is a single prompt call or a linear chain, plain code with a provider SDK is simpler. If you are prototyping agent ideas visually before committing engineering effort, a low-code tool is a faster place to start.
Useful links
- LangGraph on GitHub
- Official LangGraph docs
- Qodo's writeup on choosing LangGraph, with critical HN discussion
- Compare with AutoGen Studio and CrewAI on our site