Repository navigation
Decision Strands SDK
Max Height is a TypeScript monorepo: React/Vite frontend, TypeScript agent, and CDK infrastructure. The agent needs Bedrock access, tool calling, streaming tokens, and testable post-processing for the persona described by Feature-Max-Height-Core.
research.md R1 records a TypeScript-first choice: use the Strands Agents
TypeScript SDK instead of switching the agent to Python or manually assembling a
Bedrock orchestration layer. That keeps shared types and tooling aligned across
the repo.
AWS's broader framework overview and its linked TypeScript quickstart are summarized in Source-AWS-Prescriptive-Guidance-Strands-Agents. They describe available options, not a change to this SDK decision or evidence that Max Height uses every listed capability.
AWS's open-protocols article gives a separate map of MCP, A2A, AG-UI, and x402. It is architecture context, not an adoption decision; its Python examples and the pinned TypeScript SDK's verified protocol surface are distinguished in Source-AWS-Open-Protocols-Strands-Agents-SDK.
Use @strands-agents/sdk for the Max Height agent.
Concrete source values:
| Item | Source value |
|---|---|
| Package | @strands-agents/sdk |
Planned version in plan.md
|
1.4.0 |
Refreshed version in research.md R15 |
1.15.0 |
Actually pinned in packages/agent/package.json |
1.19.0 |
| Runtime language | TypeScript on Node.js 24 LTS |
| Streaming API shape |
agent.stream() async generator |
| Tool definition pattern |
tool() factory with Zod schemas |
| Zod policy | Force a single Zod 4 line via pnpm-workspace.yaml overrides |
Use the SDK for agent core behavior and tool binding.
Correction, 2026-09-29. This decision previously read: "Do not rely on Strands hooks to modify text mid-stream: R1 says hooks are observational, not interceptive." That is no longer true of the SDK we pin.
BeforeToolCallEventcan substitute the tool (event.selectedTool) or rename it;AfterToolCallEventcan replace the result (event.result); andBeforeToolCallEvent.cancel/BeforeToolsEvent.cancelcan stop a tool or a whole batch before it runs. Hooks are interceptive. See Source-Strands-Harness-SDK-Docs.The factual claim is corrected here immediately, per the source-of-truth rule. The design conclusion drawn from it is not — whether to add personality cleanup or stutter injection inside the agent loop is still a decision for #42.
checkPersonality()andinjectStutters()exist, butsrc/index.tscalls neither; there is no post-processing in the live invocation path. Do not mistake the historical rationale for implemented behavior.
Also now available: native per-invocation limits
(limits: { turns, outputTokens, totalTokens }) — still unused — and
cooperative cancellation (agent.cancel(), cancelSignal), which the runtime
now uses on client disconnect. Neither replaces our per-session budget
accounting, because the limits reset every invocation. See
Component-Agent-Runtime. (Corrected 2026-10-01: this paragraph named them
maxTurns / maxTotalTokens / maxOutputTokens, and the note above said
cancelTool; neither name exists in the pinned 1.19.0.)
Agent deployment is separate from SDK selection. The CDK-owned V2 runtime is the accepted target in Decision-AgentCore-Runtime-V2, not yet a CDK construct or a verified deployment. The constitution's technology table still names AgentCore CLI deployment, so that conflict needs an amendment decision before the target can be treated as constitutionally approved.
The agent stays in the same language and package-management ecosystem as the frontend. This supports shared contracts such as Contract-Message-Protocol and makes the testing strategy on Decision-Testing-Strategy simpler.
The decision also creates a supply-chain obligation: Zod peer conflicts must be
resolved explicitly and centrally. R1 warns that pnpm reads overrides only from
pnpm-workspace.yaml; putting overrides in root package.json is a no-op under
pnpm 11. That trap belongs with Concept-Supply-Chain-Discipline.
The SDK is not a substitute for runtime readiness. Snapshot safety, platform V2, and deployment polling remain separate operational concerns.
| Alternative | Rejected because |
|---|---|
| LangChain.js | Heavier, less type-safe, leaky abstractions for this use case. |
| Direct Anthropic or Bedrock SDK | More control, but manual orchestration and no agent framework. |
| Python Strands SDK | More mature ecosystem, but breaks the TypeScript monorepo architecture. |
Strands now ships a third option this decision never weighed, because it did
not exist: @strands-agents/harness, first published 2026-09-21 and at
0.1.1. createHarness() assembles SDK parts with benchmarked defaults and
returns a plain SDK Agent, so it is a layer over this decision rather
than a replacement for it.
Its defaults are a general-purpose task agent's — Opus 5 with reasoning, a host
shell, file write, a background subagent, background memory extraction — and
they collide with P2, P3 and P6. Turned off, what remains is the agent
createMaxHeightAgent() already builds, plus a 0.x dependency whose patch
releases may add default-on tools. See Source-Strands-Harness-Docs.
This page does not decide adoption. It records that the option exists and was not considered, so the architecture review weighs it on the evidence.
Strands' speech-to-speech API, BidiAgent, went GA on 2026-10-05 for
Python only. The pinned 1.19.0 and the latest 1.20.0 TypeScript releases
export nothing equivalent. Real-time voice through Strands would therefore
reopen the Python Strands SDK alternative rejected above, as a second agent
runtime. The TypeScript route skips Strands entirely and calls Bedrock's
bidirectional stream directly. See Source-Strands-Bidi-Agents. Nothing is
decided here.
The original SDK choice was verified against research.md, plan.md, and
docs/infra-plan.md on 2026-09-26. The invocation and infrastructure gaps
above were checked against packages/agent/src/index.ts and
packages/infra/lib/agent-stack.ts on 2026-09-30. The SDK API names were
re-checked against the 1.19.0 type declarations, and the harness docs read in
full, on 2026-10-01. Follow
Decision-AgentCore-Runtime-V2 before installing deployment tooling.
- Concept-Cloud-Only-Inference
- Concept-Budget-Ceiling
- Concept-Personality-Gate
- Concept-IP-And-Legal-Posture
- Concept-Supply-Chain-Discipline
- Concept-Graceful-Degradation
- Concept-Observability
- Concept-Testing-And-TDD
- Concept-Credential-Hygiene
Editing in the browser? Wiki edits are live and bypass wiki:lint. Read
Guide-Wiki-Contributing first.