harness-sdk / strands-cli
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 CLI (strands-cli/). For human contributors, see CONTRIBUTING.md. Cross-package rules live in the root AGENTS.md. This package is the terminal shell over the harness-ts library. The library parity rules apply to harness-ts/harness-py, not here. This file covers only what's specific to the CLI. @strands-agents/cli provides the strands terminal command, a quick way to chat with a harness agent without writing code. It is a thin shell over…
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-py/AGENTS.mdAGENTS.md
- harness-ts/AGENTS.mdAGENTS.md
- site/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
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Run the checks (from strands-cli/, or via -w strands-cli from the root):
- Very specific: line 54
cli/run.tsorchestrates runs;console.tsrenders them: Keep main.ts a thin entry wrapper.
≈ “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 - CLI Package
This document provides context and conventions for AI coding assistants working on the Strands CLI (strands-cli/). For human contributors, see CONTRIBUTING.md.
Cross-package rules live in the root AGENTS.md. This package is the terminal shell over the
harness-tslibrary. The library parity rules apply toharness-ts/harness-py, not here. This file covers only what's specific to the CLI.
Overview
@strands-agents/cli provides the strands terminal command, a quick way to chat with a harness agent without writing code. It is a thin shell over the @strands-agents/harness library: it translates flags into createHarness options, then drives agent.stream() and renders the events. All the agent behavior (defaults, model resolution, tools, sessions) comes from the library; this package owns only the terminal experience.
The CLI is TypeScript-only. There is no Python CLI: a terminal command has one home, and Node distributes a global binary cleanly (and runs zero-install via npx).
Directory Structure
strands-cli/
├── src/
│ ├── cli/
│ │ ├── run.ts # run-mode selection and startup orchestration
│ │ ├── arguments.ts # argument parsing and config overrides
│ │ └── invocation.ts # agent preparation
│ ├── console.ts # stream rendering, spinner, and plain readline chat
│ ├── logging.ts # logging initialization and opt-in dev file logging (temp dir)
│ ├── main.ts # the bin entry point (#!/usr/bin/env node): delegates to cli/run.ts
│ ├── tui/ # interactive chat, terminal views, and runtime integrations
│ ├── usage.ts # per-run usage tracking across foreground and background work
│ └── tsconfig.json # build project config (emits to ../dist)
├── test/ # vitest suite
├── package.json # bin: { strands }
└── vitest.config.tsDevelopment
Install from the repo root:
npm run setup # install and link the source-aware `strands-dev` command
strands-dev # builds on first run and whenever source changesRun the checks (from strands-cli/, or via -w strands-cli from the root):
npm run build # tsc build
npm run type-check # tsc --noEmit
npm run lint # eslint
npm test # vitest
npm run check # lint + format:check + type-check + test:coverageConventions
cli/run.tsorchestrates runs;console.tsrenders them. Keepmain.tsa thin entry wrapper.cli/arguments.tsowns flags and config overrides;cli/invocation.tsprepares agents from saved profiles and imported projects.TurnRenderer,runTurn, andrunPlainChatlive inconsole.tsand remain re-exported bycli/run.tsfor callers.- Disable the SDK's own printer.
invocationAgentForRunincli/invocation.tssetsprinter: false. The SDK'sAgentrenders the stream to stdout by default, which would double up with the CLI's own renderer. This is easy to regress; the end-to-end run is what catches it, not the unit tests. - Flags mirror the config keys. A dedicated flag exists only for a scalar
HarnessAgentConfigkey people type every day, spelled after the key (--effort,--context-manager,--session on|off,--skills,--memory on|off); object-shaped keys go through--set.offmaps to the library's disable value ('off'/false), and--builtin-tools ""means none. When the library gains a scalar option, consider a matching flag here. - TTY-aware output. Styling and the spinner are on only when stdout is a TTY, so piped/redirected output is clean text (the point of
-p). Preserve this: it's what makesgit diff | strands -p "…"usable. - Dev file logging is opt-in, and TUI only.
initLogginginlogging.tswrites debug-level logs to<tmpdir>/strands/cli.login interactive (ink) mode, which has no console to log to, but only whenSTRANDS_CLI_LOGis set to something other than an off-value (off/0/false/none/no/disable/disabled); unset means no log file at all. Every other run mode (print/plain/acp) keeps the SDK's console logger, so warnings and errors still reach stderr without corrupting the stdout stream--print/ACP rely on.STRANDS_CLI_LOG_FILEoverrides the path (it never enables logging on its own) andSTRANDS_CLI_LOG_LEVELsets the level. The log can hold prompts and tool output and lives in the shared temp dir, so its directory is created0o700and the file opened0o600. - One anonymous usage ping per TUI launch, built-in profile only.
tui/telemetry.tsbuilds the enum-only payload andcli/run.tsfires it after the interactive chat is created; authored agents and theprint/plain/acpmodes never send it. It is CLI-private state likemcpDiscovery(setting +STRANDS_CLI_TELEMETRY=off/DO_NOT_TRACK=1), not acreateHarnessoption, so it has no flag. Keep the payload in step with the collector's schema (strands-telemetryrepo) — it drops anything it does not recognize. - Renderer reads the typed event union.
TurnRendererswitches onAgentStreamEvent.type(modelStreamUpdateEventdeltas,beforeToolCallEvent,toolResultEvent, and the returnedAgentResultfor usage). PreferbeforeToolCallEventover the streamingtoolUseStartfor tool calls: it carries the fully-assembled input. - Verify against a real model. Unit tests mock the agent; before shipping a rendering or run-mode change, run the built binary against Bedrock end to end, including a tool-using turn.
- Style: eslint + prettier (no semicolons, single quotes, width 120), matching
harness-ts.
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.

