broco
Health Gecti
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 63 GitHub stars
Code Uyari
- process.env — Environment variable access in docs-site/build.mjs
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Let your AI coding harnesses work together — Claude Code, Codex, Cursor, Antigravity, OpenCode, and Pi. Live quotas, git worktrees, blind review.
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, Antigravity, OpenCode, and Pi. Run parallel git worktrees, ask another model family for a cold diff review, and route around 5-hour quota limits using your existing logins.
Get started
Requires macOS or Linux, Node.js 24+, and two or more coding CLIs you already signed into locally.
npm install -g broco
broco setup
broco setup does four things 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).
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) |
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 ofpsarguments, 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, plentiful, and secondary agy model-group alerts) 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 agy --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) 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 (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 agy --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,agy,pi:deepseek --default-worker agy --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 agy
broco allow claude,codex,agy --default-worker agy
broco deny cursor-agent
broco defaults agy --model gemini-4-argon --effort high
broco note agy "High headroom plan; 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 v1.0.0 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
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi