AgentCore Harness + Strands: Defaults, Built-in Tools, and Lifecycle Hooks
Quick summary: Harness GA Jun 17, 2026. On Nov 19, 2026 the managed defaults added Strands tools and four lifecycle hooks. A Lambda deny on before_tool_call skips the tool. The ~180 to 95 ms Gateway canary is unchanged. Pin allowedTools if the tool set must not grow.
Key Takeaways
- Harness GA Jun 17, 2026
- On Nov 19, 2026 the managed defaults added Strands tools and four lifecycle hooks
- A Lambda deny on before_tool_call skips the tool
- The ~180 to 95 ms Gateway canary is unchanged
- AWS lifecycle notice (June 30, 2026): Amazon Bedrock Agents Classic is in maintenance for new customers after July 30, 2026

Table of Contents
On June 17, 2026, AgentCore Harness reached general availability: create an agent with configuration, invoke it with a streaming API, and stop hand-rolling session stores and tool routers for the default path (What’s New, Harness get started). The same Summit week shipped Managed Knowledge Base GA and Web Search on Gateway. Strands Agents 1.0 already gave AWS-endorsed multi-agent primitives (Agents-as-Tools, Graph, Swarm, Workflow) plus A2A.
The sections below are the August 2026 ship map: what was GA, what was still Coming soon, when to stay on Harness, and when to export to Strands. The 19 November 2026 section is the current managed default and the hook boundary. This page does not treat AWS Context as available today.
Converse, Runtime, and Harness compared
| Layer | What it is | You own | AWS owns |
|---|---|---|---|
| Bedrock Converse | Managed model API | Prompts, tool schemas you pass in | Models, IAM/KMS/CloudTrail on the API |
| AgentCore Runtime | Firecracker microVM host for custom agent code | Container/CodeZip, loop (Strands, LangGraph, …) | Isolation, session lifecycle, platform telemetry hooks |
| AgentCore Harness | Config-driven managed loop on Runtime | Model, instructions, tools, memory config | Orchestration loop, streaming, default memory, export scaffold |
Opinionated take: treat Harness as the paved road for the first production agent. Treat Runtime + Strands as the paved road once topology, hop caps, or A2A show up. Treat DIY LangGraph on ECS as a keep-existing-investment path, not the greenfield default in August 2026.
Two API calls: CreateHarness + InvokeHarness
Assumes Python 3.12+, boto3 ≥ 1.38.0, an IAM execution role, and a supported region. The June 2026 get-started docs named Anthropic Claude Sonnet 4.6 when the model was omitted. As of the 19 November 2026 harness update, an omitted model is the current recommended default and can change when AWS changes that recommendation. Set a model ID when the application needs a fixed model. An explicit harness-level or per-invocation model still wins.
# CLI path (Node 20+)
npm install -g @aws/agentcore
agentcore create --name ops-assistant --model-provider bedrock
agentcore deploy
agentcore invoke --harness ops-assistant --session-id "$(uuidgen)" \
"How do we handle an ECS service stuck in DRAINING?"# Control plane + data plane sketch — see create_harness_stub.py in the artifact folder
# boto3 >= 1.38.0; runtimeSessionId must be at least 33 characters
import boto3, uuid
control = boto3.client("bedrock-agentcore-control", region_name="us-west-2")
created = control.create_harness(
harnessName="ops-assistant",
executionRoleArn="arn:aws:iam::123456789012:role/HarnessExecutionRole",
)
# Poll get_harness until status == READY, then:
client = boto3.client("bedrock-agentcore", region_name="us-west-2")
response = client.invoke_harness(
harnessArn=created["arn"], # use the ARN from get_harness
runtimeSessionId=str(uuid.uuid4()),
messages=[{"role": "user", "content": [{"text": "Summarize the DRAINING runbook."}]}],
)
for event in response["stream"]:
if "contentBlockDelta" in event:
delta = event["contentBlockDelta"].get("delta", {})
if "text" in delta:
print(delta["text"], end="")Stream events follow the Converse-shaped sequence (messageStart → contentBlock* → messageStop). Spans land under AgentCore / CloudWatch without a custom APM shim. Still build dashboards before you need them in an incident.
Mid-session provider switching (when enabled for your harness/providers) preserves conversation state by rebuilding history into the target provider’s message format. Use it for cost or capability shifts mid-thread, not as an excuse to skip evals when the model family changes.
Harness vs Runtime vs DIY: how to pick
Full matrix: harness-vs-runtime-vs-strands.md.
| Dimension | Harness | Runtime + Strands | DIY LangGraph / CrewAI |
|---|---|---|---|
| Ownership | Config | Your code + AWS host | Your loop + usually your host packing |
| Multi-agent | Export when needed | Native primitives + A2A | Bring your own supervisor |
| First agent | Minutes | Hours to days | Days to weeks |
| When NOT to | Hard DAG / multi-team A2A | Thin FAQ Harness covers | Greenfield with no existing graph |
Graduating from Harness by exporting to Strands

Figure: graduation in the article. When the topology needs code, export the Harness to Strands and host it on Runtime. Memory, Gateway, and Identity are reused rather than rebuilt. The full request path is the AgentCore production article. The checklist files under the other harness folder were left alone. Open the draw.io source.
When configuration cannot express the topology, export Harness to Strands-based Python and host on AgentCore Runtime (or elsewhere). AWS positions this as config-to-code translation that reuses the same Memory, Gateway, Identity, and observability primitives. Claude Agent SDK export is on the roadmap; Strands is the supported target today (export docs).
Opinionated take: export early if you already know you need Graph edges or Agents-as-Tools hop caps. Stay on Harness if you are still discovering tools and prompts; exporting every day is thrash.
Strands 1.0 primitives compared
Names below match Strands multi-agent docs (Agents-as-Tools, Graph, Swarm, Workflow). Third-party posts sometimes invent PipelineAgent class names. Prefer the SDK names in code reviews.
| Primitive | Shape | Determinism | Best for | When NOT to |
|---|---|---|---|---|
| Agents-as-Tools | Orchestrator calls specialists as tools | Medium | Hierarchical supervisors; expensive planner + cheap specialists | Fixed audit step order |
| Graph | DAG/cyclic nodes via GraphBuilder | High | Compliance, review, nested Swarm-in-Graph | Open-ended brainstorming |
| Swarm | Peer handoffs + shared memory | Low to medium | Exploration, peer review | Unbounded handoffs; ungated writes |
| Workflow | Code-defined sequential/parallel tasks | Highest | Validation chains, batch transforms | Free-form chat routing |
# strands-agents >= 1.x — Agents-as-Tools (see strands_agents_as_tools_stub.py)
from strands import Agent
runbook_agent = Agent(system_prompt="Answer only from ops runbook context.")
triage_agent = Agent(system_prompt="Classify severity; do not invent metrics.")
orchestrator = Agent(
system_prompt="Route runbook questions to runbook_agent; severity to triage_agent.",
tools=[
runbook_agent.as_tool(name="runbook_agent", description="Ops procedures."),
triage_agent.as_tool(name="triage_agent", description="Incident triage."),
],
)For a commerce-shaped supervisor with Gateway Policy on refunds, use the longer sample in eCommerce AgentCore agents: same primitives, product-specific tools.
A2A covers cross-team or cross-cloud specialists with signed identity and scoped tools. Prefer in-process Agents-as-Tools when one team owns the Runtime; prefer A2A when ownership is split.
Loop controls the Strands docs name
The Strands agent loop caps the turns and tokens one call may use, can be cancelled mid-loop, and reports why the loop stopped. One agent instance handles one invocation at a time and rejects an overlapping call. Hooks fire around invocation, model calls, and tool calls. Interventions are a typed layer on those hooks: proceed, deny, guide, confirm, and transform. Handlers run in registration order. A deny short-circuits the rest, which is how a cheap authorization check skips a later model check.
A session manager restores one conversation, including interrupt state. Memory, when you add a memory manager, is a separate store across sessions. The conversation history the loop accumulates is the working context for that task. It is neither the session checkpoint nor long-term memory.
AgentCore Harness is the managed loop. Strands is the code you export to when the topology needs it. Neither one is a finished commerce agent. Gateway policy, identity, and the evaluation file are still yours. The local harness.py beside the store-agent sample is a stand-in for tenancy, budgets, cancellation, and write approval. It is not the Strands intervention runtime, and it does not call AWS.
Grounding that ships today (AWS Context is not GA)

Figure: grounding that ships in the article. A question uses Managed Knowledge Base. AWS Context is not drawn because the article still lists it as coming soon. Memory is conversation state, not this document store. The cited gateway timing stays in the other post. Open the draw.io source.
Summit messaging bundled AWS Context (org knowledge graph) with Harness. Status check as of August 2026: AWS still describes Context as Coming soon (Context intelligence blog). Do not write production code against APIs that are not public.
What does ship for grounding:
| Option | Status | Use now? |
|---|---|---|
| Managed Knowledge Base (AgentCore) | GA Jun 17, 2026 | Yes: connectors + agentic retriever via Gateway |
| Classic Bedrock Knowledge Bases | GA | Yes if already invested; dual-run carefully |
| AgentCore Memory | GA | Yes: conversation/user state, not docs |
| AgentCore Web Search | GA | Yes: live public facts inside your boundary |
| AWS Context | Coming soon | No: roadmap seam only |
Full matrix: grounding-status-matrix.md.
The agentic retriever on Managed KB decomposes multi-hop questions (runbooks + postmortems + escalation paths) instead of a single vector hit. That is the production substitute for “wait for Context” on unstructured estates.
Observability and A/B testing: ship with a baseline
Harness and Runtime emit OpenTelemetry-compatible spans into CloudWatch. A/B testing is GA and can split traffic across agent versions even outside AgentCore Runtime (release notes). Recommendations and batch evaluation of those recommendations are GA as of 17 June 2026. Failure, intent, and trajectory insights (Builtin.Insight.FailureAnalysis, Builtin.Insight.UserIntent, Builtin.Insight.ExecutionSummary) were still preview on the AgentCore FAQ on 11 November 2026. The same June week put Bedrock Guardrails scores into Gateway Policy, outside the agent, in US East (N. Virginia), Europe (London and Stockholm), and Asia Pacific (Sydney and Tokyo). Partner detection signals from Check Point, Zscaler, Rubrik, Netskope, and SentinelOne are still upcoming. The status, regions, and sources are on the production guide.
Do not A/B prompt tweaks until you have a golden suite. Statistical winners on a vague task_completion_rate are how teams ship polite hallucinations.
Reference architecture
User / IdP JWT
→ AgentCore Identity
→ Harness OR Runtime (Strands orchestrator)
├─ Agents-as-Tools / Graph / Swarm (Runtime path)
├─ AgentCore Memory (session + long-term)
└─ AgentCore Gateway
├─ MCP / OpenAPI / Lambda tools (+ Policy)
├─ Managed Knowledge Base (GA)
└─ Web Search (optional)
→ Observability (OTEL → CloudWatch) + Evaluations / A/BAWS Context (coming soon) would sit beside Managed KB as an org graph. Design the MCP/tool seam; do not block the diagram on it.
Update, 19 November 2026: Strands defaults and lifecycle hooks
On 19 November 2026 AWS published that AgentCore harness now runs on Strands harness defaults. Rollout to new and existing harnesses started 11 November 2026. There is no new resource type. Configuration you set explicitly stays. A harness that omits the model, the system prompt, or truncation, or that uses allowedTools as a star, receives the current managed default.
What that default adds, in AWS’s words:
- A recommended model that can change. Pin a model ID to stop that.
- A task-oriented system prompt. Set
systemPromptto replace it entirely. - Prompt caching for supported Anthropic models on the Bedrock Converse path: system prompt, tool definitions, and conversation history. AWS says this can use lower-priced cache-read tokens. Confirm cache-read tokens on a real call before you budget them.
- Proactive context management. AWS says the harness summarizes older turns once a configurable threshold is hit, and that this helps it run at about 34 percent lower token cost than other leading harnesses. The post does not name those harnesses. That figure is AWS’s comparison, not a measurement we ran.
- Built-in tools when you do not list a fixed set:
todo_write(a plan that survives summarization inside the session),subagent(an internal worker, not a second harness),web_fetch, and separateread,write, andeditfilesystem tools. Large tool results can be offloaded to a preview the agent retrieves later.
Customer MCP servers, Gateway, Browser, Code Interpreter, inline functions, skills, memory, and your own containers still attach through the existing interfaces.
Opinionated take: list allowedTools on any harness that can spend money or change data. The trade-off is that you will not pick up a new built-in tool until you add it. The read-only example from the AWS post is read and web_fetch, and nothing else. The file is allowed-tools.md.
Hooks are the deny path
A hook runs your code at a point in the loop. You set it with CreateHarness or UpdateHarness. It is not an InvokeHarness override. A harness supports up to 20 hooks, and each name is unique. Lifecycle hooks in the developer guide, and the release note.
| Event | When | Lambda deny |
|---|---|---|
before_invocation | Before the agent starts | Stops the invocation. stopReason is hook_stopped. |
before_tool_call | After the model proposes a tool, before it runs | Skips that tool. The loop continues. |
after_tool_call | After a tool result exists | Keeps the result and stops further inference. |
after_invocation | After the invocation completes | Reported only. Streamed output is not retracted. |
Only a Lambda target can allow or deny, and it runs synchronously. SNS and EventBridge notify and do not block. If the Lambda times out or errors, failureMode applies. The default is deny.
The AWS post’s sample is a refund desk: before_tool_call denies issue_refund when the amount is over $500, the agent tells the customer the request was escalated, and the decision shows up as a hookEvent on the stream. That $500 limit is their sample. Do not copy it as a policy. Subagent tool calls go through the same before_tool_call and after_tool_call hooks, so a delegated refund does not skip the check. The invocation hooks run once for the whole invocation.

Figure: where a hook can stop work. The $500 refund in the AWS sample is not drawn as a number, because it is not a limit you should inherit. Open the draw.io source.
Inline function tools get the same tool hooks. The developer guide says the model request can appear in the stream before the hook decides. Execution waits on the decision. Do not treat a streamed tool request as proof the hook allowed it.
What to Do This Week
- Stand up one Harness in non-prod (
agentcore createor CreateHarness); confirm spans. - Attach one real Gateway tool (read-only first); Identity brokers secrets.
- Connect Managed Knowledge Base to an S3 prefix of runbooks, not AWS Context.
- Write 10 to 20 golden tasks; fail the suite if Browser fires on status-only intents.
- If you need multi-agent topology, export to Strands and cap specialist hops; see
monday-checklist.md. - Model platform + tokens on the AgentCore pricing calculator, then book a Bedrock agent architecture review.
Framework primitives are not the harness
Harness, Runtime, and Strands each give you a piece of the loop. None of them is the permission check, the budget, or the evaluation suite. Exporting a Harness config to Strands does not bring Gateway policy or Identity with it. You still attach those.
The application still has to classify the task, assemble the minimum context, keep state outside the transcript, route models by risk, verify with something other than the generator, bound retries, and record the trace. Commerce-specific gates are in the AWS store-agent architecture and in securing store agents.
What This Post Doesn’t Cover
- Full AgentCore pricing line items: 12-components pricing post and the calculator.
- Classic supervisor + Lambda patterns: historical only; supervisor post with lifecycle notice.
- Hands-on AWS Context APIs: not GA as of this publish date; re-check docs before you assume launch.
- Region-by-region SKU matrices: verify AgentCore regions in your account.
- HIPAA/PCI control mapping for agents: separate compliance engagement; do not treat Gateway Policy alone as a BAA story.
- Domain-specific agent design for retail: the eCommerce AI Agents series applies this ship map workflow by workflow, from support to a multi-agent operations team.
Need a Harness → Strands graduation plan for an existing demo agent? Start with Generative AI on AWS or contact us.
Frequently asked questions
When should I NOT start on AgentCore Harness?
What could go wrong if we treat AWS Context as GA?
Harness or Runtime for a multi-agent supervisor?
Is Managed Knowledge Base the same as AgentCore Memory?
Can we A/B test agents that do not run on AgentCore Runtime?
What could go wrong if Browser or Code Interpreter stays enabled on every turn?
How do Strands Graph and Swarm differ?
Should net-new agents still use Bedrock Agents Classic?
When should we not leave allowedTools as a star?
What could go wrong with a lifecycle hook?
Reference bounds
How the Harness and Strands stays bounded
Reference design. Risk if it goes wrong: high; a person approves before it acts.
Separate AgentCore Harness, Runtime, and Strands, and keep policy outside all three.
Explore, then act, then confirm, then verify. Explore gathers the context for the Harness and Strands. Act stays reversible. Confirm stops before an irreversible step. Verify is a separate check of the outcome.
- Starts when
- A team is choosing how to host the loop.
- Tools
- A write goes through a router, a permission check, a policy check, and a budget check. The model does not commit it. An approval token lives in tool context, not in the user message.
- Stops for a person
- Exporting to Strands does not bring Gateway policy with it. You still attach policy, identity, and a budget.
- Checked by
- The page states what is GA and what is not. A framework primitive is not called a complete harness.
- Untrusted data
- Docs that treat Strands or Harness as a substitute for authorization.
- If it fails
- If the Harness and Strands stops, name the reason: completed, budget_exceeded, timed_out, cancelled, guardrail_blocked, approval_required, tool_failure, verification_failed, or partial_completion. Retry a timeout at most twice. Back off on rate limits. After repeated verification failure, escalate. Stop when the budget is exhausted or a permission is denied. No unbounded loop. Exporting to Strands does not bring Gateway policy with it. You still attach policy, identity, and a budget.
This is the reference architecture for the page, not a published production deployment. The shared contract is the AWS store-agent architecture. Permissions and data boundaries are in securing store agents.

Founder, FactualMinds · AWS Cloud Architect & AI Expert
AWS-certified cloud architect and AI expert with deep expertise in cloud migrations, cost optimization, and generative AI on AWS.




