What it is used for

LangGraph is used for agents whose tasks are long and cannot finish in a single question-and-answer round. Examples include an agent that researches a topic across many sources and assembles a report in stages, an agent that processes documents and files them into office systems, or a customer service agent that must check data, draft a reply, and wait for human approval.

A concrete case: an online shop uses an agent to handle returns. The agent reads the buyer's complaint, checks the order status, then stops and asks the shop owner for approval before issuing a refund. Once approved, the agent continues from exactly where it stopped instead of starting over.

LangGraph also suits mixed work: some steps are written deterministically by the programmer, such as checking stock in a database, while others are decided by the language model, such as understanding what a customer's message means. Both live in the same graph.

How to use it

LangGraph is a developer tool, not an end-user application. Developers install it as a library, mainly for Python and also for JavaScript, then define three things: the shape of the state the agent carries, the nodes that perform the work steps, and the edges that set the order and conditions for moving between nodes.

Once the graph is assembled, the developer runs it with an initial input. Each step reads the state, does its work, and writes its results back into the state. Developers can watch answers and state updates stream live while the graph runs.

The key feature that sets LangGraph apart from an ordinary chain of calls is the checkpoint. State is saved at defined points, so work that stops because of a failure or a wait for a human can resume from the last checkpoint. LangGraph does not require LangChain; the two can be used separately, though they are often paired.

Practitioner level

Four capabilities carry LangGraph. First, durable execution: thanks to checkpoints, an agent survives process failures and long pauses. Second, human-in-the-loop: the graph can stop mid-run, present its state for a human to inspect or edit, then continue. Third, two layers of memory: short-term memory as the state of the current thread, and long-term memory that persists across sessions. Fourth, streaming: answer tokens, state updates, and other events can be broadcast as it runs.

LangGraph is deliberately low-level. It handles orchestration, meaning order, state, and control flow, but it does not prescribe prompts or an agent architecture. Decisions about what the model says stay with the developer. Those who want a higher layer can use LangChain from the same team for model and tool integrations, and LangSmith for observation.

Expert level

At the advanced level, LangGraph's value is explicit control over state and control flow. Developers decide how state is merged when two branches meet, when a loop must stop, and how a failed branch is retried without repeating the whole job. Multi-agent patterns, such as one supervisor dividing work among several workers, are built as graphs within graphs.

The official LangGraph repository on GitHub is licensed under MIT and, as of 29 November 2026, has 45,551 stars and 7,883 forks, one sign of wide adoption among agent developers. Its companion ecosystem includes LangSmith for tracing and evaluation, plus deployment services from the LangChain team for running graphs at production scale; those companions are commercial, while the core framework is open and free.

Limits and risks

Low-level means more work. Developers must design the state, handle branch merging, and think through failure behavior themselves; there is no ready-made agent pattern to simply switch on. For a simple task that finishes in one or two steps, LangGraph can feel like overkill compared with calling a model directly.

Checkpoints are not magic either. Saved state must be designed so resuming is safe; an action that already happened in the real world, such as a message already sent, is not undone when the graph replays from a checkpoint.

Finally, the ability to pause for a human only helps if a human actually reviews. An agent whose approvals are granted automatically without reading turns that safety feature into a formality, and long errors can still accumulate in the carried state.