harness-sdk
AGENTS.md8.7k starsChanged 59 days agoApache-2.0View on GitHub
This document provides guidance for AI agents working in the Strands Agents monorepo. For human contributor guidelines, see CONTRIBUTING.md. This file is shared by agents with different goals — writing code, opening PRs, helping contributors — and is organized by task. Determine which sub-project you're in and follow its conventions — each has its own AGENTS.md. Before designing a feature or changing an API, read the relevant context in team/. It captures the reasoning the code itself doesn't: These rules…
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.
- harness-py/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
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Before designing a feature or changing an API, read the relevant context in team/.
- Very specific: line 36
Code conventions: Follow the conventions in the sub-project's own AGENTS.md (strands-py/AGENTS.md, strands-ts/AGENTS.md, site/AGENTS.md) — …
- Very specific: line 39
Commits: Use conventional commits — feat:, fix:, refactor:, docs:, etc.
- Distinctive: line 49
Cross-SDK parity: when a name, constant, or hook event exists in both SDKs, keep them in sync.
- Very specific: line 65
When writing tests, follow the sub-project's testing guidance — strands-py/docs/TESTING.md for the Python SDK, strands-ts/docs/TESTING.md …
- Distinctive: line 82
Don't pad the change: No drive-by reformatting, unrelated refactors, or speculative abstractions — they make the diff hard to review and …
- Very specific: line 83
Verify before opening: Run the relevant sub-project's checks (see Development Environment, or the sub-project's own AGENTS.md) and make …
- Very specific: line 91
When a change touches documentation under site/, apply the documentation skills in .agents/skills/ in addition to standard code review:
- Very specific: line 96
Verify terminology against .agents/references/terminology.md and MDX authoring patterns against .agents/references/mdx-authoring.md.
- Distinctive: line 100
When helping someone contribute, you are a guide — not a gatekeeper, not a substitute author.
≈ “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 - Strands Agents Monorepo
This document provides guidance for AI agents working in the Strands Agents monorepo. For human contributor guidelines, see CONTRIBUTING.md.
This file is shared by agents with different goals — writing code, opening PRs, helping contributors — and is organized by task.
Context
Monorepo Layout
strands-agents/
├── strands-py/ # Python SDK (hatch) — see strands-py/AGENTS.md
├── strands-ts/ # TypeScript SDK (npm workspace) — see strands-ts/AGENTS.md
├── site/ # Documentation site (Astro) — see site/AGENTS.md
├── team/ # Governance + cross-SDK process (tenets, decisions, API bar-raising, PR & compatibility guidelines, designs/ proposals)
├── test-infra/ # CDK stack for integ tests that require provisioned AWS infra
├── .agents/ # Agent skills and references
├── package.json # npm workspace root
└── .github/workflows/ # CI (ci.yml is the merge gate)Determine which sub-project you're in and follow its conventions — each has its own AGENTS.md.
Where the "why" lives: team/
Before designing a feature or changing an API, read the relevant context in team/. It captures the reasoning the code itself doesn't:
team/designs/— RFC-style proposals for significant features (numberedNNNN-*.md). The richest source of architectural context: problem framing, the chosen approach, alternatives considered, and consequences. If you're touching a major subsystem, find its design doc first.team/DECISIONS.md— lightweight architecture decision records for smaller calls.team/TENETS.md— the principles a contribution should align with.team/API_BAR_RAISING.mdandteam/FEATURE_LIFECYCLE.md— the bar and process for API changes and feature deprecation.
Writing Code
- Code conventions: Follow the conventions in the sub-project's own
AGENTS.md(strands-py/AGENTS.md,strands-ts/AGENTS.md,site/AGENTS.md) — they define the style, patterns, and directory layout for that toolchain. - Write for low complexity: every PR is labeled with the cognitive complexity of the most complex function it touches, and nesting drives the score. Write flat control flow (guard clauses, extracted helpers, lookup tables over branch ladders) and keep refactors in their own PR. Why we measure and how the score works: team/COMPLEXITY.md. Check before pushing with
npm run complexity(orhatch run complexityfromstrands-py/). - Branching:
git checkout -b agent-tasks/{ISSUE_NUMBER} - Commits: Use conventional commits —
feat:,fix:,refactor:,docs:, etc. - CI: The
ci.ymlmerge gate detects which paths changed and runs only relevant checks. - Skills: Reusable, repo-specific workflows live under
.agents/skills/— for PRs (pr-create,pr-writer,pr-feedback), docs (docs-writer,docs-reviewer,docs-audit,docs-planner), and code review (strands-review). See.agents/skills/README.mdfor what each does and when to use it. - Doc
sourceLinkstrack source files: Doc pages undersite/point at their backing implementation viasourceLinksfrontmatter — repo-relative paths intostrands-py/andstrands-ts/. When you rename or move a source file, update anysourceLinksthat reference its old path in the same change. The site build only fails on a malformed path or an unmapped file extension, not on a path that still resolves to the wrong (or now-nonexistent) file, so a stale reference rots silently. Find affected pages withgrep -rn "<old/path>" site/src/content/docs.
Cross-SDK Conventions
These rules apply to both SDKs. Each sub-guide (strands-py/AGENTS.md, strands-ts/AGENTS.md) shows the language-idiomatic form; the shared intent lives here so the two cannot drift apart. The two SDKs aim for parity in concepts and names, not identical code.
- Plugin / construct naming: name a construct for what it does, not for the interface it implements.
AgentSkills,ContextOffloader,GoalLoop— never an…Pluginsuffix. (Python'svended_pluginsand TS'svended-pluginsalready follow this.) - Cross-SDK parity: when a name, constant, or hook event exists in both SDKs, keep them in sync.
- Identifiers match, re-cased to the language idiom (
snake_case↔camelCase). - Single-word string-literal values are byte-identical (
'user','success'). - Multi-word string-literal values are
snake_casein Python andcamelCasein TypeScript (tool_use↔toolUse); convert via an explicit map, never emit the other language's casing. - Wire field names (keys exchanged with a provider API) keep their wire format in both SDKs even when it breaks the language's casing convention (
inputSchema,tool_use_id). - Hook event names are shared across SDKs (modulo the suffix convention). When you add a hook event in one SDK, add the matching name in the other.
- Identifiers match, re-cased to the language idiom (
- Auxiliary model calls resolve through
agent.aux_model/agent.auxModel: any SDK component that makes its own model call outside the main agent loop (summarization, memory extraction, classification, judging, steering, web fetch) takes an optionalmodel=and, when it is omitted, resolves toagent.aux_model— never toagent.modeldirectly.aux_modelitself defaults to the agent's mainmodel, so with no configuration a side call uses the same model the agent uses; the setting is opt-in and exists so one knob can move every side call to a cheaper model. State the order in each component'smodeldocstring asthis model > agent.aux_model > agent.model— just the order, not the mechanics. - Public vs internal API: mark anything exported-but-not-public so consumers don't depend on it — Python keeps it out of
__all__(and should prefix the module_); TypeScript keeps it out of theindex.tsbarrel and tags it@internal. invocationStateis user-only:invocationState/invocation_statebelongs to the user. SDK code must never use it to carry, store, key, or forward internal state. Existing SDK uses of it are debt, not precedent.- Structured logging format:
field=<value>, field=<value> | lowercase human-readable message, no punctuation, pipe-separate multiple statements. Python interpolates with%s(never f-strings; ruffGenforces it); TypeScript uses template literals (never printf%s/%d). - Evergreen, to-the-point comments: a comment states only what cannot be inferred from the code (a constraint, an invariant, a non-obvious why) and states it briefly. Reasoning that explains or defends a change to its reviewer belongs in the PR description, not the source. Never narrate how the code changed or what it used to be ("improved", "previously", "used to", "which would previously have crashed"). This applies to tests too — a regression test for a discovered bug links the issue it guards against and states the behavior it guarantees; a test written as part of feature development carries no issue reference. ("deprecated"/"legacy" is fine when it describes a stable API surface or runtime state; it's forbidden only when narrating how the code itself changed.)
- Directory & file naming parity: subsystem directories use the language-idiomatic separator (
snake_casein Python,kebab-casein TypeScript) but the stem matches word-for-word so they are mechanically translatable (vended_plugins/↔vended-plugins/,conversation_manager/↔conversation-manager/).
Testing
When writing tests, follow the sub-project's testing guidance — strands-py/docs/TESTING.md for the Python SDK, strands-ts/docs/TESTING.md for the TypeScript SDK.
test-infra/ guardrails. The test-infra/ CDK stack deploys real AWS resources (Bedrock KBs, EC2 instances) that a small subset of integration tests depend on. Most tests do not need it — they run without provisioned infrastructure.
- Do not deploy this stack unless you are explicitly working on the test infrastructure itself or iterating on tests that resolve SSM parameters from it.
- Never set
STRANDS_TEST_INFRA_INTERNAL=trueunless deploying to the Strands team's own test account. This attaches a broad internal policy and GitHub OIDC trust that is meaningless (and wasteful) outside the internal account. - To run infrastructure-dependent integ tests without deploying anything, open a PR — CI runs them against pre-provisioned resources automatically.
Creating PRs
See PR guidelines. Use the pr-create and pr-writer skills under .agents/skills/ to draft and open PRs.
If you are opening a PR on behalf of a contributor, the human is the author and is accountable for everything you submit. A small, focused change that its author fully understands is the single biggest predictor of a fast review and an accepted PR. (See CONTRIBUTING.md for the human-facing version.)
- Understand before you submit. The contributor must be able to explain why every line works and defend the design. If you produced code you cannot explain plainly, simplify or explain it before opening the PR.
- Keep it small and focused. One logical change per PR. A branch that touches several sub-projects (
strands-py/,strands-ts/,site/) is almost always several PRs. Smaller PRs are easier to understand, guide, and merge. - Open an issue first for anything significant, so maintainers can align on the approach before time is invested.
- Don't pad the change. No drive-by reformatting, unrelated refactors, or speculative abstractions — they make the diff hard to review and the change hard to trust.
- Verify before opening. Run the relevant sub-project's checks (see Development Environment, or the sub-project's own
AGENTS.md) and make sure the change passes theci.ymlmerge gate locally. Don't open a PR with known lint, type, or test failures. - Actually exercise the change, don't just rely on the gate. Automated checks confirm the code is valid, not that the feature works. Run the behavior end to end — a manual script, a REPL snippet, the CLI, or an example — and confirm it does what the PR claims, including edge cases. If you can't exercise it (e.g. requires provisioned infra), say so explicitly in the PR rather than implying it was tested. Where it helps a reviewer, include the script or commands you ran.
- Self-review the diff end to end as if you were the reviewer, and confirm you can truthfully check every box in the PR template — including the item attesting that you have reviewed and understand every line of code in the PR, including any generated by AI tools. Then use the
pr-writerskill so the description explains the why.
Reviewing
Documentation changes
When a change touches documentation under site/, apply the documentation skills in .agents/skills/ in addition to standard code review:
.agents/skills/docs-reviewer/SKILL.md— voice consistency, structure, terminology, and code-example quality..agents/skills/docs-audit/SKILL.md— technical accuracy against live SDK sources (import paths, method signatures, API correctness).
Verify terminology against .agents/references/terminology.md and MDX authoring patterns against .agents/references/mdx-authoring.md. It is critical that you actually read these referenced source files before reviewing — their criteria do not apply if you only skim this summary.
Working with the Community
When helping someone contribute, you are a guide — not a gatekeeper, not a substitute author. The contribution is theirs; help them make it good and learn along the way. The standard for what makes a good contribution lives in CONTRIBUTING.md; this is about the people.
- Point people to the community. Real questions and design discussion belong with people — the Discord and GitHub Discussions.
- Assume good faith. Most contributors are learning; meet them where they are. Good first issues are for bringing newcomers in, not just tickets to close.
- Talk with contributors, not at them. Warm, plain, concise. One question at a time, no walls of text, never patronizing. Explain the why so it teaches rather than dictates.
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.

