Home / Blog / Strands harness and Harness SDK now support Rust
Tech News

Strands harness and Harness SDK now support Rust

Strands launches Rust v0.1.0 preview of Strands Harness and SDK, cutting AWS Lambda cold starts to 50 ms and 48 MB peak RAM with Monty sandboxed tool calls.

By Dillip Chowdary • Dec 02, 2026 • Source: strandsagents.com

Strands harness and Harness SDK now support Rust
Image: strandsagents.com

At a glance

Release
Strands Harness & SDK v0.1.0 preview
Crates
strands-harness, strands (Rust + Tokio)
Lambda cold start
50 ms Rust vs 635 ms TS, 2,428 ms Python
Peak memory
48 MB Rust vs 195 MB TS, 192 MB Python
Benchmark savings
34% lower median cost (94,000 trials)
Python sandbox
Monty (Rust interpreter by Pydantic)

Strands has released the Strands Harness and Strands Harness SDK in Rust as a v0.1.0 developer preview through the strands-harness and strands crates, bringing its agent loop, built-in tools, and context management to native binaries with a 50 ms AWS Lambda cold start, according to strandsagents.com's report.

Built using Strands Factory, which the team is open sourcing this week, the Rust implementation mirrors the Python and TypeScript editions behind an idiomatic Rust API. This breakdown covers the Lambda latency and memory benchmarks, compiler-driven agent feedback loops, sandboxed Python execution via Monty, and the caching architecture for production engineers.

01Native cold starts and AWS Lambda benchmarks

Agents increasingly run in scale-to-zero serverless functions, high-concurrency services, and edge devices or robots with tight memory limits. Compiling directly to a native binary with Tokio async execution and no garbage collector eliminates runtime boot overhead.

To measure the difference, Strands ran the identical Strands Harness agent across Rust, TypeScript, and Python on AWS Lambda using arm64, 1,024 MB of memory, and Amazon Nova on Amazon Bedrock, recording the median across 100 runs.

Metric (100-run median)RustTypeScriptPython
AWS Lambda cold start50 ms635 ms2,428 ms
Peak memory usage48 MB195 MB192 MB

At 50 ms cold start and 48 MB peak memory, Rust starts more than 12 times faster than TypeScript and nearly 49 times faster than Python while using roughly a quarter of the RAM. Strands also noted that across 94,000 benchmark trials, Strands Harness achieved the highest accuracy and lowest estimated cost in both Anthropic and OpenAI comparisons, cutting median estimated costs by 34%.

02Infinity research runtime and 75,000 concurrent agents

Beyond single-invocation Lambda speed, Strands is experimenting with integrating Infinity into the Rust harness and SDK. Infinity is a research runtime from the Hydro project, a collaboration between AWS and UC Berkeley.

Infinity treats an AI agent like a Rust async function. Whenever an agent pauses while waiting on a tool call, the runtime saves its conversation state and suspends execution so an idle agent consumes only as much memory as its conversation history.

According to Strands, that suspension model allows 75,000 concurrent agents to fit inside the 8 GB of RAM on a Raspberry Pi 5, and lets a serverless function exit while a long-running tool call continues for hours.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

03Compiler feedback loops and isolated Monty scripting

Strands highlighted that Rust's strict compiler makes it unusually effective for coding agents to write and maintain. Because rustc checks types, ownership, and thread safety at compile time, mistakes such as moving a HashMap into a background thread before reading it fail immediately with error[E0382] and an actionable hint to clone the value.

A coding agent reads the compiler diagnostic, patches the source, rebuilds, and feeds test failures into the next iteration—the same feedback loop Strands Factory used to construct the SDK. Meanwhile, agent behavior remains dynamic at runtime because the model selects actions and tools step by step.

For programmatic tool calling, the Rust Strands Harness lets the agent write Python scripts that chain, loop over, and parallelize other tools inside Monty, a Python interpreter written in Rust by Pydantic. Monty isolates agent-generated Python with zero access to the filesystem, network, or environment, exposing only the harness's async tool functions such as web_fetch.

04Context archiving and 80% prompt cache hits

Developers install the preview with cargo add strands-harness strands and cargo add tokio --features macros,rt-multi-thread, then instantiate an agent via create_harness and HarnessAgentOptions::builder(). In a walkthrough task comparing pricing and limits across Pinecone, Weaviate, Qdrant, and Zilliz, the agent combined shell inspection, web search, and parallel Monty scripts.

  1. Batch multi-page fetches Instead of sequential calls, the agent wrote an asyncio.gather script calling web_fetch across five pricing and documentation URLs in one tool turn.
  2. Archive large context payloads When two responses were too large for the prompt window, the harness stored short previews inline, archived the full text, and let the agent pull specifics with retrieve_context.
  3. Cache repeated prefixes Across 11 model calls and 11 tool calls in under two minutes, default provider-tuned prompt caching served 80% of processed tokens from cache.
  4. Persist sessions and memory On completion, the harness wrote resumable session history under .agent/sessions and six long-term notes under .agent/memory.

Every default in strands-harness can be overridden, or developers can build directly on the lower-level strands Harness SDK crates.

05Production deployment fit and next steps

For teams running interactive serverless agents on AWS Lambda or dense multi-tenant agent fleets, the v0.1.0 Rust preview removes the multi-second Python cold-start tax while preserving identical system prompts and context controls.

Engineering teams evaluating the crates should note that strands-harness and strands are currently labeled a v0.1.0 developer preview, and the Hydro Infinity runtime integration remains experimental.

Watching how Strands open sources Strands Factory this week and benchmarks Infinity suspension in production will show whether Rust becomes the default runtime for cost-sensitive agent harnesses.

Frequently asked questions

How fast is the Strands Rust Harness on AWS Lambda compared to Python and TypeScript?

Across 100 runs on arm64 1,024 MB AWS Lambda with Amazon Nova on Amazon Bedrock, Rust achieved a 50 ms median cold start and 48 MB peak memory, compared to 635 ms and 195 MB for TypeScript and 2,428 ms and 192 MB for Python.

Can a compiled Rust agent still write and execute dynamic code?

Yes. The Rust Strands Harness supports programmatic tool calling where the agent writes Python scripts executed inside Monty, a Rust-based Python interpreter by Pydantic with no filesystem, network, or environment access.

How does Strands Harness reduce token costs during multi-step runs?

The harness archives oversized tool outputs while keeping short previews in context for retrieve_context, and enables provider-specific prompt caching by default, hitting 80% cached tokens in an 11-turn benchmark run.

What is the Infinity runtime mentioned with Strands Rust?

Infinity is a research runtime from the AWS and UC Berkeley Hydro project that suspends waiting agents to memory matching their conversation history, fitting 75,000 concurrent agents in 8 GB on a Raspberry Pi 5.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →