Skip to main content
Glama
README.md
# Oh-Bros

**Oh-Bros** (`oh-bros` / `oh-bros-mcp`) is a cross-platform, zero-daemon multi-agent orchestration toolkit (MCP Server + CLI + Antigravity Plugin) that enables a primary orchestrator (such as Antigravity) to dynamically discover, route, supervise, verify, and collaborate with heterogeneous local & remote coding agents (**Claude Code**, **Codex**, **DeepSeek Harness**, native subagents, and custom CLI/ACP adapters).

## Quick Install & Setup

```bash
# Install directly from GitHub via uv
uv tool install git+https://github.com/1031193940/Oh-Bros.git

# Or install from a local clone
uv tool install .

# Register Antigravity plugin, cross-platform Python hooks, and run health doctor
oh-bros setup

# Inspect discovered agents, versions, auth state, and sandbox probe matrix
oh-bros doctor --probe
```

## Core Architecture

- **Zero-Daemon Host-Supervised Execution**: Stateless 6-tool MCP server (`oh_bros_discover`, `oh_bros_prepare`, `oh_bros_status`, `oh_bros_decide`, `oh_bros_artifact`, `oh_bros_report_submit`) backed by SQLite WAL (Schema v3) + Fencing Token leases + atomic FIFO `lease_queue`; execution runs as native host-supervised background `oh-bros exec <task_id>` with cross-platform process-tree cleanup (Win32 nested Job Object / POSIX process groups).
- **4-Layer Orthogonal Multi-Model & Multi-Channel Architecture**: Strictly decouples **Harness / Adapter** (`claude-code`, `codex`, `deepseek-harness`, `generic_cli`, `native`), **Provider Channel** (canonical `channel_key` shared across channel/model circuit breakers, quota buckets, and FIFO concurrency limits), **ModelOption** (version-agnostic 3-layer `flagship | workhorse | fast` Tier routing + true model `family` for cross-family blind review), and **Worker Pool** (configurable `max_global` / `max_per_account` / `per_channel` concurrency).
- **Declarative Extensibility**: Reuse built-in adapters in `~/.oh-bros/config/custom_agents.yaml` (`adapter: claude-code | codex | deepseek-harness | generic_cli` with fail-closed credential isolation & spawn-time `${env:VAR}` injection) and supplement uncached model slugs for any `(agent_id, provider)` via `model_catalog` in `~/.oh-bros/config/preferences.yaml`.
- **M2 Quality, Isolation & Safe Integration Pipeline**: Parallel write-scope locks + cross-run overlap warnings, `.oh-bros.yaml` dependency hydration with Python editable false-green guard, baseline differential verification + frozen-test anti-tampering overlay, out-of-scope auto-archive & revert, topological integration worktree merge, sanitized cross-family blind review (`integration` / `workspace_diff` / `task_id`), `clean_base` / `carry_diff` reroute handoff, explicit user-confirmed `oh-bros apply` / `oh-bros rollback` with cross-process repo lock, and Player-Coach soft lifecycle Hook guardrails.
- **DSH Cordis Isolation**: Per-attempt `--patch <overlay.yml>` isolation with Desktop credential reuse and `oh-bros calibrate dsh` session-resume verification.

## Common Commands

```bash
# Install & register plugin/hooks
uv tool install .
oh-bros setup

# Inspect roster, models_by_tier, auth state & live L0-L3 probe matrix
oh-bros doctor --probe

# Calibrate DeepSeek Harness headless (--patch + --session-id continuity)
oh-bros calibrate dsh

# Explicitly apply or rollback verified integrated changes after user confirmation
oh-bros apply <run_id> --mode branch   # or --mode patch | --mode apply
oh-bros rollback <run_id>
```

## Upgrade & Clean Uninstall

```bash
# Safe upgrade (releases Windows MCP binary lock before upgrading)
oh-bros uninstall
uv tool upgrade oh-bros
oh-bros setup

# Complete removal including data, config, cache, and external worktrees
oh-bros uninstall --scope all --purge
uv tool uninstall oh-bros
```