TL;DR
Production teams are dropping LangChain for direct SDKs. Why the framework's job moved into the model APIs, when it still earns its keep, and how to choose.
In 2022, building an agent meant assembling the plumbing yourself: prompt templates, tool-calling loops, memory stores, output parsers, retry logic, and a way to chain it all together without the whole thing collapsing the first time the model returned something unexpected. LangChain arrived at exactly the right moment and became the default answer to that problem. If you were building with a large language model, you were probably building with LangChain — or at least starting there.
Four years later, the conversation in production teams has flipped, and it flipped quietly. Nobody writes a blog post announcing that they removed a framework. Teams write about the things they adopt, not the things they delete. But across developer forums, GitHub issues, and the production teams who talk candidly about their stacks, a pattern has formed: the agent framework is coming out, and direct calls to the provider SDKs are going in. This article is about why that is happening, when the framework still earns its keep, and how to make the decision for your own agent instead of copying someone else's.
The quiet migration nobody writes about
LangChain shipped version 1.0 in October 2025, after three years of v0.x breaking changes. That 1.0 release was supposed to be the moment the framework stabilised — the point where the churn ended and production teams could build on it with confidence. Instead, by early 2026, production teams are quietly migrating to the OpenAI Agents SDK, the Claude Agent SDK, or direct API calls. The timing is worth sitting with: the framework reached stability at almost exactly the moment many teams decided they no longer needed it.
The migration is mostly invisible in public discourse, and the reason is simple. A team that adopts a framework writes about it: tutorials, conference talks, launch posts, hiring pages that list it as a skill. A team that removes a framework writes nothing, because there is nothing to announce. The removal shows up as a pull request titled something unremarkable — "simplify agent loop", "drop langchain dep" — and the outside world never sees it. The signal is there if you look for it in the right places: forum threads asking how to replace a chain with raw API calls, GitHub issues where maintainers explain which abstraction to peel away first, and production engineers describing, almost as an aside, that their agent is now "just the SDK and a loop". The pattern is visible enough that migration write-ups have started appearing, tracing the move from LangChain to raw SDKs in 2026 step by step.
Star counts will mislead you here, so get that out of the way early. LangChain crossed 90,000 GitHub stars in early 2026. That number is real, and it tells you something true about the framework's reach: it is one of the most widely known projects in the LLM ecosystem, it is the first thing a newcomer finds, and it remains the default starting point for a huge number of prototypes. What it does not tell you is what teams reach for when the prototype has to survive real traffic, real latency budgets, and a real on-call rotation. Stars measure discovery and enthusiasm. They do not measure what survives contact with production.
There is a harder signal, and it comes from community activity rather than from a counter on a repository page. Ant Open Source's LLM Development Landscape 2.0 report ranks LangChain, LlamaIndex, and AutoGen among the "steepest declining" projects by community activity over the past six months, with "reduced community investment from once dominant projects". In the same report, performance-optimised inference engines like vLLM and SGLang climb. Read that pairing carefully, because it is the whole story in miniature: the community's energy is moving away from the frameworks that orchestrate models and toward the engines that serve them fast and cheap. The centre of gravity has shifted down the stack, closer to the model and closer to the metal.
None of this means LangChain is dead, or that everyone using it is making a mistake. It means the default has changed. In 2022, reaching for a framework was the obvious, defensible choice, because the alternative was hand-rolling everything. In 2026, reaching for a framework is a choice that needs a reason, because the alternative — the provider's own SDK, plus a small amount of your own code — is now a serious, often better, option. The rest of this article is about what that reason would have to be.
What LangChain was built for — and what the providers took back
To judge a framework fairly, you have to remember the world it was born into. In late 2022, calling a language model meant sending a prompt and getting text back. There was no standard way to make the model call a function, no structured output guarantee, no prompt caching, and no retrieval grounding built into the API. If you wanted an agent — a loop in which the model reasons, calls a tool, reads the result, and reasons again — you had to build the loop, the tool registry, the parsing, and the error handling yourself, and you had to rebuild it for every provider you used. LangChain's promise was to absorb all of that: one interface, many models, chains and agents and memory and retrievers as composable pieces.
That promise was genuine, and for a while it was the best deal available. The problem for LangChain is not that the promise was false. The problem is that the model providers absorbed the features LangChain used to own, one by one, until the abstraction was standing on ground that had moved underneath it.
OpenAI added function calling in mid-2023. That single feature removed the largest reason to use a framework's tool-calling machinery: instead of parsing free text and hoping the model followed your format, you could declare tools in the API call and receive structured tool invocations back. Anthropic added tool use in 2024, bringing the same capability to Claude. Structured outputs, prompt caching, and retrieval grounding followed, moving into the model APIs themselves. Each of these was a feature that, a year earlier, you would have reached for a framework to get. By 2025, the providers had solved most of it themselves, in the API, with their own documentation, their own error messages, and their own guarantees.
This is the structural shift, and it is worth stating plainly: the abstraction LangChain provided in 2022 solved a temporary problem. The gap between what the raw API offered and what an agent needed was wide, and a framework was the bridge across it. By 2025, the providers had closed most of that gap themselves. The bridge is still standing, but the river is narrower, and for many teams the crossing no longer needs one. That does not make the framework useless — it makes it a choice rather than a necessity, and choices need justifying. The same diagnosis runs through recent analyses of why LangChain is quietly losing ground in production AI apps.
There is a second, quieter part of the shift. When the capability lives in the provider's API, it is documented by the provider, versioned by the provider, and debugged with the provider's error messages. When it lives in a framework, there is an extra layer between you and the model, and that layer has its own bugs, its own release cadence, and its own opinions about how your code should be shaped. In 2022 that trade was worth it, because the framework gave you things you could not get any other way. In 2026 the trade is closer, and for a growing number of teams it no longer pays.
Why teams are leaving: the five recurring complaints
Ask production teams why they removed LangChain and the same complaints recur, across developer forums, GitHub issues, and candid engineering write-ups — a pattern documented in recent surveys of why developers are quitting LangChain. They are worth listing in full, because each one maps to a real cost, and because together they explain why the migration is happening even though the framework's headline features still work.
The first complaint is over-abstraction. Prompts are hidden inside chains, chains are hidden inside agents, and agents are hidden inside executors. When the agent does something wrong — and it will, regularly, in production — the engineer trying to fix it has to excavate through layers of framework objects to find the actual prompt that was sent and the actual response that came back. The framework's job was to hide complexity; the side effect is that it hides the very things you need to see when something breaks. A senior engineer advising a peer would put it this way: abstraction is a loan, and the interest is paid in debugging time.
The second complaint is debugging complexity itself. Errors get wrapped inside framework layers, and stack traces point at framework internals rather than at your code. A failure that would be a ten-minute fix with a raw API call — a malformed tool argument, a bad JSON shape, a timeout in the wrong place — becomes an afternoon of tracing through abstractions to find out which layer swallowed the real error. This is the complaint that shows up most often in the "we removed it" stories, and it is the one with the most vivid language: engineers report codebases cut roughly in half and debugging becoming possible again after removing the framework. Treat that as a reported pattern, not a measured result — nobody ran a controlled experiment on it — but the consistency of the sentiment across independent teams is itself informative.
The third complaint is frequent breaking changes. Three years of v0.x breaking changes left a mark on the teams that lived through them, and the 1.0 release in October 2025 arrived after much of the damage to trust was done. A framework that changes its interfaces under you is a framework you cannot build institutional knowledge on. Every upgrade becomes a migration project, and every migration project is time not spent on the product. Even if 1.0 genuinely stabilises the API, the teams that were burned in the v0.x years are not rushing back to find out.
The fourth complaint is dependency bloat. Installing LangChain pulls in many integrations you will never use, and that has three costs: larger builds, slower installs, and version conflicts with the rest of your dependency tree. In a small service, the framework can be a meaningful fraction of the total dependency surface. In a large one, it is one more thing that can break a deploy for reasons that have nothing to do with your code. The bloat is not just an aesthetic objection; it is a reliability and velocity cost, paid on every build and every upgrade.
The fifth complaint is the one that ties the others together: a shift to native APIs for transparency and control. Teams are not leaving because the framework is broken. They are leaving because the native API now gives them what they need with fewer layers between them and the model, and because transparency — seeing the exact request, the exact response, the exact error — has become more valuable than the convenience the framework offers. The representative sentiment from the forums captures the mood: "I don't need frameworks to invent new operators, just stick with pythonic code." Present that as sentiment, not as a sourced quote — it is a paraphrase of a view that recurs across threads, not a line from a single interview. But the view is real, and it is widespread: the framework's cleverness stopped being worth its opacity.
None of these complaints, on its own, would kill a framework. Together, and combined with the providers closing the capability gap, they explain the quiet migration. The framework did not fail. The world around it changed, and the costs that were once acceptable stopped being worth paying.
The four options on the table
Once you accept that "use LangChain" is a choice rather than a default, the decision becomes a comparison between four genuinely different approaches. Each one is the right answer for a different team, a different stage, and a different risk appetite. The honest way to choose is to understand what each one costs you, not just what it gives you.
Option one: LangChain itself. The full framework, with its chains, agents, memory, retrievers, and integrations. Its strengths are real: it is the fastest way to get a multi-step agent running, it has the broadest integration surface of any framework in the space, and it is what most tutorials and most new hires already know. Its costs are the five complaints above — abstraction, debugging friction, upgrade churn, dependency weight, and opacity. Who it is for: teams prototyping fast, teams whose agent needs to talk to many different tools and data sources from day one, and teams where the people building the agent are not the people who will operate it at 3 a.m. Its honest limit: it is a prototyping accelerator that charges you a maintenance tax in production, and that tax grows with traffic and with the number of engineers touching the code.
Option two: direct provider SDKs. The official Anthropic and OpenAI Python clients, plus a loop you write yourself. This is the option the migrating teams are choosing, and the code comparison later in this article shows why: the loop is short, the request is visible, and the error is yours. Its strengths are transparency, control, minimal dependencies, and a debugging story that starts with your code rather than with framework internals. Its costs are that you own the loop, the retries, the fallback, and the tracing — none of which is hard, but all of which is yours to write and maintain. Who it is for: teams shipping a production agent with a defined toolset, teams that need to see exactly what was sent to the model, and teams that already have opinions about retries, timeouts, and observability. Its honest limit: you will write more code than the framework would have written for you, and the first version of that code will be less polished than the framework's tenth version.
Option three: a thin in-house wrapper. Direct SDKs plus a small router class that handles retries, model fallback, and cost caps, plus a tracing layer. This is the shape that the lean-stack reports describe: the official clients, a router, and just enough structure to keep the agent loop tidy without importing a framework's worldview. Its strengths are that it keeps the transparency of direct SDKs while removing the repetition — every agent you build reuses the same retry and fallback behaviour, and the router is a few hundred lines you fully understand. Its costs are that you are now maintaining a small internal framework, and small internal frameworks have a habit of growing. Who it is for: teams running more than one agent, teams with a cost or latency budget that needs enforcing in code, and teams that have already been burned by a framework's upgrade cycle. Its honest limit: it only stays thin if someone defends the boundary, and the person who defends it is usually the person who wrote it.
Option four: a specialist framework — PydanticAI or DSPy. These are frameworks too, but they are narrower than LangChain, and the narrowness is the point. PydanticAI gives you type checking and structured output without the bloat: your agent's inputs and outputs are typed, validated, and visible. DSPy takes a different angle, treating prompts as programs you can optimise rather than strings you hand-write. Their strengths are that each one solves one problem well instead of solving every problem adequately. Their costs are that they are younger, smaller, and less battle-tested than LangChain, and that adopting one still means adopting someone else's abstraction — just a smaller one. Who they are for: teams whose pain is specifically about output validation and type safety, or teams experimenting with prompt optimisation as a discipline. Their honest limit: a specialist framework is still a dependency, and it still has a release cadence and a breaking-change history of its own.
There is a fifth name that shows up in the lean-stack reports — CrewAI, for multi-agent setups — and it belongs in the same conversation as the specialists: a framework organised around a specific shape of problem, rather than a general-purpose agent toolkit. If your problem is genuinely multi-agent — several agents with distinct roles collaborating on a task — a framework built for that shape may earn its keep where a general framework does not. The test is the same as for everything else in this article: does it solve a problem you actually have, or does it solve a problem you might have one day?
Head-to-head: the same agent, four ways
A comparison is only useful if it compares the same thing. So here is the honest head-to-head, across the dimensions that actually decide whether a production agent survives: how fast you can build it, how fast you can debug it, how much it costs to run and maintain, how it behaves under load, and how it handles the day the provider changes something.
On time to first working agent, LangChain wins, and it is not close. A team that knows the framework can have a tool-calling agent running in an afternoon, with memory and retrieval wired in by the end of the week. Direct SDKs take longer — not much longer, a day or two rather than an afternoon, but longer, because you are writing the loop and the tool dispatch yourself. The thin wrapper is slower still on the first agent, because you are building the router before you build the agent, but it pays that cost back on the second agent. The specialists sit in between: faster than raw SDKs for their specific problem, slower than LangChain for everything else.
On debugging, the ranking inverts. Direct SDKs win, because the stack trace is yours and the request is visible. The thin wrapper is nearly as good, with one extra layer that you wrote and therefore understand. PydanticAI is strong here too, because typed outputs fail loudly and precisely rather than silently and strangely. LangChain is last, for the reasons in the complaints section: wrapped errors, hidden prompts, and layers that have to be excavated before the real problem is visible. This inversion matters more than the build-speed ranking, because you build an agent once and debug it for its entire life. Optimising for the afternoon you build it, at the cost of every afternoon you debug it, is a bad trade — and it is the trade the framework quietly asks you to make.
On dependency weight and build health, direct SDKs win again, by a wide margin. The official clients are small, focused, and versioned conservatively. LangChain is the heaviest option by far, with the largest install surface and the most version-conflict surface. The thin wrapper adds almost nothing to the direct-SDK footprint. The specialists are light compared with LangChain, though heavier than the raw clients. If your deploy pipeline has ever broken because a transitive dependency changed, you already know how much this dimension is worth.
On behaviour under load, the picture is more nuanced. Nothing in the framework-versus-SDK choice changes what the model does; it changes what happens around the model. Retries, timeouts, fallback, and cost caps are where load behaviour is decided, and the direct-SDK and thin-wrapper approaches force you to write those explicitly, which means you know exactly what they do. LangChain provides them, but through its own abstractions, and the behaviour under failure is harder to predict and harder to test. One practitioner shop reports stripping LangChain back once traffic crosses roughly 5,000 requests per day, replacing it with direct SDK calls plus a small router and a tracing layer. Present that as one reported pattern, not a universal threshold — it is a single shop's experience, not a measured rule, and your threshold will depend on your traffic shape, your latency budget, and your tolerance for debugging framework internals under load. But the shape of the pattern is instructive: the framework is fine until the traffic is real, and then the team that owns the loop is the team that can fix the loop.
On provider changes, direct SDKs have the cleanest story: when the provider ships a new capability, the official client gets it first, documented by the people who built it. LangChain has to wrap it, and the wrapping takes time and introduces its own bugs. The specialists are in the same position as LangChain, though their narrower surface means less wrapping to do. The thin wrapper inherits the direct-SDK advantage, plus the cost that you have to update your router when the provider changes something your router depends on — a small cost, and one you control.
On hiring and onboarding, LangChain has a genuine advantage that the other options do not: it is what the market knows. A new hire has probably used it, a tutorial probably uses it, and a candidate's CV probably lists it. Direct SDKs are easy to learn — the loop is short and the API is documented — but there is less shared vocabulary around them, and your thin wrapper is, by definition, known only to your team. This is a real cost, and it is the one most often underweighted by the teams who leave the framework: the framework was also a hiring signal and a shared language, and when you remove it you have to replace both with documentation of your own.
The summary is not that one option wins on every dimension. It is that the dimensions have different weights at different stages, and the framework wins the dimensions that matter early — build speed and hiring — while the direct approaches win the dimensions that matter late — debugging, maintenance, and behaviour under load. That is why the migration pattern looks the way it does: prototype with the framework, ship to staging, and strip it back when the traffic is real.
The code, side by side
Comparisons in prose are easy to argue with. Code is harder to argue with, because you can count the lines and read the control flow. So here is the same tool-calling agent loop written twice: first with the direct Anthropic SDK, then with the LangChain equivalent. Read them both, then ask which one you would rather debug at 3 a.m.
The direct version is a loop you can hold in your head. You build the client, you declare the tools, you send the messages, and when the model asks for a tool you run it and feed the result back. There is no hidden state. The request you sent is the messages list in front of you, and the response is the object the API returned.
import anthropic
client = anthropic.Anthropic()
TOOLS = [
{
"name": "get_weather",
"description": "Current weather for a city.",
"input_schema": {
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"],
},
}
]
def run_tool(name: str, args: dict) -> str:
if name == "get_weather":
return f"Sunny, 24C in {args['city']}."
raise ValueError(f"Unknown tool: {name}")
def run_agent(user_message: str, max_steps: int = 8) -> str:
messages = [{"role": "user", "content": user_message}]
for _ in range(max_steps):
response = client.messages.create(
model="claude-sonnet-4-5",
max_tokens=1024,
tools=TOOLS,
messages=messages,
)
messages.append({"role": "assistant", "content": response.content})
tool_uses = [b for b in response.content if b.type == "tool_use"]
if not tool_uses:
return "".join(b.text for b in response.content if b.type == "text")
tool_results = [
{
"type": "tool_result",
"tool_use_id": block.id,
"content": run_tool(block.name, block.input),
}
for block in tool_uses
]
messages.append({"role": "user", "content": tool_results})
return "Stopped: hit the step limit."The LangChain version does the same job. It is not a bad version — it works, and for many teams it was the first version that ever worked. But notice what you have to know before you can read it: what a ChatAnthropic is, what bind_tools returns, what an agent executor does with the intermediate steps, and where the prompt, the tool definitions, and the loop each live. The control flow is not in front of you; it is distributed across framework objects, and the loop itself is inside the executor rather than in your code.
from langchain_anthropic import ChatAnthropic
from langchain_core.tools import tool
from langchain.agents import create_tool_calling_agent, AgentExecutor
from langchain_core.prompts import ChatPromptTemplate
@tool
def get_weather(city: str) -> str:
"""Current weather for a city."""
return f"Sunny, 24C in {city}."
prompt = ChatPromptTemplate.from_messages([
("system", "You are a helpful assistant. Use the tools when needed."),
("human", "{input}"),
("placeholder", "{agent_scratchpad}"),
])
llm = ChatAnthropic(model="claude-sonnet-4-5", max_tokens=1024)
agent = create_tool_calling_agent(llm.bind_tools([get_weather]), [get_weather], prompt)
executor = AgentExecutor(agent=agent, tools=[get_weather], max_iterations=8)
result = executor.invoke({"input": "What is the weather in Lisbon?"})
print(result["output"])Count what matters, not just the lines. In the direct version, the loop, the tool dispatch, and the step limit are all visible in one function, and a failure in any of them points at a line you wrote. In the framework version, the loop lives inside AgentExecutor, the prompt lives inside a template object, and the tool definitions are declared twice — once as a decorated function and once in the executor's tool list. When the agent misbehaves, the first question is always the same: is the bug in my code, or in the framework's handling of my code? With the direct version, that question never arises, because there is no framework handling to blame.
The third piece of code is the one the lean-stack reports describe most often: a tiny router that sits in front of the direct SDK calls and handles the three things every production agent needs — retries, model fallback, and cost caps. This is the thin wrapper, in its entirety. It is not a framework. It is a class, and you can read all of it in a minute.
class Router:
"""Retries, model fallback and a per-request cost cap for direct SDK calls."""
def __init__(self, client, models, max_cost_usd=0.05):
self.client = client
self.models = models # ordered: primary first, fallbacks after
self.max_cost_usd = max_cost_usd
def create(self, messages, tools, max_tokens=1024):
last_error = None
for model in self.models:
for attempt in range(3):
try:
response = self.client.messages.create(
model=model,
max_tokens=max_tokens,
tools=tools,
messages=messages,
)
return response # cost accounting happens in the caller, from usage
except Exception as exc: # retry transient errors, fall through otherwise
last_error = exc
raise last_errorThat router is deliberately incomplete — cost accounting, backoff timing, and logging belong in the caller, where your observability already lives — but its shape is the point. The things a framework gives you are not magic. They are a loop, a retry policy, a fallback list, and a cost check. You can write them yourself in an afternoon, you can test them yourself, and you can change them yourself when your requirements change. The question is not whether you can write them. The question is whether you would rather own them or rent them from a framework, and what the rent costs you in debugging time.
Before you ship any of this, remember that the loop is only half the agent. The other half is knowing whether it is any good, and that means evals. A golden set of representative prompts, scored on every change, is what stops a prompt tweak from silently breaking production — the same discipline covered in our guide to LLM evals in production, and the CI gates that make those evals blocking rather than advisory are described in AI eval infrastructure. An agent without evals is an agent you cannot safely change, whichever stack it is built on.
When LangChain still earns its keep
A fair article has to say when the framework is still the right call, and there are real cases. The first is prototyping. When the question is "can this agent do the job at all?", speed matters more than maintainability, and LangChain's breadth — chains, agents, memory, retrievers, integrations — lets you test an idea in days rather than weeks. Prototype with LangChain, ship to staging: that is the reported pattern, and it is a good one, because the cost of the framework is low when the traffic is zero and the team is one person.
The second case is breadth of integrations. If your agent needs to talk to a dozen different data sources, vector stores, and tools from day one, the framework's integration surface is genuinely valuable. Writing a dozen integrations by hand is real work, and the framework has already done it. The trade is that you are buying breadth with opacity, and you should make that trade with your eyes open — and revisit it when the integration list settles down to the three or four you actually use.
The third case is a team that does not have the seniority to own the loop yet. A junior team, or a team building its first agent, benefits from the framework's opinions: it tells them what a tool-calling loop looks like, what memory means, and how retrieval fits in. The framework is, in that role, a teacher as much as a tool. The honest limit is that the lesson has an expiry date: once the team understands the loop, the framework's opinions become constraints rather than guidance, and that is usually when the migration conversation starts.
The fourth case is the one most often overlooked: when your organisation has already standardised on LangChain, with shared patterns, shared observability, and people who know how to debug it. A framework's cost is partly a function of how many people share it. If your team has already paid the learning cost and built the debugging muscle, the case for removing it is weaker than it is for a team starting from scratch. Standardisation is a real benefit, and it should be weighed alongside the technical arguments.
What all four cases have in common is that they are conditional. The framework earns its keep when the prototype is fast, when the integrations are broad, when the team is learning, or when the organisation has already standardised. None of those conditions is permanent. Prototypes become products, integration lists shrink, teams learn, and standards get revisited. The teams that migrate are not teams that were wrong to start with LangChain. They are teams whose conditions changed, and who noticed.
Architecture Decision
Decision: Build production agents on the direct provider SDKs plus a thin in-house router and tracing layer, and keep LangChain for prototypes and for integration-heavy spikes that have not yet settled.
Context: The model providers absorbed the capabilities LangChain used to own — function calling arrived in mid-2023, Anthropic tool use in 2024, and structured outputs, prompt caching, and retrieval grounding moved into the model APIs. At the same time, LangChain crossed 90,000 GitHub stars while its community activity declined, with the Ant Open Source LLM Development Landscape 2.0 report ranking it among the "steepest declining" projects. Our agents need to be debuggable by the on-call engineer, cheap to change, and testable under failure.
Options considered: (1) Stay on LangChain for everything, accepting the debugging and dependency costs in exchange for build speed and hiring familiarity. (2) Direct provider SDKs with a hand-written loop, owning retries, fallback, and tracing ourselves. (3) A thin in-house wrapper — direct SDKs plus a small router class for retries, model fallback, and cost caps. (4) A specialist framework such as PydanticAI for typed, structured output, or DSPy for prompt optimisation.
Why this one: Direct SDKs plus a thin router keeps the request, the response, and the error visible in our own code, which is the property that matters most over an agent's lifetime. The router is a few hundred lines we fully understand, so it can be changed without a migration project. LangChain stays in the toolbox for the job it is genuinely best at — getting a prototype running fast — rather than being the default for everything. PydanticAI remains an option for agents where typed output validation is the dominant pain.
What it costs you: We write the loop, the retries, and the fallback ourselves, and we own their bugs. New hires cannot lean on shared LangChain knowledge; our router and our loop need documentation of their own. The first agent takes a day or two longer than the framework version would. And we give up the framework's integration breadth, so an agent that needs a dozen integrations will take longer to wire up.
When to reverse it: If our agent count grows past the point where every team is re-implementing the same loop with different bugs, revisit a shared framework — whether that is our own router grown into a library, or a specialist framework that has earned its place. If the providers regress on capability or a new framework emerges that genuinely closes a gap the SDKs leave open, re-evaluate. And if a prototype built on LangChain turns out to need its full integration surface in production, keep it on the framework rather than migrating for ideological reasons.
The recommendation — and when not to use any of this
So, the recommendation. If you are starting a prototype today, start with LangChain. It is still the fastest way to find out whether your agent idea works, and the cost of that speed is low while the traffic is zero. If you are shipping a production agent — one with real users, real latency expectations, and a real on-call rotation — build it on the direct provider SDKs, add a small router for retries, fallback, and cost caps, and add a tracing layer so you can see what the agent actually did. If your dominant pain is output validation, look at PydanticAI. If your dominant pain is prompt optimisation, look at DSPy. And if your problem is genuinely multi-agent, look at CrewAI. Choose the tool that matches the problem you have, not the problem the framework was built for in 2022.
There are also cases where none of this applies, and they are worth naming, because the framework decision is not the only decision and it is not always the important one. If your agent is a thin wrapper around a single model call with one tool, you do not need a framework and you do not need a router either — you need a function. If your agent's real problem is evaluation, retrieval quality, or prompt design, changing frameworks will not fix it, and the time is better spent on a golden set and on measuring. If you have not yet proven that anyone wants the agent, do not spend a week on the stack decision at all: build the ugliest version that works, show it to a user, and let their reaction decide whether there is a product worth engineering. The teams that do the most damage with this decision are not the ones that pick the wrong framework. They are the ones that spend a month picking a framework for an agent nobody has asked for.
The quiet migration is not a verdict on LangChain. It is a verdict on a particular moment in the ecosystem: the moment when the providers closed the gap the framework was bridging, and the framework's costs became visible against a cheaper, more transparent alternative. Frameworks do not die when they are wrong. They fade when the problem they solved stops being a problem — a shift toward leaner LLM architectures that the collapse-of-LangChain analysis traces across the framework landscape. LangChain solved a real problem, in a real year, for a real set of teams. The question for your team is whether that problem is still your problem — and if it is not, whether you are still paying for the solution.
For a sense of where this sits in the wider shift toward agents that ship rather than agents that demo, the teams building autonomous coding and review agents face the same trade — framework convenience against the transparency of owning the loop — and the write-up of autonomous PR agents built with Kiro and Claude shows what the direct-SDK end of that trade looks like in practice. The through-line is the same in both cases: the closer you sit to the model, the more you can see, and the more you can see, the faster you can fix what breaks. That is the whole argument, and it is the only argument that matters at 3 a.m.
Why This Matters
Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.
Trade-offs to Consider
Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.
When NOT to Use This
Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.
Decision Framework
Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.