Strands Harness SDK
The Strands Harness SDK for building an agent harness from the ground up.
QuickstartAn agent harness is the software around a model that turns it into an agent. The Strands Harness SDK is for building one yourself, end to end.
It runs the loop and gives you the pieces you attach to it: tools, memory, sessions, plugins, and interventions. The same code takes you from prototype to production.
A running agent
Section titled “A running agent”The smallest agent is a model with the loop around it. Create one and invoke it:
from strands import Agent
agent = Agent()agent("Explain the agent loop in one sentence.")import { Agent } from '@strands-agents/sdk'
const agent = new Agent()const result = await agent.invoke('Explain the agent loop in one sentence.')console.log(result.lastMessage)From here you add the tools, memory, and model provider your application needs, then take it to production.
Strands harness or the Strands Harness SDK?
Section titled “Strands harness or the Strands Harness SDK?”Strands gives you two starting points, and you can move between them without a rewrite.
| If you want to… | Start with | Why |
|---|---|---|
| Get a complete agent harness with tested defaults | Strands harness | The decisions are already made: system prompt, tools, memory, sessions, context management, and a production loop come pre-wired and benchmarked. You start from a working agent. |
| Build the agent harness yourself, piece by piece | Strands Harness SDK quickstart | Nothing is pre-decided. You get the primitives and the loop, and you choose every component and how they fit. |
| Start on Strands harness and drop down for more control later | Compose with the Strands Harness SDK | Strands harness is built on the Strands Harness SDK, so any piece is yours to swap out without a rewrite. |
Weighing Strands against other frameworks or a hand-written loop instead? See choosing an agent foundation.
Where to go next
Section titled “Where to go next”Building a feature? Each build guide above takes one task end to end. When you need to look up how a piece works, the Components section is the reference underneath the guides: the agent loop, models, state, sessions, hooks, plugins, interventions, and realtime.