What it's for

AgentCore is for the job after the loop works.

DIY cloud is a process and a dotenv. AgentCore is isolation, identity, a wrap, a rule, memory that outlives the process.

Jobs

What it looks like in a product

Runtime

Same code, Tuesday's traffic

The LangGraph you ran on a laptop now has to survive a support spike.

DIY cloud

A process on a box. Cold start is yours. Two users share memory if you are not careful. Scale is a ticket.

AgentCore

Runtime takes the same graph. Dedicated microVM per session. Fast cold start. You did not rewrite the loop.

  1. laptop
  2. Runtime
  3. microVM
  4. your graph
Step this in the lab →

Isolation

Two customers, one host, no leak

Maya and Jordan both ask about refunds. They must not see each other's files.

DIY cloud

One process, two threads, a shared /tmp. A write in A is a bug report in B.

AgentCore

Session A is a microVM. Session B is another. End A, it is sanitized. B never saw the file.

  1. Maya
  2. sess-a
  3. Jordan
  4. sess-b
Step this in the lab →

Identity

Refund Slack on behalf of Maya

The agent should post the refund note to Slack as Maya, not as a shared bot.

DIY cloud

A workspace token in a dotenv. Every session is the bot. Consent is a comment in the prompt.

AgentCore

Outbound OAuth. No token, the Gateway tool is blocked. Maya granted Slack; the post is hers.

  1. Maya
  2. inbound
  3. slack_post
  4. OAuth
Step this in the lab →

Gateway

The company API, once

Refunds and order lookup already exist. Every new agent wants them.

DIY cloud

Copy the REST client into each repo. Drift. Three ways to refund $80.

AgentCore

Wrap the API and the Lambda once. One Gateway endpoint. MCP tools for any agent.

  1. API
  2. Lambda
  3. Gateway
  4. MCP
Step this in the lab →

Policy

$500 is a rule, not a hope

The model asks to refund $800. Policy is $500.

DIY cloud

A sentence in the system prompt. Sometimes the model obeys.

AgentCore

Cedar or natural language on Gateway. Intercept every tool call. DENY before the API. Deterministic.

  1. invoke
  2. refund $800
  3. DENY
  4. API never runs
Step this in the lab →

Memory

They still like terse replies next month

Maya said keep it short. She comes back in four weeks.

DIY cloud

A new process. Thursday never happened. Or you stuffed the transcript into a prompt.

AgentCore

Short-term died with the session. Long-term still has tone=terse. Not a LangGraph checkpointer.

  1. session
  2. tone=terse
  3. end
  4. new session
Step this in the lab →

Patterns

When to reach for AgentCore

Use it when you need production: isolation, an IdP, an MCP wrap, a deterministic policy, durable memory, traces. Skip it if you are still on localhost with a single user and a dotenv.

  • The loop has to leave the laptopRuntime (or Harness)
  • Two customers, one hostsession isolation — one microVM each
  • Who may call this agentIdentity inbound (Cognito / Okta / Entra)
  • Slack as Maya, not as a botIdentity outbound
  • The company API, onceGateway (MCP wrap)
  • $500 is a rulePolicy on Gateway — Cedar or NL
  • Still true next monthlong-term Memory, not a checkpointer
  • Find the denied refundObservability — OTEL spans

Two clocks. The LangGraph checkpointer is the cursor through this run. AgentCore Memory is the conversation (short) and what should still be true next month (long).

Two clocks
LangGraph checkpointerAgentCore Memory
ScopeThis run / this threadShort-term: this session. Long-term: this user, next month
HoldsSnapshots you can replayThe conversation, then preferences and insights
Reach for itPause, resume, time travel inside one graphA new session should still know they like terse replies

FAQ

Three questions

Is AgentCore a model?

No. It is an agentic platform. Any framework, any model. LangGraph is the loop. AgentCore is how that loop runs in production: isolation, identity, tools, policy, memory that outlives a process.

I already have LangGraph. Do I need this?

If the graph still lives on localhost with one user and a dotenv, no. Reach for AgentCore when two customers share a host, when an IdP has to say who may call, when the company API should be wrapped once, when $500 is a rule, when terse replies must still be true next month, or when you need to find a denied refund in a trace.

Harness or Runtime?

Harness is a config loop: model, prompt, tools, isolated microVM, no orchestration code. Runtime deploys the LangGraph, Strands, CrewAI, or custom agent you already wrote. Same factory floor.