---
title: "Repobox — Abhirup Ghosh"
canonical_url: https://abhirupghosh.com/projects/repobox
description: "Agent-native 10-crate Rust CLI (MIT) for branch-scoped Postgres on PlanetScale and Xata, plus isolated multi-repo sandboxes across Docker Compose, Modal, and Daytona."
last_updated: 2026-12-03T14:46:54.069Z
---
# Repobox

**Period:** Jul 2026 – Present
**Website:** https://repobox.sh
**GitHub:** https://github.com/abhirupghosh/repobox (MIT)

Repobox is a local-first, terminal-only 10-crate Rust CLI (`#![forbid(unsafe_code)]`, no daemon, no hosted control plane). It keeps application processes in your terminal while routing stateful PostgreSQL dependencies to persistent, deterministic branch-scoped databases on **PlanetScale** and **Xata**, or spins up isolated multi-repo stacks across **Docker Compose**, **Modal**, and **Daytona**.

## Backends

- **Daytona** (cloud sandbox): Long-lived per-worktree sandboxes with incremental git-bundle sync, signed preview URLs, and persistent Playwright Chromium sessions for 30fps MP4 PR evidence capture.
- **Modal** (cloud sandbox): Serverless sandbox stacks with encrypted tunnels, allowlisted secret injection, and TTL reaping.
- **PlanetScale** (database): Branch-scoped Postgres environments with OAuth device login, zero-temp-file `pg_dump | psql` streaming imports, and forward-only pulls.
- **Xata** (database): Instant copy-on-write Postgres branches for preprod and multi-repo sandbox stacks.
- **Docker Compose** (local / CI): Rewrites resolved Compose YAML in memory over `docker compose -f -` stdin with injected credentials so repository files stay untouched.

## Contracts & Guarantees

- **Workspace:** 10-crate Rust CLI (`#![forbid(unsafe_code)]`) paired with a coalescing 60 Hz `ratatui` TUI.
- **Job ledger:** Append-only `fsync`-backed UUIDv7 job ledger (`repobox job resume`) for resumable provisioning and forward-only database swaps.
- **Agent contract:** Self-describing `repobox agent-context --schemas --json` with 12 committed v1 JSON Schemas, sequenced JSONL streaming, `--dry-run` plans, and `undo_command` / `undo_reason` receipts.
- **Sandbox & PR proof:** Incremental git-bundle worktree sync without touching host git state, plus Playwright browser automation and SHA-256-verified GitHub PR evidence publishing.
