yolo-cage: Autonomous AI Coding Agents with Safety Constraints

2026-05-14 · source · source ↗ · raw capture · wiki page

AI coding agents that can't exfiltrate secrets or merge their own PRs. 110 stars, MIT licensed, primarily Python.

Core Problem

"Permission prompts neglect the weakest part of the threat model: a tired user." yolo-cage defers decisions until pull request review, empowering the agent while limiting its blast radius.

Architecture

Sandboxed environment (Vagrant VM with MicroK8s) containing: - Agent Layer: Claude Code running in autonomous mode within an isolated sandbox - Dispatcher: Enforces branch isolation and blocks dangerous git/GitHub CLI operations - Egress Proxy: Scans outbound HTTP/HTTPS traffic for secrets and blocked domains

Security Controls

Secrets Protection

Git Operation Restrictions

GitHub API & CLI Blocking

Exfiltration Prevention

Acknowledged Limitations

"Reduces risk" but "does not eliminate it." Potential bypasses: DNS exfiltration, timing side-channels, steganographic data hiding, sophisticated encoding schemes.

Requirements

Vagrant with libvirt (Linux) or QEMU (macOS), 8GB RAM, 4 CPUs, GitHub PAT, Claude account.