harness-sdk / harness-py
AGENTS.md8.7k starsChanged 59 days agoApache-2.0View on GitHub
This document provides context and conventions for AI coding assistants working on the Strands harness Python package (harness-py/). For human contributors, see CONTRIBUTING.md. Cross-package rules live in the root AGENTS.md. Public-surface parity with harness-ts/, the shared defaults, the single system-prompt artifact, and the evergreen-comment rule apply to both packages and are stated once there. This file shows only the Python-idiomatic form and the rules unique to Python. When a rule applies to both packages, edit the root, not this file.
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about strands-agents/harness-sdk
- @fluid.sublimer.me“GitHub - strands-agents/harness-sdk: Build an agent harness and control it end-to-end. Open-source SDK for …”Bluesky · Sep 30, 2026 · 2 likes
- @github-trending.bsky.social“📦 strands-agents / harness-sdk ⭐ 7,621 (+96) 🗒 Python Build an agent harness and control it end-to-end. …”Bluesky · Sep 24, 2026 · 2 likes
- aws/bedrock-agentcore-sdk-typescript“feat: implement SessionManager for Strands TS integration”GitHub · Jul 16, 2026 · 2 reactions
- aws/bedrock-agentcore-sdk-typescript“An AgentCoreMemoryStore that works with the Strands native memory management system (`MemoryManager`)”GitHub · Jun 5, 2026 · 2 reactions
- @dailygithubtrends.bsky.social“今日のGitHubトレンド strands-agents/harness-sdk”Bluesky · Sep 23, 2026 · 1 likes
The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 51
Talked about on GitHub and Bluesky (51 times).
On GitHub · 47
- Jul 16, 2026feat: implement SessionManager for Strands TS integration — aws/bedrock-agentcore-sdk-typescript2 reactions
- Jun 5, 2026An AgentCoreMemoryStore that works with the Strands native memory management system (`MemoryManager`) — aws/bedrock-agentcore-sdk-typescript2 reactions
- Aug 16, 2026Chore(deps): bump strands-agents[openai] from 1.51.0 to 1.52.0 in /v1 — rhprasad0/nova-toll-budget-agent1 reaction · 1 comment
- Aug 11, 2026Chore(deps): bump strands-agents[openai] from 1.50.2 to 1.51.0 — rhprasad0/nova-toll-budget-agent1 reaction
- Jun 22, 2026chore(deps): bump the lambda-dependencies group across 1 directory with 6 updates — thechrisgrey/thechrisgrey1 reaction · 3 comments
42 more on GitHub
- Oct 5, 2026build(deps): bump strands-agents from 1.45.0 to 1.57.1 — diagridio/python-ai0 reactions
- Oct 5, 2026chore(deps): update strands-agents requirement from >=1.42.0 to >=1.57.2 in /tutor — aws-samples/amazon-bedrock-workshop0 reactions
- Oct 5, 2026chore(deps): bump the agent-framework group across 1 directory with 3 updates — suranimayur/banking-data-agents0 reactions · 1 comment
- Oct 3, 2026Update strands-agents requirement from >=1.0.0 to >=1.57.1 in /harness — sholtomaud/desktop-uat0 reactions
- Oct 3, 2026Update strands-agents requirement from <2,>=1.47.0 to >=1.57.1,<2 in /src — ikenley/email-ai-agent0 reactions
- Oct 2, 2026rc5 a2a template has incompatible dependencies — aws/agentcore-cli0 reactions · 1 comment
- Oct 1, 2026Bump strands-agents from 1.45.0 to 1.57.1 in /functions/most_popular_repo_strands — nexcode240/prompt-chaining-sls0 reactions
- Oct 1, 2026Bump strands-agents from 1.54.0 to 1.57.1 in /functions/most_popular_repo_strands — aws-samples/amazon-bedrock-serverless-prompt-chaining0 reactions · 1 comment
- Oct 1, 2026chore(deps): update strands-agents requirement from <2.0,>=1.0 to >=1.57.1,<2.0 — MariamJangveladze/conversational-banking-agent-demo0 reactions
- Oct 1, 2026Bump strands-agents from 1.50.2 to 1.57.1 in /functions/most_popular_repo_strands — probelabs/amazon-bedrock-serverless-prompt-chaining-audit0 reactions
- Oct 1, 2026Bump the python-deps group with 2 updates — mauc-agentic/spec-to-runtime-aws0 reactions
- Oct 1, 2026build(deps): bump the python group with 2 updates — vishalsg42/munim0 reactions
- Sep 30, 2026chore(deps): bump the python-minor-patch group across 6 directories with 3 updates — aws-samples/amazon-transcribe-live-meeting-assistant0 reactions
- Sep 29, 2026build(deps): bump strands-agents from 1.55.1 to 1.57.1 — AjaneeI/homeops-agent0 reactions · 1 comment
- Sep 29, 2026chore(deps): bump strands-harness from 0.1.1 to 0.1.2 in /app/ops_investigator — iracic82/strands-harness-on-aws0 reactions
- Sep 29, 2026chore(deps): bump strands-agents from 1.56.0 to 1.57.1 in /app/ops_investigator — iracic82/strands-harness-on-aws0 reactions
- Sep 28, 2026chore(deps): bump @strands-agents/sdk from 1.12.0 to 1.19.0 — 4suke-sun/connpass-scout-agent0 reactions · 1 comment
- Sep 28, 2026chore(deps): bump strands-agents from 1.56.0 to 1.57.0 — iguinea/mongodb-session-manager0 reactions
- Sep 27, 2026Bump strands-agents from 1.56.0 to 1.57.0 — Prashant-thakur77/Beacon0 reactions
- Sep 26, 2026build(deps): Update strands-agents requirement from >=1.0 to >=1.57.0 in /agents — minho5889/gen-ai-pro0 reactions
- Sep 23, 2026Add LangGraph migration examples (Python and TypeScript) — strands-agents/samples0 reactions · 1 comment
- Sep 22, 2026chore(deps): bump the python group across 1 directory with 3 updates — aws-samples/sample-strands-agent-with-agentcore0 reactions
- Sep 21, 2026chore(deps): bump strands-agents from 1.55.1 to 1.56.0 — fakhriaunur/genie-fleet0 reactions
- Sep 18, 2026Bump strands-agents from 1.55.0 to 1.55.1 — harveybellini/glide0 reactions
- Sep 16, 2026Bump the aws-agent-toolchain group across 1 directory with 2 updates — ag-ke-nakamura/form-echo-agent0 reactions
- Sep 12, 2026Bump strands-agents from 1.54.0 to 1.55.0 — AmirmLotfy/incaseof0 reactions
- Sep 4, 2026Bump the all group with 6 updates — rogervinas/strands-agents-langfuse-evaluations0 reactions
- Sep 2, 2026Bump the aws-agent-toolchain group in /app/FormEchoAgent with 2 updates — ag-ke-nakamura/form-echo-agent0 reactions
- Sep 2, 2026build(deps): bump the agent-dependencies group across 1 directory with 6 updates — nightandweather/lifelens-agent0 reactions
- Sep 2, 2026Bump strands-agents from 1.53.0 to 1.54.0 — mli-cyber/ada0 reactions
- Sep 1, 2026chore(deps): bump the python-e2e group in /e2e_tests/python with 5 updates — awslabs/run-model-context-protocol-servers-with-aws-lambda0 reactions
- Sep 1, 2026chore(deps): bump the python-chatbots group in /examples/chatbots/python with 4 updates — awslabs/run-model-context-protocol-servers-with-aws-lambda0 reactions
- Aug 29, 2026chore(deps): update strands-agents requirement from >=1.52.0 to >=1.53.0 in /apps/agent — yuyumama/AWS-MON0 reactions
- Aug 10, 2026chore(deps): update strands-agents requirement from >=1.26.0 to >=1.52.0 in /backend — SxBxcoder/Avoir0 reactions
- Aug 5, 2026[BUG] filter_restored_tool_context is incompatible with extended thinking — aws/bedrock-agentcore-sdk-python0 reactions · 1 comment
- Aug 3, 2026build(deps): Update strands-agents[anthropic,gemini,openai] requirement from >=1.50 to >=1.50.2 — khalaharvi/FDE-Agent-Platform0 reactions
- Aug 2, 2026deps(deps): update strands-agents requirement from >=0.1.0 to >=1.50.2 in /backend — camiloavilacm/camiloavila.dev0 reactions · 3 comments
- Jul 22, 2026Bump strands-agents from 1.39.0 to 1.48.0 — huisun/conversation-ai0 reactions
- Jul 1, 2026chore(deps): bump @strands-agents/sdk from 1.6.0 to 1.7.0 — arnoldsimha/skillspell0 reactions · 1 comment
- Jun 24, 2026[design] Determine whether parallel-invocation protection should apply to BiDiAgent — chaynabors/harness-sdk0 reactions
- Jun 18, 2026chore(deps): Update strands-agents[ollama] requirement from >=1.43.0 to >=1.44.0 — Iwaschkin/weather-agent0 reactions
- Jun 15, 2026build(deps): update strands-agents requirement from <2.0,>=1.42.0 to >=1.43.0,<2.0 in /agent-runtime — christiantobin/tobot-agent0 reactions
On Bluesky · 4
- Sep 30, 2026GitHub - strands-agents/harness-sdk: Build an agent harness and control it end-to-end. Open-source SDK for production AI agents in Python &… — @fluid.sublimer.me2 likes and reposts · 1 reply
- Sep 24, 2026📦 strands-agents / harness-sdk ⭐ 7,621 (+96) 🗒 Python Build an agent harness and control it end-to-end. Open-source SDK for production AI… — @github-trending.bsky.social2 likes and reposts
- Sep 23, 2026今日のGitHubトレンド strands-agents/harness-sdk — @dailygithubtrends.bsky.social1 likes and repost
- Aug 3, 2026harness-sdk from strands-agents hands you the agent loop itself, in Python or TypeScript, running against any model on any cloud. For… — @agentwire.thecompound.tech1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- harness-ts/AGENTS.mdAGENTS.md
- site/AGENTS.mdAGENTS.md
- strands-cli/AGENTS.mdAGENTS.md
- strands-py/AGENTS.mdAGENTS.md
- strands-ts/AGENTS.mdAGENTS.md
- test-infra/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- harness-py/CLAUDE.mdCLAUDE.md
- harness-ts/CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- strands-cli/CLAUDE.mdCLAUDE.md
- strands-py/CLAUDE.mdCLAUDE.md
- strands-ts/CLAUDE.mdCLAUDE.md
- test-infra/CLAUDE.mdCLAUDE.md
- docs-auditSkill
- docs-plannerSkill
- docs-reviewerSkill
- docs-writerSkill
- pr-createSkill
- pre-pushSkill
- pr-feedbackSkill
- pr-writerSkill
- strands-reviewSkill
- strandsSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Run the checks before opening a pull request:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Development Guide - Python Package
This document provides context and conventions for AI coding assistants working on the Strands harness Python package (harness-py/). For human contributors, see CONTRIBUTING.md.
Cross-package rules live in the root AGENTS.md. Public-surface parity with
harness-ts/, the shared defaults, the single system-prompt artifact, and the evergreen-comment rule apply to both packages and are stated once there. This file shows only the Python-idiomatic form and the rules unique to Python. When a rule applies to both packages, edit the root, not this file.
Overview
strands-harness (import name strands_harness) is a preconfigured Strands agent in one call. It is a thin composition layer over the strands-agents SDK: it wires a resolved model, the vended system prompt, built-in tools, context management, and optional session persistence into a plain strands.Agent. Every default is overridable and the return value is a regular Agent, so consumers can change, extend, or replace anything the harness sets up.
Directory Structure
harness-py/
├── src/strands_harness/
│ ├── agent.py # create_harness(): the one-call factory
│ ├── models.py # resolve_model(): "provider/name" -> Model, per-provider effort (reasoning) config
│ ├── prompt.py # HARNESS_CONTRACT + build_system_prompt()
│ ├── defaults.py # default model, effort, context manager, tools, session/skills/memory dirs
│ ├── tools/ # harness-authored built-in tools: file_tools.py (read/write/edit), web_fetch.py
│ └── plugins/ # built-in feature plugins: todos.py, environment.py
├── tests/ # pytest suite (mirrors the module layout)
└── pyproject.toml # build config, dependencies, package-local tool settingsThis package is library-only: no CLI. The strands terminal command lives in strands-cli/ (TypeScript).
Development
Set up a virtual environment and install with dev dependencies:
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"The [dev] extra pulls in the optional model providers (OpenAI, Anthropic, Gemini), so the full suite runs without extra setup.
Run the checks before opening a pull request:
ruff format . # format
ruff check . # lint
pytest # run the test suiteConventions
- Imports at the top of the file, never inline within a function, except where a heavy optional dependency must stay lazy. Model providers are imported inside their builder functions in
models.pyso that installingstrands-harnesswithout a given provider extra still works; keep that pattern. Corestrandsdeps (session manager, skills plugin) are always available, so they're imported at the top ofagent.pylike everything else. - Explicit-wins passthrough.
create_harness(**agent_kwargs)forwards any unrecognized keyword straight toAgent, and an explicit value always takes precedence over the harness default it corresponds to (e.g. a passedsession_manager,memory_manager, orsystem_promptwins). Preserve this when adding options. - Provider effort config.
models.pymaps oneeffortlevel to each provider's own request fields and validates it against that provider's supported levels, so an unsupported level fails in the harness rather than as a downstream request error. Keep the validation local. - Ruff governs style (line length 120;
E,F,I,UP,B). Config is package-local inpyproject.toml, with a shared copy at the repo root. - Type hints on public functions; the package ships
py.typed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

