egv/postbox Quick start

Getting Started · Crew Orchestrator & Mission Control

Autonomous agent crews From brief to verified PR

Postbox coordinates Claude Code, Codex, and BB across isolated Git worktrees, multi-host machines, and shared contributor pools. Agents plan the task graph, implement in parallel, and run independent review — waking you only when an owner decision is needed.

Requires Node.js ≥ 20 for the engine or BB plugin · Zero-runtime single binary (postbox) for pool contributors on macOS, Linux, and Windows.

Mission Control · Run 046 Example
Needs author · Scoped approval Planner requests macOS host (xcode) for task ios-signing alongside 3 Linux API workers.
✓ Scope authorized — worker and paired worktree reviewer spawned on MacBook Pro.
Planner · Charter locked6 tasks across 2 waves · authoritative paths and non-goals pinned
Worker · Linux worktreeTask api-auth completed · npm test && npm run lint passed
Reviewer · IndependentSHIP verdict (0 P1, 0 P2) · verified in the worker’s exact worktree

One signal rule: Routine planning, parallel coding, rework, and quota waits stay quiet. The amber lamp lights only when an owner choice or approval is required.

Step 01 · Installation

Three ways to run Postbox Pick your topology

Start embedded inside BB with zero daemons, run a standalone web Mission Control console on your own domain, or connect a distributed team pool over GitHub.

Mode 01 · Embedded in BB Recommended

Install inside BB in four commands

The Postbox engine runs in-process inside BB on SQLite. Your sidebar gets Mission Control, stage boards, scoped approvals, and the New Crew launcher.

Terminal · Install bb-plugin-postbox
git clone https://github.com/egv/postbox.git && cd postbox
npm ci && npm --prefix bb-plugin-postbox ci
npm run build:plugin-engine
bb plugin install --yes ./bb-plugin-postbox
  • Open Postbox in the BB left rail — no separate server process or port configuration needed.
  • Multi-host ready — spawns crew threads across any machine registered in bb machine list.
  • Live development — run bb plugin dev ./bb-plugin-postbox when iterating on plugin sources.

Step 02 · Daily Workflow

How a crew delivers Without self-approval

Every run separates planning, implementation, and verification. Writers never mark their own work shipped — an independent reviewer checks the exact worktree first.

  1. 01

    Launch from chat, CLI, or Issue

    Type /crew <brief> in BB, ask your agent to call postbox_start_crew, run bb postbox crew from a terminal, or label a validated GitHub Issue with postbox.

  2. 02

    Plan & execute in worktrees

    The Planner locks a Run Charter (allowed paths + non-goals) and submits a task DAG. Workers claim ready tasks in isolated Git worktrees, run tests, and submit structured outcomes.

  3. 03

    Paired review & supervision

    A separate Reviewer inspects the worker’s exact host and worktree, grading findings as P1 / P2 / P3. SHIP unlocks dependents; NEEDS_WORK routes feedback back to the same worktree.

In BB chat Supervised

Slash command or agent tool

Binds your current thread as supervisor for questions and SHIP handoffs.

/crew Implement OAuth PKCE login and integration tests
From terminal BB CLI

Isolated worktree crew

Spawns planner, parallel workers, and paired reviewers on your BB project.

bb postbox crew "Add OAuth PKCE flow" --repo . --isolation worktree --workers 4
From GitHub Team pipeline

Preflight & label issue

Validates acceptance criteria before admitting the issue into the runner pool.

gh issue create --label postbox --repo org/repo --title "Add PKCE" --body-file issue.md

Step 03 · Project Configuration

One file in your repo Mix providers and hosts

Commit .postbox/crew.yaml to version-control your worker cap, role prompts, models, and target hosts. Editing the file and using the Postbox UI Role Editor write the exact same YAML.

Planner · Claude Opus · Locks charter & assigns per-task tags or hosts
coordinator
Backend Workers · Codex · Parallel Git worktrees on Linux server
hetzner-linux
iOS Worker + Paired Reviewer · Shares remote worktree via --host & --environment
macbook-pro · xcode

Tip: Planners can also set host dynamically per task in crew_submit_plan across any host registered on your BB project. Unknown hosts fail fast with UNKNOWN_TASK_HOST.

.postbox/crew.yaml · Multi-provider & multi-host
# .postbox/crew.yaml
maxParallelWorkers: 6

roles:
  planner:
    provider: claude-code
    model: opus[1m]
    reasoningLevel: high

  worker:
    provider: codex
    model: gpt-5.4
    reasoningLevel: xhigh
    tags: [backend, typescript]
    prompt: >
      Implement one task at a time. Run npm test && npm run lint
      before reporting crew_report_outcome.

  ios-worker:
    kind: worker
    label: iOS Worker
    provider: claude-code
    host: "Gennady’s MacBook Pro"
    tags: [ios, xcode]

  reviewer:
    provider: claude-code
    model: opus[1m]
    reasoningLevel: high

Step 04 · Operator Reference

Mission Control buckets & essential commands

Runs never silently disappear. Every crew stays visible in one of five lifecycle buckets so you always know what is running, what shipped, and what needs your call.

Needs Author

Waiting on your answer, scoped approval, or escalated product decision.

Needs Triage

Parked or interrupted runs — retry with guidance, pause, or cancel cleanly.

Active

Currently planning, coding in isolated worktrees, or in independent review.

Recently Finished

Completed within the last 24 hours — inspect shipped diffs and verdicts.

History

Full searchable archive of finished, paused, and cancelled runs.

Command / ToolWhereWhat it does
/crew <brief> / postbox_start_crew BB Chat Starts a crew for the current thread’s repo and binds your thread as supervisor.
bb postbox crew "<brief>" --repo . --isolation worktree BB CLI Starts an unbound crew with isolated per-task Git worktrees.
bb plugin config postbox BB CLI Inspects or updates plugin settings (globalMemberLimit, consultationHostId, engineBaseUrl).
postbox invite create --repo org/repo --roles dev,reviewer,qa --capabilities macos,xcode Pool CLI Mints a contributor invite bounded by repo, eligible roles, slot cap, and host capability tags.
postbox join <url> --invite <code> --slots 2 --capabilities macos,xcode Pool CLI Enrolls a contributor machine via GitHub Device Login with zero Node.js dependency.
postbox up · postbox pause · postbox resume · postbox status Pool CLI Starts claiming assignments, drains/pauses new claims, resumes work, or checks live slot health.
postbox preflight Pool / Repo CLI Validates an issue draft’s acceptance criteria and repo paths before filing with label postbox.

Frequently asked questions

Why don’t raw subagents spawned with bb thread spawn appear in Postbox?

Postbox only tracks crews registered through its engine (/crew, postbox_start_crew, bb postbox crew, or the New Crew button). Instead of spawning raw threads manually to reach another machine, set host in .postbox/crew.yaml or let the Planner set host per task — Postbox will spawn on those hosts and track every member in the sidebar.

Can one crew use both a Linux server and a MacBook at the same time?

Yes. In BB-Native Crews, assign host per role or per task across any machine attached to your BB project; paired worktree reviewers automatically attach to the worker’s host and environmentId. In Shared Runner Pools, tag invites and runners with --capabilities (for example linux,docker vs macos,xcode).

Can multiple teams contribute runners for different subsets of GitHub repos?

Yes. Install the GitHub App on the target repos and mint separate invites per team with --repo team-a/service --roles dev,reviewer,qa. Each runner’s credential is cryptographically scoped to its invited repo, roles, and capability ceiling.

What happens when Claude Code or Codex hits a subscription rate limit mid-run?

Postbox detects provider quota windows, marks the affected slot paused_limit until the reported resetsAt timestamp, and releases unclaimed work without spending a task retry. Other providers and contributor machines keep running.