
Code Interpreter
A sandboxed execution environment for when you actually need to run code, not just show it. Supports Python (200+ preinstalled libraries including pandas, matplotlib, scikit-learn), JavaScript, and TypeScript. Use it to debug snippets, test package installations, prototype algorithms, or verify calculations. The key distinction: this is for testing and experimentation, not production output. If you're making a chart for a presentation or a formatted Excel report, reach for the specialized visual-design or excel-spreadsheets skills instead. Files persist within your session and can be saved to the shared workspace. Think of it as a Python REPL with teeth, not a document generator.
- skills.sh installs
- 159
- GitHub stars
- 198
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aws-samples/sample-strands-agent-with-agentcore --skill code-interpreter --agent claude-codeInstalls into .claude/skills of the current project.
Files
Code Interpreter
A general-purpose code execution environment powered by AWS Bedrock AgentCore Code Interpreter. Run code, execute shell commands, and manage files in a secure sandbox.
Available Tools
- execute_code(code, language, output_filename): Execute Python, JavaScript, or TypeScript code.
- execute_command(command): Execute shell commands.
- file_operations(operation, paths, content): Read, write, list, or remove files in the mounted session workspace.
Tool Parameters
execute_code
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
code | string | Yes | Code to execute. Use print() for text output. | |
language | string | No | "python" | "python", "javascript", or "typescript" |
output_filename | string | No | "" | File to publish as a durable session file. Code must save a file with this exact name. |
execute_command
| Parameter | Type | Required | Description |
|---|---|---|---|
command | string | Yes | Shell command to execute (e.g., "ls -la", "pip install requests"). |
file_operations
Sponsors
Details
- Repository
- github.com/aws-samples/sample-strands-agent-with-agentcore
- Categories
- Testing & QA, AI & Agent Building, Debugging, Cloud & Infrastructure
- First seen
- Jun 3, 2026