Skip to content

LangChain

LangGraph, LangChain, and Deep Agents form three composable layers of LangChain's open source agent stack. LangGraph is the runtime, LangChain is the framework and integrations layer, and Deep Agents is the agent harness. Each layer trades abstraction for control, so builders can move between them or combine them rather than committing to only one.

View the LangChain agent stack pyramid

Deep Agents is the highest-level starting point and the best fit for most new agents. It packages context-engineering practices such as file-system-backed context, subagents, skills, memory, and summarization into an opinionated harness designed for capable, longer-running agents.

LangChain provides a minimal, unopinionated agent loopβ€”an LLM repeatedly choosing and calling toolsβ€”plus model and tool integrations. Reach for its create_agent abstraction when you want less built-in context management, need finer control over the agent loop, or plan to assemble a bespoke harness. Middleware can add deterministic steps such as approvals, verification, or summarization around that loop.

LangGraph is the lower-level runtime beneath both LangChain agents and Deep Agents. It is the right choice when a standard agent loop is not enough, when a workflow mixes deterministic and agentic steps, or when you need to encode custom branching and control flow directly. Its durable execution, human-in-the-loop, fault-tolerance, and observability primitives support production workflows.

The practical rule of thumb is to start with Deep Agents, use LangChain when you want a leaner harness and finer control, and use LangGraph when you need a fully custom workflow or maximum determinism. The layers remain composable: LangChain or Deep Agents can run inside a larger LangGraph workflow, and custom LangGraph workflows can be exposed as subagents.

LangSmith complements all three layers with deployment, tracing, evaluation, and production observability.

Because this ecosystem moves quickly, the most reliable way to check current APIs and examples is often the official docs MCP server rather than older blog posts or tutorials. LangChain provides an MCP endpoint at https://docs.langchain.com/mcp, which can be used from tools to fetch up-to-date documentation.

LangChain

The core framework for composing modular LLM applications and agent workflows

LangGraph

An open source AI agent framework designed to build, deploy and manage complex generative AI agent workflows

Deep Agents

A standalone library in the LangChain ecosystem for building agents with planning, subagents, file-system tools, and other capabilities for complex multi-step tasks

LangSmith

A unified observability & evals platform where teams can debug, test, and monitor AI app performance