AWS Strands Harness: What an Agent Harness Is, and What This One Picks for You
What is the difference between an agent SDK and an agent harness? I didn’t have a clean answer until AWS released Strands harness, because it’s the same team shipping both, one on top of the other.
The SDK (Strands Agents) gives you the parts: a model interface, a tool-calling loop, hooks. You decide how to handle a 40,000-token tool result, when to summarize old context, whether to cache. The harness is those decisions already made. Install it, point it at a model, and you have a working general-purpose agent. Techzine’s summary of AWS’s pitch: “the entire system runs with a single line of Python or TypeScript code.”
Claude Code is a harness. So are most coding agents. What’s different here is that this one is Apache 2.0, model-agnostic, and not specifically about code.
The defaults it picks for you
pip install strands-harness
npm install @strands-agents/harness
Model providers: Amazon Bedrock, Anthropic, OpenAI, and Google, plus local models through Ollama or LiteLLM. It runs in any Linux container (Techzine lists Cloudflare Containers, Google Cloud Run, and Amazon ECS), so you’re not tied to AWS. There’s a CLI with an /export command that dumps your agent out as plain Python or TypeScript using the SDK, which I like: you can start with the harness and walk away from it later.
The defaults are where the actual opinions live:
- Tool results over about 1,500 tokens get truncated. This is the big one. Most context blowups in agent loops come from one tool returning a whole file or a huge JSON blob.
- Compaction starts when context passes 85% of the window.
- Prompt caching is on by default.
None of these are new ideas. Having them on by default is the point. Every team building their own loop rediscovers them after their first surprise bill.
The 28% claim
AWS says that across six benchmarks, Strands harness used 28% fewer tokens than comparable harnesses running the same Claude or GPT models, “with no loss of accuracy.” Against Claude Code with Fable 5, it says the cost difference was as high as 77%, with a higher Terminal Bench 2.1 score. Tests ran on EC2 using Harbor. The paper is “forthcoming.”
Three reasons I’d hold off on repeating that number:
- It’s a vendor benchmark with no paper yet.
- The comparison set is mostly coding agents, which are tuned for a different job. A general harness that truncates tool output hard will use fewer tokens on tasks where the truncated output didn’t matter.
- “28% fewer tokens” and “28% cheaper” aren’t the same thing once caching is involved. If one harness caches well and the other doesn’t, the token count can match while the bill doesn’t.
The direction is believable, though. Harness choices move cost a lot. Truncating tool output alone can cut a long agent run’s token count substantially, and the model never notices most of what got cut.
Who should look at it
If you’re running your own agent loop on top of an SDK and keep re-solving context management, this is worth reading even if you don’t adopt it, just to see where AWS set the knobs. If you’re happy with a coding-specific harness for coding, there’s no reason to switch based on the numbers we have so far. Wait for the paper.