Skip to content

Colab GPU v1.0.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 18:00

Colab GPU (agy-colab) v1.0.0

English Summary

Initial public open-source stable release of Colab GPU (agy-colab) — turning Google Colab GPU quotas across multiple accounts into an agent-ready compute pool directly inside Google Antigravity, with zero Python/browser automation bloat and strict safety guardrails.

Host Harness Support Notice: v1.0.0 currently supports Google Antigravity as its first target harness. Need support for another coding harness or MCP host (such as Claude Code, Cursor, Codex, Windsurf, Cline, Zed, etc.)? Open a Harness Request Issue and support for your requested harness will be added promptly.

Core Capabilities

  • Multi-Spec Concurrent GPU Racer & AIMD Guard: Select one or multiple GPU tiers (G4 96G, A100 80G, A100 40G, V100 16G, L4 24G, T4 16G, Pro+ Priority) and race up to exact target counts in parallel (per-account baseline diff before grabbing + single-spec 2-worker fan-out + adaptive AIMD concurrency halving on HTTP 429 with Retry-After respect). Rejects silent A100 80G -> 40G downgrades unless explicitly selected, verifies excess-GPU cleanup (stopAndVerify) with cleanupWarnings, and surfaces preflight diagnostics (NOT_ENTITLED / HTTP 412 / zero-balance skips).
  • Multi-Exit Proxy Pool & Circuit Breaker (src/server/net/proxy-pool.ts, http.ts): Configure direct, single, or multi-node pool routing with per_account deterministic affinity + automatic failover, fastest EMA-latency routing, or round_robin balancing. Features per-node persistent ProxyAgent reuse, exponential cooldown (5s -> 15s -> 30s -> 60s) + immediate cooldown on 429, half-open probe recovery, single transparent failover even when retries === 0, isolated non-polluting probe sweeps (app_test_proxy_pool), and strict credential masking across logs/errors/API responses.
  • Isolated Multi-Account OAuth & 90-Day FIFO CU Ledger (src/server/colab/auth.ts, balance-ledger.ts): PKCE OAuth flow using Google's installed-app flow (plus optional AGY_COLAB_OAUTH_CLIENT_ID / AGY_COLAB_OAUTH_CLIENT_SECRET env overrides and legacy ~/.colab-accounts / CLI ADC discovery/sync), paired with batch credit top-up tracking (app_add_balance_batch), FIFO 90-day expiry accounting, burn-rate telemetry, and single-glitch zero-balance protection.
  • Atomic Ready-Card Lease Pool & Token Auto-Renew (src/server/state/store.ts, agent-tools.ts): Domain-locked concurrent persistence (leases, tasks, config, accounts, ledger) preventing lost updates under Promise.all bursts, atomic ready -> in_use claiming (colab_claim_card), zero-downtime proxyToken renewal (colab_refresh_card_token) for jobs exceeding 60 minutes, and clean ready / stop release verification (colab_release_card).
  • Multi-Signal Idle-Burn Watchdog, Ghost Radar & Persistent Snooze (dashboard-cache.ts, runtime.ts): Multi-signal telemetry analyzing GPU util, VRAM motion, host RAM/disk growth, cold-start grace, ready_timeout, keepalive Python sleep loops (vram_resident fallback when GPU probe telemetry is unavailable), and recent Task Pool heartbeats (< 10m). Includes persisted per-endpoint Snooze (app_snooze_idle), 2-sample transient error shielding, and pure-OAuth [GHOST] runtime detection.
  • Read-Only Agent Task Pool (Phase 1) & Collaboration Skill (skills/colab-agent-workflow/SKILL.md): Enforces mandatory positive ETA (estimatedMinutes / ISO estimatedFinishAt) on colab_task_create, fine-grained step progress & ETA revisions via colab_task_update, automatic task sorting & > 50 finished pruning, and full protocol instructions for AI agents in colab-agent-workflow.
  • Dual-Visibility MCP App Architecture & Clean Packaging: Exposes 10 model-visible colab_* agent tools and 19 app-only app_* Sidecar console tools with built-in protocol handshake (PROTOCOL_VERSION = 3 + serverBuildId staleness banner), zero Demo mode residuals, zero innerHTML sinks, cross-platform scripts/install-plugin.mjs, portable release bundles (zip / tar.gz + SHA256SUMS.txt), and automated architecture/security/budget gates.

中文更新摘要

Colab GPU (agy-colab) v1.0.0 正式开源发布 —— 将多账号 Google Colab GPU 配额直接聚合为 Antigravity 内可调度的算力池与 Agent 协同驾驶舱,纯 TypeScript/React + 官方 MCP App 架构,零浏览器的轻量化实现,兼顾极速抢卡与安全风控防误烧。

关于宿主 Harness 支持范围的承诺:本插件当前暂时优先支持 Google Antigravity。只要有用户在仓库 提出 Issue 说明你使用的其他 Harness / MCP Host(如 Claude Code、Cursor、Codex、Windsurf、Cline、Zed 等),我们会立刻增加对目标 Harness 的兼容支持!

核心能力亮点

  • 多规格并发抢卡引擎 + AIMD 429 自适应退避:支持多卡并行勾选与优先级调度、单卡双路并发抢占、基于并发前存量快照差的增量保留与自动清退校验(stopAndVerify)、A100 80G 隐式降级 40G 拦截保护,以及 HTTP 429 AIMD 退避恢复。
  • 多出口代理池与熔断器(Multi-Exit Proxy Pool):支持 direct / single / 多节点 pool,内置 per_account 确定性亲和、延迟最优 fastest 与轮询 round_robin 策略;配备每节点独立 ProxyAgent、指数冷却熔断与半开试探、retries === 0 自动单次故障切换、隔离式节点测速,以及全链路凭据脱敏保护。
  • 多账号隔离登录与 90 天 FIFO 算力账本:原生 PKCE OAuth 多账号隔离管理(支持环境变量覆盖自定义 OAuth Client 及历史 ADC 凭证扫描导入),支持算力充值批次登记、90 天 FIFO 过期推演与单次接口偶发归零保护。
  • 原子卡位租约池 & 长任务 Token 无损续期:基于域锁(Domain Locks)保障高并发读写零丢更新,colab_claim_card 原子认领防并发撞车,长训练超 50 分钟可通过 colab_refresh_card_token 热续期不断内核、colab_release_card 支持放回待用或彻底关停校验。
  • 多信号防空烧雷达、幽灵卡探测与持久化静音(Snooze):综合 GPU 利用率、显存/内存/磁盘增量、死循环保活识别、冷启动宽限及任务心跳等多重信号精准告警,误报探测盲区零假阳性,支持持久化静音与纯网页幽灵卡感知。
  • Phase 1 只读 Agent 任务池(强制 ETA + 心跳):强制 Agent 通过 colab_task_create 上报预期耗时 estimatedMinutes / 完成时间,并在任务期间每 5–8 分钟通过 colab_task_update 上报步骤进展与实时修正 ETA。
  • 严格开源工程门禁与跨平台便携包:内置 10 个模型可见 Agent 工具与 19 个仅前端可见 UI 工具的严格权限隔离、前后端 serverBuildId 热更新握手、演示代码彻底归零、41+ 项回归测试 + 5 项架构/安全门禁与 GitHub Actions 自动多平台 CI/Release 流水线。

Portable Plugin Bundles / 免 npm install 便携安装包

  • Windows / Cross-Platform (.zip): agy-colab-v1.0.0.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.0.0.tar.gz
  • SHA-256 Checksums: SHA256SUMS.txt

Extract the archive and run node install-portable.mjs inside the extracted agy-colab/ directory, then toggle Colab GPU (agy-colab) on in Antigravity Plugins Manager.

Harness Support: Currently v1.0.0 targets Google Antigravity first. Need another harness (Claude Code, Cursor, Codex, Windsurf, Cline, etc.)? Open a Harness Request Issue and support will be added promptly!

Full Changelog: CHANGELOG.md · Commits (v1.0.0)