Skills
All Skills
Featured skill

Code Execution

v3.0.2
agentmag · Code & Compute
31.7K installs1.2K starsApache 2.0Updated 2026-04-20

Sandboxed code execution for agents — run Python, JavaScript, and shell scripts safely with full output capture.

sandboxpythonjavascriptexecution
npx agentmag add code-execution

About

The Code Execution skill gives your agent a secure sandbox to write and run code. It supports Python, JavaScript, TypeScript, and shell scripts with full stdout/stderr capture, file I/O, and package installation.

Each execution runs in an isolated environment with resource limits, so agents can safely experiment without risk to your infrastructure. Perfect for data analysis, automation scripts, and dynamic problem-solving where the agent needs to compute answers rather than just reason about them.

Capabilities

  • Execute Python, JavaScript, TypeScript, and shell scripts
  • Sandboxed environment with resource limits
  • Package installation (pip, npm) inside sandbox
  • File read/write within the sandbox filesystem
  • Full stdout/stderr capture and error reporting
  • Persistent sessions for multi-step computation

Compatible agents

Claude CodeCursorWindsurfCopilotAider

Add Code Execution to your agent

One command to install. Works with all major coding agents.

Building an agent skill? Submit it for free or get featured placement.