Agent Safety & Sandboxing

0•

Generates minimal-privilege Cedar security policies to sandbox AI agents within Leash containers.

This skill provides specialized guidance for creating secure, sandboxed environments for Claude Code and other AI agents using the Leash container platform. By generating context-aware Cedar policy files, it ensures agents operate under the principle of least privilege, explicitly defining allowed file access, network connections, and command executions. It automatically protects sensitive environment variables, blocks high-risk tools, and provides stack-specific templates for Node.js, Python, and Go to maintain a high security posture without hindering developer productivity.

Key Features

01Implements 'secrets-first' protection by automatically blocking access to .env files
02Supports stack-specific binary execution paths to prevent unauthorized command execution
03Generates minimal-privilege Cedar policy files (.leash/policy.cedar)
04Detects project stacks to provide tailored security templates for Node, Python, and Go
05Granular governance of network outbound connections and MCP tool execution
060 GitHub stars

Use Cases

01Automating the creation of secure development environments for AI-driven coding tasks
02Sandboxing Claude Code sessions to prevent accidental or malicious system-wide changes
03Enforcing organizational security compliance for AI agents using the Cedar policy language