Gemini CLI orchestrator adds Firestore locks, dual-agent loops, and a worker entrypoint
joneba-google · ghdev · 2026-07-18
This PR adds the main orchestration layer and container worker entrypoint for the Gemini CLI SSR pipeline.
Key pieces
- Worker entrypoint: initializes config, runs the async orchestrator, filters noisy WebSocket logs, and maps failures to standardized exit codes for Cloud Run monitoring.
- Orchestrator state machine: handles Firestore leasing and concurrency locks, syncs repositories, manages feature branches, and protects internal state files.
- Iterative dual-agent loop: alternates between a coding agent that implements fixes and an evaluation agent that runs ESLint and checks test verdicts.
- Performance optimization: reuses nodemodules through filesystem symlinks to avoid repeated npm ci installs.
- PR publishing: enforces diff limits and automates submission when the loop converges.
The net effect is a full automation backbone for agentic PR generation, with locking, retries, evaluation, and deployment-friendly worker behavior.
More from coding & agent
- Warp's six non-engineering teams all run on Linear and Claude Code — mon__lim · 2026-09-11
- Is inference latency becoming the biggest bottleneck for production AI agents? — Euphoric_Sea632 · 2026-09-11
- Anthropic researcher: 99% of engineers now run swarms of 300+ self-improving agents — AlishaOutridge · 2026-09-11
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11