n03l

Pithos — AI skill for Claude Code

AI community

Run AI coding agents (Claude Code, opencode or any command) in a Linux sandbox.

How to install Pithos

This entry records only its repository, not the path inside it, so there is no exact command to give. Open n03l/pithos and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pithos does

Run AI coding agents (Claude Code, opencode or any command) in a Linux sandbox. Only the files you list are visible, and the network goes through a proxy that allows only listed hosts. The agent is told which hosts and files were blocked, you can approve hosts while a session runs, and each session is logged for review.

Alternatives in AI

  • Claude Hub — by Claude Did This - A webhook service that connects Claude Code to GitHub repositories, enabling AI-powered c 393 ★
  • Ralph Loop — A long-running AI agent loop 292 ★
  • Squeez — Hook-based token compressor for 5 AI CLI hosts (Claude Code, Copilot CLI, OpenCode, Gemini CLI, Codex CLI) 188 ★

README

pithos

*Pithos* (πίθος) is the jar from the Pandora myth: what is inside stays inside.

`pithos` runs an AI coding agent (Claude Code, opencode, or any command) in a [bubblewrap](https://github.com/containers/bubblewrap) sandbox. The limits apply to the agent **and to everything it starts**: shell commands, scripts it writes, test runners, package installs.

  • Files: the sandbox starts empty. It sees only the paths its profile lists, read-only or writable. Everything else, including ~/.ssh, other repos and the host's sockets, does not exist.
  • Network: the sandbox has no network at all, only loopback. Its one way out is a proxy on the host that allows the hosts you list. Code that ignores HTTPS_PROXY just fails.
  • Resources: total memory, processes (threads included), CPU, and the size of the in-memory directories are capped. A fork bomb, a memory leak or a script filling /tmp hits the limit, not your machine, and the agent is told which one.
pithos ─┬─► bwrap ─► bridge.py ─► claude / opencode / anything
        │              │    ▲                 │
        │              │    └─────────────────┘ 127.0.0.1:3128
        │              │ UNIX socket
        └─► proxy.py ◄─┘   (host side: allowlist, log)
               └─► allowed hosts only

HTTPS is never decrypted. Clients send `CONNECT host:443`, the proxy checks the name, then relays the encrypted bytes, so certificates validate normally.

**Contents:** [Install](#install) · [Usage](#usage) · [When a host is blocked](#when-a-host-is-blocked) · [When a file is refused](#when-a-file-is-refused) · [Resource limits](#resource-limits) · [Profiles](#profiles) · [SSH](#ssh) · [Security model](#security-model) · [Reviewing a session](#reviewing-a-session) · [Upgrading](#upgrading) · [Tests](#tests)

Install

sudo apt install bubblewrap
sudo apt install strace          # optional: the file notice and --trace
./install.sh            # links ~/.local/bin/pithos, copies pro