{"slug": "aws-strands-harness-77-cheaper-agent-than-claude-code", "title": "AWS Strands Harness: 77% Cheaper Agent Than Claude Code", "summary": "AWS's Strands team released Strands Harness v0.1.0 on September 21, an open-source agent that costs $56.29 per task versus Claude Code's $248.05 on Terminal-Bench 2.1 using the same Fable 5 model, with 69.7% accuracy versus Claude Code's 61.8%. The 77% cost reduction comes from context management — truncating tool outputs over roughly 1,500 tokens, compacting at 85% context capacity, and in-loop overflow recovery — rather than a better model, and AWS reported Strands Harness used 28% fewer tokens than other harnesses across six benchmarks (ALFWorld, ContextBench, GAIA, WebShop, τ³-bench, and Terminal-Bench 2.1). The Python 3.10+ and TypeScript (Node.js 20+) SDK ships under Apache 2.0, defaults to Amazon Bedrock, and supports Anthropic, OpenAI, Google, Ollama, and LiteLLM, positioning it for batch automation rather than interactive coding.", "body_md": "AWS’s Strands team released Strands Harness v0.1.0 on September 21 — a fully assembled, open-source agent that costs $56 per task versus Claude Code’s $248 on [Terminal-Bench 2.1](https://www.marktechpost.com/2026/09/21/aws-strands-agents-team-releases-strands-harness/), using the same Fable 5 model. The headline number is striking, but the actual story is more interesting: the savings come from context management, not a better model. That matters for anyone paying Claude Code rates to run batch automation jobs.\n\n## What Strands Harness Actually Is\n\nStrands Harness isn’t a new framework you assemble from parts. It’s a pre-wired agent you install and run. One call to `create_harness()` gives you an agent with shell access, file read/write/edit, web search, session persistence, long-term memory, and a helper agent for subtask delegation — all built in, all on by default.\n\nIt ships for Python (3.10+) and TypeScript (Node.js 20+) under [Apache 2.0](https://github.com/strands-agents/harness-sdk), and runs against any LLM you hand it: Amazon Bedrock (default), Anthropic, OpenAI, Google, Ollama for local models, or LiteLLM as a proxy.\n\n``` python\nfrom strands_harness import create_harness\n\n# Default: Bedrock with Claude Opus 4.8\nagent = create_harness()\nagent(\"Find the slowest test in this repo and explain why it's slow\")\n\n# One line to switch providers\nagent = create_harness(model=\"anthropic/claude-sonnet-5\")\n```\n\nSessions persist by default. The harness writes each conversation to `./.agent/sessions`. Pass a session ID to resume a prior run:\n\n```\nagent = create_harness(session={\"id\": \"api-design\"})\nagent(\"Which of those approaches would you pick for an external-facing API, and why?\")\n```\n\n## Why It’s Cheaper: Context Compaction\n\nThe cost difference isn’t magic — it’s three context management rules applied consistently during long-running loops:\n\n- **Tool output truncation:** Any tool result over ~1,500 tokens gets truncated before it enters the context window.\n- **Compaction at 85% capacity:** When the context window hits 85% full, the harness summarizes older turns and migrates bulky tool results to disk, leaving only a short reference pointer in context.\n- **In-loop recovery:** If overflow still occurs, the harness handles it mid-loop without crashing.\n\nLong-running agents bleed tokens by carrying full tool outputs and conversation history through every iteration. Claude Code doesn’t fix this because it’s designed for interactive sessions where you’re watching — not batch loops where no one is. Strands Harness is built for the latter.\n\n## Benchmark Results\n\nAWS benchmarked across six standard evaluations: ALFWorld, ContextBench, GAIA, WebShop, τ³-bench, and Terminal-Bench 2.1. Across all six, Strands Harness used 28% fewer tokens than other harnesses at comparable accuracy.\n\nOn Terminal-Bench 2.1 — 89 trials, Fable 5 model:\n\n- **Strands Harness:** $56.29/task, 69.7% accuracy\n- **Claude Code:** $248.05/task, 61.8% accuracy\n\nWorth noting: DeepSeek Harness was more token-efficient overall, but at lower accuracy. These are also vendor-run benchmarks. Terminal-Bench 2.1 measures long-running autonomous shell tasks — a genuinely different workload from Claude Code’s interactive coding sessions.\n\n## When to Use It (and When Not To)\n\nStrands Harness makes sense for:\n\n- Batch automation — CI log triage, test analysis, codebase audits\n- DevOps workflows that run unattended for minutes or hours\n- Back-office data processing that needs persistent memory across sessions\n- Cost-sensitive applications where Claude Code per-task rates are unsustainable\n\nIt doesn’t replace Claude Code for interactive coding. If you’re iterating on a function with a model, reading output, and adjusting your approach in real time, Claude Code’s tighter feedback loop is the right tool. Strands Harness is for when you fire off a task and come back to a result.\n\n## The AWS Default Worth Knowing\n\nOut of the box, `create_harness()` routes model calls through Amazon Bedrock. One parameter changes this — but if your team accepts defaults, you’re defaulting to Bedrock. AWS built this to be model-agnostic, and technically it is. The path of least resistance still runs through their infrastructure.\n\nThe harness deploys to AWS ECS, Modal, Cloudflare, Azure Container Apps, or Google Cloud Run. AWS infrastructure is not required — but it’s the obvious on-ramp, and that is by design.\n\n## Getting Started\n\nInstall with `pip install strands-harness` (Python) or `npm install @strands-agents/harness` (TypeScript). The [official launch post](https://strandsagents.com/blog/introducing-strands-harness/) and [quickstart docs](https://strandsagents.com/docs/user-guide/harness/quickstart/) cover model configuration, session persistence, and MCP server integration. The [GitHub repo](https://github.com/strands-agents/harness-sdk) is strands-agents/harness-sdk.\n\nIf your agent workload involves long-running loops, multiple tool calls per task, and costs you care about — run the benchmarks on your own tasks before committing to anything. The 77% figure is real in the right workload. In the wrong one, you’re just running a different harness.", "url": "https://wpnews.pro/news/aws-strands-harness-77-cheaper-agent-than-claude-code", "canonical_source": "https://byteiota.com/aws-strands-harness-77-percent-cheaper-agent-claude-code/", "published_at": "2026-09-23 04:10:08+00:00", "updated_at": "2026-09-23 04:23:49.959524+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-infrastructure", "developer-tools", "artificial-intelligence"], "entities": ["AWS", "Strands Harness", "Claude Code", "Amazon Bedrock", "Anthropic", "OpenAI", "Google", "Terminal-Bench 2.1"], "alternates": {"html": "https://wpnews.pro/news/aws-strands-harness-77-cheaper-agent-than-claude-code", "markdown": "https://wpnews.pro/news/aws-strands-harness-77-cheaper-agent-than-claude-code.md", "text": "https://wpnews.pro/news/aws-strands-harness-77-cheaper-agent-than-claude-code.txt", "jsonld": "https://wpnews.pro/news/aws-strands-harness-77-cheaper-agent-than-claude-code.jsonld"}}