THE CRAFT OF AGENT ENGINEERING
Reason with models.
Act through tools.
Verify what happened.
Build agents you can explain. Thirty substantial lessons connect the Strands loop to tool contracts, state, human approval and operational evidence.
A deliberate boundary.
- 01Receive the taskTrusted identity · clear scope
- 02Choose a stepModel reasons over context
- 03Check the authorityValidate · authorize · execute
- 04Verify the evidenceObserve · respond · record
The operator asks about one synthetic incident. The application supplies authenticated identity.
Conceptual walkthrough. No model, tool or cloud resource runs here.
Official release baseline checked 6 October 2026. The current documentation calls the core library the Strands Harness SDK. Package names remain strands-agents and @strands-agents/sdk.
ParcelOps is a fictional incident assistant using synthetic records. Begin with a read-only lookup, then study state, coordination and deployment without inventing completed experiments.
From the first loop to a defensible system.
Read in order, revisit one mechanism, or use the interviews to test your reasoning.
Understand the loop
Design reliable tools
State, context and control
Connect and coordinate
Operate with evidence
BEFORE YOU START
A familiar language.
A narrower capability.
Bring basic Python, JSON and terminal familiarity. The main path uses Python 3.10+; the TypeScript bridge follows the official Node.js 22+ prerequisite. Use a supported patched runtime and a disposable project.
No cloud account is needed for the offline capstone. Optional inference requires an approved provider, explicit model selection and a budget.
Keep these distinctions close
- Tool selection is different from authorization.
- Valid JSON can contain an unsupported claim.
- Cancellation does not reverse completed effects.
- Session, context and memory solve different problems.
- A passing fixture test is not a production benchmark.
BUILD WITH EVIDENCE
The offline ParcelOps lab
A standard-library exercise with deterministic checks. No model calls, network access or incident-system writes.
CONNECT THE MECHANISMS
The scenario interview
Eight cases covering authority, recovery, evaluation and operational decisions.
Sources, experiments and limits
This edition was checked against the official Strands documentation, Python 1.58.0 and TypeScript 1.19.0. Version-sensitive statements link to primary sources within each chapter. Experimental context strategies are labelled, and Python/TypeScript differences are called out where they affect behavior.
The handbook replaces the earlier single-page Strands guide as the Library entry. It does not carry forward unsupported performance or adoption claims. Benchmark and article chapters provide honest methods and blank templates until actual evidence exists.
Reading progress stays in this browser, separately from the Docker handbook. Everyone starts fresh. Completion marks are your own learning checklist and do not certify lab execution.