O4: Parallel workers, locks and provider quota #5

Closed
opened 2026-11-12 23:12:59 +00:00 by hermes · 0 comments
Collaborator

orch is an orchestrator that runs many hx coding agents (Rust harness, one-shot via hx -p TEXT --mode json = NDJSON events on stdout, or --mode rpc = JSON-RPC over stdio; flags --sandbox, --session FILE, --provider, --yolo; hx stats shows token usage). It must work for work and private use, so it is not tied to any git host. Worker pool with N concurrent runs. Per-repo and per-task lock (no double start, stale lock recovery). Per-provider-account concurrency and rate limit; when hx reports a used-up quota window, pause that account and requeue instead of failing.

Acceptance: 5 tasks on 2 workers finish; two orch instances on one queue never run the same task.

orch is an orchestrator that runs many `hx` coding agents (Rust harness, one-shot via `hx -p TEXT --mode json` = NDJSON events on stdout, or `--mode rpc` = JSON-RPC over stdio; flags `--sandbox`, `--session FILE`, `--provider`, `--yolo`; `hx stats` shows token usage). It must work for work and private use, so it is not tied to any git host. Worker pool with N concurrent runs. Per-repo and per-task lock (no double start, stale lock recovery). Per-provider-account concurrency and rate limit; when hx reports a used-up quota window, pause that account and requeue instead of failing. Acceptance: 5 tasks on 2 workers finish; two orch instances on one queue never run the same task.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/orch#5