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
- BELL: Open-Source Stack Combines Browserbase, Eve, iMessage and Stripe Link for Personal Agents — jeff_weinstein · 2026-10-27
- Two engineers rebuilt a FedEx supplier's billing core in 3.5 months vs an estimated 7-8 — alex_verem · 2026-10-27
- GPT-6.1 Terra gains ~20 points on Terminal-Bench 4.0, rivalling GPT-6.1 Sol — ArtificialAnlys · 2026-10-27
- GPT-6.1 Terra scores 48 on AA Coding Agent Index at one-third the cost of GPT-5.6 Terra — ArtificialAnlys · 2026-10-27
- Shift-1 router cuts coding agent spend up to 55% while keeping SWE-bench accuracy — ypatil125 · 2026-10-27
- Non-coder vibe-codes a Godot JRPG with Claude Code in two weeks, music and art synced — ADHDavid · 2026-10-27