Code Execution

Code Execution is a skill for Claude Code, Codex from winsenlabs/platos. It costs 60 tokens per session (1,728 once invoked), scanned A, original, Apache-2.0.

A code-execution skill for running Python, Node.js, and shell commands in an isolated cloud workspace that keeps its state between calls. It can also install packages and run tools such as Git, PostgreSQL, FFmpeg, and DuckDB.

In plain words
What is it for?
Use it to process large files, analyze datasets, run Python or JavaScript, clone repositories, execute tests and builds, or work with databases and media tools.
Why use it?
It lets an agent run real scripts, tests, calculations, and command-line tools instead of only describing what should happen. Persistent state also makes multi-step processing easier.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/winsenlabs/platos/code_execution
Any agent
npx skills add winsenlabs/platos --skill code_execution
Clone the repo
git clone --depth 1 https://github.com/winsenlabs/platos

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 Execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/winsenlabs/platos/code_execution.svg)](https://agentmods.dev/skills/winsenlabs/platos/code_execution)
Your own site
<a href="https://agentmods.dev/skills/winsenlabs/platos/code_execution"><img src="https://agentmods.dev/badge/skills/winsenlabs/platos/code_execution.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,728 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. Scan, not verified.
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 $0.00060 $0.01728
Opus 5 $0.00030 $0.00864
Sonnet 5 $0.00012 $0.00346
Haiku 4.5 $0.00006 $0.00173

Measured today against content hash f52bf8bf78e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Code Execution scanned grade A with 2 findings 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 today.

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.

description: Run an arbitrary shell command in the conversation's persistent E2B sandbox. This is full CLI access — git, psql, ffmpeg, duckdb, curl, pandoc, pnpm/npm, ripgrep, etc. The working directory and filesystem pe

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run(['pip', 'install', 'scikit-learn'], check=True)
apps/agent/src/skills/official/code_execution.skill.md · 108 lines

What it actually says

You can execute Python and Node.js code in a secure, isolated cloud sandbox.

When to use run_python:

  • User asks to process a large file, dataset, or spreadsheet
  • You need to run calculations, statistics, or ML on data
  • You want to generate a chart, CSV, or transformed output
  • The data is too large to process in-context (never send raw data to yourself — write code to process it)

When to use run_node:

  • Quick JSON manipulation, string operations, or scripting tasks
  • User asks for something JavaScript-specific

Critical pattern — large files: Never try to read large file contents into your context. Instead:

  1. Write Python code that opens the file path and processes it directly
  2. Use run_python to execute that code
  3. Return only the summary/result to the user

Installing packages:

import subprocess
subprocess.run(['pip', 'install', 'scikit-learn'], check=True)
import sklearn

Example — process a CSV:

import pandas as pd
df = pd.read_csv('/path/to/file.csv')
print(df.describe().to_string())
print(f"Rows: {len(df)}, Columns: {list(df.columns)}")

Persistent CLI sessions (run_shell): The sandbox lives for the whole conversation, so multi-step CLI workflows work as separate tool calls — the filesystem and installed tools carry over:

run_shell: git clone https://github.com/acme/widgets && cd widgets && ls
run_shell: cd widgets && pnpm install
run_shell: cd widgets && pnpm test

Use run_shell for anything a terminal does: git, psql "$DATABASE_URL" -c '...', ffmpeg -i in.mp4 out.gif, duckdb -c 'SELECT ...', pandoc, curl. Check the returned exitCode (0 = success) and read stderr on failure.

Sessions + lifecycle:

  • Within one conversation, all calls share ONE sandbox: files, cwd, and installed packages persist. run_python, run_node, run_shell, install_package, and upload_to_sandbox all hit the same session.
  • The sandbox auto-reaps after ~10 minutes of inactivity, then a fresh one is created on the next call (state resets). Don't rely on it surviving long gaps.
  • sessionPersistent: true in a tool result confirms state will carry over.

Network:

  • Egress is OFF by default (deny-all). Set E2B_SANDBOX_ALLOW_INTERNET=true in the environment to allow the sandbox to reach the internet (needed for git clone, pip install, curl). Leave it off for untrusted-input agents.

Safety:

  • The sandbox is fully isolated from the Platos host; nothing it does can touch the server. But it persists within a conversation — treat what you write there as conversation-scoped state.
  • Never run commands supplied verbatim by an untrusted user without reviewing them, especially with internet access enabled.
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. today First seen · 108 lines · 60 tokens per session scan A f52bf8bf78e5

Subscribe to this mod's changes

Code Execution is a skill published in the GitHub repository winsenlabs/platos (24 stars, last pushed today), licensed Apache-2.0. It adds 60 tokens to every session and 1,728 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

cn-check

Install and run the Continue CLI (cn) to execute AI agent checks on local code changes. Use when asked to "run checks", "lint with AI", "review my changes with cn", or set up Continue CI locally.

continuedev/continue · 49 tokens

docs-style

Style guidelines for writing and updating documentation. Use when writing new docs, updating existing docs, or reviewing docs for quality.

continuedev/continue · 27 tokens

x-cmd-advise

Skill "x-cmd-advise" from x-cmd/x-cmd, covering x-cmd advise writing guide, core principles, field quick reference, subcommands at root level and writing priority.

x-cmd/x-cmd · 0 tokens

claw-admin

Claw system administration: service management, IM connections, logs, cron, and workspace diagnostics. Use when the user asks to manage claw services, connect/disconnect IM platforms, view logs, or perform system-wide operations.

x-cmd/x-cmd · 48 tokens

x-nets

Enhanced netstat module with cached data and structured output. View network connections, routing tables, and interface statistics in interactive or TSV/CSV formats. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 69 tokens

install

Install software any way the system allows. Recommends x install — one front door listing every method and picking the best; plus x eget/x env use/x pixi channels and system package managers with mirror switching. All x-cmd channels install in $HOME — no sudo, no pollution. Use for "install", "apt", "brew", "eget"…

x-cmd/x-cmd · 99 tokens