awslabs / awslabs/agentcore-samples
Amazon Bedrock AgentCore Samples - [Bug] 01-hosting agent tutorial on Windows
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
**Describe the bug**
In the very first tutorial 01-hosting agent the following fails on Windows
!python strands_claude.py '{"prompt": "What is the weather now?"}'
usage: strands_claude.py [-h] payload
strands_claude.py: error: unrecognized arguments: What is the weather now?}'
Per Amazon Q: The issue is that in Windows cmd.exe (which is what's being used here), single quotes don't work the same way as in Unix shells. The command should be modified to use double quotes with escaped inner quotes:
!python strands_claude.py "{\"prompt\": \"What is the weather now?\"}"
That worked but the output is repeated as below.
Tool #1: weather
The weather is currently sunny.The weather is currently sunny.
Contributor guide
Research direction
Start with the 01-hosting agent tutorial and run the documented strands_claude.py command in Windows cmd.exe. Compare the Windows invocation and the observed repeated weather output with the tutorial's expected behavior. Done means the documented command works on Windows and the weather response is displayed once.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- ai, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100