agent-sandboxes

Execute isolated code and file operations in E2B sandboxes.

Updated Jul 10, 2022
One-click install
npx skills add https://github.com/samuerio/.dotfiles --skill agent-sandboxes-samuerio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-sandboxes
Source: https://github.com/samuerio/.dotfiles/tree/main/agents/skills/agent-sandboxes
Command: npx skills add https://github.com/samuerio/.dotfiles --skill agent-sandboxes-samuerio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Operate E2B agent sandboxes using a streamlined CLI to run code in isolation, perform safe file operations, and manage multi-agent sandbox workflows.

Core Features & Use Cases

  • Isolated execution: Run arbitrary commands safely within sandboxes to prevent host impact.
  • File operations: Create, read, write, upload, download, and manage files inside sandboxes.
  • Multi-agent coordination: Manage multiple concurrent sandboxes with independent IDs and timeouts for simultaneous tasks.

Quick Start

Launch an isolated sandbox with uv run sbx init --timeout 1800 and begin performing operations with sbx commands.

Frequently Asked Questions about agent-sandboxes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run untrusted code safely without impacting my host machine?

Isolated code execution in sandboxes prevents host impact by running untrusted code within E2B environments. You can safely execute arbitrary commands and manage file operations without risking your host machine.

How do I run multiple code testing sandboxes concurrently for different agents?

Multi-agent coordination manages multiple concurrent sandboxes with independent IDs and timeouts. This per-agent isolation allows you to run simultaneous tasks like testing packages or cloning repos in separate environments.

How do I initialize an isolated sandbox via command line to test packages?

Initialize an isolated sandbox via command line by running the CLI init command with a defined timeout, such as 1800 seconds. You can then perform file operations and test packages safely within that sandboxed environment.

What file operations can I perform inside an E2B sandbox environment?

Safe file operations in E2B sandboxes include creating, reading, writing, uploading, downloading, and managing files. These operations maintain isolation from the host system while ensuring reproducible results for your development tasks.

Does code execution in sandboxes enforce lifecycle rules for reproducible results?

Sandbox lifecycle rules enforce capture of sandbox IDs, environment setup, timeouts, and per-agent isolation to guarantee reproducible results. These rules apply to development tasks such as running untrusted code or testing packages safely.

What are the limitations of running untrusted code in CLI sandboxes?

CLI sandbox limitations involve strict lifecycle rules and enforced timeouts that can terminate long-running processes. Per-agent isolation requires managing sandbox IDs carefully to maintain reproducible results without direct host system access.