Über uns
Let your AI coding harnesses work together — Claude Code, Codex, Cursor, Antigravity, OpenCode, and Pi. Live quotas, git worktrees, blind review.
EntwicklerwerkzeugeGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
Formerly opus-manager (v0.4) · Apache-2.0 · 中文 · Website · Docs · Changelog
Let your harnesses work together. Stay in whichever coding agent you already have open, and delegate to the rest on your machine — Claude Code, Codex, Cursor, Pi, OpenCode, and Antigravity (API/Enterprise). Run parallel git worktrees, ask another model family for a cold diff review, and route around 5-hour quota limits using your existing logins.
32-second demo · Watch in 1080p with audio on broco.yanauto.me →
Get started
Requires macOS, Linux, or Windows 11, Git (Git for Windows on Windows 11), and two or more coding CLIs you already signed into locally. The one-line installer brings its own Node runtime when needed; installing via npm requires Node.js 22.13+.
One-line installer (recommended):
macOS / Linux:
curl -fsSL https://broco.yanauto.me/install.sh | sh
Windows (PowerShell):
irm https://broco.yanauto.me/install.ps1 | iex
The installer brings its own Node 24 LTS runtime when needed (or reuses Node 22.13+ on PATH), installs into its own folder (~/.local/share/broco and ~/.local/bin/broco on macOS/Linux; %LOCALAPPDATA%\broco on Windows), needs no admin rights, and leaves existing Node/npm untouched. Interactive shells run broco setup automatically; in non-interactive shells, run broco setup afterward. Re-run the same command to upgrade in place.
Already on Node 22.13+?
npm install -g @yanauto/broco
broco setup
Install options
Both installers support environment overrides (and flags --no-setup, --version <ver>, --uninstall, --purge, --help on Unix; -NoSetup, -Version <ver>, -Uninstall, -Purge on Windows):
BROCO_INSTALL_DIR: override install root (default~/.local/share/brocoon Unix,%LOCALAPPDATA%\brocoon Windows);BROCO_BIN_DIRoverrides the Unix shim folder (default~/.local/bin).BROCO_NODE_MIRROR/BROCO_NPM_REGISTRY: mirror overrides; for users in mainland China, both installers automatically fall back tohttps://npmmirror.com/mirrors/nodeandhttps://registry.npmmirror.comon download failure.BROCO_VERSION: install a pinned@yanauto/brocoversion or dist-tag (defaultlatest).BROCO_NO_SETUP=1: skip post-installbroco setupand printNext: broco setup(useful for AI agents and CI).BROCO_FORCE_RUNTIME=1: always download the private Node 24 LTS runtime into<root>/runtime/instead of reusingnodeonPATH.
Uninstall
macOS / Linux:
curl -fsSL https://broco.yanauto.me/install.sh | sh -s -- --uninstall
Windows (PowerShell):
& ([scriptblock]::Create((irm https://broco.yanauto.me/install.ps1))) -Uninstall
Removes the install root, shim, and Windows User Path entry while keeping ~/.broco/ data intact (append --purge or -Purge alongside uninstall — or set BROCO_UNINSTALL=1 and BROCO_PURGE=1 — to remove ~/.broco/ too). Installed via npm? Run npm uninstall -g @yanauto/broco.
What broco setup does
broco setup completes four steps in one pass:
- Detects the coding harnesses already installed and signed in on your machine.
- Asks you once to confirm your global allowlist (never enables workers silently).
- Prints a live quota-aware roster immediately.
- Installs one open
SKILL.mdinto~/.agents/skills/broco/and links or syncs it into your detected local hosts (Claude Code, Codex, Cursor, Antigravity, OpenCode, and Pi — linking~/.pi/agent/skills/brocoand respectingPI_CODING_AGENT_DIR).
Native Windows 11 support: Runs directly in PowerShell, Windows Terminal, or cmd (WSL2 also works via the Linux backend) using Windows Named Pipes (\\.\pipe\broco-*), direct .exe and npm .cmd CLI resolution without shell quoting issues, a pinned ~/.agents/skills/broco/broco.cmd launcher, and NTFS junctions for Pi skills (no administrator privileges required). See Windows 11 notes & troubleshooting.
Then go straight back to your current harness and ask in plain language:
See which harness has quota headroom, fix the
verifyToken()expiry bug in a worktree, then have another vendor review the diff.
No per-repo init required (L0). broco works in any directory right after setup using your global allowlist. Ticket state stays in ~/.broco/, leaving your repository untouched unless you explicitly opt into per-project policy with broco init.
Symmetric collaboration
Any host harness can delegate to any allowed worker — including calling claude itself from Codex, Cursor, Antigravity, OpenCode, or Pi.
| Worker | Integration & Inputs | Follow-up during a turn |
|---|---|---|
claude |
Native claude -p --output-format stream-json + --resume via stdin (text, image, pdf via --add-dir + Read; rejects audio/video) |
Queues for the next turn |
codex |
Native Codex app-server + live 5h/weekly quota (text, image, reported audio) |
Injects when the turn accepts steering; otherwise queues |
agy |
Native Antigravity CLI via stdin + /usage multi-group quotas (text, image, audio, video, pdf). Warning: Google consumer plans (Free, AI Plus, Pro, Ultra) prohibit third-party agents from driving agy and accounts have been suspended; use only with a Gemini API key or Gemini Enterprise / Google Cloud project, at your own risk (details). |
Queues for the next turn |
cursor-agent |
Native Cursor CLI with structured events and session ID resume | Queues for the next turn |
pi:<provider> |
pi RPC with explicit per-provider permission (text, image) |
Injects when pi confirms delivery; otherwise queues |
custom:<name> |
Trial-tested new-session and resume command templates | Queues; native step events and cache are unavailable |
- Official local CLIs using your existing logins.
brocospawns the official CLIs you already signed into as isolated local subprocesses, keeping state in~/.broco/without touching other CLIs' configs. - Safe prompts and secret redaction. Prompts stream over
stdinso task text stays out of process arguments, and secret patterns are redacted before worker streams are stored in SQLite. - Recursion guard (
BROCO_IN_WORKER=1). Every worker process inheritsBROCO_IN_WORKER=1;brocorefuses nested worker-to-worker dispatch by default unless explicitly overridden with--allow-nested.
When two harnesses beat one
- Cross-vendor code review. Once your main harness finishes a patch, hand the git diff to a different model family cold, with fresh eyes on the diff alone.
- Quota-aware handoff. When your primary CLI approaches its 5-hour cap, send test fixes or refactors to another signed-in harness with headroom and keep your session moving.
- Borrow another harness’s strengths. Stay in your terminal while sending screenshots, PDFs, audio, video, or model-specific work to whichever local CLI fits best across Claude, Gemini, Codex, Cursor, and Pi.
- Parallel worktree batches. Fan out repetitive audits, migrations, or multi-module edits in isolated git worktrees so several tasks move forward while you stay focused in your main session.
Agent CLI reference
Commands below are run by your agent via the skill — you don't need to memorize them.
Check health and live quotas
broco status --json
broco roster --json
broco roster --worker codex --json --full
status checks runner health, active/queued tickets, batches, proxies, and cleanable worktrees without starting an offline daemon. roster reads permitted model families, login state, input capabilities, user notes, rules, and live quotas (avoid and plentiful) over a shared 45s cache (--refresh forces a re-probe; --global inspects global defaults explicitly).
Dispatch, wait, diff, cross-vendor review, and clean
broco say auth-fix - --worker pi:zai --worktree --bg --json <<'EOF'
Fix the failing `verifyToken()` expiry test and cover `$REFRESH_TOKEN` edge cases.
EOF
broco wait auth-fix --json
broco diff auth-fix --stat
broco review auth-fix --bg --json
broco wait auth-fix-review-... --json
broco done auth-fix --result pass --why "Token expiry and refresh tests green."
broco clean auth-fix --delete-branch
sayaccepts inline text,--file <path>, orstdin(-or piped input; on Windows PowerShell orcmd, pass--file <path>or pipe@' ... '@instead of<<'EOF') so multi-line markdown and backticks need no shell escaping. Reuse a name to continue its session; pick a new name to run in parallel. Use--cwd DIRto run in another directory while keeping permissions and tickets in the current project,--attach FILEfor confirmed media,--new-taskafterdone, and--from OLD_NAMEto hand off cleanly whencontextWarningfires at 60% of a model's context window.waitis event-driven (0ms wakeup, no SQLite polling) and returnsreply,task,cwd,worktree,branch, andchangedFiles.diffinspects tracked and untracked changes against the ticket's base commit.reviewdefaults to cross-vendor blind review: omitting--byautomatically selects a permitted worker from a different vendor with available quota headroom — for example reviewing acodexpatch withclaude, or api:zaipatch withclaude(or pass--by claude,--by codex, etc. explicitly).done&cleanrecord outcomes (pass,rework,fail,blocked) and remove retained worktrees and branches safely (--dry-runpreviews first).
Sharded batch fan-out with map
Apply one brief across many files or inputs (<prefix>-1 .. <prefix>-N) regulated by an isolated FIFO concurrency pool:
broco map x-tag --brief-file brief.md --inputs shard-*.jsonl --worker pi:deepseek --effort high --bg --json
broco wait x-tag --json
broco retry x-tag --bg --json
broco show x-tag --status error,review --full --json
broco done x-tag --result pass --why "All shards verified."
broco clean x-tag --delete-branch
map accepts --brief, --brief-file <path|->, --input, --inputs, --inputs-file <path|-> (lines or JSON array), and {input}, {index}, {count}, {name} placeholders. wait, show, retry, stop, done, and clean all accept a batch prefix (retry <prefix> retries only failed or stopped shards).
Optional per-repo policy (L1 init)
Only needed when a repository requires its own strict allowlist (for example blocking a specific vendor in a private repo), an independent concurrency cap, repo-specific rules, or explicit heavy manager mode:
broco init --allow claude,codex,pi:deepseek,pi:zai --default-worker pi:zai --concurrency 4
broco init --manager-mode
broco uninit
init writes .broco/ and maintains a marked <!-- broco:start --> section in AGENTS.md by default without altering surrounding text (--host supports auto|agents|claude|codex|cursor|agy|opencode|pi). It touches CLAUDE.md only when the repo already has one or when --host claude is passed (--no-agents-md / --no-claude-md skip markers; broco uninit releases idle workers, unregisters the repo, and strips only the marked section). Project policy strictly overrides global defaults when present.
Built for daily power use
Agent-first settings and one-command undo
Your agent can adjust global or per-project settings directly via CLI. Every change takes effect on subsequent dispatches, writes an audit entry in your local timezone (configurable via BROCO_TZ or TZ), and prints a one-command undo:
broco set concurrency 6
broco set default-worker pi:zai
broco allow claude,codex,pi:deepseek,pi:zai --default-worker pi:zai
broco deny cursor-agent
broco defaults pi:zai --model zai/glm-5.3 --effort high
broco note pi:deepseek "Fast and inexpensive; good for batch map jobs"
broco rules --add "Run tests before finishing"
broco hide codex gpt-5.6-sol
broco audit --limit 10
broco undo
Open the local board anytime with broco ui (or broco ui --no-open; port auto-restores across restarts) to monitor live map progress bars, queue positions, multi-task histories, context warnings, and one-click Undo.
Loopback credential proxies
Give a worker a temporary 127.0.0.1 URL that injects an auth header into specific upstream paths without exposing the secret to the worker process:
broco proxy-open --upstream https://api.example.com \
--path /v1/models --path /v1/chat/completions \
--header Authorization --value-env EXAMPLE_API_KEY --value-prefix 'Bearer ' \
--max-requests 150 --ttl 1800 --json
broco proxy-list --json
broco proxy-close PROXY_ID --json
Secrets live in runner memory only, bind strictly to 127.0.0.1, reject --path / and 3xx redirects, and enforce path-segment prefixes and request/TTL caps.
Tracked task pass rates (stats)
broco stats --json
broco stats --project . --json
Aggregates real per-task pass/rework/fail/blocked outcomes grouped by worker and model across projects.
Upgrading from cc-bro or opus-manager
broco is the continuation of opus-manager (v0.4) and cc-bro. After installing broco:
- Wait for any active work you want to preserve (
cc-bro statusif still installed). - Run
broco shutdown(cleanly stops legacy runners across older protocols and~/.cc-brosockets) followed bybroco setup --migrate-cc-bro(orbroco setupfor a fresh start). broco setup --migrate-cc-brolosslessly copies existing~/.cc-bro/state into~/.broco/while preserving your projects, settings, and ticket history without deleting~/.cc-bro/.
See the upgrade guide for details.
Development
From source:
npm ci --prefix ui
npm run prepack
npm test
Ähnliche Projekte entdecken
Wird geladen…