Code Execution
v3.0.2Sandboxed code execution for agents — run Python, JavaScript, and shell scripts safely with full output capture.
npx agentmag add code-executionAbout
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
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.