Strands Box with the AgentCore CLI: one policy, two allowed, two denied
Everything runs on the laptop. Nothing is deployed to AgentCore Runtime.
Laptop, one working folder no AWS account
Strands Box 0.3.3
Presenter
quickstart.py
AgentCore CLI 1.5.0
agentcore dev
invoke --local
Scripted agent
four fixed actions
no model
Strands Shell
runs sh -c
Dogwood policy
policy.dw
Egress gateway
every connection
api.github.com
in the profile: allowed
example.com
not in the profile: denied
1
2
3
4
5
6
1
2
3
4
5
6
LINES
Agent actions
Policy decision
Denied
FLOW
The script downloads the CLI and Box, creates a Box project and adds policy.dw.
agentcore dev starts the agent in a box; invoke --local sends one request.
The agent runs cat on two files through Strands Shell.
The policy permits notes.txt and forbids .env, naming the rule no_env.
The agent requests two hosts; both leave through the egress gateway.
api.github.com is in the profile and passes. example.com gets 403 Forbidden.