Agents Are Just Loops
Build your first AI agent in just 2 lines. No frameworks to memorize, no PhD required. Just a loop, some tools, and a model that figures out the rest.
In this video, I build 4 agents from scratch using the open-source Strands Agents SDK — starting with a single tool call and ending with a multi-agent orchestrator. You'll see exactly how the agent loop works: the model reasons, selects a tool, executes it, and repeats until it has an answer.
1. An agent with one tool (calculator)
2. An agent with multiple tools where the model chooses
3. The same agent with hooks so you can watch every decision
4. An orchestrator that routes to specialist agents
Blogpost: https://go.aws/48WWXlz
GitHub repo (all code): https://go.aws/4wsWEJe
Strands Agents SDK: https://go.aws/4u9Ultf
Strands Agents docs: https://go.aws/4wo73Gl
Morgan's deployment walkthrough: https://go.aws/3Rba0ty
Morgan's production architectures video: https://go.aws/48XDLEe
Follow AWS Developers!
🆇 X: https://go.aws/3Po2YkH
💼 LinkedIn: https://go.aws/3PeGVwP
0:00 Intro: Two lines = one working agent
0:22 What is an agent? (The Loop)
1:50 Agent #1: One Tool (Calculator)
3:07 Agent #2: Multiple Tools (Model Chooses)
4:32 Pro Tip: Docstrings are your API contract
4:50 Agent #3: Hooks (Watch the Loop Live)
6:20 Agent #4: Multi-Agent Orchestrator
7:35 Recap: The Pattern
8:12 Try It Yourself
#AWS #AIAgents #StrandsAgents #Python
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
More on: Agent Foundations
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
Claude Code Isn’t the Only Game in Town
Dev.to AI
Mediator Receipts: The Question to Ask About Agent Attestation
Dev.to AI
Isomorphic Labs’ $2.1 Billion Fundraise Is The Biggest Bet Yet On AI Drug Discovery
Forbes Innovation
Notion just turned its workspace into a hub for AI agents
TechCrunch AI
Chapters (9)
Intro: Two lines = one working agent
0:22
What is an agent? (The Loop)
1:50
Agent #1: One Tool (Calculator)
3:07
Agent #2: Multiple Tools (Model Chooses)
4:32
Pro Tip: Docstrings are your API contract
4:50
Agent #3: Hooks (Watch the Loop Live)
6:20
Agent #4: Multi-Agent Orchestrator
7:35
Recap: The Pattern
8:12
Try It Yourself
🎓
Tutor Explanation
DeepCamp AI