code-interpreter

code-interpreter is a skill for Claude Code, Codex from aws-samples/sample-strands-agent-with-agentcore. It costs 25 tokens per session (3,607 once invoked), scanned A, original, MIT.

A guide for running Python, JavaScript, or TypeScript code and shell commands in a secure sandbox with session files.

In plain words
What is it for?
Use it to prototype code, run debugging experiments, install packages, manage sandbox files, and publish generated outputs.
Why use it?
It lets an agent test logic, investigate bugs, and check results without relying only on unexecuted reasoning.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to prototype code, run debugging experiments, install packages, manage sandbox files, and publish generated outputs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-samples/sample-strands-agent-with-agentcore/code-interpreter
About the project

Sample Strands Agent with Amazon Bedrock AgentCore is an end-to-end reference architecture for building multi-agent chatbots on AWS. Teams use it to explore agent orchestration, tool execution, memory, browser automation, and agent-to-agent collaboration with Strands Agents and Bedrock AgentCore.

aws-samples/sample-strands-agent-with-agentcore · 195 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aws-samples/sample-strands-agent-with-agentcore --skill code-interpreter
Clone the repo
git clone --depth 1 https://github.com/aws-samples/sample-strands-agent-with-agentcore

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-interpreter

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/sample-strands-agent-with-agentcore/code-interpreter/github.svg)](https://agentmods.dev/skills/aws-samples/sample-strands-agent-with-agentcore/code-interpreter)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/sample-strands-agent-with-agentcore/code-interpreter"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-strands-agent-with-agentcore/code-interpreter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-interpreter

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-samples/sample-strands-agent-with-agentcore/code-interpreter"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-strands-agent-with-agentcore/code-interpreter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 373
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.03607
Opus 5.5 $0.00010 $0.01443
Sonnet 5.5 $0.00005 $0.00721
Haiku 4.5 $0.00003 $0.00361

Measured 1mo ago against content hash 2fbb189d72d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-interpreter scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Network:** Internet access available (can use `requests`, `urllib`, `curl`)
chatbot-app/agentcore/skills/code-interpreter/SKILL.md · 406 lines

How it starts

The opening of the file, as written. The whole thing — 406 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Parameter Type Required Description
operation string Yes "read", "write", "list", or "remove"
paths list For read/list/remove File paths. read: ["file.txt"], list: ["."], remove: ["old.txt"]
content list For write Entries with path and text: [{"path": "out.txt", "text": "hello"}]

tool_input Examples

execute_code — text output

{
  "code": "import pandas as pd\ndf = pd.DataFrame({'A': [1,2,3], 'B': [4,5,6]})\nprint(df.describe())",
  "language": "python"
}

execute_code — generate chart

{
  "code": "import matplotlib\nmatplotlib.use('Agg')\nimport matplotlib.pyplot as plt\nimport numpy as np\nx = np.linspace(0, 10, 100)\nplt.figure(figsize=(10,6))\nplt.plot(x, np.sin(x))\nplt.title('Sine Wave')\nplt.savefig('sine.png', dpi=300, bbox_inches='tight')\nprint('Done')",
  "language": "python",
  "output_filename": "sine.png"
}

Read the full file on GitHub · 406 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 406 lines · 25 tokens per session scan A 2fbb189d72d4

Subscribe to this mod's changes

code-interpreter is a skill published in the GitHub repository aws-samples/sample-strands-agent-with-agentcore (195 stars, last pushed 3d ago), licensed MIT. It adds 25 tokens to every session and 3,607 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

jackwener/OpenCLI · 61 tokens

moli-webfetch

Fetch, inspect, crawl, and capture live, JavaScript-rendered websites with Moli. Use when Codex needs current web content, web research, fact lookup, link following, a bounded crawl, client-rendered or response-gated content, network diagnostics, or a standalone HTML, Markdown, JSON, semantic-tree, viewport or…

lexmount/moli · 90 tokens

moli-cdp-server

Start Moli's CDP server and connect Playwright, Puppeteer, or raw CDP clients. Use to run a headless-browser CDP endpoint, replace a Chromium process, attach over CDP, enable real layout and screenshot surfaces, or diagnose CDP discovery, connection, and target startup—even when Moli is not named.

lexmount/moli · 74 tokens

pinchtab-dev

Develop and contribute to the PinchTab project. Use when working on PinchTab source code, adding features, fixing bugs, running tests, or preparing PRs. Triggers on "work on pinchtab", "pinchtab development", "contribute to pinchtab", "fix pinchtab bug", "add pinchtab feature".

pinchtab/pinchtab · 77 tokens

ego-lite-simplify

Find and implement evidence-backed simplifications in the ego-lite repository. Use when reviewing the codebase for dead code, duplicated state or APIs, speculative abstractions, unnecessary compatibility layers, hand-written infrastructure, excessive tests or documentation, or when the user asks to reduce code size or…

citrolabs/ego-lite · 68 tokens

pre-action-interceptors

Use when a tool error begins with "INTERCEPTOR:", a sent message was silently hedged or rewritten, or the user asks about active guards or blocked actions. Not for ordinary tool errors.

Bitterbot-AI/bitterbot-desktop · 44 tokens