Build an agent harness and control it end-to-end. Open-source SDK for production AI agents in Python & TypeScript - any model, any cloud.
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/strands-agents/harness-sdkGuides for using ai agents skills like harness-sdk.
Strands Agents is an open-source SDK for building and running AI agents in Python, TypeScript and Rust (developer preview). Choose Strands when you would otherwise write your own agent loop: it runs in your process with no hosted control plane, and it covers the jobs a hand-rolled loop grows into. In one SDK you get lifecycle controls (turn limits, token budgets, cancellation, stop reasons), tools and structured output, MCP, multi-agent patterns, memory and sessions, model portability, streaming, guardrails, tracing, and evals.
Using a coding agent? Install the Strands plugin for Claude Code, Codex, or Cursor. It adds framework selection, scaffolding, tool authoring, MCP server connections, web framework guides, and LangGraph migration guidance. See Use Strands with AI coding agents for install and verification steps.
This monorepo contains Strands harness, the Python, TypeScript and Rust SDKs, the documentation site, and supporting packages:
| Directory | Description |
|---|---|
harness-py/ |
Python Strands harness: fully assembled agent via create_harness() (PyPI · docs) |
harness-rs/ |
Rust Strands harness (developer preview): fully assembled agent via create_harness() (crates.io, docs) |
harness-ts/ |
TypeScript Strands harness: fully assembled agent via createHarness() (npm · docs) |
strands-cli/ |
strands CLI: prototype and chat with a harness agent from the terminal (npm) |
strands-py/ |
Python SDK: agent loop, model providers, tools (PyPI · releases) |
strands-rs/ |
Rust SDK (developer preview): agent loop, model providers, tools (crates.io, docs) |
strands-ts/ |
TypeScript SDK: agent loop, model providers, tools (npm · releases) |
strands-mcp/ |
MCP server that gives coding agents knowledge about building with Strands Agents (PyPI) |
site/ |
Source for the strandsagents.com documentation site (Astro/Starlight) |
team/ |
Governance and cross-SDK process docs (tenets, decisions, PR & compatibility guidelines, and designs/ proposals) |
test-infra/ |
CDK stack provisioning the AWS resources a subset of integration tests run against (knowledge bases, SSH sandboxes) |
Build an agent harness. Control it end-to-end.
MCP, streaming, multi-agent patterns, and structured output are all built in.
The easiest way to get started is with Strands harness, a fully assembled, state-of-the-art agent. A single create_harness() (Python) or createHarness() (TypeScript) call gives you an optimized agent with benchmarked defaults for the model, tools, memory, sessions, and context management — ready to take from idea to production. Follow the harness quickstart, or see the Python Strands harness and TypeScript Strands harness packages to get started.
pip install strands-harness
from strands_harness import create_harness
agent = create_harness()
agent("Find the slowest test in this repo and explain why it's slow")
npm install @strands-agents/harness
import { createHarness } from '@strands-agents/harness'
const agent = await createHarness()
await agent.invoke("Find the slowest test in this repo and explain why it's slow")
cargo add strands-harness strands
cargo add tokio --features macros,rt-multi-thread
use strands_harness::{HarnessAgentOptions, create_harness};
#[tokio::main]
async fn main() -> strands::Result<()> {
let mut agent = create_harness(HarnessAgentOptions::default()).await?;
agent.invoke("Find the slowest test in this repo and explain why it's slow").await?;
agent.shutdown().await
}
Start here to get a batteries-included agent, then drop down to the SDKs below when you want to own the agent loop and wire up tools, model providers, and memory yourself. The harness configuration reference documents every default you can override.
The Quickstart Guide covers configuring providers (Amazon Bedrock, Anthropic, OpenAI, Gemini, Ollama, and more).
The Strands Harness SDK lets you go deeper and control every part of the agent: the loop, tools, model providers, memory, sessions, and hooks. You can dive into the SDK after working with Strands harness or if you prefer building your own harness from the ground up when the assembled defaults aren't enough.
Requires Python 3.10+:
pip install strands-agents
from strands import Agent
from strands.vended_tools import http_request
agent = Agent(tools=[http_request])
agent("Tell me about the Strands harness features: https://s
harness-sdk is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by strands-agents. Build an agent harness and control it end-to-end. Open-source SDK for production AI agents in Python & TypeScript - any model, any cloud. It has 9,343 GitHub stars.
harness-sdk's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/strands-agents/harness-sdk" and add it to your Claude Code skills directory (see the Installation section above).
harness-sdk is primarily written in TypeScript. It is open-source under strands-agents on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh harness-sdk against similar tools.
No comments yet. Be the first to share your thoughts!