enclave-seatbelt

Sandbox macOS agent shells with filesystem and network restrictions.

2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/latchagent/latch-core --skill enclave-seatbelt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enclave-seatbelt
Source: https://github.com/latchagent/latch-core/tree/main/.agents/skills/enclave-seatbelt
Command: npx skills add https://github.com/latchagent/latch-core --skill enclave-seatbelt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This module ensures that agent shells run in a strict, restricted environment to prevent unauthorized file access, network communication, and other harmful behaviors.

Core Features & Use Cases

  • macOS Sandboxing: Provides a secure environment for agents to run with limited access to the filesystem, network, and processes.
  • Filesystem Restriction: Access to only workspace directory, /tmp, and system libraries is allowed.
  • Network Restriction: Only loopback to proxy and authz ports are allowed, blocking all other network access.
  • Process Restriction: Only the shell binary and /usr/bin, /bin utilities are accessible.
  • Use Case: This can be particularly useful in environments where agents are given broad permissions, yet need to operate in a contained manner to avoid security breaches.

Quick Start

Activate the 'enclave-seatbelt' skill to execute an agent within a secure, macOS sandbox environment.

Frequently Asked Questions about enclave-seatbelt

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

FAQPage Schema
How do I sandbox agent shells on macOS to prevent unauthorized filesystem access?

You can sandbox agent shells on macOS using the enclave-seatbelt skill, which leverages `sandbox-exec` to enforce strict filesystem restrictions. It limits access to only the workspace directory, /tmp, and system libraries, preventing unauthorized file operations.

Can I restrict network activity for agents running in macOS environments?

Yes, you can restrict network activity for agents in macOS environments by utilizing the `pf` utility. This skill blocks all network access except for loopback connections to specified proxy and authorization ports, ensuring agents cannot communicate externally.

How does process restriction work when executing agents in a macOS sandbox?

Process restriction works by limiting the agent shell to only access the shell binary and standard utilities in /usr/bin and /bin. This prevents the execution of unauthorized processes and contains the agent's operational scope within the macOS sandbox.

What is the best way to enforce policy on autonomous agents to avoid security breaches?

The best way to enforce policy on autonomous agents is by applying fine-grained access restrictions at the filesystem, network, and process levels. This approach ensures broad permissions are contained, mitigating the risk of harmful behaviors and security breaches.

Does this macOS sandboxing approach require any special dependencies to run?

No, this macOS sandboxing approach does not require any special dependencies. It operates by directly utilizing the native `sandbox-exec` and `pf` utilities already available on macOS to enforce the required security policies.

When should I not use sandbox-exec for agent execution containment?

You should not use sandbox-exec for agent execution if your workflow requires the agent to have broad network access or the ability to write outside of the designated workspace and /tmp directories, as these actions are strictly blocked by the policy.