AivexaNewsSearch
AI news for builders and product teamsChecked every hour

Amazon Bedrock AgentCore harness adds Strands harness defaults, built-in tools, and lifecycle hooks

Collected Nov 19, 2026

Amazon Web Services is upgrading the Amazon Bedrock AgentCore harness so it runs on Strands harness, the company's open-source agent harness released earlier this year under an Apache 2.0 license. The rollout to new and existing harnesses began on November 11, and AWS says no customer action is required. Alongside the Strands foundation, AgentCore harness gains lifecycle hooks that let developers run their own deterministic code at fixed checkpoints in the agent loop.

AgentCore harness is the managed AWS service layer that operates the Strands foundation. In practice, that means developers do not provision compute, bundle and host the agent loop, manage session scaling or run tool-execution infrastructure themselves. Each session runs in a kernel-isolated microVM inside AgentCore runtime, with managed compute, scaling and high availability. The harness connects to session persistence, streaming responses, usage metadata, observability, AgentCore memory, Identity, Gateway, Browser, Code Interpreter and customer-provided containers. Developers keep control of the model, instructions, tools, permissions and lifecycle policies.

The upgrade changes what agents get when a harness relies on managed defaults. If no model is specified, the harness uses a recommended default model that AWS updates as new models ship; explicit harness-level and per-invocation model settings still win. The managed system prompt pushes the agent to gather context, use appropriate tools, keep working through failures or denied actions, and verify results before declaring a task complete. That prompt is also expected to change over time.

Prompt caching is automatic for supported models using Converse on Amazon Bedrock, initially for Anthropic models. The harness caches the system prompt, tool definitions and conversation history, so repeated calls with the same prompt and tool surface can bill at lower-priced cache-read token rates and process input faster. Context management is proactive: once the window hits a configurable threshold, older turns are summarized while recent context is preserved. AWS says this keeps Harness at roughly 34% lower token cost than other leading harnesses.

The new built-in tools target long-running work. Context offloading moves large tool results out of immediate model context, giving the agent a preview with the option to pull the full result back when needed. A todo_write tool keeps a structured task plan that survives across invocations in the same session, including after summarization. A subagent tool hands a self-contained task to a fresh worker and returns the result to the parent; the worker lives inside the invocation rather than as a separately managed resource, and shares invocation limits and the tool-call hooks. A web_fetch tool pulls content from a specified page, and separate read, write and edit tools let operators grant only the filesystem access an agent needs. Existing MCP servers, Gateway, Browser, Code Interpreter, inline functions, skills, memory and customer containers keep working through current interfaces.

Explicit configuration overrides the managed layer. Setting a model ID pins the model, setting systemPrompt replaces the managed prompt entirely, setting truncation keeps a chosen context policy, and listing individual allowedTools selectors fixes the tool surface. If allowedTools is omitted or set to ["*"], the harness supplies the current recommended tool set, which can grow over time. For any application with a fixed security or capability boundary, AWS advises enumerating only the needed tools; a configuration of ["read", "web_fetch"], for example, allows read-only file access and web retrieval without shell access or file modification.

Lifecycle hooks are the governance piece. Lambda functions can allow or deny a request or tool call, while SNS topics or EventBridge event buses receive notifications to record activity or kick off asynchronous workflows. Four events are supported. before_invocation runs before the agent processes the request; a Lambda denial stops the invocation with hook_stopped. before_tool_call runs after the model proposes a tool call but before execution; a denial skips that call and the agent loop continues. after_tool_call runs once a tool result exists, retains the result and stops before further inference. after_invocation runs when the invocation completes and reports the decision, though output already streamed cannot be retracted. Only Lambda hooks can alter the loop; they run synchronously and return allow or deny with an optional reason, while SNS and EventBridge targets are non-blocking notifications.

A worked example is a refund policy. A beforeToolCall hook pointing at a Lambda function can inspect the proposed tool call and deny issue_refund when the amount exceeds a $500 auto-approval limit, letting the agent tell the customer the request was escalated. Each decision also appears in the InvokeHarness response stream as a hookEvent object carrying the hook name, type, decision and reason. Hooks apply to subagents too, so delegated work cannot bypass the policy. Invocation-level hooks run once per invocation. If a Lambda times out or errors, the hook applies its failureMode, which defaults to deny. Hooks are configured through CreateHarness or UpdateHarness.

Hooks are a deliberate design for non-deterministic systems: the model still decides what to attempt, but a deterministic function gates the outcome. In practice this is the same pattern many teams build by hand in an orchestrator layer, now relocated into the managed loop where it also covers delegated tool calls. A likely trade-off is added latency on every gated call, since synchronous Lambda checks sit in the critical path.

The AgentCore CLI, installed with npm install -g @aws/agentcore, creates a harness in one command via agentcore harness commands that call the harness APIs directly without a CLI project or deployment step. The CLI uses default AWS credentials and has no --profile flag, so AWS_PROFILE must be set for a specific profile. In the documented Research Coordinator example, a create call supplies a system prompt, a summarization truncation policy keeping the 30 most recent messages with a 0.3 summary ratio, 100 max iterations and a 3600-second timeout; because model, memory and execution role are omitted, the recommended model and managed memory are used and an IAM execution role is created. Creation is asynchronous, so callers poll until status is READY, and research runs in that example take roughly 10 to 15 minutes. Deleting a harness also deletes its managed memory unless --delete-managed-memory false is passed, and the auto-created execution role stays in the account.

Why it matters: Teams already running AgentCore harnesses inherit new defaults without a migration, but the same change means behavior can shift underneath applications that never pinned a model, prompt, truncation policy or tool list. Developers building customer-facing or financial agents should review those settings and consider adding before_tool_call hooks around consequential actions, since hooks also cover subagent tool calls. My inference is that the automatic defaults lower the floor for agent quality and cost, while the explicit-configuration escape hatches become the main lever for teams that need reproducible behavior.

Read at AWS Machine Learning Blog

Based on reporting from the original publisher. Visit the source for full context and later updates.

Publisher excerpt

Amazon Bedrock AgentCore harness now runs on the open-source Strands harness, bringing a recommended model, task-oriented defaults, automatic prompt caching, proactive context management, and new built-in tools. It also adds lifecycle hooks so you can run deterministic allow or deny checks at defined points in the agent loop.