AWS Strands Agents 團隊發布 Strands Harness:開源代理框架,Token 成本降低 28%,準確度相當

2026年9月21日 21:42
站內 AI 整理稿

Many developers find that an agent idea works inside Claude Code or Codex, then struggles once they rebuild it with their own loop.The Strands Agents team at AWS is targeting that gap with Strands harness, a fully assembled, general-purpose agent harness.

It runs locally or deploys to a cloud provider, ships for Python and TypeScript under Apache 2.0, and starts with one line of code.The team reports 28% lower cost than other harnesses running the same Claude or GPT models across 6 benchmarks, with near-equal accuracy.Is it deployable?Yes.

It runs locally, and a bundled skills file helps your coding agent generate deployment config for AWS, GCP, Azure, Cloudflare, and Modal.What is Strands Harness A harness is the system around the model: the loop, tools, context handling, memory, and recovery.

Strands already exposed those building blocks through the Strands Harness SDK.Strands harness packages them into working defaults.It is built as a general-purpose agent, not a coding agent.

Out of the box, createharness() returns an agent that: Runs on a current reasoning model through Amazon Bedrock, Anthropic, OpenAI, Google, Ollama, or LiteLLM.Ships shell, file (read, write, edit), and web tools, instead of a bespoke tool per task.

Offloads bulky tool results to files and caches reused parts of each request.Keeps long-term memory across runs and resumes a conversation from a session ID.Delegates open-ended subtasks to a built-in helper agent and tracks multi-step work with a checklist.Loads Agent Skills when it finds them.

Benchmark Setup and the 28% Figure The Strands Agents team ran distributed benchmarking on Amazon EC2 with Harbor, the evaluation framework from the Terminal-Bench creators.The score is the average across 6 benchmarks: ALFWorld, ContextBench, GAIA, WebShop, τ²-bench, and Terminal-Bench 2.1.

Cost is the average dollars per task.Rivals on the chart are Claude Code, Codex, oh-my-pi, OpenCode, and DeepSeek Harness.One important thing to note.DeepSeek Harness was the most token-efficient harness overall, running about 14% cheaper than Strands harness.It also scored lower on every benchmark.

The chart footnote states that including it brought the overall savings figure down to 28%.The highest-scoring point on the chart is Claude Opus 5 on Strands harness, near 85%.Terminal-Bench 2.1: Same Model, 5 Harnesses The clearest head-to-head uses Claude Fable 5 on Terminal-Bench 2.

1, with 89 trials per harness.HarnessRun costAccuracyStrands harness$56.2969.7Oh-my-pi$86.8369.7OpenCode$73.4266.3Claude Code$248.0561.8DeepSeek Harness$40.3059.5 Against Claude Code, Strands harness cost 77% less and scored 7.9 points higher.Oh-my-pi matched its 69.7 accuracy at 54% higher cost.

DeepSeek Harness was cheaper still, but trailed by 10.2 points.The team also noted that 2 other open-source harnesses performed well on cost and accuracy against Claude Code.(function(){var f=document.getElementById('mtp-strands-frame');window.addEventListener('message',function(e){if(!f||e.source!

==f.contentWindow)return;var d=e.data;if(d&&typeof d.mtpStrandsH==='number'&&d.mtpStrandsH>200){f.style.height=d.mtpStrandsH+'px';}});})(); What Drives the Efficiency Strands harness ships defaults for prompt caching and context management.

The team says context management largely drove both token efficiency and accuracy.3 rules do the work: Tool results over about 1,500 tokens get truncated.Summarization (compaction) triggers when context usage passes 85%.Context recovery runs inside the loop if the window overflows.

This matches recent independent research.The HarnessTax study compared Claude Code, Codex CLI, and Pi across 7 models.It found harness choice barely moved success rates, while the same model reached similar success at up to 5x the cost.

The Strands researchers say a follow-up paper on their benchmarks is coming.Getting Started Install with pip install strands-harness or npm install @strands-agents/harness.

Pick a model by name, or point the harness at a local Ollama model: Copy CodeCopiedUse a different Browserfrom strandsharness import createharness agent = createharness(model="litellm/openai/gpt-5.

6-sol") agent("Research the top three vector databases and compare their pricing") The Strands CLI (npm install @strands-agents/strands-cli) lets you prototype an agent in plain English.

In the team’s demo, the agent was asked to add the Playwright MCP server and measure video load latency on a blog post.Running /export then produced the harness code, with the Playwright MCP included, as a Python or TypeScript zip.The CLI itself is built on Strands harness.

Strands engineer Gautam Sirdeshmukh also used it to build a desktop app that starts Strands harness runs remotely.Customization goes deep.You can override any default, swap models, add tools, or replace components down to the Strands Harness SDK.

Because the harness is a library dependency, the agent prototyped on a laptop is the same one embedded in production.Key Takeaways Strands harness packages AWS’s Strands primitives into a general-purpose, Apache 2.0 agent.

It reports 28% lower cost than rival harnesses across 6 benchmarks at comparable accuracy.With Fable 5 on Terminal-Bench 2.1, it cost 77% less than Claude Code and scored higher.Context defaults drive the gains: 1,500-token truncation, 85% compaction, in-loop recovery.

One create_harness() call targets Bedrock, Anthropic, OpenAI, Google, Ollama, or LiteLLM.Check out the Technical details, GitHub repo, PyPI package, and Strands Agents docs.

The post AWS Strands Agents Team Releases Strands Harness: An Open-Source Agent Harness With 28% Lower Token Cost at Comparable Accuracy appeared first on MarkTechPost.

Related

相關文章

智東西生成式AI

一文看懂昇騰超節點:AI Infra已進入系統工程階段

(公眾號:zhidxcom) 作者 | 陳駿達 編輯 | 漠影 AI大模型競賽,正在進入新的量級。海外,十萬億參數的大模型已經逐步變成現實;國內,數萬億參數的大模型也在加速追趕。為了訓出真正的SOTA模型,算力集群從萬卡走向10萬卡已成為標配。 然而,一個尷尬的現實是:卡越堆越多,真正被利用起來的算力,卻沒有同步增長。華為的仿真數據顯示,在10萬卡集群中,卡間通信可能消耗了40%以上的訓練時間,算力利用率(MFU)往往不到30%。也就是說,大量昂貴的算力,並沒有真正用於計算。

1 小時前
鈦媒體生成式AI

Anew labs,“蒸餾”的行家

醫曜2026.09.21 18:00 · 來自北京全文2781字00:00 / 08:07首款自研藥AN5162,me-too了Dice/禮來。文 | 醫曜AI圈如今言必稱"蒸餾"。蒸餾現有知識,蒸餾競爭對手,蒸餾員工技能,無物不可蒸餾。醫藥圈很少說蒸餾。但這個行業有一個耳熟能詳、讓人稍微有點不屑、卻又必須面對的詞——me-too:copy對手的骨架,在對手專利之外尋求突破。copy得好,是me-better,甚至是me-best(Best-in-Class);copy失敗呢?那就me-worse嘍。

5 小時前

Anthropic與字節扎堆AI製藥,下一個Coding風口卡在了數據這道坎上

Anthropic一邊自建溼實驗室,用來測試自家模型指揮生物實驗的能力,一邊牽手諾和諾德、百時美施貴寶,並把Coefficient Bio收入囊中;字節跳動分拆出來的新生實驗室也完成了首輪融資。被寄予厚望的AI,當下主要作用在把新藥早期研發的輪子轉得更快——壓縮候選分子的搜索空間和實驗迭代時間,但真正燒錢又耗時的臨床試驗環節卻難同步縮短,早期命中率提上來,並不等於臨床成功率就跟著漲。

5 小時前