# Agent Speedrun

Elizabeth Fuentes Leone & Sandhya Subramani, AWS | AI Engineer World's Fair 2026 | 59:55

Source: https://www.youtube.com/watch?v=YXiLj4tJt5A
Channel: AI Engineer (https://www.youtube.com/@aiDotEngineer). Summarised by AIE Talks.
Page: https://aietalks.com/talks/agent-speedrun
Published: 2026-10-11
Tags: deployment, guardrails, harness-engineering, tool-use

## TL;DR
- Strands Agents lets teams bring their own model, define tools, inspect the agent loop, and run the same harness locally or on a managed service.
- Hooks add deterministic checks around invocation and tool calls, such as blocking a request after a set number of tool invocations.
- Skills and steering handlers add contextual instructions and programmatic checks before moving the customer service agent into Amazon Bedrock AgentCore.

## Summary
Elizabeth Fuentes Leone and Sandhya Subramani build a customer service agent from a small set of tools and mock customer data. The agent looks up customers, checks order history, and processes refunds through an LLM-driven loop. The workshop then makes that loop inspectable and controllable. Messages, tool calls, and token metrics show what happened, while hooks can block calls before they reach the model or a tool. Skills stored in Markdown provide account, order, and refund instructions only when needed. Steering handlers check workflow order and response tone. The final section moves the same application into Amazon Bedrock AgentCore. The presenters add the runtime entry point, test locally, configure observability, deploy with the CLI, and invoke the deployed agent. The talk is practical about the difference between asking a probabilistic model to follow a rule and enforcing that rule with code.

## Key ideas
### Strands Agents separates the harness from the model provider
[00:38](https://www.youtube.com/watch?v=YXiLj4tJt5A&t=38s)
Strands Agents is presented as an open-source agent harness built by AWS. It can use different model providers, including locally hosted models, while keeping the agent structure and system prompt largely unchanged. The harness supports custom tools, MCP, and A2A, and can run locally or on a managed service. The presenters use it to build the workshop agent, but the framework is not tied to one model. This lets a team compare models against the same tools and application code instead of rebuilding the whole agent for each provider.

### The customer service agent gives the model tools tied to a source of truth
[16:18](https://www.youtube.com/watch?v=YXiLj4tJt5A&t=978s)
The example starts with mock data for two customers and their orders. Three tools provide the agent's actions: looking up a customer, retrieving order history, and processing a refund. The system prompt tells the agent to verify the customer before taking action, use tool data to answer questions, and avoid asking for information it already has. The presenters explain that tools give an agent access to databases, files, or other sources instead of making it rely on the model's built-in knowledge. The model decides which tool to call inside the agent loop.

### Inspecting messages exposes the agent loop and its costs
[23:04](https://www.youtube.com/watch?v=YXiLj4tJt5A&t=1384s)
The workshop prints the messages exchanged during a request. The sequence includes the user message, the assistant's tool calls, the tool results, and the final answer. The presenters also show metrics such as token counts. A separate chat.py example turns the same code into a multi-turn conversation without changing the underlying tools. They describe the basic customer service agent as less than 60 lines of code, with the model receiving a question, selecting tools, reading their results, and returning a response.

### Hooks enforce deterministic limits around model behavior
[25:35](https://www.youtube.com/watch?v=YXiLj4tJt5A&t=1535s)
Hooks let developers run code before invocation, after an LLM call, before or after a tool call, and before the final response. The workshop creates a rate limiter that resets for each user request and counts tool invocations. With a maximum of three calls, the hook blocks a tool when the agent exceeds the limit. Lowering the limit makes the behavior visible in a test. The presenters also describe hooks that can block sensitive information before it reaches the model or stop an unwanted final answer, which can avoid another model call and its token cost.

### Blocking a tool call is different from ending the agent turn
[34:16](https://www.youtube.com/watch?v=YXiLj4tJt5A&t=2056s)
An audience question exposes an important control detail. The demonstrated hook blocks a tool call, but the model can continue its loop and attempt another call. To stop the agent immediately, the hook must be written to end the turn as well. The presenters kept the example running so attendees could see the rate limit work, but they say the control can be customized to terminate the turn when the condition is met. A blocked action and a completed agent turn therefore need separate definitions in the application.

### Skills load detailed instructions only when a request needs them
[35:16](https://www.youtube.com/watch?v=YXiLj4tJt5A&t=2116s)
The agent gets three Markdown skills for account troubleshooting, order tracking, and refunds. The files contain procedures such as what to do when an account is locked or a password needs to be reset. A skills plugin points to the folder, and the agent selects the relevant skill for a request. This keeps the full procedure out of the system prompt until it is needed. The presenters describe the skill as additional context that gives the agent the instructions for a specific task without adding those instructions to every request.

### Steering handlers check workflow and response tone
[39:07](https://www.youtube.com/watch?v=YXiLj4tJt5A&t=2347s)
Steering adds a second checking agent or a deterministic handler at points in the agent flow. The workshop uses one handler to check that the refund workflow is followed and another to check the tone. The tone rules say not to overpromise or guarantee specific timelines, not to blame the customer, and to acknowledge frustration. These checks can run before or after model and tool calls. The presenters also describe rules that could redirect a booking, such as splitting a request for more than five people into two rooms. They say such rules can be stored in a database so they can change without editing the agent code.

### AgentCore deployment adds a runtime entry point and built-in observability
[45:12](https://www.youtube.com/watch?v=YXiLj4tJt5A&t=2712s)
The deployment walkthrough keeps the customer service code and adds an entry point that AgentCore Runtime uses to start the application inside its container. The presenters use the CLI to prepare and deploy the application, while AgentCore creates the surrounding infrastructure and permissions. They show local testing before deployment, then invoke the deployed agent through the SDK. To inspect sessions, traces, tool use, and token use, they enable transaction search in the AgentCore console and add the required observability library. The deployment creates infrastructure as code with CDK.

## Notable quotes
- Sandhya Subramani: "Strands agents is an open-source agent harness which means you can bring your own LLM." (01:08)
- Elizabeth Fuentes Leone: "We want to create a hard stop rate limiter and say, hey, even if it's not working, it's fine, stop it at three." (28:56)
- Sandhya Subramani: "When you use a hook you can be more deterministic." (31:37)
- Sandhya Subramani: "The MTP entry point is the thing that the runtime can see." (48:17)
- Sandhya Subramani: "You can invoke this agent using the SDK." (58:12)

## Tools & references mentioned
- Strands Agents
- AWS
- Amazon Bedrock
- Amazon Bedrock AgentCore
- MCP
- A2A
- Agent Control
- CloudWatch
- AWS CLI
- CDK
- Anthropic
- OpenAI
- Llama
- Hugging Face

## Who should watch
- You are building an agent with tools and need to see the messages, tool calls, and token use behind its answers.
- Your application needs hard limits or workflow checks that a model instruction alone cannot reliably enforce.
- You have a notebook prototype and want a practical path to local testing, AgentCore deployment, and runtime traces.

## Related talks

- [Agents That Write Their Own Tools at Runtime](https://aietalks.com/talks/agents-that-write-their-own-tools-at-runtime) (Sandhya Subramani, AWS, 20:40)
- [Ship it! Building Production Ready Agents](https://aietalks.com/talks/ship-it-building-production-ready-agents) (Mike Chambers, AWS, 19:37)
- [Every Company Is Building Agents That Can't Work Together](https://aietalks.com/talks/every-company-is-building-agents-that-cant-work-together) (Justin Schroeder, Standard Agents, 34:49)
- [Build Agents That Run for Hours](https://aietalks.com/talks/build-agents-that-run-for-hours) (Ash Prabaker & Andrew Wilson, Anthropic, 1:15:40)
- [Conquering Agent Chaos](https://aietalks.com/talks/conquering-agent-chaos) (Rick Blalock, Agentuity, 14:40)
