Strands used AI agents to build its own Rust support. Now the Strands harness, a ready-to-run agent, and the Strands Harness SDK it's built on both support Rust, in developer preview (the strands-harness and strands crates, version number to add once they are published). Strands is an open source toolkit for production agents. Breaking changes can land in minor versions during 0.x. Install: cargo add strands-harness strands.
The numbers, with their conditions: the same agent, model (Amazon Nova Lite on Bedrock) and tools on AWS Lambda, arm64, 1024 MB, built with the Strands harness (create_harness, defaults apart from the model, the two tools and the instructions) in Rust, TypeScript and Python. Median Init Duration over 100 cold starts: 50 ms in Rust, 635 ms in TypeScript, 2,428 ms in Python. Max memory on the first invocation, median of those 100 cold starts: 48, 195 and 192 MB. Init Duration is the time before the handler runs. Counting the first request too, the billed duration of a cold invoke is about 2.1 s in Rust, 2.2 s in TypeScript and 4.6 s in Python, because the model call is most of the time in Rust and TypeScript. Warm, all three answer in 1.2 to 2.1 seconds (medians of 100). This is one agent, one model, a small sample, the Rust harness from a pre-release branch and the Python and TypeScript harnesses at 0.6.0, so read it as a direction and not a benchmark suite. The script and raw results are here: [BENCH LINK, pending].
How the Rust support was built: the team spent several days designing the spec with Claude, using two human-written and several AI-written Strands Rust SDKs as references. The spec came to nearly 20,000 words, with 77 binding decisions and 14 build phases. Strands Factory, the team's system of autonomous agents, then built the first version and logged every decision the spec didn't cover, 291 of them. Engineers reviewed all of them and kept 92%. Engineers, solutions architects and scientists across AWS reviewed the result, and the existing TypeScript and Python test suites were ported to validate it.
What's missing today: Graph and Swarm (agents-as-tools and a subagent tool exist), a native Ollama provider, and a vended S3 storage backend.
Happy to answer questions about the build process or the numbers.
hazelsaenz_tech•9m ago
The numbers, with their conditions: the same agent, model (Amazon Nova Lite on Bedrock) and tools on AWS Lambda, arm64, 1024 MB, built with the Strands harness (create_harness, defaults apart from the model, the two tools and the instructions) in Rust, TypeScript and Python. Median Init Duration over 100 cold starts: 50 ms in Rust, 635 ms in TypeScript, 2,428 ms in Python. Max memory on the first invocation, median of those 100 cold starts: 48, 195 and 192 MB. Init Duration is the time before the handler runs. Counting the first request too, the billed duration of a cold invoke is about 2.1 s in Rust, 2.2 s in TypeScript and 4.6 s in Python, because the model call is most of the time in Rust and TypeScript. Warm, all three answer in 1.2 to 2.1 seconds (medians of 100). This is one agent, one model, a small sample, the Rust harness from a pre-release branch and the Python and TypeScript harnesses at 0.6.0, so read it as a direction and not a benchmark suite. The script and raw results are here: [BENCH LINK, pending].
How the Rust support was built: the team spent several days designing the spec with Claude, using two human-written and several AI-written Strands Rust SDKs as references. The spec came to nearly 20,000 words, with 77 binding decisions and 14 build phases. Strands Factory, the team's system of autonomous agents, then built the first version and logged every decision the spec didn't cover, 291 of them. Engineers reviewed all of them and kept 92%. Engineers, solutions architects and scientists across AWS reviewed the result, and the existing TypeScript and Python test suites were ported to validate it.
What's missing today: Graph and Swarm (agents-as-tools and a subagent tool exist), a native Ollama provider, and a vended S3 storage backend.
Happy to answer questions about the build process or the numbers.