← Back to Leaderboard
Bstacklok

stacklok/brood-box

A microVM CLI that stages coding-agent edits for review before writeback

View on GitHub ↗
Engineering Health (Methodology)
A · 86/100
Maintenance Activity
● Updated yesterday
Latest Release
v0.0.25
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption14/25
Release Cadence17/20
License Clarity20/20
CLISelf-Hosted
Total Stars
★ 82
24h Growth
+0
7d Growth
+0
Forks
15

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

stacklok/brood-box Star History (2026-03-12 - 2026-12-03) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +81 in 266d · avg +0/day 86 43 0 2026-03-12: ★ 12026-04-04: ★ 222026-04-25: ★ 272026-05-16: ★ 322026-06-06: ★ 392026-06-27: ★ 422026-07-18: ★ 502026-08-08: ★ 552026-08-29: ★ 612026-09-19: ★ 712026-10-10: ★ 772026-10-31: ★ 792026-11-17: ★ 812026-12-03: ★ 82 ★ 82 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

bbox is a Go CLI built with Cobra. For a normal snapshot session it pulls an OCI image, extracts the guest root filesystem, injects bbox-init and session SSH keys, then boots a libkrun microVM through go-microvm. The guest uses KVM on Linux or Hypervisor.framework on Apple Silicon. The workspace snapshot is mounted via virtio-fs. Inside the guest, bbox-init runs as PID 1, mounts filesystems, configures networking, and starts an embedded SSH server. The CLI attaches the terminal over a localhost-bound SSH forward.

The VM stops before the host computes a SHA-256-based change set. Interactive review presents unified per-file diffs, and accepted files are rehashed before writeback. The manifest includes go-containerregistry for OCI integration, go-diff for text diffs, and ToolHive and ToolHive Core for MCP integration. Extension points include configurable agent images and commands, one-shot run-image sessions, and host-discovered ToolHive MCP servers proxied into the guest.

Key Capabilities & Differentiators

Built-in entrypoints cover Claude Code, Codex, OpenCode, Hermes, and Gemini CLI. Their GHCR images each default to 2 vCPUs and 4 GiB of guest RAM. CPU, memory, workspace path, and forwarded environment variables can be configured; Git token and SSH-agent forwarding are also available. Snapshot exclusions use gitignore-style patterns, but sensitive patterns such as .env*, *.pem, .ssh/, and .aws/ cannot be negated.

Egress defaults to permissive; standard permits the model provider and common development services, while locked limits the base policy to the provider. --allow-host adds explicit DNS hostnames rather than IP addresses. Workspace config can tighten isolation but cannot enable direct mode, disable review, or broaden egress. Snapshot and interactive approval are distinct: snapshot is the default, but the usage descriptions are inconsistent about whether review is on by default. Pass --review explicitly when per-file approval is required.

Trade-offs & Limitations

Compared with a native agent CLI or a conventional dev container, Brood Box adds a separate guest kernel and can stage edits for approval before they reach the real workspace. The costs are a virtualization prerequisite, guest boot and memory overhead, and an image and firmware lifecycle. The 2-vCPU/4-GiB defaults are allocations, not performance measurements. Direct mode keeps the VM boundary but mounts the real workspace read-write, applies changes immediately, and skips review and snapshot-mode Git credential sanitization.

The file review is not an authorization layer for network calls, Git operations, or MCP tools. Outbound access is permissive by default, and credentials or tools explicitly forwarded into the VM remain usable by the agent. For sensitive work, combine snapshot mode and explicit review with narrower egress and minimal forwarding. That can block dependency installation or internal services until the necessary hosts are allowed. The guest session is ephemeral, but that does not erase the host firmware cache or undo external effects.

Hardware & Deployment Guide

Run the self-contained bbox release binary on Linux with accessible /dev/kvm or on Apple Silicon macOS with Hypervisor.framework. A system libkrun development package is not needed for the release build. Firmware is separate: libkrunfw is downloaded at runtime and cached under ~/.cache/broodbox/firmware/, with a system fallback. --no-firmware-download selects system firmware only. Plan for registry access when pulling agent images and provider connectivity and credentials for API-backed agents.

For source builds, task build downloads and embeds the prebuilt go-microvm runtime into bin/bbox; guest image builds via task image-all require Docker or Podman. The prerequisite list says Go 1.26+, but go.mod declares Go 1.27.0, so plan source builds against the module declaration. The supplied release history shows ToolHive Core updates in v0.0.24 and a Hermes agent update plus an SSH-agent-forwarding lint fix in v0.0.25. Treat upgrades as compatibility changes: the project is experimental and does not promise stable flags or config.

Guest runtime: libkrun uses KVM or Hypervisor.framework, with Go-based bbox-init as PID 1 and an embedded SSH server.
Workspace staging: Linux FICLONE and macOS clonefile(2) provide copy-on-write snapshots; the VM stops before SHA-256 diffing.
Writeback checks: Accepted files are rehashed, symlinks are checked for in-bounds targets, and setuid, setgid, and sticky bits are stripped.
Policy precedence: CLI flags override workspace and global settings, but workspace config cannot disable review, enable direct mode, or widen egress.
Network and tools: DNS-aware egress offers permissive, standard, and locked profiles, alongside a configurable ToolHive MCP proxy.
Agent packaging: Five bundled OCI-based agents default to 2 vCPUs and 4 GiB each; run-image supports one-off guest images.
Best For

Developers and teams on KVM-capable Linux or Apple Silicon who want an interactive coding agent, a separate guest kernel, and an explicit checkpoint before edits reach the working tree.

Skip If

Virtualization is unavailable, you require stable CLI and config contracts, or you need every external action to be approved or reversible rather than just workspace changes.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLISelf-Hosted
bbox claude-code

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
brood-box ★82—GoApache-2.0A microVM CLI that stages coding-agent edits for review before writeback
Codewhale41.2k+38RustMITRust coding agent with swappable models, sandboxed execution, and turn receipts
gemini-cli109.6k+376TypeScriptApache-2.0A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools
oh-my-pi40.5k+483TypeScriptMITA Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/stacklok/brood-box.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

stacklok/brood-box Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about brood-box

How does an agent inside the VM reach MCP tools?

The host discovers MCP servers through ToolHive and proxies them into the guest. Select the server group with --mcp-group or disable the proxy with --no-mcp. Treat each exposed tool as a separate trust decision: operations performed through MCP are not staged in the workspace diff.

What hardware does it need, and how should I size it?

The sandbox requires an accessible /dev/kvm on Linux or Hypervisor.framework on Apple Silicon. Each bundled agent image defaults to 2 vCPUs and 4 GiB of guest RAM; that is a guest configuration, not a measured host footprint. No GPU or VRAM requirement is specified for the sandbox itself. Budget additional capacity for concurrent guests and for builds or tests running inside them.

Can a company self-host or redistribute it?

Brood Box is Apache-2.0 licensed and runs on your own host. If you redistribute it, comply with the license and applicable notice requirements. Review the terms for agent images, bundled components, and model-provider APIs separately. Self-hosting the sandbox does not make an API-backed agent offline or keep its requests on your infrastructure.

Why use this instead of a native agent CLI or a dev container?

A native agent CLI usually has fewer runtime prerequisites but runs with the invoking user's host permissions unless separately sandboxed. A conventional container shares the host kernel, and a writable bind mount applies edits directly. Brood Box pairs a separate guest kernel with snapshot-based review, but it adds VM setup and does not roll back network, Git, or MCP actions.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining stacklok/brood-box? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature stacklok/brood-box on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare