# LangGraph

> Canonical: https://skillalmanac.com/glossary/langgraph | Last verified: 2026-11-24 | Index status: not offered to search engines

LangGraph is a framework and runtime from LangChain for building long-running, stateful agents. Developers define a workflow as a graph of shared state, nodes and edges.

Also called: lang graph, langgraph ai, langgraph agents, LangGraph framework, LangGraph Python.

## In plain language

LangGraph is a toolkit for programmers who build AI agents that need to do more than answer once. Instead of one long script, the developer draws the work as a map: steps, and the rules for which step comes next. The tool remembers where a run has got to, so a task can pause for a person to check something and carry on afterwards, or restart after a failure. A typical use is a support assistant that drafts a reply, waits for approval, then sends it. It is a library for developers, not a ready-made assistant. It adds concepts to learn, and a simple task may not need it at all.

## Technical definition

LangGraph's documentation calls it a low-level orchestration framework and runtime for long-running, stateful agents. Workflows are defined as graphs of shared state, nodes and edges, and deterministic steps can be mixed with model-driven ones. The overview lists durable execution by checkpointing state so a run can resume after failures or pauses, human-in-the-loop pauses to inspect or edit state, short-term and longer-term memory, streaming and persistence. The page states that LangGraph does not require LangChain. According to IBM, cycles, which are loops in the graph, are essential for agent runtimes.

## How it shows up when you use agents

You meet LangGraph in the code of projects that run an [AI agent](/glossary/ai-agent) as a service, and in tutorials about agents that pause for approval. If a coding agent edits such a project, it must read how that project defines its graph: the state, the nodes and the edges that decide what runs next. The project's documentation describes checkpoints, so state can be saved and a run resumed.

What breaks when this is misunderstood: people treat LangGraph as the agent itself, when it is the runtime that organises the steps. Another failure is adding a graph to a task that one model call would handle. A third is forgetting that a loop in the graph needs a stopping rule, or the run can continue longer than intended.

Next action: write the workflow as a list of steps and the conditions between them before choosing a tool. If a person must approve a step, that is where [human-in-the-loop](/glossary/human-in-the-loop) pauses matter. For the general idea see [AI agent framework](/glossary/ai-agent-framework), and for its sibling library see [LangChain](/glossary/langchain).

## Common confusions

- **LangGraph versus LangChain.** LangGraph's docs say it does not require LangChain, and describe LangChain as the agent framework and LangGraph as the orchestration runtime.
- **LangGraph versus an agent.** An agent is the behaviour. LangGraph is one way to build and run it.
- **Graph versus chain.** A graph can branch and loop. A fixed sequence of steps cannot loop back.
- **Myth.** You need a framework to build an agent. A model API and a loop can be enough for a small task.

## Worked examples in this catalogue

### [How to Build an AI Agent: A Minimal Tool Loop](https://skillalmanac.com/learn/build-an-ai-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A minimal agent in one Python file: a loop that sends tools to the model, runs each requested tool and stops at a hard cap on iterations.

Why it exercises the concept: A graph runtime organises steps and loops like this one with explicit state. Building the bare loop once shows what such a framework is organising.

### [claude-api](https://skillalmanac.com/skills/anthropic/claude-api)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A reference for building applications on the Claude API and the Anthropic SDKs across several languages.

Why it exercises the concept: Agents can also be built by calling a model API directly. This reference covers that route, which is the baseline a framework such as LangGraph adds structure to. It does not cover LangGraph.

### [subagent-driven-development](https://skillalmanac.com/skills/obra/subagent-driven-development)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Executes a plan by handing independent tasks to separate subagents.

Why it exercises the concept: This is one way a coding agent splits work into steps. LangGraph is a different mechanism for structuring steps in application code, so the skill is a contrast case, not an example of LangGraph.

## Related terms

- [AI agent framework](https://skillalmanac.com/glossary/ai-agent-framework.md)
- [LangChain](https://skillalmanac.com/glossary/langchain.md)
- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Human in the loop (HITL)](https://skillalmanac.com/glossary/human-in-the-loop.md)
- [Agent loop](https://skillalmanac.com/glossary/agent-loop.md)
- [Agent memory](https://skillalmanac.com/glossary/agent-memory.md)

## Sources

- [LangGraph overview](https://docs.langchain.com/oss/python/langgraph/overview), LangChain (accessed 2026-11-24)
- [What is LangGraph?](https://www.ibm.com/think/topics/langgraph), IBM (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
