1. Cross-Service Google Antigravity CLI Orchestrator & 3-Lane Async Queue Engine
Unified agent orchestration backbone coordinating autonomous agy CLI runs, Vertex AI calls, and GPU/CPU media workers across multiple Node.js and Python production services without OAuth token collisions or rate-limit lockouts.
🎯 Architectural Challenge & Solution
- Cross-Process OAuth & Cooldown Safety: Engineered a file-backed cross-service mutex (
GlobalAgyLock) with PID liveness verification, stale-lock recovery, and a strict minimum 10s-15s inter-command cooldown. - 3 Independent Parallel Queue Lanes: Separated workloads into
🤖 AGY(CLI agent reasoning/choreography),🚀 Vertex(high-speed Imagen/Veo API generation), and🎬 Video(FFmpeg rendering). - Access-Scoped Multi-Tenant Visibility: Real-time per-lane queue telemetry (
lane_position,ahead_in_lane) scoped by user role and project collaboration permissions.
🛠️ Key Engineering Highlights
- Custom
.agents/rules& Skills Architecture: Codified strict architectural invariants, local-to-VPSrsyncdeployment hooks, and subagent delegation rules so agents execute complex refactors deterministically. - Remote Web CLI Console: Built an owner-only, TOTP/MFA-protected web terminal on Creative Breath that streams live
agyCLI execution and tracks rolling 5-hour sprint and weekly quota usage. - Hot-Endpoint Zero-I/O Caching: Eliminated cloud-mount filesystem scans (
rclone) on high-frequency polling routes using an in-memory + SQLite metadata cache.