yanauto/broco
حول
Let your AI coding harnesses work together — Claude Code, Codex, Cursor, Antigravity, OpenCode, and Pi. Live quotas, git worktrees, blind review.
أدوات التطويرالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
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, Antigravity (agy), Cursor, Pi, and OpenCode. Run parallel git worktrees, ask another model family for a blind diff review, and route around 5-hour quota limits using your existing logins.
Why not just spawn a headless CLI with an adversarial prompt?
- Managed worktree + baseline diff: isolates edits from committed
HEAD, diffs both tracked and untracked files against the ticket baseline, and keeps reviewers read-only. - Blind cross-vendor review + recursion guard: auto-picks a different vendor, withholds the writer's final summary by default to prevent anchoring (
--with-summaryopt-in), runs a single cold pass instead of runaway review-rewrite bloat loops, and injectsBROCO_IN_WORKER=1so workers cannot recursively spawn workers. - Persistent sessions + live quota handoff: native
codexapp-server JSON-RPC steering, warm persistentagystream-jsonsessions, live 5h/weekly quota probes, and clean--fromhandoff when a cap hits. - SQLite audit + redaction + native Windows 11: event-driven
wait, per-model pass rates, env + URL-credential (DATABASE_URL) scrubbing before SQLite storage, and zero-WSL Windows 11 support.
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 |
Persistent warm Antigravity CLI (--input-format stream-json --output-format stream-json) + /usage multi-group quotas + subagent step visibility (text, image, audio, video, pdf). Permitted under Google's updated Antigravity Terms (2026-12-01) when invoked unmodified as a headless/subagent harness (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; secret env vars and URL-embedded credentials (postgres://user:pass@host,redis://:pass@host,DATABASE_URL) are scrubbed before worker streams or stderr reach 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 across harnesses when a 5-hour quota cap or 60%contextWarningfires. Handoff context boundary:--fromintentionally drops full conversation and tool-call history — it passes only the earlier ticket's title, working directory / worktree path, last completed reply, and your new request, instructing the incoming model to verify real files on disk before relying on that summary.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 strict cross-vendor blind review (--blinddefault;--with-summaryopt-in): omitting--byautomatically selects a permitted worker from a different vendor with available quota headroom (claude,codex,agy,pi:*, etc.), and withholds the writer's final reply so the reviewer judges the actual diff against the original instructions without anchoring on a confident but wrong summary. By design,reviewruns a single read-only pass (no automatic multi-round review-rewrite loops that bloat a 490-line patch into 1,000+ lines) — you decide what to send back.- Format-free non-goals & acceptance criteria:
brocodoes not force a spec format, yet any short brief you pipe in automatically becomes the blind reviewer's rubric:cat criteria.md | broco say auth-fix - --worker agy --worktree --bg --json broco review auth-fix --bg --json # sees criteria.md + diff, never the writer's summary 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. Security boundary: broco's own control daemon uses 0o077 Unix domain sockets (macOS/Linux) or Windows Named Pipes, while the temporary credential proxy intentionally uses loopback HTTP so unmodified SDKs, curl, and *_BASE_URL work without patching (best suited for single-user dev machines rather than untrusted multi-tenant hosts).
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
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…