AwsAdvanced

AgentCore vs Strands vs LangGraph: Layers, Not Rivals

DeveloperHat Team
20 min read

TL;DR

LangGraph, Strands Agents, and Bedrock AgentCore are not rivals — they are layers. Which one authors your agent, which one runs it, and the seam between them.

The question everyone types into a search box — "AgentCore vs Strands vs LangGraph" — assumes a three-way race with one winner. It is the wrong shape. These three sit at different layers of the same stack. LangGraph is the framework that owns your orchestration logic: you draw the graph, it runs it. Strands Agents is the framework that hands the steering wheel to the model: you give it tools, it decides the path. AgentCore is the managed platform that runs either one in production, with session isolation, identity, policy, and observability attached. Comparing them head to head is like comparing a recipe, a chef, and a kitchen.

That layering is the whole decision. You pick an authoring framework for how much control you want over the agent's path, and you pick a runtime platform for how much operations you want to own. The seam between them — where your code ends and the platform begins — is where most production agent projects actually succeed or fail. This article walks the three layers, shows the same kind of agent written in both frameworks, deploys it to AgentCore Runtime, and ends with a default stack for a team starting in late 2026. Dates and prices are verified against AWS, Strands, and LangChain sources as of 30 November 2026.

Three layers, one stack — author above, operate below LangGraph explicit graph · state Strands Agents model-driven · tools Your own loop any code at all AgentCore Runtime one Firecracker microVM per session Memory short + long term Gateway · Identity MCP tools + credentials Policy · Observability Cedar rules + traces The frameworks author the agent; the platform operates it. The seam is a deploy command.

The framing error: three layers, not three rivals

The 2026 framing error comes from treating every new AWS announcement as a replacement for the last one. It is not. AWS's own AgentCore landing page says the platform works with "any framework, any model" — AgentCore is designed to host agents built with LangGraph and Strands, not to replace them. The AWS machine-learning blog has published guides deploying LangGraph agents on AgentCore Runtime, and the Strands documentation has a full deployment guide for putting Strands agents on the same runtime. If the vendor's own docs show all three working together, a comparison that forces you to pick one has already gone wrong.

Here is the honest map. LangGraph is an open-source library from the LangChain team: you define state, nodes, and edges, compile the graph, and the Pregel runtime executes it as a state machine. Strands Agents is an open-source SDK from AWS: you define tools and a system prompt, and the model drives an agent loop that calls them. AgentCore is an AWS managed service that went generally available on 13 October 2025 after a preview that began on 16 July 2025: it provides Runtime, Memory, Gateway, Identity, Policy, Observability, Evaluations, Browser, Code Interpreter, and Harness as separate services you compose. One is a graph engine, one is a model-driven loop, one is the floor they both stand on.

Who each one is for follows from that map. LangGraph is for teams whose agent must follow a path a reviewer can audit — a fixed sequence of steps with named decision points. Strands is for teams who want the smallest amount of code between an idea and a working agent, and are willing to let the model choose the route. AgentCore is for teams already on AWS who would rather pay per second for session isolation, credential handling, and policy enforcement than build and operate those pieces themselves. You can use all three at once, and the most common production shape in 2026 does exactly that: author in LangGraph or Strands, operate on AgentCore.

LangGraph: the framework that owns the graph

LangGraph's bet is that the graph should be explicit. You declare a shared state object, register nodes that read and update it, wire them with edges, and mark conditional routing where a node or the model decides the next step. The graph is compiled before it runs, which is where you attach persistence: a checkpointer snapshots the full state after every superstep, keyed by a thread ID, so a run can pause, crash, or wait for a human and resume from the last checkpoint. That is the feature that separates LangGraph from a hand-rolled loop — durable execution is configuration, not plumbing you write yourself.

The cost of explicitness is a safety rail you will meet in production: LangGraph enforces a default recursion limit of 25 supersteps per invocation and raises a GraphRecursionError when a run exceeds it. A ReAct-style loop consumes roughly two supersteps per tool round trip, so the default budget covers about twelve iterations before the run stops. That is a deliberate backstop against an agent looping forever on your bill, and the fix is to set the limit explicitly when a workflow legitimately needs more steps — never to remove it. Human-in-the-loop works the same way: an interrupt pauses the graph at a named node, a person approves or edits, and the run resumes from the checkpoint.

from langgraph.graph import StateGraph, START, END
from langgraph.checkpoint.memory import InMemorySaver
from typing import TypedDict

class TicketState(TypedDict):
    ticket: str
    summary: str
    approved: bool

def triage(state: TicketState) -> TicketState:
    # Classify the ticket; returns a partial state update.
    return {"summary": "billing: refund request, $42"}

def draft_reply(state: TicketState) -> TicketState:
    return {"summary": state["summary"] + " | draft ready"}

def route(state: TicketState) -> str:
    return "draft_reply" if "billing" in state["summary"] else END

builder = StateGraph(TicketState)
builder.add_node("triage", triage)
builder.add_node("draft_reply", draft_reply)
builder.add_edge(START, "triage")
builder.add_conditional_edges("triage", route)
builder.add_edge("draft_reply", END)

graph = builder.compile(checkpointer=InMemorySaver())
result = graph.invoke(
    {"ticket": "Customer charged twice for order 4815"},
    config={"configurable": {"thread_id": "ticket-4815"}, "recursion_limit": 40},
)

The skeleton shows the whole philosophy in a dozen lines: the path is visible before the model ever runs, the state shape is typed, and persistence is one argument to compile. In production you swap InMemorySaver for a durable checkpointer such as Postgres, because the in-memory saver loses everything when the process exits. The managed alternative is LangSmith Deployment — formerly LangGraph Platform, renamed in October 2025 and now documented as LangSmith Agent Server as of November 2026 — which hosts the same graph with tracing, cron triggers, and evaluation built in. LangGraph itself reached 1.0 in October 2025, so the core API carries a backward-compatibility commitment. The LangGraph documentation is the reference for the graph API.

LangGraph is the right authoring choice when the path matters as much as the answer: support triage with a mandatory human approval before a refund, a compliance review chain where every step must be logged, a data pipeline where the order of operations is a correctness requirement. It is the wrong choice when the workflow is genuinely open-ended and you would spend more time drawing edges than the agent spends following them.

Strands Agents: the model decides the graph

Strands makes the opposite bet: the model is good enough to drive, so stop drawing it a map. You write a system prompt, hand the agent a list of tools, and the agent loop decides which tool to call, in what order, and when the answer is done. The entire agent in the quickstart is three lines: create the agent, give it a prompt, call it. That is not a toy demo — it is the design. Strands reached 1.0 on 15 July 2025, and the release added the four multi-agent primitives that make the model-driven approach scale past a single agent: Agents-as-Tools, where an orchestrator calls specialist agents the way it calls functions; Graph, where you define a deterministic flow of agents for the steps that must run in a fixed order; Swarm, where peer agents hand work to each other; and Workflow, a fixed task graph run as a single tool. A2A support lets agents running as separate services delegate to each other.

The tool model is the part to learn first. Any Python function becomes a tool with the @tool decorator: the function name becomes the tool name, the docstring becomes the description the model reads, and the type hints become the input schema. Strands ships vended tools for common jobs such as editing files and running shell commands, and the SDK installs with pip install strands-agents on Python 3.10 or newer, with Amazon Bedrock as the default model provider. A TypeScript SDK exists under the same model-driven design for Node.js teams.

from strands import Agent, tool

@tool
def lookup_order(order_id: str) -> dict:
    """Look up an order by ID and return its status and total.
    Args:
        order_id: The order number from the customer message.
    """
    orders = {"4815": {"status": "charged twice", "total": 42.00}}
    return orders.get(order_id, {"status": "not found", "total": 0.0})

agent = Agent(
    tools=[lookup_order],
    system_prompt=(
        "You triage support tickets. Always look up the order "
        "before answering, and never promise a refund."
    ),
)
agent("Customer says they were charged twice for order 4815.")

The honest limit of the model-driven approach is debuggability. When the path is chosen at runtime, a bad run leaves you reconstructing why the model picked tool A instead of tool B, and a loop with no guardrail can burn tokens until something external stops it. Strands answers that with the 1.0 primitives — use Graph for the review chain that must run in order, Workflow for the batch job that must not improvise — and with hooks and interrupts that pause the loop for human approval before a consequential action. The pattern is: model-driven by default, explicit where the stakes demand it. That is also why Strands pairs so naturally with AgentCore Runtime, which adds the policy and observability layers the framework itself does not provide.

Strands is the right authoring choice when speed of iteration matters most: a support assistant, an internal research agent, a prototype you need working this week. It is the wrong choice when an auditor will ask you to prove, in advance, the exact path an agent took — that is LangGraph's job.

AgentCore: the platform that runs either one

AgentCore is not a framework. It is the managed platform underneath the framework, and its ten services map cleanly onto the jobs every production agent needs. Runtime hosts your agent code, one Firecracker microVM per session, with hardware-enforced isolation between sessions. Memory keeps short-term conversation state and long-term records per user, so a session that ends on a fresh microVM does not lose its history. Gateway turns APIs and Lambda functions into MCP tools and is the enforcement point where Policy intercepts tool calls against Cedar rules. Identity handles inbound authentication and outbound credentials, so API keys never sit in agent code. Observability sends traces to CloudWatch in your own account, and Evaluations scores live traces with built-in evaluators. Browser and Code Interpreter are sandboxed tools your agent can call. Harness is the managed agent loop itself: declare the model, tools, and prompt in configuration, and AWS runs the loop on Strands under the hood.

The stack, layer by layer Your agent code — a LangGraph graph or Strands tools AgentCore Runtime — one microVM per session, up to 8 hours Platform services — Memory · Gateway · Identity · Policy AWS substrate — Bedrock models · IAM · CloudWatch traces Swap the top layer without touching the ones below it — that is the whole point.

The release history tells you how fast this surface is still moving. The core services went generally available on 13 October 2025 in nine regions, with VPC, PrivateLink, and CloudFormation support from day one. Policy followed on 3 March 2026 and Evaluations on 31 March 2026, both after a December 2025 preview. Harness reached general availability on 17 June 2026 after a spring preview. If you read a guide from early 2026, check its dates — a service it calls preview may have been generally available for months.

Runtime pricing is consumption-based and billed per second with a one-second minimum. The v1 microVM rates on the AWS pricing page are $0.0895 per vCPU-hour and $0.00945 per GB-hour, and CPU scales to zero while the agent waits on model or tool I/O, which is most of an agent's wall-clock life. A v2 platform version exists with different rates — $0.1276 per vCPU-hour and $0.0169 per GB-hour on consumption pricing — whose trade is automatic reclamation of idle memory after 120 seconds. Sessions last up to 8 hours on microVMs and up to 14 days on Instances, the EC2-backed compute type for persistent, multi-day, or GPU workloads, with each session scaling to 8 vCPU and 32 GB of memory. Prices vary by region and AWS changes them, so verify the current page before you quote a number to finance.

Deploying is deliberately boring, which is the point. The AgentCore CLI installs from npm and replaces the older bedrock-agentcore-starter-toolkit. The same entrypoint runs locally and deployed, so the loop you test on your laptop is the loop that ships.

npm install -g @aws/agentcore   # the CLI; replaces bedrock-agentcore-starter-toolkit
agentcore create --name ticket-triage --defaults
agentcore dev                    # local run, same entrypoint as deployed
agentcore deploy                 # builds, uploads, provisions the runtime
agentcore invoke                 # send a prompt to the deployed agent

For pipelines, the same operations exist as APIs: the bedrock-agentcore-control client creates and updates runtimes, and the bedrock-agentcore client invokes them. Agent memory is the service teams underuse first — if your agent needs to remember a user across sessions, read our guide to agent memory architecture with Mem0, Zep, and pgvector before you build your own session store, because the difference between short-term and long-term memory is a design decision, not a storage choice.

AgentCore is the right platform choice when you are already on AWS and want the operational surface — isolation, identity, policy, traces, evals — without operating it. It is the wrong choice when your agents must run outside AWS or when a single long-running process with no session boundaries is genuinely simpler than a managed runtime.

The seam: author in one, operate on the other

Once you accept the layering, the real engineering question is where the seam sits: which side owns state, which side owns identity, and which side owns the decision to stop. The clean rule is one owner per concern. Your framework owns the agent's working state for a single run — LangGraph's checkpointer or Strands' session state. AgentCore Memory owns state that must survive across sessions. Your framework owns the decision logic. AgentCore Policy owns the guardrails that apply no matter what the model decides. When both sides own the same concern, you get the classic production bug: state that exists in two places and disagrees after a restart.

The seam is also where the Harness fits. If you author in Strands and deploy to Runtime, you own the loop code. If you use Harness, AWS owns the loop and you own the configuration — the model, the tools, the prompt, the hooks. Harness is the right default when your agent is a single loop with tools and no exotic control flow; export to a Strands agent on Runtime when you need custom loop logic, custom session handling, or multi-agent primitives Harness does not yet cover. Either way the deploy target is the same runtime, so the migration is a code move, not a re-platforming.

Self-hosting is the alternative seam, and it is worth pricing honestly. Running LangGraph on your own containers means you own checkpoint storage, scaling, session isolation, secret handling, and the on-call rotation for all of it. On Kubernetes that includes the node-scaling decision itself — our comparison of EKS Auto Mode vs Karpenter vs managed node groups covers what that choice actually costs in operational attention. AgentCore Runtime exists to make that bill someone else's problem, at the price of AWS lock-in and per-second metering. For most teams the managed runtime is cheaper than the engineer-hours; for teams with strict data-residency or air-gap requirements, self-hosting is not a preference, it is a constraint, and LangGraph's portability is the reason it wins there.

Head-to-head: the trade-offs that decide it

Start from the control you need Must the path be auditable? compliance · fixed steps Yes — LangGraph explicit graph + checks No — open-ended? model chooses tools Need a managed loop? Harness on Runtime Strands Agents tools + 1.0 primitives Either framework host on AgentCore Runtime Self-host instead own the ops bill Auditable path means LangGraph; open-ended work means Strands; either way, Runtime hosts it.

Put the three side by side and the trade-offs are sharper than any feature list. LangGraph gives you the most control and the most auditability: the path is declared, the state is typed, every step is a checkpoint you can replay. What it costs you is code volume and velocity — every branch is a line you wrote, and a workflow that changes weekly means a graph that changes weekly. Strands gives you the least code and the fastest iteration: a tool and a prompt is a working agent. What it costs you is determinism — the path is chosen at runtime, so your testing has to cover behavior, not just code paths, and your guardrails have to live outside the framework. AgentCore gives you the most operational surface for the least operational work: isolation, identity, policy, traces, and evals as managed services. What it costs you is portability and metered pricing — your agent runs on AWS, and every session is a line on the bill.

Cost deserves its own paragraph because the three price in different units. LangGraph and Strands are open source: free to run, and your bill is the infrastructure underneath plus model tokens. AgentCore Runtime is metered compute on top of model tokens, and the model tokens will dominate the bill for any serious agent — runtime at v1 rates is cents per hour of active CPU against dollars per million tokens. The cost question that actually matters is attribution: which team, feature, or customer generated the tokens and the runtime seconds. If you cannot answer that, fix metering before you argue about framework choice, and our guide to FinOps for AI workloads and GPU cost attribution is the place to start.

The maturity picture is also worth stating plainly. LangGraph is the oldest of the three as a framework, with the largest community and the most production deployments outside AWS. Strands is younger — 1.0 in July 2025 — but it is AWS's endorsed agent SDK, it powers the AgentCore Harness, and it is where AWS's own agent investment is going. AgentCore is the youngest as a platform, generally available since October 2025, with new services reaching GA through 2026. Youth is not a defect here — the platform is under active development and the gaps close every quarter — but it is a reason to pin versions, read the changelog, and avoid building on a preview service for a workload that cannot tolerate a breaking change.

Recommendation: the default stack for late 2026

Architecture Decision: Author in Strands Agents, operate on AgentCore Runtime, and reach for LangGraph only where the path must be auditable.

Decision: Strands Agents for authoring, Amazon Bedrock AgentCore Runtime for hosting, with LangGraph reserved for fixed-shape, auditable workflows — all behind AgentCore Gateway with Policy enforcement.

Context: The team is starting a production agent in late 2026, already runs on AWS, and needs to ship a working agent quickly without building session isolation, credential handling, or policy enforcement from scratch.

Options considered: LangGraph on self-hosted containers; LangGraph on LangSmith Deployment; Strands Agents on AgentCore Runtime; AgentCore Harness with no framework code; Bedrock Agents Classic for existing workloads.

Why this one: Strands is the least code to a working agent, it is AWS's endorsed SDK, and it deploys to Runtime without modification — the same code runs locally and in production. Runtime supplies the operational surface (isolation, identity, policy, traces, evals) that neither framework provides. LangGraph stays in the toolbox for the workflows where an auditor needs the path declared in advance, and Harness is the zero-code on-ramp for single-loop agents.

What it costs you: AWS lock-in for the runtime layer, per-second metering on top of model tokens, and a model-driven loop whose bad runs are harder to reconstruct than a declared graph. Strands is younger than LangGraph, so its API surface is still moving — pin your SDK version.

When to reverse it: If the workload must run outside AWS, move the authoring to LangGraph and self-host, since Strands' value is tied to the AWS runtime. If the agent's path becomes a compliance artifact, rewrite that agent in LangGraph. If AgentCore pricing at your volume exceeds the cost of operating the runtime yourself, the seam is clean enough to move — your framework code does not change, only the host does.

For most teams, that is the whole decision. Start with Strands and Runtime, add Gateway and Policy before the first production user, wire Evaluations into the release pipeline, and keep LangGraph for the one workflow in ten where the path is the product. The stack is boring in the best sense: each layer does one job, each layer can be swapped without rewriting the others, and the seam between authoring and operating is a deploy command, not a migration project.

When not to use

Do not use this stack when your agents cannot run on AWS — data residency, air-gap, or a multi-cloud mandate that forbids a single-provider runtime. Do not use Strands as the authoring layer for a workflow whose steps are a legal or safety requirement; declare that graph in LangGraph, where the path exists before the model runs. Do not use AgentCore Harness for a multi-agent system with custom orchestration logic — Harness covers the single-loop default, and the moment you need Graph, Swarm, or Workflow primitives, author in Strands on Runtime instead. And do not use AgentCore Runtime for a workload that is really a batch job with no conversational session — a container on ECS or a Lambda function is cheaper and simpler than a session-scoped microVM.

How long this guidance stays current

This guidance is written against the platform as it stood on 30 November 2026: AgentCore generally available since 13 October 2025, Policy GA 3 March 2026, Evaluations GA 31 March 2026, Harness GA 17 June 2026, Strands Agents 1.0 from 15 July 2025, and LangGraph Platform renamed to LangSmith Deployment in October 2025. Re-check it when any of these change: a new AgentCore service reaches GA, Strands ships a 2.0 with breaking API changes, LangGraph changes its recursion or checkpoint defaults, or AWS changes Runtime pricing — the v1 to v2 price change in 2026 is the reminder that rates move. The layering itself — framework authors, platform operates — is the durable part; the version numbers are not.

If you are still on Bedrock Agents Classic

There is one forcing function that overrides every preference above. Amazon Bedrock Agents — the managed agent service launched in November 2023 — was renamed Bedrock Agents Classic and closed to new customers on 30 July 2026. It is in maintenance mode: no new features, and the model catalog is frozen as of that date, so models released after 30 July 2026 never arrive in Classic. AWS states plainly in the Classic maintenance mode documentation that there is no exception process — only accounts with Bedrock Agents activity in the previous 12 months can still create agents — and recommends migrating Classic workloads to AgentCore. Existing agents keep running, and Bedrock itself, including model inference, Knowledge Bases, and Guardrails, is unaffected. The freeze applies only to the Classic orchestration layer.

The honest way to read that is as a quiet deadline. There is no end-of-life date and no migration deadline, but your agent will keep performing exactly as well as it did on 30 July 2026 while model capability moves on underneath it. The moment you want a model released after that date, you have to be on AgentCore. The migration is a rewrite of the loop, not a lift-and-shift: author the agent in Strands or LangGraph, host it on AgentCore Runtime, and move Knowledge Bases and Guardrails across unchanged. Do it on your own schedule, before a model release forces it on theirs.

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.

Share this articleShare on XShare on LinkedIn

Keep the decision frameworks coming

One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.