medium.com 13 min read Original Source

LangChain and LangGraph are DEAD? So what to USE!!

It is no more a hidden secret that the use case why Langraph and Langchain came into picture and solved the problems for us, have become 2X complicated. So what is next?

Embedded content

How did the existence happen?

Let’s take a step back and go to the year 2023 when ChatGPT had just blown up. Every developer suddenly wanted to build “an app with AI in it.” But when you actually sat down to build something beyond a basic chatbot, you were stuck.

Calling an LLM API is easy which meant sending one HTTP request and getting a response back. The problem is that real applications need a lot more than one request. Think about what a useful AI app actually needs to do:

  • Take a user’s question, but first look up relevant information from a company’s internal documents before answering, basically a RAG pipeline (Will cover RAG in detail in the next article).
  • Remember what the user said three messages ago (that’s memory).
  • Decide whether to search the web, query a database, or just answer from its own knowledge (that’s tool use).
  • If the first answer isn’t good enough, try again with a different approach (that’s a loop).
  • Connect to OpenAI today, but maybe swap to Anthropic tomorrow without rewriting everything (that’s abstraction over providers).

Sounds good, right?

But in early 2023, none of this was built into the model APIs. OpenAI gave you a chat.completions endpoint. If you wanted any of the above, you had to write it yourself, from scratch, every time. And everyone was writing the same boilerplate → connect to vector DB, chunk documents, format prompts, parse outputs, handle retries.

This is the problem statement that Langchain wanted to solve.

How did it come into picture?

In late 2022, Harrison Chase who was an ML engineer at Robust Intelligence, a Bay Area company did the critical work of testing and validating machine learning models in production. For three years, Chase confronted the gap between research prototypes and production systems.

He’d spent years watching ML systems break in messy real-world ways, which turns out to be excellent preparation for what was about to happen.

In October, 2022, at a company hackathon, he built a bot capable of querying internal data from Notion and Slack. The same October month when ChatGPT was about to drop, and Chase had stumbled into the exact pattern of connecting an LLM to your own data and tools that the entire industry was about to need. His first tweet about the project went out on October 24, 2022. He called it LangChain, short for Language Model Chains, and open-sourced it under MIT.

Interestingly, ChatGPT launched roughly a month later and every developer suddenly who wanted to build “an app with AI in it” had LangChain sitting on GitHub with exactly what was needed.

What LangChain actually is?

To explain what they had really built, we can understand in one line that LangChain is a Python (and later JavaScript) library that gave developers pre-built Lego blocks for all those repetitive pieces. The core idea is right there in the name that you chain together a sequence of steps that involve an LLM.

A typical chain might look like:
take user input → pull relevant docs from a vector database → stuff those docs into a prompt template → send it to the LLM → parse the output → return it to the user. LangChain gave you a class or a function for every one of those steps, and a way to glue them together.

It also gave you adapters. For example:

  • Want to use Pinecone as your vector DB? There’s a wrapper.
  • Want to switch to Weaviate next week? Same interface, different wrapper underneath.
  • Same for LLM providers (OpenAI, Anthropic, Cohere, local models), document loaders (PDF, Notion, Google Drive, web scraping), and output parsers.

But things eventually changed..

Even though Langchain was a huge buzz amongst developers, by mid-2024, Chase and his team had a problem they couldn’t fix by shipping more integrations.

LangChain’s success had pulled it into use cases it was never designed for. If we understood from the previous section, the original mental model was a chain, a straight line of steps from input to output that would fit the 2023 wave of “chat with your PDFs” apps almost perfectly.

But teams had started building something more ambitious: agents that could think for several minutes, call tools repeatedly, hand work off to other agents, pause for a human to approve a decision, and resume from where they left off. Now, when you see this, this doesn’t quite fit in the single line working model!

And eventually complaints started rolling in.

  • Octomind, a YC company that had built its entire product on LangChain, published a postmortem in 2024 explaining why they ripped it out. Their core issue was that they needed to dynamically change which tools an agent could use based on what the agent had already discovered, and LangChain gave them no way to inspect or modify the agent’s state mid-run. They had to dumb down their product to fit the framework. That story landed hard in the developer community because everyone building serious agents was hitting some version of the same wall.

Chase’s team saw it too and understood the linear shape of the model needed to change.

LangGraph was that different shape.
It launched in early 2024 and went publically available in October 2025, and the shift in the name is the shift in the entire idea. Chase shifted the model from chain (a straight line) to graph which is a network of nodes connected by arrows that can loop, branch, and have conditions.

Here’s the mental model:

In LangChain, you describe your app as a recipe: do step A, then step B, then step C, return the result.

In LangGraph, you describe your app as a map.
There are nodes (each node does some piece of work, often involving an LLM call) and edges (rules about which node to go to next).
The arrows can point backwards telling that node B can route back to node A if the LLM’s output wasn’t good enough.
They can branch like node A might send work to B, C, or D depending on what the user asked for.
They can pause where a node can stop everything and wait for a human to click “approve” before the agent continues.

Imagine a customer support agent for a healthcare app.
A user writes in with a vague complaint.
In a LangChain world, you’d build a linear flow:

classify the issue → look up the user → fetch their recent history → generate a response → send it.
In this model, even if the classification was wrong, the chain wouldn’t stop and has probably already moved on.

In a LangGraph world, you’d model the same thing as a graph.

  1. A “triage” node classifies the issue and routes to one of three specialist nodes.

  2. The specialist node fetches data, drafts a response, and routes to an “approval” node that pauses the entire agent until a human reviews it.

  3. If the human rejects the draft, the graph routes back to the specialist with the rejection reason in state, and it tries again.

If anything fails, you can pull up the agent two days later, see exactly what it did at every step, and resume it from any checkpoint. That is the power of LangGraph!

Where LangGraph gets used today:

  • Multi-agent systems, where one agent hands off to another: a research agent passes findings to a writing agent, which passes a draft to a critic agent that sends it back for revisions.
  • Long-running agents that work on a task for minutes or hours rather than seconds: Anthropic’s Claude Code, Cognition’s Devin-style coding agents, and OpenAI’s deep research products all use LangGraph-style architectures (some literally on LangGraph, some on their own re-implementations of the same idea).
  • Anything with human-in-the-loop approval steps: This matters enormously in regulated domains like healthcare, finance, legal, where you legally cannot have an AI take certain actions without a human signing off.
  • Customer support flows where the agent has to escalate, retry, or branch based on conditions in ways a simple chain can’t express.
  • Research and analysis agents that need to plan a task, execute parts of it, evaluate the results, and decide whether to keep going or change strategy.

Anthropic released the Claude Agent SDK with native state management, tool use, and sub-agents. OpenAI shipped the Agents SDK with built-in handoffs and guardrails. AWS open-sourced Strands.

But why do we say it is DEAD?

If you’ve been on developer Twitter in the last six months, you’ve seen some version of the same claim: LangChain is dead, LangGraph is bloated, everyone serious is ripping it all out. The replies are full of alternatives like Pydantic AI, CrewAI, the Claude Agent SDK, the OpenAI Agents SDK, “just use the raw API.”

While everyone was arguing about which framework would replace LangChain, LangChain the company built something else.

In October 2025, they raised $125 million at a $1.25 billion valuation. The product driving that round wasn’t LangChain. It wasn’t LangGraph either.

It was LangSmith, their observability platform and it works with frameworks they don’t own.

Now, what is Langsmith and why is it important for us to know, I will cover the deep-dive in the next blog post!

The 2026 framework landscape: what people are actually using

Below are the seven frameworks I’d actually consider if I were starting a new LLM project today, grouped by category, with honest notes on when each one fits and when it doesn’t.

I’ll be opinionated.

You should disagree where your context differs from mine.

Category 1: Provider-native SDKs

This is the new default starting point for most teams. The model providers have built enough first-party tooling into their own SDKs that you can skip the framework layer entirely for a lot of use cases.

Claude Agent SDK

Anthropic’s official SDK for building agents on Claude. Extracted from Claude Code (the coding agent powering Anthropic’s own product), it ships with native support for tool use, MCP, computer use, extended thinking, and context management. Released as a standalone SDK in 2025 after Claude Code proved out the patterns.

Why to use it?
Best-in-class for long-horizon agents that need to operate in an execution environment like read files, run code, use computers, manage their own context over many turns. The MCP integration is native, which means plugging in tools is genuinely a few lines of code. If you’ve committed to Claude as your model, this is the lowest-friction path to a production agent.

Why not to use it?
You’re locked into Anthropic. If you need to switch model providers or run multiple in parallel, you’ll be re-implementing the harness for each. Also overkill for simple chatbots or single-turn applications — for those, just call the Messages API directly.

How to start?

pip install claude-agent-sdk

The Anthropic docs have a quickstart that gets you to a working agent with tool use in under fifty lines of code.

The Claude Cookbooks repo on GitHub has reference implementations for the five common agent patterns.

OpenAI Agents SDK

What it is:

OpenAI’s production-grade agent framework, evolved from their earlier experimental Swarm project. Launched in March 2025.

Designed specifically around multi-agent coordination where one agent hands off to another, sessions get tracked automatically, and guardrails validate inputs and outputs.

Why use it:

Because this is the cleanest multi-agent ergonomics in the field if you’re on OpenAI models. Handoffs between specialized agents are first-class primitives where you declare a triage agent that routes to a billing agent or a tech-support agent and the SDK handles the protocol.

Built-in tracing means you can debug agent runs without bolting on a separate observability tool, at least initially.

Why not:

Because it is restricted to OpenAI. The handoff model is opinionated and may not fit your architecture if you want a different shape (say, a graph instead of a tree of agents). And the built-in tracing is fine for development but most production teams will still want a dedicated observability layer on top.

How to start:

pip install openai-agents.

OpenAI’s docs walk through building a multi-agent customer support bot in about thirty minutes, which is a good first project because it exercises the handoff pattern directly.

AWS Strands Agents

This is AWS’s open-source agent framework, integrated with Amazon Bedrock for inference and AgentCore for managed deployment. Despite the AWS branding, it’s genuinely model-agnostic as it supports Bedrock, Anthropic, OpenAI, Ollama, and anything OpenAI-compatible.

Why use it

The right pick if your infrastructure already lives in AWS.

  • AgentCore handles the operational layer from deployment, scaling, monitoring that you’d otherwise have to wire up yourself.
  • Model-agnostic design means you’re not locked in even though it’s an AWS product.

Why not

If you’re not on AWS, the integration story loses most of its value and you’d be picking it for the framework alone, where other options have more momentum. Documentation is improving but still thinner than Claude Agent SDK or OpenAI Agents SDK.

How to start

pip install strands-agents.

The Strands docs on AWS have a tutorial that uses Bedrock for inference, but you can swap the model layer to any provider in the configuration.

Category 2: Orchestration frameworks

These are for when a single agent loop isn’t enough and when you need explicit state, branching logic, human approval gates, or coordination between multiple specialized agents. The provider SDKs handle the simple cases. These handle the cases that get hard.

LangGraph

This is the graph-based orchestration framework from the LangChain team. Models your agent as a network of nodes (work) and edges (transitions), with explicit state that you can checkpoint, inspect, and resume and is over 47 million monthly downloads already.

Why use it

  • The cleanest answer in the field for stateful, branching workflows with human-in-the-loop steps.
  • If your agent needs to pause for approval before taking an irreversible action, route conditionally based on what it has discovered, or persist its state to disk and resume hours later, LangGraph models all of this as first-class primitives.
  • Used in production by Anthropic’s Claude Code (for portions of the architecture), Cognition’s Devin, OpenAI’s deep research, and many enterprise agent platforms.

Why not

  • Could be an overkill if your application is a single loop.
  • The learning curve is real and you have to think in terms of nodes, edges, and state schemas, which is a step up from just calling an SDK.
  • Also, the integration with LangChain itself can pull in more dependencies than you want if you’re not careful about which packages you import.

How to start

pip install langgraph.

The LangGraph docs have a tutorial that walks through building a customer support agent with handoffs and approval steps, which exercises the framework’s strengths better than a toy example.

Pydantic AI

It is a typed, lightweight agent framework from the team behind Pydantic — the type-validation library most Python developers already use. It was released in late 2024 and has been rapidly adopted by teams who wanted control without ceremony.

Why use it

Because it is the “I’d rather have types than magic” choice.

  • You describe your agent’s inputs and outputs as typed Python objects, define tools as typed functions, and the framework handles the LLM interaction.
  • No chains, no graphs, no abstractions you have to learn. Just typed code that happens to call an LLM.
  • If you’ve ever debugged a LangChain output parser, Pydantic AI is what you wished you’d been using.

Why not

  • No first-class multi-agent graph model.
  • If you need explicit state machines or human-in-the-loop branching, you’ll be building those patterns on top yourself.
  • Also Python-only at the moment, so no good for TypeScript-first teams.

How to start

pip install pydantic-ai.

The Pydantic AI docs have a first-agent example that takes about ten minutes to work through and gives you a feel for the typed approach immediately.

CrewAI

It is a role-based multi-agent framework.

You define a “crew” of agents with specific roles like researcher, writer, critic and CrewAI handles the coordination. It has already reached version 1.14 in 2025 with A2A protocol support.

Why use it

  • This is probably the fastest way to prototype a multi-agent idea.
  • The role abstraction matches how people naturally think about teams of agents, which means you can go from concept to working demo in an afternoon.
  • Good fit for content workflows, research tasks, and anything where the “team of specialists” mental model fits the problem.

Why not:

The role abstraction that makes it fast to prototype also limits how much control you have over execution at scale. Production teams sometimes hit the same wall they hit with LangChain that is the framework’s opinions don’t match what they need their agents to do and migrate to LangGraph or raw SDKs.

How to start:

pip install crewai.

The CrewAI docs have a starter that builds a research-and-writing crew, which is the use case the framework was built for and where you’ll feel its strengths most directly.

Category 3: The research-first option

Worth knowing if your work bridges research and production.

CAMEL-AI (with OWL)

Originally an academic research project out of KAUST in 2023, asking “what happens when LLM agents talk to each other in defined roles, and can we study that interaction at scale?”

Is now a production-capable framework with up to a million-agent simulation support.
OWL is the practical layer built on top and has hit #1 on the GAIA benchmark among open-source general agents in 2025, accepted to NeurIPS 2025.

Why use it:

It is probably the strongest fit when your problem looks like a society of agents rather than a pipeline with agents in it.

Synthetic data generation at scale, large-scale agent simulation, multi-agent research workloads, cross-environment automation is where you’ll need OWL. The synthetic data pipelines are genuinely useful even if you don’t care about the simulation side because they ship with Chain-of-Thought, Self-Instruct, and Source2Synth methods with verifiers, which is closer to a real research workflow than what most frameworks offer.

Why not:

It could be an Overkill for product engineering. If you’re building a customer-facing agent that needs to ship in three weeks, this is not the framework to pick. It’s a research-first tool that happens to be production-capable, not the other way around.

How to start:

pip install camel-ai.

The CAMEL-AI docs have a role-playing example that demonstrates the original concept (two agents collaborating on a task) and a separate OWL quickstart for the production-oriented features.

You’ll notice I didn’t include AG2, Semantic Kernel, smolagents, Haystack, or LlamaIndex. They’re real and some teams use them well, but they either occupy specialized niches (Haystack for EU compliance, LlamaIndex for RAG-heavy applications, Semantic Kernel for .NET shops) or haven’t shown the production momentum of the seven above. If your context maps cleanly to one of those niches, those frameworks are worth looking at.

Hope this article helps you and genuinely gives you enough alternatives!

What we have build using these alternatives, I will be posting that next along with Observability options. Thank you for reading 🙂