News ·
AWS adds lifecycle hooks to its AgentCore harness

AWS updated the Amazon Bedrock AgentCore harness on November 19. It now runs on Strands harness, the open-source agent harness AWS released earlier this year under Apache 2.0, and it has lifecycle hooks: four points in the agent loop where your own code can check or record what the agent is doing. Existing harnesses get both changes automatically, with no new resource type.
What AWS announced
The AWS announcement lists new managed defaults: a recommended model that changes as new models ship, a task-oriented system prompt, automatic prompt caching (Anthropic models on Bedrock first) and context management that summarises older turns once the window passes a configurable threshold. AWS puts the token cost at about 34% below other leading harnesses. New built-in tools include todo_write for a task plan that survives across invocations in a session, web_fetch, separate read, write and edit tools for files, context offloading for large tool results, and a subagent tool that hands a self-contained task to a fresh worker. Each session runs in a kernel-isolated microVM.
Explicit settings still win. A pinned model ID, a custom systemPrompt, a truncation policy or a fixed allowedTools list stays as configured. Leave allowedTools empty or set it to ["*"] and the harness gives you the current recommended tool set, which AWS says can grow over time, so an application with a fixed security boundary should list its tools by name.
| Hook | When it runs | If a Lambda denies |
|---|---|---|
| before_invocation | Before the agent processes the request | Invocation stops with hook_stopped |
| before_tool_call | After the model proposes a tool call, before it runs | Tool call is skipped, loop continues |
| after_tool_call | After a tool result exists | Result is kept, no further inference |
| after_invocation | After the invocation completes | Decision is reported; streamed output stays |
Only Lambda hooks can change the loop. They run synchronously and return allow or deny with an optional reason. SNS and EventBridge hooks are notifications and never block. The AWS example is a refund tool with a before_tool_call check that denies anything over $500, with a 10-second timeout and failureMode set to deny; the agent carries on and tells the customer the request was escalated, and the decision shows up as a hookEvent in the InvokeHarness response stream.
Where the handover gets expensive
Run the AWS refund example with a $640 request. The Lambda says deny, reason "Refund exceeds the $500 auto-approval limit". The harness skips issue_refund, the agent tells the customer a person will look at it, and the hookEvent goes into the response stream. AgentCore is done. The supervisor who approves refunds is off until Monday, and the customer's earlier emails about the order are in the helpdesk.
On the Agintent side, the refund would be an envelope moving through the coordination protocol. After the deny its run sits in waiting for input with the reason from the Lambda. A person with the manual approval capability picks it up, and their answer is saved on that run along with the hookEvent.
Write an acceptance check before choosing a hook
- Expected result: refund approved and the customer told, or refused with a reason the customer can read.
- Stored evidence: the hookEvent with name refund_policy and its reason, plus the order number and the draft reply it affected.
- Owner of the denial: the refunds supervisor. Decision and reason are saved on the run.
The pilot stays small this way. A fake order 4471, a customer email, a reviewer. No real inbox and no refund rights, so the run can be repeated every morning for a week.
Bring one interrupted run to a product discussion
AgentCore now has four fixed points for deterministic rules, and the refund limit is the example AWS chose. For a buyer the interesting part comes after the deny. The run stops at before_tool_call, the reviewer opens it from their normal queue, and the condition for accepting the work is either written on the screen or it isn't. Whatever isn't there is the part to ask the supplier to quote.
The Agintent use cases describe operator-led workflows where agents, n8n flows and people work on one request. Send a written pilot request with the step where your sample job changes hands, what the receiving person needs to see and what should happen when the evidence is incomplete.