AgentCoreCodeInterpreter sandbox for Strands

Open
#742 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
ai, backend

Research direction

Read the strands.sandbox.Sandbox interface and the existing memory/integrations/strands and gateway/integrations/strands integrations; the issue also points to the deprecated Code Interpreter implementation for action behavior. Map each listed sandbox method to its corresponding Code Interpreter action, then verify the integration can be installed with the strands-agents extra.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem? Please describe.

Yes. I want to create Strands agents with sandboxes that use AgentCore Code Interpreter as a backend. This will let my agents read and manipulate data/files safely outside the host.

Describe the solution you'd like

An implementation of Sandbox that uses AgentCore Code Interpreter

Describe alternatives you've considered

Wrap AgentCoreCodeInterpreter and expose custom tools.

We are doing this already but that repository is deprecated. Sandbox is also a stable interface and will be used for proposed context management techniques improvements in Strands framework.

Additional Context

Method mapping (strands.sandbox.Sandbox, available since strands-agents 1.43.0) to Code Interpreter actions:

Sandbox method Code Interpreter action
execute_streaming executeCommand
execute_code_streaming executeCode
read_file readFiles
write_file writeFiles
list_files listFiles
remove_file removeFiles

Suggested location: src/bedrock_agentcore/tools/integrations/strands/, alongside the existing memory/integrations/strands and gateway/integrations/strands, installed via the strands-agents extra.

Related:

  • strands-agents/harness-sdk#1968: the original Sandbox proposal deferred AgentCoreSandbox to "own package with bedrock-agentcore dependency".
  • strands-agents/tools#629: deprecated AgentCoreCodeInterpreter, pointing users to the vended python_repl and shell tools, which run in the agent's configured sandbox.
Dominant language
Python
Stars
786
Forks
163
Avg merge
4h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/bedrock-agentcore-sdk-python

All issues in aws/bedrock-agentcore-sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.